1// Copyright 2020 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Code generated by protoc-gen-go. DO NOT EDIT.
16// versions:
17// 	protoc-gen-go v1.22.0
18// 	protoc        v3.11.2
19// source: google/ads/googleads/v1/services/payments_account_service.proto
20
21package services
22
23import (
24	context "context"
25	reflect "reflect"
26	sync "sync"
27
28	proto "github.com/golang/protobuf/proto"
29	resources "google.golang.org/genproto/googleapis/ads/googleads/v1/resources"
30	_ "google.golang.org/genproto/googleapis/api/annotations"
31	grpc "google.golang.org/grpc"
32	codes "google.golang.org/grpc/codes"
33	status "google.golang.org/grpc/status"
34	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
35	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
36)
37
38const (
39	// Verify that this generated code is sufficiently up-to-date.
40	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
41	// Verify that runtime/protoimpl is sufficiently up-to-date.
42	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
43)
44
45// This is a compile-time assertion that a sufficiently up-to-date version
46// of the legacy proto package is being used.
47const _ = proto.ProtoPackageIsVersion4
48
49// Request message for fetching all accessible payments accounts.
50type ListPaymentsAccountsRequest struct {
51	state         protoimpl.MessageState
52	sizeCache     protoimpl.SizeCache
53	unknownFields protoimpl.UnknownFields
54
55	// Required. The ID of the customer to apply the PaymentsAccount list operation to.
56	CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"`
57}
58
59func (x *ListPaymentsAccountsRequest) Reset() {
60	*x = ListPaymentsAccountsRequest{}
61	if protoimpl.UnsafeEnabled {
62		mi := &file_google_ads_googleads_v1_services_payments_account_service_proto_msgTypes[0]
63		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
64		ms.StoreMessageInfo(mi)
65	}
66}
67
68func (x *ListPaymentsAccountsRequest) String() string {
69	return protoimpl.X.MessageStringOf(x)
70}
71
72func (*ListPaymentsAccountsRequest) ProtoMessage() {}
73
74func (x *ListPaymentsAccountsRequest) ProtoReflect() protoreflect.Message {
75	mi := &file_google_ads_googleads_v1_services_payments_account_service_proto_msgTypes[0]
76	if protoimpl.UnsafeEnabled && x != nil {
77		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
78		if ms.LoadMessageInfo() == nil {
79			ms.StoreMessageInfo(mi)
80		}
81		return ms
82	}
83	return mi.MessageOf(x)
84}
85
86// Deprecated: Use ListPaymentsAccountsRequest.ProtoReflect.Descriptor instead.
87func (*ListPaymentsAccountsRequest) Descriptor() ([]byte, []int) {
88	return file_google_ads_googleads_v1_services_payments_account_service_proto_rawDescGZIP(), []int{0}
89}
90
91func (x *ListPaymentsAccountsRequest) GetCustomerId() string {
92	if x != nil {
93		return x.CustomerId
94	}
95	return ""
96}
97
98// Response message for [PaymentsAccountService.ListPaymentsAccounts][google.ads.googleads.v1.services.PaymentsAccountService.ListPaymentsAccounts].
99type ListPaymentsAccountsResponse struct {
100	state         protoimpl.MessageState
101	sizeCache     protoimpl.SizeCache
102	unknownFields protoimpl.UnknownFields
103
104	// The list of accessible payments accounts.
105	PaymentsAccounts []*resources.PaymentsAccount `protobuf:"bytes,1,rep,name=payments_accounts,json=paymentsAccounts,proto3" json:"payments_accounts,omitempty"`
106}
107
108func (x *ListPaymentsAccountsResponse) Reset() {
109	*x = ListPaymentsAccountsResponse{}
110	if protoimpl.UnsafeEnabled {
111		mi := &file_google_ads_googleads_v1_services_payments_account_service_proto_msgTypes[1]
112		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
113		ms.StoreMessageInfo(mi)
114	}
115}
116
117func (x *ListPaymentsAccountsResponse) String() string {
118	return protoimpl.X.MessageStringOf(x)
119}
120
121func (*ListPaymentsAccountsResponse) ProtoMessage() {}
122
123func (x *ListPaymentsAccountsResponse) ProtoReflect() protoreflect.Message {
124	mi := &file_google_ads_googleads_v1_services_payments_account_service_proto_msgTypes[1]
125	if protoimpl.UnsafeEnabled && x != nil {
126		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
127		if ms.LoadMessageInfo() == nil {
128			ms.StoreMessageInfo(mi)
129		}
130		return ms
131	}
132	return mi.MessageOf(x)
133}
134
135// Deprecated: Use ListPaymentsAccountsResponse.ProtoReflect.Descriptor instead.
136func (*ListPaymentsAccountsResponse) Descriptor() ([]byte, []int) {
137	return file_google_ads_googleads_v1_services_payments_account_service_proto_rawDescGZIP(), []int{1}
138}
139
140func (x *ListPaymentsAccountsResponse) GetPaymentsAccounts() []*resources.PaymentsAccount {
141	if x != nil {
142		return x.PaymentsAccounts
143	}
144	return nil
145}
146
147var File_google_ads_googleads_v1_services_payments_account_service_proto protoreflect.FileDescriptor
148
149var file_google_ads_googleads_v1_services_payments_account_service_proto_rawDesc = []byte{
150	0x0a, 0x3f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f,
151	0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
152	0x65, 0x73, 0x2f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x63, 0x63, 0x6f,
153	0x75, 0x6e, 0x74, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
154	0x6f, 0x12, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f,
155	0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
156	0x63, 0x65, 0x73, 0x1a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x64, 0x73, 0x2f,
157	0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73,
158	0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f,
159	0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67,
160	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61,
161	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f,
162	0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70,
163	0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
164	0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e,
165	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x1b, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x79,
166	0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71,
167	0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72,
168	0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a,
169	0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x49, 0x64, 0x22, 0x7f, 0x0a, 0x1c, 0x4c, 0x69,
170	0x73, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
171	0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5f, 0x0a, 0x11, 0x70, 0x61,
172	0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18,
173	0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61,
174	0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e,
175	0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x2e, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e,
176	0x74, 0x73, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x10, 0x70, 0x61, 0x79, 0x6d, 0x65,
177	0x6e, 0x74, 0x73, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x32, 0x93, 0x02, 0x0a, 0x16,
178	0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53,
179	0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xdb, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50,
180	0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12,
181	0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f,
182	0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
183	0x65, 0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41,
184	0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e,
185	0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
186	0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
187	0x73, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x63,
188	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x44,
189	0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x12, 0x2e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, 0x74,
190	0x6f, 0x6d, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f,
191	0x69, 0x64, 0x3d, 0x2a, 0x7d, 0x2f, 0x70, 0x61, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x41, 0x63,
192	0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0xda, 0x41, 0x0b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65,
193	0x72, 0x5f, 0x69, 0x64, 0x1a, 0x1b, 0xca, 0x41, 0x18, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
194	0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
195	0x6d, 0x42, 0x82, 0x02, 0x0a, 0x24, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
196	0x2e, 0x61, 0x64, 0x73, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2e, 0x76,
197	0x31, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x42, 0x1b, 0x50, 0x61, 0x79, 0x6d,
198	0x65, 0x6e, 0x74, 0x73, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69,
199	0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x48, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
200	0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
201	0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
202	0x2f, 0x61, 0x64, 0x73, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x64, 0x73, 0x2f, 0x76,
203	0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69,
204	0x63, 0x65, 0x73, 0xa2, 0x02, 0x03, 0x47, 0x41, 0x41, 0xaa, 0x02, 0x20, 0x47, 0x6f, 0x6f, 0x67,
205	0x6c, 0x65, 0x2e, 0x41, 0x64, 0x73, 0x2e, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73,
206	0x2e, 0x56, 0x31, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0xca, 0x02, 0x20, 0x47,
207	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x41, 0x64, 0x73, 0x5c, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
208	0x41, 0x64, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0xea,
209	0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x41, 0x64, 0x73, 0x3a, 0x3a, 0x47,
210	0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x41, 0x64, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x3a, 0x3a, 0x53, 0x65,
211	0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
212}
213
214var (
215	file_google_ads_googleads_v1_services_payments_account_service_proto_rawDescOnce sync.Once
216	file_google_ads_googleads_v1_services_payments_account_service_proto_rawDescData = file_google_ads_googleads_v1_services_payments_account_service_proto_rawDesc
217)
218
219func file_google_ads_googleads_v1_services_payments_account_service_proto_rawDescGZIP() []byte {
220	file_google_ads_googleads_v1_services_payments_account_service_proto_rawDescOnce.Do(func() {
221		file_google_ads_googleads_v1_services_payments_account_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_ads_googleads_v1_services_payments_account_service_proto_rawDescData)
222	})
223	return file_google_ads_googleads_v1_services_payments_account_service_proto_rawDescData
224}
225
226var file_google_ads_googleads_v1_services_payments_account_service_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
227var file_google_ads_googleads_v1_services_payments_account_service_proto_goTypes = []interface{}{
228	(*ListPaymentsAccountsRequest)(nil),  // 0: google.ads.googleads.v1.services.ListPaymentsAccountsRequest
229	(*ListPaymentsAccountsResponse)(nil), // 1: google.ads.googleads.v1.services.ListPaymentsAccountsResponse
230	(*resources.PaymentsAccount)(nil),    // 2: google.ads.googleads.v1.resources.PaymentsAccount
231}
232var file_google_ads_googleads_v1_services_payments_account_service_proto_depIdxs = []int32{
233	2, // 0: google.ads.googleads.v1.services.ListPaymentsAccountsResponse.payments_accounts:type_name -> google.ads.googleads.v1.resources.PaymentsAccount
234	0, // 1: google.ads.googleads.v1.services.PaymentsAccountService.ListPaymentsAccounts:input_type -> google.ads.googleads.v1.services.ListPaymentsAccountsRequest
235	1, // 2: google.ads.googleads.v1.services.PaymentsAccountService.ListPaymentsAccounts:output_type -> google.ads.googleads.v1.services.ListPaymentsAccountsResponse
236	2, // [2:3] is the sub-list for method output_type
237	1, // [1:2] is the sub-list for method input_type
238	1, // [1:1] is the sub-list for extension type_name
239	1, // [1:1] is the sub-list for extension extendee
240	0, // [0:1] is the sub-list for field type_name
241}
242
243func init() { file_google_ads_googleads_v1_services_payments_account_service_proto_init() }
244func file_google_ads_googleads_v1_services_payments_account_service_proto_init() {
245	if File_google_ads_googleads_v1_services_payments_account_service_proto != nil {
246		return
247	}
248	if !protoimpl.UnsafeEnabled {
249		file_google_ads_googleads_v1_services_payments_account_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
250			switch v := v.(*ListPaymentsAccountsRequest); i {
251			case 0:
252				return &v.state
253			case 1:
254				return &v.sizeCache
255			case 2:
256				return &v.unknownFields
257			default:
258				return nil
259			}
260		}
261		file_google_ads_googleads_v1_services_payments_account_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
262			switch v := v.(*ListPaymentsAccountsResponse); i {
263			case 0:
264				return &v.state
265			case 1:
266				return &v.sizeCache
267			case 2:
268				return &v.unknownFields
269			default:
270				return nil
271			}
272		}
273	}
274	type x struct{}
275	out := protoimpl.TypeBuilder{
276		File: protoimpl.DescBuilder{
277			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
278			RawDescriptor: file_google_ads_googleads_v1_services_payments_account_service_proto_rawDesc,
279			NumEnums:      0,
280			NumMessages:   2,
281			NumExtensions: 0,
282			NumServices:   1,
283		},
284		GoTypes:           file_google_ads_googleads_v1_services_payments_account_service_proto_goTypes,
285		DependencyIndexes: file_google_ads_googleads_v1_services_payments_account_service_proto_depIdxs,
286		MessageInfos:      file_google_ads_googleads_v1_services_payments_account_service_proto_msgTypes,
287	}.Build()
288	File_google_ads_googleads_v1_services_payments_account_service_proto = out.File
289	file_google_ads_googleads_v1_services_payments_account_service_proto_rawDesc = nil
290	file_google_ads_googleads_v1_services_payments_account_service_proto_goTypes = nil
291	file_google_ads_googleads_v1_services_payments_account_service_proto_depIdxs = nil
292}
293
294// Reference imports to suppress errors if they are not otherwise used.
295var _ context.Context
296var _ grpc.ClientConnInterface
297
298// This is a compile-time assertion to ensure that this generated file
299// is compatible with the grpc package it is being compiled against.
300const _ = grpc.SupportPackageIsVersion6
301
302// PaymentsAccountServiceClient is the client API for PaymentsAccountService service.
303//
304// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
305type PaymentsAccountServiceClient interface {
306	// Returns all payments accounts associated with all managers
307	// between the login customer ID and specified serving customer in the
308	// hierarchy, inclusive.
309	ListPaymentsAccounts(ctx context.Context, in *ListPaymentsAccountsRequest, opts ...grpc.CallOption) (*ListPaymentsAccountsResponse, error)
310}
311
312type paymentsAccountServiceClient struct {
313	cc grpc.ClientConnInterface
314}
315
316func NewPaymentsAccountServiceClient(cc grpc.ClientConnInterface) PaymentsAccountServiceClient {
317	return &paymentsAccountServiceClient{cc}
318}
319
320func (c *paymentsAccountServiceClient) ListPaymentsAccounts(ctx context.Context, in *ListPaymentsAccountsRequest, opts ...grpc.CallOption) (*ListPaymentsAccountsResponse, error) {
321	out := new(ListPaymentsAccountsResponse)
322	err := c.cc.Invoke(ctx, "/google.ads.googleads.v1.services.PaymentsAccountService/ListPaymentsAccounts", in, out, opts...)
323	if err != nil {
324		return nil, err
325	}
326	return out, nil
327}
328
329// PaymentsAccountServiceServer is the server API for PaymentsAccountService service.
330type PaymentsAccountServiceServer interface {
331	// Returns all payments accounts associated with all managers
332	// between the login customer ID and specified serving customer in the
333	// hierarchy, inclusive.
334	ListPaymentsAccounts(context.Context, *ListPaymentsAccountsRequest) (*ListPaymentsAccountsResponse, error)
335}
336
337// UnimplementedPaymentsAccountServiceServer can be embedded to have forward compatible implementations.
338type UnimplementedPaymentsAccountServiceServer struct {
339}
340
341func (*UnimplementedPaymentsAccountServiceServer) ListPaymentsAccounts(context.Context, *ListPaymentsAccountsRequest) (*ListPaymentsAccountsResponse, error) {
342	return nil, status.Errorf(codes.Unimplemented, "method ListPaymentsAccounts not implemented")
343}
344
345func RegisterPaymentsAccountServiceServer(s *grpc.Server, srv PaymentsAccountServiceServer) {
346	s.RegisterService(&_PaymentsAccountService_serviceDesc, srv)
347}
348
349func _PaymentsAccountService_ListPaymentsAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
350	in := new(ListPaymentsAccountsRequest)
351	if err := dec(in); err != nil {
352		return nil, err
353	}
354	if interceptor == nil {
355		return srv.(PaymentsAccountServiceServer).ListPaymentsAccounts(ctx, in)
356	}
357	info := &grpc.UnaryServerInfo{
358		Server:     srv,
359		FullMethod: "/google.ads.googleads.v1.services.PaymentsAccountService/ListPaymentsAccounts",
360	}
361	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
362		return srv.(PaymentsAccountServiceServer).ListPaymentsAccounts(ctx, req.(*ListPaymentsAccountsRequest))
363	}
364	return interceptor(ctx, in, info, handler)
365}
366
367var _PaymentsAccountService_serviceDesc = grpc.ServiceDesc{
368	ServiceName: "google.ads.googleads.v1.services.PaymentsAccountService",
369	HandlerType: (*PaymentsAccountServiceServer)(nil),
370	Methods: []grpc.MethodDesc{
371		{
372			MethodName: "ListPaymentsAccounts",
373			Handler:    _PaymentsAccountService_ListPaymentsAccounts_Handler,
374		},
375	},
376	Streams:  []grpc.StreamDesc{},
377	Metadata: "google/ads/googleads/v1/services/payments_account_service.proto",
378}
379