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