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