1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/ads/googleads/v1/services/user_list_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 [UserListService.GetUserList][google.ads.googleads.v1.services.UserListService.GetUserList]. 33type GetUserListRequest struct { 34 // The resource name of the user list 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 *GetUserListRequest) Reset() { *m = GetUserListRequest{} } 42func (m *GetUserListRequest) String() string { return proto.CompactTextString(m) } 43func (*GetUserListRequest) ProtoMessage() {} 44func (*GetUserListRequest) Descriptor() ([]byte, []int) { 45 return fileDescriptor_7187e04d3c35e864, []int{0} 46} 47 48func (m *GetUserListRequest) XXX_Unmarshal(b []byte) error { 49 return xxx_messageInfo_GetUserListRequest.Unmarshal(m, b) 50} 51func (m *GetUserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 52 return xxx_messageInfo_GetUserListRequest.Marshal(b, m, deterministic) 53} 54func (m *GetUserListRequest) XXX_Merge(src proto.Message) { 55 xxx_messageInfo_GetUserListRequest.Merge(m, src) 56} 57func (m *GetUserListRequest) XXX_Size() int { 58 return xxx_messageInfo_GetUserListRequest.Size(m) 59} 60func (m *GetUserListRequest) XXX_DiscardUnknown() { 61 xxx_messageInfo_GetUserListRequest.DiscardUnknown(m) 62} 63 64var xxx_messageInfo_GetUserListRequest proto.InternalMessageInfo 65 66func (m *GetUserListRequest) GetResourceName() string { 67 if m != nil { 68 return m.ResourceName 69 } 70 return "" 71} 72 73// Request message for [UserListService.MutateUserLists][google.ads.googleads.v1.services.UserListService.MutateUserLists]. 74type MutateUserListsRequest struct { 75 // The ID of the customer whose user lists 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 individual user lists. 78 Operations []*UserListOperation `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 *MutateUserListsRequest) Reset() { *m = MutateUserListsRequest{} } 93func (m *MutateUserListsRequest) String() string { return proto.CompactTextString(m) } 94func (*MutateUserListsRequest) ProtoMessage() {} 95func (*MutateUserListsRequest) Descriptor() ([]byte, []int) { 96 return fileDescriptor_7187e04d3c35e864, []int{1} 97} 98 99func (m *MutateUserListsRequest) XXX_Unmarshal(b []byte) error { 100 return xxx_messageInfo_MutateUserListsRequest.Unmarshal(m, b) 101} 102func (m *MutateUserListsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 103 return xxx_messageInfo_MutateUserListsRequest.Marshal(b, m, deterministic) 104} 105func (m *MutateUserListsRequest) XXX_Merge(src proto.Message) { 106 xxx_messageInfo_MutateUserListsRequest.Merge(m, src) 107} 108func (m *MutateUserListsRequest) XXX_Size() int { 109 return xxx_messageInfo_MutateUserListsRequest.Size(m) 110} 111func (m *MutateUserListsRequest) XXX_DiscardUnknown() { 112 xxx_messageInfo_MutateUserListsRequest.DiscardUnknown(m) 113} 114 115var xxx_messageInfo_MutateUserListsRequest proto.InternalMessageInfo 116 117func (m *MutateUserListsRequest) GetCustomerId() string { 118 if m != nil { 119 return m.CustomerId 120 } 121 return "" 122} 123 124func (m *MutateUserListsRequest) GetOperations() []*UserListOperation { 125 if m != nil { 126 return m.Operations 127 } 128 return nil 129} 130 131func (m *MutateUserListsRequest) GetPartialFailure() bool { 132 if m != nil { 133 return m.PartialFailure 134 } 135 return false 136} 137 138func (m *MutateUserListsRequest) GetValidateOnly() bool { 139 if m != nil { 140 return m.ValidateOnly 141 } 142 return false 143} 144 145// A single operation (create, update) on a user list. 146type UserListOperation 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 // *UserListOperation_Create 153 // *UserListOperation_Update 154 // *UserListOperation_Remove 155 Operation isUserListOperation_Operation `protobuf_oneof:"operation"` 156 XXX_NoUnkeyedLiteral struct{} `json:"-"` 157 XXX_unrecognized []byte `json:"-"` 158 XXX_sizecache int32 `json:"-"` 159} 160 161func (m *UserListOperation) Reset() { *m = UserListOperation{} } 162func (m *UserListOperation) String() string { return proto.CompactTextString(m) } 163func (*UserListOperation) ProtoMessage() {} 164func (*UserListOperation) Descriptor() ([]byte, []int) { 165 return fileDescriptor_7187e04d3c35e864, []int{2} 166} 167 168func (m *UserListOperation) XXX_Unmarshal(b []byte) error { 169 return xxx_messageInfo_UserListOperation.Unmarshal(m, b) 170} 171func (m *UserListOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 172 return xxx_messageInfo_UserListOperation.Marshal(b, m, deterministic) 173} 174func (m *UserListOperation) XXX_Merge(src proto.Message) { 175 xxx_messageInfo_UserListOperation.Merge(m, src) 176} 177func (m *UserListOperation) XXX_Size() int { 178 return xxx_messageInfo_UserListOperation.Size(m) 179} 180func (m *UserListOperation) XXX_DiscardUnknown() { 181 xxx_messageInfo_UserListOperation.DiscardUnknown(m) 182} 183 184var xxx_messageInfo_UserListOperation proto.InternalMessageInfo 185 186func (m *UserListOperation) GetUpdateMask() *field_mask.FieldMask { 187 if m != nil { 188 return m.UpdateMask 189 } 190 return nil 191} 192 193type isUserListOperation_Operation interface { 194 isUserListOperation_Operation() 195} 196 197type UserListOperation_Create struct { 198 Create *resources.UserList `protobuf:"bytes,1,opt,name=create,proto3,oneof"` 199} 200 201type UserListOperation_Update struct { 202 Update *resources.UserList `protobuf:"bytes,2,opt,name=update,proto3,oneof"` 203} 204 205type UserListOperation_Remove struct { 206 Remove string `protobuf:"bytes,3,opt,name=remove,proto3,oneof"` 207} 208 209func (*UserListOperation_Create) isUserListOperation_Operation() {} 210 211func (*UserListOperation_Update) isUserListOperation_Operation() {} 212 213func (*UserListOperation_Remove) isUserListOperation_Operation() {} 214 215func (m *UserListOperation) GetOperation() isUserListOperation_Operation { 216 if m != nil { 217 return m.Operation 218 } 219 return nil 220} 221 222func (m *UserListOperation) GetCreate() *resources.UserList { 223 if x, ok := m.GetOperation().(*UserListOperation_Create); ok { 224 return x.Create 225 } 226 return nil 227} 228 229func (m *UserListOperation) GetUpdate() *resources.UserList { 230 if x, ok := m.GetOperation().(*UserListOperation_Update); ok { 231 return x.Update 232 } 233 return nil 234} 235 236func (m *UserListOperation) GetRemove() string { 237 if x, ok := m.GetOperation().(*UserListOperation_Remove); ok { 238 return x.Remove 239 } 240 return "" 241} 242 243// XXX_OneofWrappers is for the internal use of the proto package. 244func (*UserListOperation) XXX_OneofWrappers() []interface{} { 245 return []interface{}{ 246 (*UserListOperation_Create)(nil), 247 (*UserListOperation_Update)(nil), 248 (*UserListOperation_Remove)(nil), 249 } 250} 251 252// Response message for user list mutate. 253type MutateUserListsResponse 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 []*MutateUserListResult `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 *MutateUserListsResponse) Reset() { *m = MutateUserListsResponse{} } 267func (m *MutateUserListsResponse) String() string { return proto.CompactTextString(m) } 268func (*MutateUserListsResponse) ProtoMessage() {} 269func (*MutateUserListsResponse) Descriptor() ([]byte, []int) { 270 return fileDescriptor_7187e04d3c35e864, []int{3} 271} 272 273func (m *MutateUserListsResponse) XXX_Unmarshal(b []byte) error { 274 return xxx_messageInfo_MutateUserListsResponse.Unmarshal(m, b) 275} 276func (m *MutateUserListsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 277 return xxx_messageInfo_MutateUserListsResponse.Marshal(b, m, deterministic) 278} 279func (m *MutateUserListsResponse) XXX_Merge(src proto.Message) { 280 xxx_messageInfo_MutateUserListsResponse.Merge(m, src) 281} 282func (m *MutateUserListsResponse) XXX_Size() int { 283 return xxx_messageInfo_MutateUserListsResponse.Size(m) 284} 285func (m *MutateUserListsResponse) XXX_DiscardUnknown() { 286 xxx_messageInfo_MutateUserListsResponse.DiscardUnknown(m) 287} 288 289var xxx_messageInfo_MutateUserListsResponse proto.InternalMessageInfo 290 291func (m *MutateUserListsResponse) GetPartialFailureError() *status.Status { 292 if m != nil { 293 return m.PartialFailureError 294 } 295 return nil 296} 297 298func (m *MutateUserListsResponse) GetResults() []*MutateUserListResult { 299 if m != nil { 300 return m.Results 301 } 302 return nil 303} 304 305// The result for the user list mutate. 306type MutateUserListResult 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 *MutateUserListResult) Reset() { *m = MutateUserListResult{} } 315func (m *MutateUserListResult) String() string { return proto.CompactTextString(m) } 316func (*MutateUserListResult) ProtoMessage() {} 317func (*MutateUserListResult) Descriptor() ([]byte, []int) { 318 return fileDescriptor_7187e04d3c35e864, []int{4} 319} 320 321func (m *MutateUserListResult) XXX_Unmarshal(b []byte) error { 322 return xxx_messageInfo_MutateUserListResult.Unmarshal(m, b) 323} 324func (m *MutateUserListResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 325 return xxx_messageInfo_MutateUserListResult.Marshal(b, m, deterministic) 326} 327func (m *MutateUserListResult) XXX_Merge(src proto.Message) { 328 xxx_messageInfo_MutateUserListResult.Merge(m, src) 329} 330func (m *MutateUserListResult) XXX_Size() int { 331 return xxx_messageInfo_MutateUserListResult.Size(m) 332} 333func (m *MutateUserListResult) XXX_DiscardUnknown() { 334 xxx_messageInfo_MutateUserListResult.DiscardUnknown(m) 335} 336 337var xxx_messageInfo_MutateUserListResult proto.InternalMessageInfo 338 339func (m *MutateUserListResult) GetResourceName() string { 340 if m != nil { 341 return m.ResourceName 342 } 343 return "" 344} 345 346func init() { 347 proto.RegisterType((*GetUserListRequest)(nil), "google.ads.googleads.v1.services.GetUserListRequest") 348 proto.RegisterType((*MutateUserListsRequest)(nil), "google.ads.googleads.v1.services.MutateUserListsRequest") 349 proto.RegisterType((*UserListOperation)(nil), "google.ads.googleads.v1.services.UserListOperation") 350 proto.RegisterType((*MutateUserListsResponse)(nil), "google.ads.googleads.v1.services.MutateUserListsResponse") 351 proto.RegisterType((*MutateUserListResult)(nil), "google.ads.googleads.v1.services.MutateUserListResult") 352} 353 354func init() { 355 proto.RegisterFile("google/ads/googleads/v1/services/user_list_service.proto", fileDescriptor_7187e04d3c35e864) 356} 357 358var fileDescriptor_7187e04d3c35e864 = []byte{ 359 // 721 bytes of a gzipped FileDescriptorProto 360 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x55, 0x4f, 0x6b, 0xd4, 0x4e, 361 0x18, 0xfe, 0x25, 0xfb, 0xa3, 0xda, 0x49, 0xb5, 0x38, 0x56, 0x1b, 0x56, 0xc1, 0x25, 0x16, 0x2c, 362 0x5b, 0x9c, 0xb0, 0xbb, 0x22, 0x6d, 0x4a, 0x0f, 0x5b, 0xe8, 0x1f, 0xc1, 0xda, 0x92, 0x62, 0x0f, 363 0xb2, 0x10, 0xa6, 0xc9, 0x74, 0x09, 0x4d, 0x32, 0x71, 0x66, 0xb2, 0x50, 0x4a, 0x2f, 0x82, 0x9f, 364 0xc0, 0x9b, 0x47, 0xc1, 0x8b, 0x57, 0x3f, 0x81, 0xd7, 0x5e, 0xbd, 0x7a, 0xf4, 0xe4, 0x57, 0xf0, 365 0x22, 0xc9, 0x64, 0x76, 0xbb, 0x5b, 0x97, 0xb5, 0xbd, 0xbd, 0xfb, 0xe6, 0x79, 0x9e, 0xf7, 0x99, 366 0xf7, 0x9d, 0x77, 0x16, 0x2c, 0x77, 0x29, 0xed, 0x46, 0xc4, 0xc6, 0x01, 0xb7, 0x65, 0x98, 0x47, 367 0xbd, 0x86, 0xcd, 0x09, 0xeb, 0x85, 0x3e, 0xe1, 0x76, 0xc6, 0x09, 0xf3, 0xa2, 0x90, 0x0b, 0xaf, 368 0x4c, 0xa1, 0x94, 0x51, 0x41, 0x61, 0x4d, 0xc2, 0x11, 0x0e, 0x38, 0xea, 0x33, 0x51, 0xaf, 0x81, 369 0x14, 0xb3, 0xda, 0x18, 0xa7, 0xcd, 0x08, 0xa7, 0x19, 0x1b, 0x12, 0x97, 0xa2, 0xd5, 0x87, 0x8a, 370 0x92, 0x86, 0x36, 0x4e, 0x12, 0x2a, 0xb0, 0x08, 0x69, 0xc2, 0xcb, 0xaf, 0x65, 0x49, 0xbb, 0xf8, 371 0x75, 0x98, 0x1d, 0xd9, 0x47, 0x21, 0x89, 0x02, 0x2f, 0xc6, 0xfc, 0xb8, 0x44, 0xcc, 0x97, 0x08, 372 0x96, 0xfa, 0x36, 0x17, 0x58, 0x64, 0x7c, 0xe4, 0x43, 0x2e, 0xec, 0x47, 0x21, 0x49, 0xca, 0x8a, 373 0xd6, 0x0a, 0x80, 0x5b, 0x44, 0xbc, 0xe6, 0x84, 0xbd, 0x0c, 0xb9, 0x70, 0xc9, 0xdb, 0x8c, 0x70, 374 0x01, 0x1f, 0x83, 0x5b, 0xca, 0xa4, 0x97, 0xe0, 0x98, 0x98, 0x5a, 0x4d, 0x5b, 0x9c, 0x76, 0x67, 375 0x54, 0xf2, 0x15, 0x8e, 0x89, 0xf5, 0x43, 0x03, 0xf7, 0x77, 0x32, 0x81, 0x05, 0x51, 0x74, 0xae, 376 0xf8, 0x8f, 0x80, 0xe1, 0x67, 0x5c, 0xd0, 0x98, 0x30, 0x2f, 0x0c, 0x4a, 0x36, 0x50, 0xa9, 0x17, 377 0x01, 0xdc, 0x07, 0x80, 0xa6, 0x84, 0xc9, 0xe3, 0x99, 0x7a, 0xad, 0xb2, 0x68, 0x34, 0x5b, 0x68, 378 0x52, 0x4b, 0x91, 0x2a, 0xb4, 0xab, 0xb8, 0xee, 0x05, 0x19, 0xf8, 0x04, 0xcc, 0xa6, 0x98, 0x89, 379 0x10, 0x47, 0xde, 0x11, 0x0e, 0xa3, 0x8c, 0x11, 0xb3, 0x52, 0xd3, 0x16, 0x6f, 0xba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0x80, 0x77, 0xfa, 0x90, 0xce, 0x41, 0xa3, 0xa3, 0x20, 0xbf, 0xf4, 0x05, 403 0x99, 0x77, 0x9c, 0x76, 0xc0, 0x1d, 0xa7, 0x0f, 0x72, 0x9c, 0x83, 0x86, 0xe3, 0x28, 0xd8, 0xe1, 404 0x54, 0xe1, 0xb3, 0xf5, 0x27, 0x00, 0x00, 0xff, 0xff, 0xb6, 0x3d, 0x6e, 0x49, 0xb9, 0x06, 0x00, 405 0x00, 406} 407 408// Reference imports to suppress errors if they are not otherwise used. 409var _ context.Context 410var _ grpc.ClientConnInterface 411 412// This is a compile-time assertion to ensure that this generated file 413// is compatible with the grpc package it is being compiled against. 414const _ = grpc.SupportPackageIsVersion6 415 416// UserListServiceClient is the client API for UserListService service. 417// 418// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 419type UserListServiceClient interface { 420 // Returns the requested user list. 421 GetUserList(ctx context.Context, in *GetUserListRequest, opts ...grpc.CallOption) (*resources.UserList, error) 422 // Creates or updates user lists. Operation statuses are returned. 423 MutateUserLists(ctx context.Context, in *MutateUserListsRequest, opts ...grpc.CallOption) (*MutateUserListsResponse, error) 424} 425 426type userListServiceClient struct { 427 cc grpc.ClientConnInterface 428} 429 430func NewUserListServiceClient(cc grpc.ClientConnInterface) UserListServiceClient { 431 return &userListServiceClient{cc} 432} 433 434func (c *userListServiceClient) GetUserList(ctx context.Context, in *GetUserListRequest, opts ...grpc.CallOption) (*resources.UserList, error) { 435 out := new(resources.UserList) 436 err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.UserListService/GetUserList", in, out, opts...) 437 if err != nil { 438 return nil, err 439 } 440 return out, nil 441} 442 443func (c *userListServiceClient) MutateUserLists(ctx context.Context, in *MutateUserListsRequest, opts ...grpc.CallOption) (*MutateUserListsResponse, error) { 444 out := new(MutateUserListsResponse) 445 err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.UserListService/MutateUserLists", in, out, opts...) 446 if err != nil { 447 return nil, err 448 } 449 return out, nil 450} 451 452// UserListServiceServer is the server API for UserListService service. 453type UserListServiceServer interface { 454 // Returns the requested user list. 455 GetUserList(context.Context, *GetUserListRequest) (*resources.UserList, error) 456 // Creates or updates user lists. Operation statuses are returned. 457 MutateUserLists(context.Context, *MutateUserListsRequest) (*MutateUserListsResponse, error) 458} 459 460// UnimplementedUserListServiceServer can be embedded to have forward compatible implementations. 461type UnimplementedUserListServiceServer struct { 462} 463 464func (*UnimplementedUserListServiceServer) GetUserList(ctx context.Context, req *GetUserListRequest) (*resources.UserList, error) { 465 return nil, status1.Errorf(codes.Unimplemented, "method GetUserList not implemented") 466} 467func (*UnimplementedUserListServiceServer) MutateUserLists(ctx context.Context, req *MutateUserListsRequest) (*MutateUserListsResponse, error) { 468 return nil, status1.Errorf(codes.Unimplemented, "method MutateUserLists not implemented") 469} 470 471func RegisterUserListServiceServer(s *grpc.Server, srv UserListServiceServer) { 472 s.RegisterService(&_UserListService_serviceDesc, srv) 473} 474 475func _UserListService_GetUserList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 476 in := new(GetUserListRequest) 477 if err := dec(in); err != nil { 478 return nil, err 479 } 480 if interceptor == nil { 481 return srv.(UserListServiceServer).GetUserList(ctx, in) 482 } 483 info := &grpc.UnaryServerInfo{ 484 Server: srv, 485 FullMethod: "/google.ads.googleads.v1.services.UserListService/GetUserList", 486 } 487 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 488 return srv.(UserListServiceServer).GetUserList(ctx, req.(*GetUserListRequest)) 489 } 490 return interceptor(ctx, in, info, handler) 491} 492 493func _UserListService_MutateUserLists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 494 in := new(MutateUserListsRequest) 495 if err := dec(in); err != nil { 496 return nil, err 497 } 498 if interceptor == nil { 499 return srv.(UserListServiceServer).MutateUserLists(ctx, in) 500 } 501 info := &grpc.UnaryServerInfo{ 502 Server: srv, 503 FullMethod: "/google.ads.googleads.v1.services.UserListService/MutateUserLists", 504 } 505 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 506 return srv.(UserListServiceServer).MutateUserLists(ctx, req.(*MutateUserListsRequest)) 507 } 508 return interceptor(ctx, in, info, handler) 509} 510 511var _UserListService_serviceDesc = grpc.ServiceDesc{ 512 ServiceName: "google.ads.googleads.v1.services.UserListService", 513 HandlerType: (*UserListServiceServer)(nil), 514 Methods: []grpc.MethodDesc{ 515 { 516 MethodName: "GetUserList", 517 Handler: _UserListService_GetUserList_Handler, 518 }, 519 { 520 MethodName: "MutateUserLists", 521 Handler: _UserListService_MutateUserLists_Handler, 522 }, 523 }, 524 Streams: []grpc.StreamDesc{}, 525 Metadata: "google/ads/googleads/v1/services/user_list_service.proto", 526} 527