1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/ads/googleads/v1/services/video_service.proto 3 4package services 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" 13 _ "google.golang.org/genproto/googleapis/api/annotations" 14 grpc "google.golang.org/grpc" 15 codes "google.golang.org/grpc/codes" 16 status "google.golang.org/grpc/status" 17) 18 19// Reference imports to suppress errors if they are not otherwise used. 20var _ = proto.Marshal 21var _ = fmt.Errorf 22var _ = math.Inf 23 24// This is a compile-time assertion to ensure that this generated file 25// is compatible with the proto package it is being compiled against. 26// A compilation error at this line likely means your copy of the 27// proto package needs to be updated. 28const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 29 30// Request message for [VideoService.GetVideo][google.ads.googleads.v1.services.VideoService.GetVideo]. 31type GetVideoRequest struct { 32 // Required. The resource name of the video to fetch. 33 ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 34 XXX_NoUnkeyedLiteral struct{} `json:"-"` 35 XXX_unrecognized []byte `json:"-"` 36 XXX_sizecache int32 `json:"-"` 37} 38 39func (m *GetVideoRequest) Reset() { *m = GetVideoRequest{} } 40func (m *GetVideoRequest) String() string { return proto.CompactTextString(m) } 41func (*GetVideoRequest) ProtoMessage() {} 42func (*GetVideoRequest) Descriptor() ([]byte, []int) { 43 return fileDescriptor_7856cda63e5cca90, []int{0} 44} 45 46func (m *GetVideoRequest) XXX_Unmarshal(b []byte) error { 47 return xxx_messageInfo_GetVideoRequest.Unmarshal(m, b) 48} 49func (m *GetVideoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 50 return xxx_messageInfo_GetVideoRequest.Marshal(b, m, deterministic) 51} 52func (m *GetVideoRequest) XXX_Merge(src proto.Message) { 53 xxx_messageInfo_GetVideoRequest.Merge(m, src) 54} 55func (m *GetVideoRequest) XXX_Size() int { 56 return xxx_messageInfo_GetVideoRequest.Size(m) 57} 58func (m *GetVideoRequest) XXX_DiscardUnknown() { 59 xxx_messageInfo_GetVideoRequest.DiscardUnknown(m) 60} 61 62var xxx_messageInfo_GetVideoRequest proto.InternalMessageInfo 63 64func (m *GetVideoRequest) GetResourceName() string { 65 if m != nil { 66 return m.ResourceName 67 } 68 return "" 69} 70 71func init() { 72 proto.RegisterType((*GetVideoRequest)(nil), "google.ads.googleads.v1.services.GetVideoRequest") 73} 74 75func init() { 76 proto.RegisterFile("google/ads/googleads/v1/services/video_service.proto", fileDescriptor_7856cda63e5cca90) 77} 78 79var fileDescriptor_7856cda63e5cca90 = []byte{ 80 // 419 bytes of a gzipped FileDescriptorProto 81 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0x31, 0x6b, 0xdb, 0x40, 82 0x14, 0x46, 0x2a, 0x94, 0x56, 0xb8, 0x94, 0x6a, 0xa9, 0xab, 0x96, 0x56, 0x18, 0x53, 0x8c, 0xa1, 83 0x77, 0xa8, 0xed, 0x74, 0xa5, 0x90, 0xf3, 0xe2, 0x40, 0x20, 0x98, 0x04, 0x34, 0x04, 0x11, 0x73, 84 0x96, 0x2e, 0xca, 0x81, 0xa4, 0x73, 0x74, 0xb2, 0x96, 0x90, 0x25, 0x7f, 0x21, 0xff, 0x20, 0x5b, 85 0xf2, 0x53, 0xbc, 0x66, 0x08, 0x64, 0xca, 0x90, 0x29, 0xbf, 0x20, 0x64, 0x0a, 0xd2, 0xe9, 0x64, 86 0x39, 0x20, 0xbc, 0x7d, 0xba, 0xef, 0xfb, 0xde, 0x7b, 0xdf, 0x7b, 0x32, 0xfe, 0x86, 0x9c, 0x87, 87 0x11, 0x85, 0x24, 0x10, 0x50, 0xc2, 0x02, 0xe5, 0x0e, 0x14, 0x34, 0xcd, 0x99, 0x4f, 0x05, 0xcc, 88 0x59, 0x40, 0xf9, 0xb4, 0xfa, 0x04, 0xf3, 0x94,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0x01, 0x87, 100 0x67, 0xd6, 0xd7, 0x25, 0xee, 0xb6, 0xa5, 0x1d, 0x3d, 0x69, 0x46, 0xdf, 0xe7, 0xf1, 0xc6, 0x04, 101 0xa3, 0x4f, 0xcd, 0xfc, 0x93, 0x62, 0xeb, 0x13, 0xed, 0x60, 0xbb, 0xb2, 0x85, 0x3c, 0x22, 0x49, 102 0x08, 0x78, 0x1a, 0xc2, 0x90, 0x26, 0xe5, 0x4d, 0xe0, 0xaa, 0x51, 0xfb, 0x0f, 0xf9, 0x4f, 0x81, 103 0x4b, 0xfd, 0xcd, 0x18, 0xe3, 0x6b, 0xdd, 0x1e, 0xcb, 0x82, 0x38, 0x10, 0x40, 0xc2, 0x02, 0xb9, 104 0x0e, 0xa8, 0x1a, 0x8b, 0xa5, 0x92, 0x78, 0x38, 0x10, 0x5e, 0x2d, 0xf1, 0x5c, 0xc7, 0x53, 0x92, 105 0x47, 0xbd, 0x2f, 0xdf, 0x11, 0xc2, 0x81, 0x40, 0xa8, 0x16, 0x21, 0xe4, 0x3a, 0x08, 0x29, 0xd9, 106 0xec, 0x6d, 0x39, 0xe7, 0x9f, 0x97, 0x00, 0x00, 0x00, 0xff, 0xff, 0x70, 0xf9, 0x22, 0x51, 0x37, 107 0x03, 0x00, 0x00, 108} 109 110// Reference imports to suppress errors if they are not otherwise used. 111var _ context.Context 112var _ grpc.ClientConnInterface 113 114// This is a compile-time assertion to ensure that this generated file 115// is compatible with the grpc package it is being compiled against. 116const _ = grpc.SupportPackageIsVersion6 117 118// VideoServiceClient is the client API for VideoService service. 119// 120// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 121type VideoServiceClient interface { 122 // Returns the requested video in full detail. 123 GetVideo(ctx context.Context, in *GetVideoRequest, opts ...grpc.CallOption) (*resources.Video, error) 124} 125 126type videoServiceClient struct { 127 cc grpc.ClientConnInterface 128} 129 130func NewVideoServiceClient(cc grpc.ClientConnInterface) VideoServiceClient { 131 return &videoServiceClient{cc} 132} 133 134func (c *videoServiceClient) GetVideo(ctx context.Context, in *GetVideoRequest, opts ...grpc.CallOption) (*resources.Video, error) { 135 out := new(resources.Video) 136 err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.VideoService/GetVideo", in, out, opts...) 137 if err != nil { 138 return nil, err 139 } 140 return out, nil 141} 142 143// VideoServiceServer is the server API for VideoService service. 144type VideoServiceServer interface { 145 // Returns the requested video in full detail. 146 GetVideo(context.Context, *GetVideoRequest) (*resources.Video, error) 147} 148 149// UnimplementedVideoServiceServer can be embedded to have forward compatible implementations. 150type UnimplementedVideoServiceServer struct { 151} 152 153func (*UnimplementedVideoServiceServer) GetVideo(ctx context.Context, req *GetVideoRequest) (*resources.Video, error) { 154 return nil, status.Errorf(codes.Unimplemented, "method GetVideo not implemented") 155} 156 157func RegisterVideoServiceServer(s *grpc.Server, srv VideoServiceServer) { 158 s.RegisterService(&_VideoService_serviceDesc, srv) 159} 160 161func _VideoService_GetVideo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 162 in := new(GetVideoRequest) 163 if err := dec(in); err != nil { 164 return nil, err 165 } 166 if interceptor == nil { 167 return srv.(VideoServiceServer).GetVideo(ctx, in) 168 } 169 info := &grpc.UnaryServerInfo{ 170 Server: srv, 171 FullMethod: "/google.ads.googleads.v1.services.VideoService/GetVideo", 172 } 173 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 174 return srv.(VideoServiceServer).GetVideo(ctx, req.(*GetVideoRequest)) 175 } 176 return interceptor(ctx, in, info, handler) 177} 178 179var _VideoService_serviceDesc = grpc.ServiceDesc{ 180 ServiceName: "google.ads.googleads.v1.services.VideoService", 181 HandlerType: (*VideoServiceServer)(nil), 182 Methods: []grpc.MethodDesc{ 183 { 184 MethodName: "GetVideo", 185 Handler: _VideoService_GetVideo_Handler, 186 }, 187 }, 188 Streams: []grpc.StreamDesc{}, 189 Metadata: "google/ads/googleads/v1/services/video_service.proto", 190} 191