Debian Codegraph @

shopping/merchant/accounts/apiv1/accountspb/gbpaccounts.pb.go

raw symbols SCIP
1 // Copyright 2025 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.35.2
18 // protoc v4.25.7
19 // source: google/shopping/merchant/accounts/v1/gbpaccounts.proto
20
21 package accountspb
22
23 import (
24 context "context"
25 _ "google.golang.org/genproto/googleapis/api/annotations"
26 grpc "google.golang.org/grpc"
27 codes "google.golang.org/grpc/codes"
28 status "google.golang.org/grpc/status"
29 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
30 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
31 emptypb "google.golang.org/protobuf/types/known/emptypb"
32 reflect "reflect"
33 sync "sync"
34 )
35
36 const (
37 // Verify that this generated code is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39 // Verify that runtime/protoimpl is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 // The type of the GBP account.
44 type GbpAccount_Type int32
45
46 const (
47 // Default value. This value is unused.
48 GbpAccount_TYPE_UNSPECIFIED GbpAccount_Type = 0
49 // The GBP account is a user account.
50 GbpAccount_USER GbpAccount_Type = 1
51 // The GBP account is a business account.
52 GbpAccount_BUSINESS_ACCOUNT GbpAccount_Type = 2
53 )
54
55 // Enum value maps for GbpAccount_Type.
56 var (
57 GbpAccount_Type_name = map[int32]string{
58 0: "TYPE_UNSPECIFIED",
59 1: "USER",
60 2: "BUSINESS_ACCOUNT",
61 }
62 GbpAccount_Type_value = map[string]int32{
63 "TYPE_UNSPECIFIED": 0,
64 "USER": 1,
65 "BUSINESS_ACCOUNT": 2,
66 }
67 )
68
69 func (x GbpAccount_Type) Enum() *GbpAccount_Type {
70 p := new(GbpAccount_Type)
71 *p = x
72 return p
73 }
74
75 func (x GbpAccount_Type) String() string {
76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
77 }
78
79 func (GbpAccount_Type) Descriptor() protoreflect.EnumDescriptor {
80 return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_enumTypes[0].Descriptor()
81 }
82
83 func (GbpAccount_Type) Type() protoreflect.EnumType {
84 return &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_enumTypes[0]
85 }
86
87 func (x GbpAccount_Type) Number() protoreflect.EnumNumber {
88 return protoreflect.EnumNumber(x)
89 }
90
91 // Deprecated: Use GbpAccount_Type.Descriptor instead.
92 func (GbpAccount_Type) EnumDescriptor() ([]byte, []int) {
93 return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP(), []int{0, 0}
94 }
95
96 // Collection of information related to a Google Business Profile (GBP) account.
97 type GbpAccount struct {
98 state protoimpl.MessageState
99 sizeCache protoimpl.SizeCache
100 unknownFields protoimpl.UnknownFields
101
102 // Identifier. The resource name of the GBP account. Format:
103 // `accounts/{account}/gbpAccount/{gbp_account}`
104 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
105 // The id of the GBP account.
106 GbpAccountId string `protobuf:"bytes,2,opt,name=gbp_account_id,json=gbpAccountId,proto3" json:"gbp_account_id,omitempty"`
107 // The type of the Business Profile.
108 Type GbpAccount_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.shopping.merchant.accounts.v1.GbpAccount_Type" json:"type,omitempty"`
109 // The name of the Business Profile.
110 // For personal accounts: Email id of the owner.
111 // For Business accounts: Name of the Business Account.
112 GbpAccountName string `protobuf:"bytes,5,opt,name=gbp_account_name,json=gbpAccountName,proto3" json:"gbp_account_name,omitempty"`
113 // Number of listings under this account.
114 ListingCount int64 `protobuf:"varint,6,opt,name=listing_count,json=listingCount,proto3" json:"listing_count,omitempty"`
115 }
116
117 func (x *GbpAccount) Reset() {
118 *x = GbpAccount{}
119 mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[0]
120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
121 ms.StoreMessageInfo(mi)
122 }
123
124 func (x *GbpAccount) String() string {
125 return protoimpl.X.MessageStringOf(x)
126 }
127
128 func (*GbpAccount) ProtoMessage() {}
129
130 func (x *GbpAccount) ProtoReflect() protoreflect.Message {
131 mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[0]
132 if x != nil {
133 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
134 if ms.LoadMessageInfo() == nil {
135 ms.StoreMessageInfo(mi)
136 }
137 return ms
138 }
139 return mi.MessageOf(x)
140 }
141
142 // Deprecated: Use GbpAccount.ProtoReflect.Descriptor instead.
143 func (*GbpAccount) Descriptor() ([]byte, []int) {
144 return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP(), []int{0}
145 }
146
147 func (x *GbpAccount) GetName() string {
148 if x != nil {
149 return x.Name
150 }
151 return ""
152 }
153
154 func (x *GbpAccount) GetGbpAccountId() string {
155 if x != nil {
156 return x.GbpAccountId
157 }
158 return ""
159 }
160
161 func (x *GbpAccount) GetType() GbpAccount_Type {
162 if x != nil {
163 return x.Type
164 }
165 return GbpAccount_TYPE_UNSPECIFIED
166 }
167
168 func (x *GbpAccount) GetGbpAccountName() string {
169 if x != nil {
170 return x.GbpAccountName
171 }
172 return ""
173 }
174
175 func (x *GbpAccount) GetListingCount() int64 {
176 if x != nil {
177 return x.ListingCount
178 }
179 return 0
180 }
181
182 // Request message for the ListGbpAccounts method.
183 type ListGbpAccountsRequest struct {
184 state protoimpl.MessageState
185 sizeCache protoimpl.SizeCache
186 unknownFields protoimpl.UnknownFields
187
188 // Required. The name of the parent resource under which the GBP accounts are
189 // listed. Format: `accounts/{account}`.
190 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
191 // Optional. The maximum number of `GbpAccount` resources to return. The
192 // service returns fewer than this value if the number of gbp accounts is less
193 // that than the `pageSize`. The default value is 50. The maximum value is
194 // 1000; If a value higher than the maximum is specified, then the `pageSize`
195 // will default to the maximum.
196 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
197 // Optional. A page token, received from a previous `ListGbpAccounts` call.
198 // Provide the page token to retrieve the subsequent page.
199 //
200 // When paginating, all other parameters provided to `ListGbpAccounts` must
201 // match the call that provided the page token.
202 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
203 }
204
205 func (x *ListGbpAccountsRequest) Reset() {
206 *x = ListGbpAccountsRequest{}
207 mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[1]
208 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
209 ms.StoreMessageInfo(mi)
210 }
211
212 func (x *ListGbpAccountsRequest) String() string {
213 return protoimpl.X.MessageStringOf(x)
214 }
215
216 func (*ListGbpAccountsRequest) ProtoMessage() {}
217
218 func (x *ListGbpAccountsRequest) ProtoReflect() protoreflect.Message {
219 mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[1]
220 if x != nil {
221 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
222 if ms.LoadMessageInfo() == nil {
223 ms.StoreMessageInfo(mi)
224 }
225 return ms
226 }
227 return mi.MessageOf(x)
228 }
229
230 // Deprecated: Use ListGbpAccountsRequest.ProtoReflect.Descriptor instead.
231 func (*ListGbpAccountsRequest) Descriptor() ([]byte, []int) {
232 return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP(), []int{1}
233 }
234
235 func (x *ListGbpAccountsRequest) GetParent() string {
236 if x != nil {
237 return x.Parent
238 }
239 return ""
240 }
241
242 func (x *ListGbpAccountsRequest) GetPageSize() int32 {
243 if x != nil {
244 return x.PageSize
245 }
246 return 0
247 }
248
249 func (x *ListGbpAccountsRequest) GetPageToken() string {
250 if x != nil {
251 return x.PageToken
252 }
253 return ""
254 }
255
256 // Response message for the ListGbpAccounts method.
257 type ListGbpAccountsResponse struct {
258 state protoimpl.MessageState
259 sizeCache protoimpl.SizeCache
260 unknownFields protoimpl.UnknownFields
261
262 // The GBP accounts from the specified merchant in the specified country.
263 GbpAccounts []*GbpAccount `protobuf:"bytes,1,rep,name=gbp_accounts,json=gbpAccounts,proto3" json:"gbp_accounts,omitempty"`
264 // A token, which can be sent as `page_token` to retrieve the next page.
265 // If this field is omitted, there are no subsequent pages.
266 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
267 }
268
269 func (x *ListGbpAccountsResponse) Reset() {
270 *x = ListGbpAccountsResponse{}
271 mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[2]
272 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
273 ms.StoreMessageInfo(mi)
274 }
275
276 func (x *ListGbpAccountsResponse) String() string {
277 return protoimpl.X.MessageStringOf(x)
278 }
279
280 func (*ListGbpAccountsResponse) ProtoMessage() {}
281
282 func (x *ListGbpAccountsResponse) ProtoReflect() protoreflect.Message {
283 mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[2]
284 if x != nil {
285 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
286 if ms.LoadMessageInfo() == nil {
287 ms.StoreMessageInfo(mi)
288 }
289 return ms
290 }
291 return mi.MessageOf(x)
292 }
293
294 // Deprecated: Use ListGbpAccountsResponse.ProtoReflect.Descriptor instead.
295 func (*ListGbpAccountsResponse) Descriptor() ([]byte, []int) {
296 return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP(), []int{2}
297 }
298
299 func (x *ListGbpAccountsResponse) GetGbpAccounts() []*GbpAccount {
300 if x != nil {
301 return x.GbpAccounts
302 }
303 return nil
304 }
305
306 func (x *ListGbpAccountsResponse) GetNextPageToken() string {
307 if x != nil {
308 return x.NextPageToken
309 }
310 return ""
311 }
312
313 // Request message for the LinkGbpAccount method.
314 type LinkGbpAccountRequest struct {
315 state protoimpl.MessageState
316 sizeCache protoimpl.SizeCache
317 unknownFields protoimpl.UnknownFields
318
319 // Required. The name of the parent resource to which the GBP account is
320 // linked. Format: `accounts/{account}`.
321 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
322 // Required. The email address of the Business Profile account.
323 GbpEmail string `protobuf:"bytes,2,opt,name=gbp_email,json=gbpEmail,proto3" json:"gbp_email,omitempty"`
324 }
325
326 func (x *LinkGbpAccountRequest) Reset() {
327 *x = LinkGbpAccountRequest{}
328 mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[3]
329 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
330 ms.StoreMessageInfo(mi)
331 }
332
333 func (x *LinkGbpAccountRequest) String() string {
334 return protoimpl.X.MessageStringOf(x)
335 }
336
337 func (*LinkGbpAccountRequest) ProtoMessage() {}
338
339 func (x *LinkGbpAccountRequest) ProtoReflect() protoreflect.Message {
340 mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[3]
341 if x != nil {
342 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
343 if ms.LoadMessageInfo() == nil {
344 ms.StoreMessageInfo(mi)
345 }
346 return ms
347 }
348 return mi.MessageOf(x)
349 }
350
351 // Deprecated: Use LinkGbpAccountRequest.ProtoReflect.Descriptor instead.
352 func (*LinkGbpAccountRequest) Descriptor() ([]byte, []int) {
353 return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP(), []int{3}
354 }
355
356 func (x *LinkGbpAccountRequest) GetParent() string {
357 if x != nil {
358 return x.Parent
359 }
360 return ""
361 }
362
363 func (x *LinkGbpAccountRequest) GetGbpEmail() string {
364 if x != nil {
365 return x.GbpEmail
366 }
367 return ""
368 }
369
370 // Response message for the LinkGbpAccount method.
371 type LinkGbpAccountResponse struct {
372 state protoimpl.MessageState
373 sizeCache protoimpl.SizeCache
374 unknownFields protoimpl.UnknownFields
375
376 // Empty response.
377 Response *emptypb.Empty `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
378 }
379
380 func (x *LinkGbpAccountResponse) Reset() {
381 *x = LinkGbpAccountResponse{}
382 mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[4]
383 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
384 ms.StoreMessageInfo(mi)
385 }
386
387 func (x *LinkGbpAccountResponse) String() string {
388 return protoimpl.X.MessageStringOf(x)
389 }
390
391 func (*LinkGbpAccountResponse) ProtoMessage() {}
392
393 func (x *LinkGbpAccountResponse) ProtoReflect() protoreflect.Message {
394 mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[4]
395 if x != nil {
396 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
397 if ms.LoadMessageInfo() == nil {
398 ms.StoreMessageInfo(mi)
399 }
400 return ms
401 }
402 return mi.MessageOf(x)
403 }
404
405 // Deprecated: Use LinkGbpAccountResponse.ProtoReflect.Descriptor instead.
406 func (*LinkGbpAccountResponse) Descriptor() ([]byte, []int) {
407 return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP(), []int{4}
408 }
409
410 func (x *LinkGbpAccountResponse) GetResponse() *emptypb.Empty {
411 if x != nil {
412 return x.Response
413 }
414 return nil
415 }
416
417 var File_google_shopping_merchant_accounts_v1_gbpaccounts_proto protoreflect.FileDescriptor
418
419 var file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDesc = []byte{
420 0x0a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
421 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
422 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x62, 0x70, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
423 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
424 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61,
425 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c,
426 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
427 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f,
428 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e,
429 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
430 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72,
431 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
432 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
433 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
434 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96,
435 0x03, 0x0a, 0x0a, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x17, 0x0a,
436 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x08,
437 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x67, 0x62, 0x70, 0x5f, 0x61, 0x63,
438 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c,
439 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x04,
440 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f,
441 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72,
442 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76,
443 0x31, 0x2e, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70,
444 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x62, 0x70, 0x5f, 0x61,
445 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
446 0x09, 0x52, 0x0e, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d,
447 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x75,
448 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6c, 0x69, 0x73, 0x74, 0x69, 0x6e,
449 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14,
450 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
451 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x14,
452 0x0a, 0x10, 0x42, 0x55, 0x53, 0x49, 0x4e, 0x45, 0x53, 0x53, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55,
453 0x4e, 0x54, 0x10, 0x02, 0x3a, 0x71, 0xea, 0x41, 0x6e, 0x0a, 0x25, 0x6d, 0x65, 0x72, 0x63, 0x68,
454 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
455 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
456 0x12, 0x2c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f,
457 0x75, 0x6e, 0x74, 0x7d, 0x2f, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
458 0x2f, 0x7b, 0x67, 0x62, 0x70, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2a, 0x0b,
459 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x32, 0x0a, 0x67, 0x62, 0x70,
460 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xa2, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74,
461 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
462 0x73, 0x74, 0x12, 0x42, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01,
463 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63,
464 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
465 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06,
466 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73,
467 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08,
468 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65,
469 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
470 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x96, 0x01, 0x0a,
471 0x17, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
472 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0c, 0x67, 0x62, 0x70, 0x5f,
473 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30,
474 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
475 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
476 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
477 0x52, 0x0b, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a,
478 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
479 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,
480 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x7d, 0x0a, 0x15, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70,
481 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42,
482 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a,
483 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
484 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
485 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,
486 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x67, 0x62, 0x70, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18,
487 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x67, 0x62, 0x70, 0x45,
488 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x4c, 0x0a, 0x16, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41,
489 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32,
490 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
491 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
492 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
493 0x73, 0x65, 0x32, 0x8c, 0x04, 0x0a, 0x12, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
494 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xcd, 0x01, 0x0a, 0x0f, 0x4c, 0x69,
495 0x73, 0x74, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x3c, 0x2e,
496 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e,
497 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
498 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f,
499 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x67, 0x6f,
500 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65,
501 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e,
502 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
503 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x06, 0x70,
504 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x61, 0x63,
505 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
506 0x74, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x62,
507 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0xdc, 0x01, 0x0a, 0x0e, 0x4c, 0x69,
508 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x67,
509 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d,
510 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
511 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75,
512 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
513 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63,
514 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31,
515 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52,
516 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65,
517 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x3a, 0x01, 0x2a, 0x22, 0x3b, 0x2f, 0x61, 0x63,
518 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
519 0x74, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x62,
520 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x3a, 0x6c, 0x69, 0x6e, 0x6b, 0x47, 0x62,
521 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x47, 0xca, 0x41, 0x1a, 0x6d, 0x65, 0x72,
522 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
523 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a,
524 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
525 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
526 0x74, 0x42, 0x83, 0x02, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
527 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61,
528 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x10,
529 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f,
530 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
531 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
532 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
533 0x74, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
534 0x73, 0x70, 0x62, 0x3b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, 0xaa, 0x02,
535 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
536 0x2e, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
537 0x74, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x53,
538 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5c, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
539 0x5c, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x28, 0x47,
540 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x3a,
541 0x3a, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x3a, 0x3a, 0x41, 0x63, 0x63, 0x6f, 0x75,
542 0x6e, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
543 }
544
545 var (
546 file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescOnce sync.Once
547 file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescData = file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDesc
548 )
549
550 func file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP() []byte {
551 file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescOnce.Do(func() {
552 file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescData)
553 })
554 return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescData
555 }
556
557 var file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
558 var file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
559 var file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_goTypes = []any{
560 (GbpAccount_Type)(0), // 0: google.shopping.merchant.accounts.v1.GbpAccount.Type
561 (*GbpAccount)(nil), // 1: google.shopping.merchant.accounts.v1.GbpAccount
562 (*ListGbpAccountsRequest)(nil), // 2: google.shopping.merchant.accounts.v1.ListGbpAccountsRequest
563 (*ListGbpAccountsResponse)(nil), // 3: google.shopping.merchant.accounts.v1.ListGbpAccountsResponse
564 (*LinkGbpAccountRequest)(nil), // 4: google.shopping.merchant.accounts.v1.LinkGbpAccountRequest
565 (*LinkGbpAccountResponse)(nil), // 5: google.shopping.merchant.accounts.v1.LinkGbpAccountResponse
566 (*emptypb.Empty)(nil), // 6: google.protobuf.Empty
567 }
568 var file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_depIdxs = []int32{
569 0, // 0: google.shopping.merchant.accounts.v1.GbpAccount.type:type_name -> google.shopping.merchant.accounts.v1.GbpAccount.Type
570 1, // 1: google.shopping.merchant.accounts.v1.ListGbpAccountsResponse.gbp_accounts:type_name -> google.shopping.merchant.accounts.v1.GbpAccount
571 6, // 2: google.shopping.merchant.accounts.v1.LinkGbpAccountResponse.response:type_name -> google.protobuf.Empty
572 2, // 3: google.shopping.merchant.accounts.v1.GbpAccountsService.ListGbpAccounts:input_type -> google.shopping.merchant.accounts.v1.ListGbpAccountsRequest
573 4, // 4: google.shopping.merchant.accounts.v1.GbpAccountsService.LinkGbpAccount:input_type -> google.shopping.merchant.accounts.v1.LinkGbpAccountRequest
574 3, // 5: google.shopping.merchant.accounts.v1.GbpAccountsService.ListGbpAccounts:output_type -> google.shopping.merchant.accounts.v1.ListGbpAccountsResponse
575 5, // 6: google.shopping.merchant.accounts.v1.GbpAccountsService.LinkGbpAccount:output_type -> google.shopping.merchant.accounts.v1.LinkGbpAccountResponse
576 5, // [5:7] is the sub-list for method output_type
577 3, // [3:5] is the sub-list for method input_type
578 3, // [3:3] is the sub-list for extension type_name
579 3, // [3:3] is the sub-list for extension extendee
580 0, // [0:3] is the sub-list for field type_name
581 }
582
583 func init() { file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_init() }
584 func file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_init() {
585 if File_google_shopping_merchant_accounts_v1_gbpaccounts_proto != nil {
586 return
587 }
588 type x struct{}
589 out := protoimpl.TypeBuilder{
590 File: protoimpl.DescBuilder{
591 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
592 RawDescriptor: file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDesc,
593 NumEnums: 1,
594 NumMessages: 5,
595 NumExtensions: 0,
596 NumServices: 1,
597 },
598 GoTypes: file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_goTypes,
599 DependencyIndexes: file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_depIdxs,
600 EnumInfos: file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_enumTypes,
601 MessageInfos: file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes,
602 }.Build()
603 File_google_shopping_merchant_accounts_v1_gbpaccounts_proto = out.File
604 file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDesc = nil
605 file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_goTypes = nil
606 file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_depIdxs = nil
607 }
608
609 // Reference imports to suppress errors if they are not otherwise used.
610 var _ context.Context
611 var _ grpc.ClientConnInterface
612
613 // This is a compile-time assertion to ensure that this generated file
614 // is compatible with the grpc package it is being compiled against.
615 const _ = grpc.SupportPackageIsVersion6
616
617 // GbpAccountsServiceClient is the client API for GbpAccountsService service.
618 //
619 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
620 type GbpAccountsServiceClient interface {
621 // List the GBP accounts for a given merchant.
622 ListGbpAccounts(ctx context.Context, in *ListGbpAccountsRequest, opts ...grpc.CallOption) (*ListGbpAccountsResponse, error)
623 // Link the specified merchant to a GBP account for all countries.
624 //
625 // To run this method, you must have admin access to the Merchant Center
626 // account. If you don't have admin access, the request fails with the error
627 // message `User is not an administrator of account {ACCOUNT_ID}`.
628 LinkGbpAccount(ctx context.Context, in *LinkGbpAccountRequest, opts ...grpc.CallOption) (*LinkGbpAccountResponse, error)
629 }
630
631 type gbpAccountsServiceClient struct {
632 cc grpc.ClientConnInterface
633 }
634
635 func NewGbpAccountsServiceClient(cc grpc.ClientConnInterface) GbpAccountsServiceClient {
636 return &gbpAccountsServiceClient{cc}
637 }
638
639 func (c *gbpAccountsServiceClient) ListGbpAccounts(ctx context.Context, in *ListGbpAccountsRequest, opts ...grpc.CallOption) (*ListGbpAccountsResponse, error) {
640 out := new(ListGbpAccountsResponse)
641 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1.GbpAccountsService/ListGbpAccounts", in, out, opts...)
642 if err != nil {
643 return nil, err
644 }
645 return out, nil
646 }
647
648 func (c *gbpAccountsServiceClient) LinkGbpAccount(ctx context.Context, in *LinkGbpAccountRequest, opts ...grpc.CallOption) (*LinkGbpAccountResponse, error) {
649 out := new(LinkGbpAccountResponse)
650 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1.GbpAccountsService/LinkGbpAccount", in, out, opts...)
651 if err != nil {
652 return nil, err
653 }
654 return out, nil
655 }
656
657 // GbpAccountsServiceServer is the server API for GbpAccountsService service.
658 type GbpAccountsServiceServer interface {
659 // List the GBP accounts for a given merchant.
660 ListGbpAccounts(context.Context, *ListGbpAccountsRequest) (*ListGbpAccountsResponse, error)
661 // Link the specified merchant to a GBP account for all countries.
662 //
663 // To run this method, you must have admin access to the Merchant Center
664 // account. If you don't have admin access, the request fails with the error
665 // message `User is not an administrator of account {ACCOUNT_ID}`.
666 LinkGbpAccount(context.Context, *LinkGbpAccountRequest) (*LinkGbpAccountResponse, error)
667 }
668
669 // UnimplementedGbpAccountsServiceServer can be embedded to have forward compatible implementations.
670 type UnimplementedGbpAccountsServiceServer struct {
671 }
672
673 func (*UnimplementedGbpAccountsServiceServer) ListGbpAccounts(context.Context, *ListGbpAccountsRequest) (*ListGbpAccountsResponse, error) {
674 return nil, status.Errorf(codes.Unimplemented, "method ListGbpAccounts not implemented")
675 }
676 func (*UnimplementedGbpAccountsServiceServer) LinkGbpAccount(context.Context, *LinkGbpAccountRequest) (*LinkGbpAccountResponse, error) {
677 return nil, status.Errorf(codes.Unimplemented, "method LinkGbpAccount not implemented")
678 }
679
680 func RegisterGbpAccountsServiceServer(s *grpc.Server, srv GbpAccountsServiceServer) {
681 s.RegisterService(&_GbpAccountsService_serviceDesc, srv)
682 }
683
684 func _GbpAccountsService_ListGbpAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
685 in := new(ListGbpAccountsRequest)
686 if err := dec(in); err != nil {
687 return nil, err
688 }
689 if interceptor == nil {
690 return srv.(GbpAccountsServiceServer).ListGbpAccounts(ctx, in)
691 }
692 info := &grpc.UnaryServerInfo{
693 Server: srv,
694 FullMethod: "/google.shopping.merchant.accounts.v1.GbpAccountsService/ListGbpAccounts",
695 }
696 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
697 return srv.(GbpAccountsServiceServer).ListGbpAccounts(ctx, req.(*ListGbpAccountsRequest))
698 }
699 return interceptor(ctx, in, info, handler)
700 }
701
702 func _GbpAccountsService_LinkGbpAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
703 in := new(LinkGbpAccountRequest)
704 if err := dec(in); err != nil {
705 return nil, err
706 }
707 if interceptor == nil {
708 return srv.(GbpAccountsServiceServer).LinkGbpAccount(ctx, in)
709 }
710 info := &grpc.UnaryServerInfo{
711 Server: srv,
712 FullMethod: "/google.shopping.merchant.accounts.v1.GbpAccountsService/LinkGbpAccount",
713 }
714 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
715 return srv.(GbpAccountsServiceServer).LinkGbpAccount(ctx, req.(*LinkGbpAccountRequest))
716 }
717 return interceptor(ctx, in, info, handler)
718 }
719
720 var _GbpAccountsService_serviceDesc = grpc.ServiceDesc{
721 ServiceName: "google.shopping.merchant.accounts.v1.GbpAccountsService",
722 HandlerType: (*GbpAccountsServiceServer)(nil),
723 Methods: []grpc.MethodDesc{
724 {
725 MethodName: "ListGbpAccounts",
726 Handler: _GbpAccountsService_ListGbpAccounts_Handler,
727 },
728 {
729 MethodName: "LinkGbpAccount",
730 Handler: _GbpAccountsService_LinkGbpAccount_Handler,
731 },
732 },
733 Streams: []grpc.StreamDesc{},
734 Metadata: "google/shopping/merchant/accounts/v1/gbpaccounts.proto",
735 }