1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/ads/googleads/v2/services/carrier_constant_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/v2/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 [CarrierConstantService.GetCarrierConstant][google.ads.googleads.v2.services.CarrierConstantService.GetCarrierConstant]. 31type GetCarrierConstantRequest struct { 32 // Required. Resource name of the carrier constant 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 *GetCarrierConstantRequest) Reset() { *m = GetCarrierConstantRequest{} } 40func (m *GetCarrierConstantRequest) String() string { return proto.CompactTextString(m) } 41func (*GetCarrierConstantRequest) ProtoMessage() {} 42func (*GetCarrierConstantRequest) Descriptor() ([]byte, []int) { 43 return fileDescriptor_08b7cfe7382d5c66, []int{0} 44} 45 46func (m *GetCarrierConstantRequest) XXX_Unmarshal(b []byte) error { 47 return xxx_messageInfo_GetCarrierConstantRequest.Unmarshal(m, b) 48} 49func (m *GetCarrierConstantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 50 return xxx_messageInfo_GetCarrierConstantRequest.Marshal(b, m, deterministic) 51} 52func (m *GetCarrierConstantRequest) XXX_Merge(src proto.Message) { 53 xxx_messageInfo_GetCarrierConstantRequest.Merge(m, src) 54} 55func (m *GetCarrierConstantRequest) XXX_Size() int { 56 return xxx_messageInfo_GetCarrierConstantRequest.Size(m) 57} 58func (m *GetCarrierConstantRequest) XXX_DiscardUnknown() { 59 xxx_messageInfo_GetCarrierConstantRequest.DiscardUnknown(m) 60} 61 62var xxx_messageInfo_GetCarrierConstantRequest proto.InternalMessageInfo 63 64func (m *GetCarrierConstantRequest) GetResourceName() string { 65 if m != nil { 66 return m.ResourceName 67 } 68 return "" 69} 70 71func init() { 72 proto.RegisterType((*GetCarrierConstantRequest)(nil), "google.ads.googleads.v2.services.GetCarrierConstantRequest") 73} 74 75func init() { 76 proto.RegisterFile("google/ads/googleads/v2/services/carrier_constant_service.proto", fileDescriptor_08b7cfe7382d5c66) 77} 78 79var fileDescriptor_08b7cfe7382d5c66 = []byte{ 80 // 419 bytes of a gzipped FileDescriptorProto 81 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x52, 0xcd, 0x8a, 0xd3, 0x40, 82 0x1c, 0x27, 0x11, 0x04, 0x83, 0x5e, 0x72, 0xd0, 0x36, 0x15, 0x2c, 0xa5, 0x48, 0xe9, 0x61, 0x46, 83 0xe2, 0x45, 0xa6, 0xa8, 0x4c, 0x7b, 0xa8, 0x27, 0x29, 0x8a, 0x3d, 0x48, 0x20, 0x4c, 0x93, 0x31, 84 0x0e, 0x24, 0x33, 0x75, 0x26, 0xcd, 0x45, 0xbc, 0xf4, 0x15, 0x7c, 0x03, 0x8f, 0xbe, 0x87, 0x97, 85 0x5e, 0xbd, 0xed, 0x69, 0x0f, 0x7b, 0xda, 0x47, 0x58, 0x58, 0x58, 0xd2, 0xc9, 0xa4, 0x1f, 0xdb, 86 0xd0, 0xdb, 0x8f, 0xf9, 0x7d, 0xfc, 0xbf, 0xc6, 0x79, 0x9f, 0x08, 0x91, 0xa4, 0x14, 0x92, 0x58, 87 0x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, 0x6b, 0xef, 0xdd, 0x05, 0x3e, 0x1c, 0x7d, 0xfd, 0xff, 0xea, 99 0xb7, 0x3d, 0x70, 0x5f, 0x96, 0x77, 0xfc, 0x79, 0xc0, 0xbc, 0x8d, 0x0e, 0xbd, 0x0a, 0x0e, 0x7f, 100 0x79, 0x9d, 0x0d, 0x6e, 0x35, 0x6d, 0x67, 0xbc, 0xb6, 0x9d, 0x7e, 0x24, 0xb2, 0xb3, 0x33, 0x8d, 101 0x3b, 0xa7, 0xb7, 0x34, 0x2b, 0x2f, 0x37, 0xb3, 0xbe, 0x7e, 0xa8, 0x02, 0x12, 0x91, 0x12, 0x9e, 102 0x00, 0x21, 0x13, 0x98, 0x50, 0xbe, 0xbd, 0x2b, 0xdc, 0x95, 0x6c, 0xfe, 0xea, 0x23, 0x03, 0xfe, 103 0xd8, 0x0f, 0xa6, 0x18, 0xff, 0xb5, 0xbb, 0x53, 0x1d, 0x88, 0x63, 0x05, 0x34, 0x2c, 0xd1, 0xdc, 104 0x07, 0x55, 0x61, 0xb5, 0x31, 0x92, 0x00, 0xc7, 0x2a, 0xa8, 0x25, 0xc1, 0xdc, 0x0f, 0x8c, 0xe4, 105 0xda, 0xee, 0xeb, 0x77, 0x84, 0x70, 0xac, 0x10, 0xaa, 0x45, 0x08, 0xcd, 0x7d, 0x84, 0x8c, 0x6c, 106 0xf1, 0x70, 0xdb, 0xe7, 0xeb, 0xbb, 0x00, 0x00, 0x00, 0xff, 0xff, 0x04, 0x28, 0x4b, 0xd1, 0x91, 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// CarrierConstantServiceClient is the client API for CarrierConstantService 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 CarrierConstantServiceClient interface { 122 // Returns the requested carrier constant in full detail. 123 GetCarrierConstant(ctx context.Context, in *GetCarrierConstantRequest, opts ...grpc.CallOption) (*resources.CarrierConstant, error) 124} 125 126type carrierConstantServiceClient struct { 127 cc grpc.ClientConnInterface 128} 129 130func NewCarrierConstantServiceClient(cc grpc.ClientConnInterface) CarrierConstantServiceClient { 131 return &carrierConstantServiceClient{cc} 132} 133 134func (c *carrierConstantServiceClient) GetCarrierConstant(ctx context.Context, in *GetCarrierConstantRequest, opts ...grpc.CallOption) (*resources.CarrierConstant, error) { 135 out := new(resources.CarrierConstant) 136 err := c.cc.Invoke(ctx, "/google.ads.googleads.v2.services.CarrierConstantService/GetCarrierConstant", in, out, opts...) 137 if err != nil { 138 return nil, err 139 } 140 return out, nil 141} 142 143// CarrierConstantServiceServer is the server API for CarrierConstantService service. 144type CarrierConstantServiceServer interface { 145 // Returns the requested carrier constant in full detail. 146 GetCarrierConstant(context.Context, *GetCarrierConstantRequest) (*resources.CarrierConstant, error) 147} 148 149// UnimplementedCarrierConstantServiceServer can be embedded to have forward compatible implementations. 150type UnimplementedCarrierConstantServiceServer struct { 151} 152 153func (*UnimplementedCarrierConstantServiceServer) GetCarrierConstant(ctx context.Context, req *GetCarrierConstantRequest) (*resources.CarrierConstant, error) { 154 return nil, status.Errorf(codes.Unimplemented, "method GetCarrierConstant not implemented") 155} 156 157func RegisterCarrierConstantServiceServer(s *grpc.Server, srv CarrierConstantServiceServer) { 158 s.RegisterService(&_CarrierConstantService_serviceDesc, srv) 159} 160 161func _CarrierConstantService_GetCarrierConstant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 162 in := new(GetCarrierConstantRequest) 163 if err := dec(in); err != nil { 164 return nil, err 165 } 166 if interceptor == nil { 167 return srv.(CarrierConstantServiceServer).GetCarrierConstant(ctx, in) 168 } 169 info := &grpc.UnaryServerInfo{ 170 Server: srv, 171 FullMethod: "/google.ads.googleads.v2.services.CarrierConstantService/GetCarrierConstant", 172 } 173 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 174 return srv.(CarrierConstantServiceServer).GetCarrierConstant(ctx, req.(*GetCarrierConstantRequest)) 175 } 176 return interceptor(ctx, in, info, handler) 177} 178 179var _CarrierConstantService_serviceDesc = grpc.ServiceDesc{ 180 ServiceName: "google.ads.googleads.v2.services.CarrierConstantService", 181 HandlerType: (*CarrierConstantServiceServer)(nil), 182 Methods: []grpc.MethodDesc{ 183 { 184 MethodName: "GetCarrierConstant", 185 Handler: _CarrierConstantService_GetCarrierConstant_Handler, 186 }, 187 }, 188 Streams: []grpc.StreamDesc{}, 189 Metadata: "google/ads/googleads/v2/services/carrier_constant_service.proto", 190} 191