1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/ads/googleads/v1/services/ad_group_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 field_mask "google.golang.org/genproto/protobuf/field_mask" 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 [AdGroupService.GetAdGroup][google.ads.googleads.v1.services.AdGroupService.GetAdGroup]. 33type GetAdGroupRequest struct { 34 // Required. The resource name of the ad group to fetch. 35 ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 36 XXX_NoUnkeyedLiteral struct{} `json:"-"` 37 XXX_unrecognized []byte `json:"-"` 38 XXX_sizecache int32 `json:"-"` 39} 40 41func (m *GetAdGroupRequest) Reset() { *m = GetAdGroupRequest{} } 42func (m *GetAdGroupRequest) String() string { return proto.CompactTextString(m) } 43func (*GetAdGroupRequest) ProtoMessage() {} 44func (*GetAdGroupRequest) Descriptor() ([]byte, []int) { 45 return fileDescriptor_3386b0d8974a2f1b, []int{0} 46} 47 48func (m *GetAdGroupRequest) XXX_Unmarshal(b []byte) error { 49 return xxx_messageInfo_GetAdGroupRequest.Unmarshal(m, b) 50} 51func (m *GetAdGroupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 52 return xxx_messageInfo_GetAdGroupRequest.Marshal(b, m, deterministic) 53} 54func (m *GetAdGroupRequest) XXX_Merge(src proto.Message) { 55 xxx_messageInfo_GetAdGroupRequest.Merge(m, src) 56} 57func (m *GetAdGroupRequest) XXX_Size() int { 58 return xxx_messageInfo_GetAdGroupRequest.Size(m) 59} 60func (m *GetAdGroupRequest) XXX_DiscardUnknown() { 61 xxx_messageInfo_GetAdGroupRequest.DiscardUnknown(m) 62} 63 64var xxx_messageInfo_GetAdGroupRequest proto.InternalMessageInfo 65 66func (m *GetAdGroupRequest) GetResourceName() string { 67 if m != nil { 68 return m.ResourceName 69 } 70 return "" 71} 72 73// Request message for [AdGroupService.MutateAdGroups][google.ads.googleads.v1.services.AdGroupService.MutateAdGroups]. 74type MutateAdGroupsRequest struct { 75 // Required. The ID of the customer whose ad groups are being modified. 76 CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` 77 // Required. The list of operations to perform on individual ad groups. 78 Operations []*AdGroupOperation `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 *MutateAdGroupsRequest) Reset() { *m = MutateAdGroupsRequest{} } 93func (m *MutateAdGroupsRequest) String() string { return proto.CompactTextString(m) } 94func (*MutateAdGroupsRequest) ProtoMessage() {} 95func (*MutateAdGroupsRequest) Descriptor() ([]byte, []int) { 96 return fileDescriptor_3386b0d8974a2f1b, []int{1} 97} 98 99func (m *MutateAdGroupsRequest) XXX_Unmarshal(b []byte) error { 100 return xxx_messageInfo_MutateAdGroupsRequest.Unmarshal(m, b) 101} 102func (m *MutateAdGroupsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 103 return xxx_messageInfo_MutateAdGroupsRequest.Marshal(b, m, deterministic) 104} 105func (m *MutateAdGroupsRequest) XXX_Merge(src proto.Message) { 106 xxx_messageInfo_MutateAdGroupsRequest.Merge(m, src) 107} 108func (m *MutateAdGroupsRequest) XXX_Size() int { 109 return xxx_messageInfo_MutateAdGroupsRequest.Size(m) 110} 111func (m *MutateAdGroupsRequest) XXX_DiscardUnknown() { 112 xxx_messageInfo_MutateAdGroupsRequest.DiscardUnknown(m) 113} 114 115var xxx_messageInfo_MutateAdGroupsRequest proto.InternalMessageInfo 116 117func (m *MutateAdGroupsRequest) GetCustomerId() string { 118 if m != nil { 119 return m.CustomerId 120 } 121 return "" 122} 123 124func (m *MutateAdGroupsRequest) GetOperations() []*AdGroupOperation { 125 if m != nil { 126 return m.Operations 127 } 128 return nil 129} 130 131func (m *MutateAdGroupsRequest) GetPartialFailure() bool { 132 if m != nil { 133 return m.PartialFailure 134 } 135 return false 136} 137 138func (m *MutateAdGroupsRequest) GetValidateOnly() bool { 139 if m != nil { 140 return m.ValidateOnly 141 } 142 return false 143} 144 145// A single operation (create, update, remove) on an ad group. 146type AdGroupOperation struct { 147 // FieldMask that determines which resource fields are modified in an update. 148 UpdateMask *field_mask.FieldMask `protobuf:"bytes,4,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 149 // The mutate operation. 150 // 151 // Types that are valid to be assigned to Operation: 152 // *AdGroupOperation_Create 153 // *AdGroupOperation_Update 154 // *AdGroupOperation_Remove 155 Operation isAdGroupOperation_Operation `protobuf_oneof:"operation"` 156 XXX_NoUnkeyedLiteral struct{} `json:"-"` 157 XXX_unrecognized []byte `json:"-"` 158 XXX_sizecache int32 `json:"-"` 159} 160 161func (m *AdGroupOperation) Reset() { *m = AdGroupOperation{} } 162func (m *AdGroupOperation) String() string { return proto.CompactTextString(m) } 163func (*AdGroupOperation) ProtoMessage() {} 164func (*AdGroupOperation) Descriptor() ([]byte, []int) { 165 return fileDescriptor_3386b0d8974a2f1b, []int{2} 166} 167 168func (m *AdGroupOperation) XXX_Unmarshal(b []byte) error { 169 return xxx_messageInfo_AdGroupOperation.Unmarshal(m, b) 170} 171func (m *AdGroupOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 172 return xxx_messageInfo_AdGroupOperation.Marshal(b, m, deterministic) 173} 174func (m *AdGroupOperation) XXX_Merge(src proto.Message) { 175 xxx_messageInfo_AdGroupOperation.Merge(m, src) 176} 177func (m *AdGroupOperation) XXX_Size() int { 178 return xxx_messageInfo_AdGroupOperation.Size(m) 179} 180func (m *AdGroupOperation) XXX_DiscardUnknown() { 181 xxx_messageInfo_AdGroupOperation.DiscardUnknown(m) 182} 183 184var xxx_messageInfo_AdGroupOperation proto.InternalMessageInfo 185 186func (m *AdGroupOperation) GetUpdateMask() *field_mask.FieldMask { 187 if m != nil { 188 return m.UpdateMask 189 } 190 return nil 191} 192 193type isAdGroupOperation_Operation interface { 194 isAdGroupOperation_Operation() 195} 196 197type AdGroupOperation_Create struct { 198 Create *resources.AdGroup `protobuf:"bytes,1,opt,name=create,proto3,oneof"` 199} 200 201type AdGroupOperation_Update struct { 202 Update *resources.AdGroup `protobuf:"bytes,2,opt,name=update,proto3,oneof"` 203} 204 205type AdGroupOperation_Remove struct { 206 Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"` 207} 208 209func (*AdGroupOperation_Create) isAdGroupOperation_Operation() {} 210 211func (*AdGroupOperation_Update) isAdGroupOperation_Operation() {} 212 213func (*AdGroupOperation_Remove) isAdGroupOperation_Operation() {} 214 215func (m *AdGroupOperation) GetOperation() isAdGroupOperation_Operation { 216 if m != nil { 217 return m.Operation 218 } 219 return nil 220} 221 222func (m *AdGroupOperation) GetCreate() *resources.AdGroup { 223 if x, ok := m.GetOperation().(*AdGroupOperation_Create); ok { 224 return x.Create 225 } 226 return nil 227} 228 229func (m *AdGroupOperation) GetUpdate() *resources.AdGroup { 230 if x, ok := m.GetOperation().(*AdGroupOperation_Update); ok { 231 return x.Update 232 } 233 return nil 234} 235 236func (m *AdGroupOperation) GetRemove() string { 237 if x, ok := m.GetOperation().(*AdGroupOperation_Remove); ok { 238 return x.Remove 239 } 240 return "" 241} 242 243// XXX_OneofWrappers is for the internal use of the proto package. 244func (*AdGroupOperation) XXX_OneofWrappers() []interface{} { 245 return []interface{}{ 246 (*AdGroupOperation_Create)(nil), 247 (*AdGroupOperation_Update)(nil), 248 (*AdGroupOperation_Remove)(nil), 249 } 250} 251 252// Response message for an ad group mutate. 253type MutateAdGroupsResponse struct { 254 // Errors that pertain to operation failures in the partial failure mode. 255 // Returned only when partial_failure = true and all errors occur inside the 256 // operations. If any errors occur outside the operations (e.g. auth errors), 257 // we return an RPC level error. 258 PartialFailureError *status.Status `protobuf:"bytes,3,opt,name=partial_failure_error,json=partialFailureError,proto3" json:"partial_failure_error,omitempty"` 259 // All results for the mutate. 260 Results []*MutateAdGroupResult `protobuf:"bytes,2,rep,name=results,proto3" json:"results,omitempty"` 261 XXX_NoUnkeyedLiteral struct{} `json:"-"` 262 XXX_unrecognized []byte `json:"-"` 263 XXX_sizecache int32 `json:"-"` 264} 265 266func (m *MutateAdGroupsResponse) Reset() { *m = MutateAdGroupsResponse{} } 267func (m *MutateAdGroupsResponse) String() string { return proto.CompactTextString(m) } 268func (*MutateAdGroupsResponse) ProtoMessage() {} 269func (*MutateAdGroupsResponse) Descriptor() ([]byte, []int) { 270 return fileDescriptor_3386b0d8974a2f1b, []int{3} 271} 272 273func (m *MutateAdGroupsResponse) XXX_Unmarshal(b []byte) error { 274 return xxx_messageInfo_MutateAdGroupsResponse.Unmarshal(m, b) 275} 276func (m *MutateAdGroupsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 277 return xxx_messageInfo_MutateAdGroupsResponse.Marshal(b, m, deterministic) 278} 279func (m *MutateAdGroupsResponse) XXX_Merge(src proto.Message) { 280 xxx_messageInfo_MutateAdGroupsResponse.Merge(m, src) 281} 282func (m *MutateAdGroupsResponse) XXX_Size() int { 283 return xxx_messageInfo_MutateAdGroupsResponse.Size(m) 284} 285func (m *MutateAdGroupsResponse) XXX_DiscardUnknown() { 286 xxx_messageInfo_MutateAdGroupsResponse.DiscardUnknown(m) 287} 288 289var xxx_messageInfo_MutateAdGroupsResponse proto.InternalMessageInfo 290 291func (m *MutateAdGroupsResponse) GetPartialFailureError() *status.Status { 292 if m != nil { 293 return m.PartialFailureError 294 } 295 return nil 296} 297 298func (m *MutateAdGroupsResponse) GetResults() []*MutateAdGroupResult { 299 if m != nil { 300 return m.Results 301 } 302 return nil 303} 304 305// The result for the ad group mutate. 306type MutateAdGroupResult struct { 307 // Returned for successful operations. 308 ResourceName string `protobuf:"bytes,1,opt,name=resource_name,json=resourceName,proto3" json:"resource_name,omitempty"` 309 XXX_NoUnkeyedLiteral struct{} `json:"-"` 310 XXX_unrecognized []byte `json:"-"` 311 XXX_sizecache int32 `json:"-"` 312} 313 314func (m *MutateAdGroupResult) Reset() { *m = MutateAdGroupResult{} } 315func (m *MutateAdGroupResult) String() string { return proto.CompactTextString(m) } 316func (*MutateAdGroupResult) ProtoMessage() {} 317func (*MutateAdGroupResult) Descriptor() ([]byte, []int) { 318 return fileDescriptor_3386b0d8974a2f1b, []int{4} 319} 320 321func (m *MutateAdGroupResult) XXX_Unmarshal(b []byte) error { 322 return xxx_messageInfo_MutateAdGroupResult.Unmarshal(m, b) 323} 324func (m *MutateAdGroupResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 325 return xxx_messageInfo_MutateAdGroupResult.Marshal(b, m, deterministic) 326} 327func (m *MutateAdGroupResult) XXX_Merge(src proto.Message) { 328 xxx_messageInfo_MutateAdGroupResult.Merge(m, src) 329} 330func (m *MutateAdGroupResult) XXX_Size() int { 331 return xxx_messageInfo_MutateAdGroupResult.Size(m) 332} 333func (m *MutateAdGroupResult) XXX_DiscardUnknown() { 334 xxx_messageInfo_MutateAdGroupResult.DiscardUnknown(m) 335} 336 337var xxx_messageInfo_MutateAdGroupResult proto.InternalMessageInfo 338 339func (m *MutateAdGroupResult) GetResourceName() string { 340 if m != nil { 341 return m.ResourceName 342 } 343 return "" 344} 345 346func init() { 347 proto.RegisterType((*GetAdGroupRequest)(nil), "google.ads.googleads.v1.services.GetAdGroupRequest") 348 proto.RegisterType((*MutateAdGroupsRequest)(nil), "google.ads.googleads.v1.services.MutateAdGroupsRequest") 349 proto.RegisterType((*AdGroupOperation)(nil), "google.ads.googleads.v1.services.AdGroupOperation") 350 proto.RegisterType((*MutateAdGroupsResponse)(nil), "google.ads.googleads.v1.services.MutateAdGroupsResponse") 351 proto.RegisterType((*MutateAdGroupResult)(nil), "google.ads.googleads.v1.services.MutateAdGroupResult") 352} 353 354func init() { 355 proto.RegisterFile("google/ads/googleads/v1/services/ad_group_service.proto", fileDescriptor_3386b0d8974a2f1b) 356} 357 358var fileDescriptor_3386b0d8974a2f1b = []byte{ 359 // 773 bytes of a gzipped FileDescriptorProto 360 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0xcd, 0x4e, 0xdb, 0x4a, 361 0x14, 0xbe, 0x76, 0xae, 0xb8, 0x97, 0x09, 0x70, 0x6f, 0x07, 0x41, 0xd3, 0xb4, 0x52, 0x23, 0x17, 362 0xa9, 0x51, 0x44, 0xed, 0x26, 0xa8, 0xa2, 0x32, 0x62, 0xe1, 0xa8, 0x25, 0x74, 0x41, 0xa1, 0x46, 363 0xa2, 0x52, 0x15, 0xc9, 0x9a, 0xd8, 0x43, 0x6a, 0x61, 0x7b, 0xdc, 0x19, 0x3b, 0x12, 0x42, 0x6c, 364 0x78, 0x85, 0xbe, 0x41, 0x97, 0xdd, 0xb1, 0xed, 0x23, 0xb0, 0xad, 0xd4, 0x05, 0x2b, 0x16, 0xac, 365 0xfa, 0x08, 0xac, 0x2a, 0x7b, 0x66, 0xf2, 0x57, 0xa2, 0x88, 0xee, 0x4e, 0xe6, 0x7c, 0xdf, 0x77, 366 0xce, 0x99, 0x6f, 0x8e, 0x03, 0xd6, 0xbb, 0x84, 0x74, 0x03, 0x6c, 0x20, 0x8f, 0x19, 0x3c, 0xcc, 367 0xa2, 0x5e, 0xdd, 0x60, 0x98, 0xf6, 0x7c, 0x17, 0x33, 0x03, 0x79, 0x4e, 0x97, 0x92, 0x34, 0x76, 368 0xc4, 0x89, 0x1e, 0x53, 0x92, 0x10, 0x58, 0xe1, 0x68, 0x1d, 0x79, 0x4c, 0xef, 0x13, 0xf5, 0x5e, 369 0x5d, 0x97, 0xc4, 0xf2, 0xf3, 0x49, 0xd2, 0x14, 0x33, 0x92, 0xd2, 0x61, 0x6d, 0xae, 0x59, 0x7e, 370 0x24, 0x19, 0xb1, 0x6f, 0xa0, 0x28, 0x22, 0x09, 0x4a, 0x7c, 0x12, 0x31, 0x91, 0xbd, 0x3f, 0x94, 371 0x75, 0x03, 0x1f, 0x47, 0x89, 0x48, 0x3c, 0x1e, 0x4a, 0x1c, 0xfa, 0x38, 0xf0, 0x9c, 0x0e, 0xfe, 372 0x88, 0x7a, 0x3e, 0xa1, 0x02, 0xf0, 0x60, 0x08, 0x20, 0x8b, 0x8b, 0x94, 0x18, 0xc3, 0xc8, 0x7f, 373 0x75, 0xd2, 0x43, 0x21, 0x10, 0x22, 0x76, 0x34, 0x56, 0x96, 0xc6, 0xae, 0xc1, 0x12, 0x94, 0xa4, 374 0xa2, 0x1f, 0xad, 0x03, 0xee, 0xb5, 0x70, 0x62, 0x79, 0xad, 0x6c, 0x02, 0x1b, 0x7f, 0x4a, 0x31, 375 0x4b, 0xe0, 0x0e, 0x98, 0x97, 0x15, 0x9c, 0x08, 0x85, 0xb8, 0xa4, 0x54, 0x94, 0xea, 0x6c, 0xb3, 376 0x7a, 0x65, 0xa9, 0x37, 0x96, 0x06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0x5a, 0x1e, 399 0xfa, 0x1e, 0xac, 0x0e, 0x56, 0x35, 0x1f, 0xa9, 0xa1, 0x3d, 0xcb, 0x46, 0x1a, 0xcc, 0x70, 0x32, 400 0x04, 0xde, 0xac, 0x9d, 0xf6, 0x27, 0x32, 0xc3, 0x5c, 0xdf, 0x54, 0x6a, 0xe5, 0x87, 0x17, 0x56, 401 0x69, 0xd2, 0xe7, 0xaa, 0x79, 0xa3, 0x80, 0x15, 0x97, 0x84, 0x53, 0xfb, 0x6d, 0x2e, 0x8e, 0x5a, 402 0xbc, 0x97, 0xad, 0xed, 0x9e, 0xf2, 0x61, 0x5b, 0x10, 0xbb, 0x24, 0x40, 0x51, 0x57, 0x27, 0xb4, 403 0x6b, 0x74, 0x71, 0x94, 0x2f, 0xb5, 0x31, 0x28, 0x35, 0xf9, 0x6f, 0x69, 0x43, 0x06, 0x5f, 0xd4, 404 0x42, 0xcb, 0xb2, 0xbe, 0xaa, 0x95, 0x16, 0x17, 0xb4, 0x3c, 0xa6, 0xf3, 0x30, 0x8b, 0x0e, 0xea, 405 0xba, 0x28, 0xcc, 0x2e, 0x24, 0xa4, 0x6d, 0x79, 0xac, 0xdd, 0x87, 0xb4, 0x0f, 0xea, 0x6d, 0x09, 406 0xf9, 0xa9, 0xae, 0xf0, 0x73, 0xd3, 0xb4, 0x3c, 0x66, 0x9a, 0x7d, 0x90, 0x69, 0x1e, 0xd4, 0x4d, 407 0x53, 0xc2, 0x3a, 0x33, 0x79, 0x9f, 0x6b, 0xbf, 0x02, 0x00, 0x00, 0xff, 0xff, 0x29, 0x89, 0x8d, 408 0x46, 0x3d, 0x07, 0x00, 0x00, 409} 410 411// Reference imports to suppress errors if they are not otherwise used. 412var _ context.Context 413var _ grpc.ClientConnInterface 414 415// This is a compile-time assertion to ensure that this generated file 416// is compatible with the grpc package it is being compiled against. 417const _ = grpc.SupportPackageIsVersion6 418 419// AdGroupServiceClient is the client API for AdGroupService service. 420// 421// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 422type AdGroupServiceClient interface { 423 // Returns the requested ad group in full detail. 424 GetAdGroup(ctx context.Context, in *GetAdGroupRequest, opts ...grpc.CallOption) (*resources.AdGroup, error) 425 // Creates, updates, or removes ad groups. Operation statuses are returned. 426 MutateAdGroups(ctx context.Context, in *MutateAdGroupsRequest, opts ...grpc.CallOption) (*MutateAdGroupsResponse, error) 427} 428 429type adGroupServiceClient struct { 430 cc grpc.ClientConnInterface 431} 432 433func NewAdGroupServiceClient(cc grpc.ClientConnInterface) AdGroupServiceClient { 434 return &adGroupServiceClient{cc} 435} 436 437func (c *adGroupServiceClient) GetAdGroup(ctx context.Context, in *GetAdGroupRequest, opts ...grpc.CallOption) (*resources.AdGroup, error) { 438 out := new(resources.AdGroup) 439 err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.AdGroupService/GetAdGroup", in, out, opts...) 440 if err != nil { 441 return nil, err 442 } 443 return out, nil 444} 445 446func (c *adGroupServiceClient) MutateAdGroups(ctx context.Context, in *MutateAdGroupsRequest, opts ...grpc.CallOption) (*MutateAdGroupsResponse, error) { 447 out := new(MutateAdGroupsResponse) 448 err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.AdGroupService/MutateAdGroups", in, out, opts...) 449 if err != nil { 450 return nil, err 451 } 452 return out, nil 453} 454 455// AdGroupServiceServer is the server API for AdGroupService service. 456type AdGroupServiceServer interface { 457 // Returns the requested ad group in full detail. 458 GetAdGroup(context.Context, *GetAdGroupRequest) (*resources.AdGroup, error) 459 // Creates, updates, or removes ad groups. Operation statuses are returned. 460 MutateAdGroups(context.Context, *MutateAdGroupsRequest) (*MutateAdGroupsResponse, error) 461} 462 463// UnimplementedAdGroupServiceServer can be embedded to have forward compatible implementations. 464type UnimplementedAdGroupServiceServer struct { 465} 466 467func (*UnimplementedAdGroupServiceServer) GetAdGroup(ctx context.Context, req *GetAdGroupRequest) (*resources.AdGroup, error) { 468 return nil, status1.Errorf(codes.Unimplemented, "method GetAdGroup not implemented") 469} 470func (*UnimplementedAdGroupServiceServer) MutateAdGroups(ctx context.Context, req *MutateAdGroupsRequest) (*MutateAdGroupsResponse, error) { 471 return nil, status1.Errorf(codes.Unimplemented, "method MutateAdGroups not implemented") 472} 473 474func RegisterAdGroupServiceServer(s *grpc.Server, srv AdGroupServiceServer) { 475 s.RegisterService(&_AdGroupService_serviceDesc, srv) 476} 477 478func _AdGroupService_GetAdGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 479 in := new(GetAdGroupRequest) 480 if err := dec(in); err != nil { 481 return nil, err 482 } 483 if interceptor == nil { 484 return srv.(AdGroupServiceServer).GetAdGroup(ctx, in) 485 } 486 info := &grpc.UnaryServerInfo{ 487 Server: srv, 488 FullMethod: "/google.ads.googleads.v1.services.AdGroupService/GetAdGroup", 489 } 490 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 491 return srv.(AdGroupServiceServer).GetAdGroup(ctx, req.(*GetAdGroupRequest)) 492 } 493 return interceptor(ctx, in, info, handler) 494} 495 496func _AdGroupService_MutateAdGroups_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 497 in := new(MutateAdGroupsRequest) 498 if err := dec(in); err != nil { 499 return nil, err 500 } 501 if interceptor == nil { 502 return srv.(AdGroupServiceServer).MutateAdGroups(ctx, in) 503 } 504 info := &grpc.UnaryServerInfo{ 505 Server: srv, 506 FullMethod: "/google.ads.googleads.v1.services.AdGroupService/MutateAdGroups", 507 } 508 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 509 return srv.(AdGroupServiceServer).MutateAdGroups(ctx, req.(*MutateAdGroupsRequest)) 510 } 511 return interceptor(ctx, in, info, handler) 512} 513 514var _AdGroupService_serviceDesc = grpc.ServiceDesc{ 515 ServiceName: "google.ads.googleads.v1.services.AdGroupService", 516 HandlerType: (*AdGroupServiceServer)(nil), 517 Methods: []grpc.MethodDesc{ 518 { 519 MethodName: "GetAdGroup", 520 Handler: _AdGroupService_GetAdGroup_Handler, 521 }, 522 { 523 MethodName: "MutateAdGroups", 524 Handler: _AdGroupService_MutateAdGroups_Handler, 525 }, 526 }, 527 Streams: []grpc.StreamDesc{}, 528 Metadata: "google/ads/googleads/v1/services/ad_group_service.proto", 529} 530