1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/ads/googleads/v1/services/ad_group_label_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 _ "github.com/golang/protobuf/ptypes/wrappers" 13 resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources" 14 _ "google.golang.org/genproto/googleapis/api/annotations" 15 status "google.golang.org/genproto/googleapis/rpc/status" 16 grpc "google.golang.org/grpc" 17 codes "google.golang.org/grpc/codes" 18 status1 "google.golang.org/grpc/status" 19) 20 21// Reference imports to suppress errors if they are not otherwise used. 22var _ = proto.Marshal 23var _ = fmt.Errorf 24var _ = math.Inf 25 26// This is a compile-time assertion to ensure that this generated file 27// is compatible with the proto package it is being compiled against. 28// A compilation error at this line likely means your copy of the 29// proto package needs to be updated. 30const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 31 32// Request message for 33// [AdGroupLabelService.GetAdGroupLabel][google.ads.googleads.v1.services.AdGroupLabelService.GetAdGroupLabel]. 34type GetAdGroupLabelRequest struct { 35 // The resource name of the ad group label to fetch. 36 ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 37 XXX_NoUnkeyedLiteral struct{} `json:"-"` 38 XXX_unrecognized []byte `json:"-"` 39 XXX_sizecache int32 `json:"-"` 40} 41 42func (m *GetAdGroupLabelRequest) Reset() { *m = GetAdGroupLabelRequest{} } 43func (m *GetAdGroupLabelRequest) String() string { return proto.CompactTextString(m) } 44func (*GetAdGroupLabelRequest) ProtoMessage() {} 45func (*GetAdGroupLabelRequest) Descriptor() ([]byte, []int) { 46 return fileDescriptor_1659eac28b95f6f8, []int{0} 47} 48 49func (m *GetAdGroupLabelRequest) XXX_Unmarshal(b []byte) error { 50 return xxx_messageInfo_GetAdGroupLabelRequest.Unmarshal(m, b) 51} 52func (m *GetAdGroupLabelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 53 return xxx_messageInfo_GetAdGroupLabelRequest.Marshal(b, m, deterministic) 54} 55func (m *GetAdGroupLabelRequest) XXX_Merge(src proto.Message) { 56 xxx_messageInfo_GetAdGroupLabelRequest.Merge(m, src) 57} 58func (m *GetAdGroupLabelRequest) XXX_Size() int { 59 return xxx_messageInfo_GetAdGroupLabelRequest.Size(m) 60} 61func (m *GetAdGroupLabelRequest) XXX_DiscardUnknown() { 62 xxx_messageInfo_GetAdGroupLabelRequest.DiscardUnknown(m) 63} 64 65var xxx_messageInfo_GetAdGroupLabelRequest proto.InternalMessageInfo 66 67func (m *GetAdGroupLabelRequest) GetResourceName() string { 68 if m != nil { 69 return m.ResourceName 70 } 71 return "" 72} 73 74// Request message for 75// [AdGroupLabelService.MutateAdGroupLabels][google.ads.googleads.v1.services.AdGroupLabelService.MutateAdGroupLabels]. 76type MutateAdGroupLabelsRequest struct { 77 // ID of the customer whose ad group labels are being modified. 78 CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` 79 // The list of operations to perform on ad group labels. 80 Operations []*AdGroupLabelOperation `protobuf:"bytes,2,rep,name=operations,proto3" json:"operations,omitempty"` 81 // If true, successful operations will be carried out and invalid 82 // operations will return errors. If false, all operations will be carried 83 // out in one transaction if and only if they are all valid. 84 // Default is false. 85 PartialFailure bool `protobuf:"varint,3,opt,name=partial_failure,json=partialFailure,proto3" json:"partial_failure,omitempty"` 86 // If true, the request is validated but not executed. Only errors are 87 // returned, not results. 88 ValidateOnly bool `protobuf:"varint,4,opt,name=validate_only,json=validateOnly,proto3" json:"validate_only,omitempty"` 89 XXX_NoUnkeyedLiteral struct{} `json:"-"` 90 XXX_unrecognized []byte `json:"-"` 91 XXX_sizecache int32 `json:"-"` 92} 93 94func (m *MutateAdGroupLabelsRequest) Reset() { *m = MutateAdGroupLabelsRequest{} } 95func (m *MutateAdGroupLabelsRequest) String() string { return proto.CompactTextString(m) } 96func (*MutateAdGroupLabelsRequest) ProtoMessage() {} 97func (*MutateAdGroupLabelsRequest) Descriptor() ([]byte, []int) { 98 return fileDescriptor_1659eac28b95f6f8, []int{1} 99} 100 101func (m *MutateAdGroupLabelsRequest) XXX_Unmarshal(b []byte) error { 102 return xxx_messageInfo_MutateAdGroupLabelsRequest.Unmarshal(m, b) 103} 104func (m *MutateAdGroupLabelsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 105 return xxx_messageInfo_MutateAdGroupLabelsRequest.Marshal(b, m, deterministic) 106} 107func (m *MutateAdGroupLabelsRequest) XXX_Merge(src proto.Message) { 108 xxx_messageInfo_MutateAdGroupLabelsRequest.Merge(m, src) 109} 110func (m *MutateAdGroupLabelsRequest) XXX_Size() int { 111 return xxx_messageInfo_MutateAdGroupLabelsRequest.Size(m) 112} 113func (m *MutateAdGroupLabelsRequest) XXX_DiscardUnknown() { 114 xxx_messageInfo_MutateAdGroupLabelsRequest.DiscardUnknown(m) 115} 116 117var xxx_messageInfo_MutateAdGroupLabelsRequest proto.InternalMessageInfo 118 119func (m *MutateAdGroupLabelsRequest) GetCustomerId() string { 120 if m != nil { 121 return m.CustomerId 122 } 123 return "" 124} 125 126func (m *MutateAdGroupLabelsRequest) GetOperations() []*AdGroupLabelOperation { 127 if m != nil { 128 return m.Operations 129 } 130 return nil 131} 132 133func (m *MutateAdGroupLabelsRequest) GetPartialFailure() bool { 134 if m != nil { 135 return m.PartialFailure 136 } 137 return false 138} 139 140func (m *MutateAdGroupLabelsRequest) GetValidateOnly() bool { 141 if m != nil { 142 return m.ValidateOnly 143 } 144 return false 145} 146 147// A single operation (create, remove) on an ad group label. 148type AdGroupLabelOperation struct { 149 // The mutate operation. 150 // 151 // Types that are valid to be assigned to Operation: 152 // *AdGroupLabelOperation_Create 153 // *AdGroupLabelOperation_Remove 154 Operation isAdGroupLabelOperation_Operation `protobuf_oneof:"operation"` 155 XXX_NoUnkeyedLiteral struct{} `json:"-"` 156 XXX_unrecognized []byte `json:"-"` 157 XXX_sizecache int32 `json:"-"` 158} 159 160func (m *AdGroupLabelOperation) Reset() { *m = AdGroupLabelOperation{} } 161func (m *AdGroupLabelOperation) String() string { return proto.CompactTextString(m) } 162func (*AdGroupLabelOperation) ProtoMessage() {} 163func (*AdGroupLabelOperation) Descriptor() ([]byte, []int) { 164 return fileDescriptor_1659eac28b95f6f8, []int{2} 165} 166 167func (m *AdGroupLabelOperation) XXX_Unmarshal(b []byte) error { 168 return xxx_messageInfo_AdGroupLabelOperation.Unmarshal(m, b) 169} 170func (m *AdGroupLabelOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 171 return xxx_messageInfo_AdGroupLabelOperation.Marshal(b, m, deterministic) 172} 173func (m *AdGroupLabelOperation) XXX_Merge(src proto.Message) { 174 xxx_messageInfo_AdGroupLabelOperation.Merge(m, src) 175} 176func (m *AdGroupLabelOperation) XXX_Size() int { 177 return xxx_messageInfo_AdGroupLabelOperation.Size(m) 178} 179func (m *AdGroupLabelOperation) XXX_DiscardUnknown() { 180 xxx_messageInfo_AdGroupLabelOperation.DiscardUnknown(m) 181} 182 183var xxx_messageInfo_AdGroupLabelOperation proto.InternalMessageInfo 184 185type isAdGroupLabelOperation_Operation interface { 186 isAdGroupLabelOperation_Operation() 187} 188 189type AdGroupLabelOperation_Create struct { 190 Create *resources.AdGroupLabel `protobuf:"bytes,1,opt,name=create,proto3,oneof"` 191} 192 193type AdGroupLabelOperation_Remove struct { 194 Remove string `protobuf:"bytes,2,opt,name=remove,proto3,oneof"` 195} 196 197func (*AdGroupLabelOperation_Create) isAdGroupLabelOperation_Operation() {} 198 199func (*AdGroupLabelOperation_Remove) isAdGroupLabelOperation_Operation() {} 200 201func (m *AdGroupLabelOperation) GetOperation() isAdGroupLabelOperation_Operation { 202 if m != nil { 203 return m.Operation 204 } 205 return nil 206} 207 208func (m *AdGroupLabelOperation) GetCreate() *resources.AdGroupLabel { 209 if x, ok := m.GetOperation().(*AdGroupLabelOperation_Create); ok { 210 return x.Create 211 } 212 return nil 213} 214 215func (m *AdGroupLabelOperation) GetRemove() string { 216 if x, ok := m.GetOperation().(*AdGroupLabelOperation_Remove); ok { 217 return x.Remove 218 } 219 return "" 220} 221 222// XXX_OneofWrappers is for the internal use of the proto package. 223func (*AdGroupLabelOperation) XXX_OneofWrappers() []interface{} { 224 return []interface{}{ 225 (*AdGroupLabelOperation_Create)(nil), 226 (*AdGroupLabelOperation_Remove)(nil), 227 } 228} 229 230// Response message for an ad group labels mutate. 231type MutateAdGroupLabelsResponse struct { 232 // Errors that pertain to operation failures in the partial failure mode. 233 // Returned only when partial_failure = true and all errors occur inside the 234 // operations. If any errors occur outside the operations (e.g. auth errors), 235 // we return an RPC level error. 236 PartialFailureError *status.Status `protobuf:"bytes,3,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"` 237 // All results for the mutate. 238 Results []*MutateAdGroupLabelResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` 239 XXX_NoUnkeyedLiteral struct{} `json:"-"` 240 XXX_unrecognized []byte `json:"-"` 241 XXX_sizecache int32 `json:"-"` 242} 243 244func (m *MutateAdGroupLabelsResponse) Reset() { *m = MutateAdGroupLabelsResponse{} } 245func (m *MutateAdGroupLabelsResponse) String() string { return proto.CompactTextString(m) } 246func (*MutateAdGroupLabelsResponse) ProtoMessage() {} 247func (*MutateAdGroupLabelsResponse) Descriptor() ([]byte, []int) { 248 return fileDescriptor_1659eac28b95f6f8, []int{3} 249} 250 251func (m *MutateAdGroupLabelsResponse) XXX_Unmarshal(b []byte) error { 252 return xxx_messageInfo_MutateAdGroupLabelsResponse.Unmarshal(m, b) 253} 254func (m *MutateAdGroupLabelsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 255 return xxx_messageInfo_MutateAdGroupLabelsResponse.Marshal(b, m, deterministic) 256} 257func (m *MutateAdGroupLabelsResponse) XXX_Merge(src proto.Message) { 258 xxx_messageInfo_MutateAdGroupLabelsResponse.Merge(m, src) 259} 260func (m *MutateAdGroupLabelsResponse) XXX_Size() int { 261 return xxx_messageInfo_MutateAdGroupLabelsResponse.Size(m) 262} 263func (m *MutateAdGroupLabelsResponse) XXX_DiscardUnknown() { 264 xxx_messageInfo_MutateAdGroupLabelsResponse.DiscardUnknown(m) 265} 266 267var xxx_messageInfo_MutateAdGroupLabelsResponse proto.InternalMessageInfo 268 269func (m *MutateAdGroupLabelsResponse) GetPartialFailureError() *status.Status { 270 if m != nil { 271 return m.PartialFailureError 272 } 273 return nil 274} 275 276func (m *MutateAdGroupLabelsResponse) GetResults() []*MutateAdGroupLabelResult { 277 if m != nil { 278 return m.Results 279 } 280 return nil 281} 282 283// The result for an ad group label mutate. 284type MutateAdGroupLabelResult struct { 285 // Returned for successful operations. 286 ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 287 XXX_NoUnkeyedLiteral struct{} `json:"-"` 288 XXX_unrecognized []byte `json:"-"` 289 XXX_sizecache int32 `json:"-"` 290} 291 292func (m *MutateAdGroupLabelResult) Reset() { *m = MutateAdGroupLabelResult{} } 293func (m *MutateAdGroupLabelResult) String() string { return proto.CompactTextString(m) } 294func (*MutateAdGroupLabelResult) ProtoMessage() {} 295func (*MutateAdGroupLabelResult) Descriptor() ([]byte, []int) { 296 return fileDescriptor_1659eac28b95f6f8, []int{4} 297} 298 299func (m *MutateAdGroupLabelResult) XXX_Unmarshal(b []byte) error { 300 return xxx_messageInfo_MutateAdGroupLabelResult.Unmarshal(m, b) 301} 302func (m *MutateAdGroupLabelResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 303 return xxx_messageInfo_MutateAdGroupLabelResult.Marshal(b, m, deterministic) 304} 305func (m *MutateAdGroupLabelResult) XXX_Merge(src proto.Message) { 306 xxx_messageInfo_MutateAdGroupLabelResult.Merge(m, src) 307} 308func (m *MutateAdGroupLabelResult) XXX_Size() int { 309 return xxx_messageInfo_MutateAdGroupLabelResult.Size(m) 310} 311func (m *MutateAdGroupLabelResult) XXX_DiscardUnknown() { 312 xxx_messageInfo_MutateAdGroupLabelResult.DiscardUnknown(m) 313} 314 315var xxx_messageInfo_MutateAdGroupLabelResult proto.InternalMessageInfo 316 317func (m *MutateAdGroupLabelResult) GetResourceName() string { 318 if m != nil { 319 return m.ResourceName 320 } 321 return "" 322} 323 324func init() { 325 proto.RegisterType((*GetAdGroupLabelRequest)(nil), "google.ads.googleads.v1.services.GetAdGroupLabelRequest") 326 proto.RegisterType((*MutateAdGroupLabelsRequest)(nil), "google.ads.googleads.v1.services.MutateAdGroupLabelsRequest") 327 proto.RegisterType((*AdGroupLabelOperation)(nil), "google.ads.googleads.v1.services.AdGroupLabelOperation") 328 proto.RegisterType((*MutateAdGroupLabelsResponse)(nil), "google.ads.googleads.v1.services.MutateAdGroupLabelsResponse") 329 proto.RegisterType((*MutateAdGroupLabelResult)(nil), "google.ads.googleads.v1.services.MutateAdGroupLabelResult") 330} 331 332func init() { 333 proto.RegisterFile("google/ads/googleads/v1/services/ad_group_label_service.proto", fileDescriptor_1659eac28b95f6f8) 334} 335 336var fileDescriptor_1659eac28b95f6f8 = []byte{ 337 // 663 bytes of a gzipped FileDescriptorProto 338 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4f, 0x6b, 0xd4, 0x40, 339 0x14, 0x37, 0xbb, 0x52, 0xed, 0x6c, 0xb5, 0x30, 0xa5, 0x1a, 0x56, 0xd1, 0x25, 0x16, 0x2c, 0x7b, 340 0xc8, 0xb0, 0x2b, 0x58, 0x89, 0x2e, 0x92, 0x82, 0xdd, 0x16, 0xd4, 0x96, 0x54, 0x2a, 0xc8, 0x42, 341 0x98, 0x4d, 0xa6, 0x21, 0x90, 0x64, 0xe2, 0xcc, 0x64, 0xa5, 0x94, 0x5e, 0xbc, 0x79, 0xf6, 0x13, 342 0xe8, 0xd1, 0xbb, 0x27, 0xbf, 0x81, 0x37, 0xf1, 0x2b, 0xf4, 0x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e, 0xe8, 354 0x97, 0x08, 0x40, 0xb9, 0x76, 0x7c, 0xf8, 0x1a, 0x00, 0x9a, 0x12, 0x26, 0xb5, 0xe8, 0xb5, 0x56, 355 0x7d, 0xbd, 0xd1, 0xdd, 0x30, 0xe7, 0x0d, 0xd1, 0xac, 0x36, 0xdb, 0x55, 0xf5, 0x4e, 0x05, 0x0a, 356 0xde, 0x07, 0xcb, 0x29, 0x66, 0x22, 0xc4, 0x91, 0x7b, 0x88, 0xc3, 0x28, 0x63, 0x44, 0xaf, 0xb7, 357 0xb4, 0xf5, 0xab, 0xce, 0xf5, 0xd2, 0xbd, 0x25, 0xbd, 0xb9, 0xcc, 0x11, 0x8e, 0x42, 0x1f, 0x0b, 358 0xe2, 0xd2, 0x24, 0x3a, 0xd2, 0x2f, 0x17, 0x69, 0x4b, 0xca, 0xb9, 0x9b, 0x44, 0x47, 0xc6, 0x07, 359 0x0d, 0xac, 0x4e, 0xed, 0x09, 0x77, 0xc0, 0x82, 0xc7, 0x08, 0x16, 0x72, 0x3c, 0x8d, 0x2e, 0x9a, 360 0x49, 0x7e, 0xbc, 0xdf, 0x09, 0xf6, 0xdb, 0x97, 0x9c, 0x12, 0x00, 0xea, 0x60, 0x81, 0x91, 0x98, 361 0x8e, 0x88, 0x5e, 0xcb, 0xe7, 0x94, 0x47, 0xe4, 0xf7, 0x66, 0x03, 0x2c, 0x8e, 0xa5, 0x19, 0xdf, 362 0x34, 0x70, 0x6b, 0xea, 0xc8, 0x79, 0x4a, 0x13, 0x4e, 0xe0, 0x16, 0x58, 0x3d, 0xa3, 0xdc, 0x25, 363 0x8c, 0x51, 0x56, 0xe8, 0x6f, 0x74, 0xa1, 0x22, 0xc8, 0x52, 0xcf, 0xdc, 0x2f, 0x4e, 0xc1, 0x59, 364 0x99, 0x9c, 0xc9, 0xb3, 0x3c, 0x1d, 0xbe, 0x02, 0x57, 0x18, 0xe1, 0x59, 0x24, 0xd4, 0x5e, 0xac, 365 0xf9, 0x7b, 0x39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0x55, 0xca, 0xc0, 0xf6, 0xf9, 0x60, 0x9c, 0x32, 0x38, 0xe8, 0x0c, 377 0x54, 0xca, 0xaf, 0xda, 0x9a, 0xf4, 0x5b, 0x96, 0xed, 0x73, 0xcb, 0x1a, 0x27, 0x59, 0xd6, 0x41, 378 0xc7, 0xb2, 0x54, 0xda, 0x70, 0xa1, 0xe0, 0xf9, 0xe0, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xb9, 379 0x7c, 0x1a, 0xba, 0x4f, 0x06, 0x00, 0x00, 380} 381 382// Reference imports to suppress errors if they are not otherwise used. 383var _ context.Context 384var _ grpc.ClientConn 385 386// This is a compile-time assertion to ensure that this generated file 387// is compatible with the grpc package it is being compiled against. 388const _ = grpc.SupportPackageIsVersion4 389 390// AdGroupLabelServiceClient is the client API for AdGroupLabelService service. 391// 392// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 393type AdGroupLabelServiceClient interface { 394 // Returns the requested ad group label in full detail. 395 GetAdGroupLabel(ctx context.Context, in *GetAdGroupLabelRequest, opts ...grpc.CallOption) (*resources.AdGroupLabel, error) 396 // Creates and removes ad group labels. 397 // Operation statuses are returned. 398 MutateAdGroupLabels(ctx context.Context, in *MutateAdGroupLabelsRequest, opts ...grpc.CallOption) (*MutateAdGroupLabelsResponse, error) 399} 400 401type adGroupLabelServiceClient struct { 402 cc *grpc.ClientConn 403} 404 405func NewAdGroupLabelServiceClient(cc *grpc.ClientConn) AdGroupLabelServiceClient { 406 return &adGroupLabelServiceClient{cc} 407} 408 409func (c *adGroupLabelServiceClient) GetAdGroupLabel(ctx context.Context, in *GetAdGroupLabelRequest, opts ...grpc.CallOption) (*resources.AdGroupLabel, error) { 410 out := new(resources.AdGroupLabel) 411 err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.AdGroupLabelService/GetAdGroupLabel", in, out, opts...) 412 if err != nil { 413 return nil, err 414 } 415 return out, nil 416} 417 418func (c *adGroupLabelServiceClient) MutateAdGroupLabels(ctx context.Context, in *MutateAdGroupLabelsRequest, opts ...grpc.CallOption) (*MutateAdGroupLabelsResponse, error) { 419 out := new(MutateAdGroupLabelsResponse) 420 err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.AdGroupLabelService/MutateAdGroupLabels", in, out, opts...) 421 if err != nil { 422 return nil, err 423 } 424 return out, nil 425} 426 427// AdGroupLabelServiceServer is the server API for AdGroupLabelService service. 428type AdGroupLabelServiceServer interface { 429 // Returns the requested ad group label in full detail. 430 GetAdGroupLabel(context.Context, *GetAdGroupLabelRequest) (*resources.AdGroupLabel, error) 431 // Creates and removes ad group labels. 432 // Operation statuses are returned. 433 MutateAdGroupLabels(context.Context, *MutateAdGroupLabelsRequest) (*MutateAdGroupLabelsResponse, error) 434} 435 436// UnimplementedAdGroupLabelServiceServer can be embedded to have forward compatible implementations. 437type UnimplementedAdGroupLabelServiceServer struct { 438} 439 440func (*UnimplementedAdGroupLabelServiceServer) GetAdGroupLabel(ctx context.Context, req *GetAdGroupLabelRequest) (*resources.AdGroupLabel, error) { 441 return nil, status1.Errorf(codes.Unimplemented, "method GetAdGroupLabel not implemented") 442} 443func (*UnimplementedAdGroupLabelServiceServer) MutateAdGroupLabels(ctx context.Context, req *MutateAdGroupLabelsRequest) (*MutateAdGroupLabelsResponse, error) { 444 return nil, status1.Errorf(codes.Unimplemented, "method MutateAdGroupLabels not implemented") 445} 446 447func RegisterAdGroupLabelServiceServer(s *grpc.Server, srv AdGroupLabelServiceServer) { 448 s.RegisterService(&_AdGroupLabelService_serviceDesc, srv) 449} 450 451func _AdGroupLabelService_GetAdGroupLabel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 452 in := new(GetAdGroupLabelRequest) 453 if err := dec(in); err != nil { 454 return nil, err 455 } 456 if interceptor == nil { 457 return srv.(AdGroupLabelServiceServer).GetAdGroupLabel(ctx, in) 458 } 459 info := &grpc.UnaryServerInfo{ 460 Server: srv, 461 FullMethod: "/google.ads.googleads.v1.services.AdGroupLabelService/GetAdGroupLabel", 462 } 463 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 464 return srv.(AdGroupLabelServiceServer).GetAdGroupLabel(ctx, req.(*GetAdGroupLabelRequest)) 465 } 466 return interceptor(ctx, in, info, handler) 467} 468 469func _AdGroupLabelService_MutateAdGroupLabels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 470 in := new(MutateAdGroupLabelsRequest) 471 if err := dec(in); err != nil { 472 return nil, err 473 } 474 if interceptor == nil { 475 return srv.(AdGroupLabelServiceServer).MutateAdGroupLabels(ctx, in) 476 } 477 info := &grpc.UnaryServerInfo{ 478 Server: srv, 479 FullMethod: "/google.ads.googleads.v1.services.AdGroupLabelService/MutateAdGroupLabels", 480 } 481 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 482 return srv.(AdGroupLabelServiceServer).MutateAdGroupLabels(ctx, req.(*MutateAdGroupLabelsRequest)) 483 } 484 return interceptor(ctx, in, info, handler) 485} 486 487var _AdGroupLabelService_serviceDesc = grpc.ServiceDesc{ 488 ServiceName: "google.ads.googleads.v1.services.AdGroupLabelService", 489 HandlerType: (*AdGroupLabelServiceServer)(nil), 490 Methods: []grpc.MethodDesc{ 491 { 492 MethodName: "GetAdGroupLabel", 493 Handler: _AdGroupLabelService_GetAdGroupLabel_Handler, 494 }, 495 { 496 MethodName: "MutateAdGroupLabels", 497 Handler: _AdGroupLabelService_MutateAdGroupLabels_Handler, 498 }, 499 }, 500 Streams: []grpc.StreamDesc{}, 501 Metadata: "google/ads/googleads/v1/services/ad_group_label_service.proto", 502} 503