Debian Codegraph @

shopping/merchant/accounts/apiv1beta/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/v1beta/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_v1beta_gbpaccounts_proto_enumTypes[0].Descriptor()
81 }
82
83 func (GbpAccount_Type) Type() protoreflect.EnumType {
84 return &file_google_shopping_merchant_accounts_v1beta_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_v1beta_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.v1beta.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_v1beta_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_v1beta_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_v1beta_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_v1beta_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_v1beta_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_v1beta_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_v1beta_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_v1beta_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_v1beta_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_v1beta_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_v1beta_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_v1beta_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_v1beta_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_v1beta_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_v1beta_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_v1beta_gbpaccounts_proto protoreflect.FileDescriptor
418
419 var file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_rawDesc = []byte{
420 0x0a, 0x3a, 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, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x67, 0x62, 0x70, 0x61, 0x63,
423 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x28, 0x67, 0x6f,
424 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65,
425 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e,
426 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
427 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
428 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69,
429 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67,
430 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f,
431 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19,
432 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75,
433 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
434 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79,
435 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9a, 0x03, 0x0a, 0x0a, 0x47, 0x62, 0x70, 0x41, 0x63,
436 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
437 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24,
438 0x0a, 0x0e, 0x67, 0x62, 0x70, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64,
439 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75,
440 0x6e, 0x74, 0x49, 0x64, 0x12, 0x4d, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01,
441 0x28, 0x0e, 0x32, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70,
442 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63,
443 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x62,
444 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74,
445 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x62, 0x70, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75,
446 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x67,
447 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a,
448 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06,
449 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6c, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75,
450 0x6e, 0x74, 0x22, 0x3c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59,
451 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
452 0x12, 0x08, 0x0a, 0x04, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x55,
453 0x53, 0x49, 0x4e, 0x45, 0x53, 0x53, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x02,
454 0x3a, 0x71, 0xea, 0x41, 0x6e, 0x0a, 0x25, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61,
455 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
456 0x6d, 0x2f, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2c, 0x61, 0x63,
457 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d,
458 0x2f, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x67, 0x62,
459 0x70, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2a, 0x0b, 0x67, 0x62, 0x70, 0x41,
460 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x32, 0x0a, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f,
461 0x75, 0x6e, 0x74, 0x22, 0xa2, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x62, 0x70, 0x41,
462 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42,
463 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a,
464 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
465 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
466 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,
467 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,
468 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65,
469 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
470 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70,
471 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x9a, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73,
472 0x74, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70,
473 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x57, 0x0a, 0x0c, 0x67, 0x62, 0x70, 0x5f, 0x61, 0x63, 0x63, 0x6f,
474 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f,
475 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72,
476 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76,
477 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
478 0x52, 0x0b, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a,
479 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
480 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,
481 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x7d, 0x0a, 0x15, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70,
482 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42,
483 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a,
484 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
485 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
486 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65,
487 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x67, 0x62, 0x70, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18,
488 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x67, 0x62, 0x70, 0x45,
489 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x4c, 0x0a, 0x16, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41,
490 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32,
491 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
492 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62,
493 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
494 0x73, 0x65, 0x32, 0xa4, 0x04, 0x0a, 0x12, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
495 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xd9, 0x01, 0x0a, 0x0f, 0x4c, 0x69,
496 0x73, 0x74, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x40, 0x2e,
497 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e,
498 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
499 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x62, 0x70,
500 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
501 0x41, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
502 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
503 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47,
504 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
505 0x73, 0x65, 0x22, 0x41, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4,
506 0x93, 0x02, 0x32, 0x12, 0x30, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76,
507 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x61, 0x63,
508 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63,
509 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0xe8, 0x01, 0x0a, 0x0e, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62,
510 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
511 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68,
512 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62,
513 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75,
514 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
515 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63,
516 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31,
517 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f,
518 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, 0xda, 0x41, 0x06,
519 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x3a, 0x01, 0x2a, 0x22,
520 0x3f, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
521 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
522 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
523 0x73, 0x3a, 0x6c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
524 0x1a, 0x47, 0xca, 0x41, 0x1a, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69,
525 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2,
526 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f,
527 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74,
528 0x68, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x92, 0x01, 0x0a, 0x2c, 0x63, 0x6f,
529 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
530 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
531 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x42, 0x10, 0x47, 0x62, 0x70, 0x41,
532 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e,
533 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
534 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72,
535 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61,
536 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
537 0x73, 0x70, 0x62, 0x3b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x62, 0x06,
538 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
539 }
540
541 var (
542 file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_rawDescOnce sync.Once
543 file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_rawDescData = file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_rawDesc
544 )
545
546 func file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_rawDescGZIP() []byte {
547 file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_rawDescOnce.Do(func() {
548 file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_rawDescData)
549 })
550 return file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_rawDescData
551 }
552
553 var file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
554 var file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
555 var file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_goTypes = []any{
556 (GbpAccount_Type)(0), // 0: google.shopping.merchant.accounts.v1beta.GbpAccount.Type
557 (*GbpAccount)(nil), // 1: google.shopping.merchant.accounts.v1beta.GbpAccount
558 (*ListGbpAccountsRequest)(nil), // 2: google.shopping.merchant.accounts.v1beta.ListGbpAccountsRequest
559 (*ListGbpAccountsResponse)(nil), // 3: google.shopping.merchant.accounts.v1beta.ListGbpAccountsResponse
560 (*LinkGbpAccountRequest)(nil), // 4: google.shopping.merchant.accounts.v1beta.LinkGbpAccountRequest
561 (*LinkGbpAccountResponse)(nil), // 5: google.shopping.merchant.accounts.v1beta.LinkGbpAccountResponse
562 (*emptypb.Empty)(nil), // 6: google.protobuf.Empty
563 }
564 var file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_depIdxs = []int32{
565 0, // 0: google.shopping.merchant.accounts.v1beta.GbpAccount.type:type_name -> google.shopping.merchant.accounts.v1beta.GbpAccount.Type
566 1, // 1: google.shopping.merchant.accounts.v1beta.ListGbpAccountsResponse.gbp_accounts:type_name -> google.shopping.merchant.accounts.v1beta.GbpAccount
567 6, // 2: google.shopping.merchant.accounts.v1beta.LinkGbpAccountResponse.response:type_name -> google.protobuf.Empty
568 2, // 3: google.shopping.merchant.accounts.v1beta.GbpAccountsService.ListGbpAccounts:input_type -> google.shopping.merchant.accounts.v1beta.ListGbpAccountsRequest
569 4, // 4: google.shopping.merchant.accounts.v1beta.GbpAccountsService.LinkGbpAccount:input_type -> google.shopping.merchant.accounts.v1beta.LinkGbpAccountRequest
570 3, // 5: google.shopping.merchant.accounts.v1beta.GbpAccountsService.ListGbpAccounts:output_type -> google.shopping.merchant.accounts.v1beta.ListGbpAccountsResponse
571 5, // 6: google.shopping.merchant.accounts.v1beta.GbpAccountsService.LinkGbpAccount:output_type -> google.shopping.merchant.accounts.v1beta.LinkGbpAccountResponse
572 5, // [5:7] is the sub-list for method output_type
573 3, // [3:5] is the sub-list for method input_type
574 3, // [3:3] is the sub-list for extension type_name
575 3, // [3:3] is the sub-list for extension extendee
576 0, // [0:3] is the sub-list for field type_name
577 }
578
579 func init() { file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_init() }
580 func file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_init() {
581 if File_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto != nil {
582 return
583 }
584 type x struct{}
585 out := protoimpl.TypeBuilder{
586 File: protoimpl.DescBuilder{
587 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
588 RawDescriptor: file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_rawDesc,
589 NumEnums: 1,
590 NumMessages: 5,
591 NumExtensions: 0,
592 NumServices: 1,
593 },
594 GoTypes: file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_goTypes,
595 DependencyIndexes: file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_depIdxs,
596 EnumInfos: file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_enumTypes,
597 MessageInfos: file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_msgTypes,
598 }.Build()
599 File_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto = out.File
600 file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_rawDesc = nil
601 file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_goTypes = nil
602 file_google_shopping_merchant_accounts_v1beta_gbpaccounts_proto_depIdxs = nil
603 }
604
605 // Reference imports to suppress errors if they are not otherwise used.
606 var _ context.Context
607 var _ grpc.ClientConnInterface
608
609 // This is a compile-time assertion to ensure that this generated file
610 // is compatible with the grpc package it is being compiled against.
611 const _ = grpc.SupportPackageIsVersion6
612
613 // GbpAccountsServiceClient is the client API for GbpAccountsService service.
614 //
615 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
616 type GbpAccountsServiceClient interface {
617 // List the GBP accounts for a given merchant.
618 ListGbpAccounts(ctx context.Context, in *ListGbpAccountsRequest, opts ...grpc.CallOption) (*ListGbpAccountsResponse, error)
619 // Link the specified merchant to a GBP account for all countries.
620 LinkGbpAccount(ctx context.Context, in *LinkGbpAccountRequest, opts ...grpc.CallOption) (*LinkGbpAccountResponse, error)
621 }
622
623 type gbpAccountsServiceClient struct {
624 cc grpc.ClientConnInterface
625 }
626
627 func NewGbpAccountsServiceClient(cc grpc.ClientConnInterface) GbpAccountsServiceClient {
628 return &gbpAccountsServiceClient{cc}
629 }
630
631 func (c *gbpAccountsServiceClient) ListGbpAccounts(ctx context.Context, in *ListGbpAccountsRequest, opts ...grpc.CallOption) (*ListGbpAccountsResponse, error) {
632 out := new(ListGbpAccountsResponse)
633 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.GbpAccountsService/ListGbpAccounts", in, out, opts...)
634 if err != nil {
635 return nil, err
636 }
637 return out, nil
638 }
639
640 func (c *gbpAccountsServiceClient) LinkGbpAccount(ctx context.Context, in *LinkGbpAccountRequest, opts ...grpc.CallOption) (*LinkGbpAccountResponse, error) {
641 out := new(LinkGbpAccountResponse)
642 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.GbpAccountsService/LinkGbpAccount", in, out, opts...)
643 if err != nil {
644 return nil, err
645 }
646 return out, nil
647 }
648
649 // GbpAccountsServiceServer is the server API for GbpAccountsService service.
650 type GbpAccountsServiceServer interface {
651 // List the GBP accounts for a given merchant.
652 ListGbpAccounts(context.Context, *ListGbpAccountsRequest) (*ListGbpAccountsResponse, error)
653 // Link the specified merchant to a GBP account for all countries.
654 LinkGbpAccount(context.Context, *LinkGbpAccountRequest) (*LinkGbpAccountResponse, error)
655 }
656
657 // UnimplementedGbpAccountsServiceServer can be embedded to have forward compatible implementations.
658 type UnimplementedGbpAccountsServiceServer struct {
659 }
660
661 func (*UnimplementedGbpAccountsServiceServer) ListGbpAccounts(context.Context, *ListGbpAccountsRequest) (*ListGbpAccountsResponse, error) {
662 return nil, status.Errorf(codes.Unimplemented, "method ListGbpAccounts not implemented")
663 }
664 func (*UnimplementedGbpAccountsServiceServer) LinkGbpAccount(context.Context, *LinkGbpAccountRequest) (*LinkGbpAccountResponse, error) {
665 return nil, status.Errorf(codes.Unimplemented, "method LinkGbpAccount not implemented")
666 }
667
668 func RegisterGbpAccountsServiceServer(s *grpc.Server, srv GbpAccountsServiceServer) {
669 s.RegisterService(&_GbpAccountsService_serviceDesc, srv)
670 }
671
672 func _GbpAccountsService_ListGbpAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
673 in := new(ListGbpAccountsRequest)
674 if err := dec(in); err != nil {
675 return nil, err
676 }
677 if interceptor == nil {
678 return srv.(GbpAccountsServiceServer).ListGbpAccounts(ctx, in)
679 }
680 info := &grpc.UnaryServerInfo{
681 Server: srv,
682 FullMethod: "/google.shopping.merchant.accounts.v1beta.GbpAccountsService/ListGbpAccounts",
683 }
684 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
685 return srv.(GbpAccountsServiceServer).ListGbpAccounts(ctx, req.(*ListGbpAccountsRequest))
686 }
687 return interceptor(ctx, in, info, handler)
688 }
689
690 func _GbpAccountsService_LinkGbpAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
691 in := new(LinkGbpAccountRequest)
692 if err := dec(in); err != nil {
693 return nil, err
694 }
695 if interceptor == nil {
696 return srv.(GbpAccountsServiceServer).LinkGbpAccount(ctx, in)
697 }
698 info := &grpc.UnaryServerInfo{
699 Server: srv,
700 FullMethod: "/google.shopping.merchant.accounts.v1beta.GbpAccountsService/LinkGbpAccount",
701 }
702 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
703 return srv.(GbpAccountsServiceServer).LinkGbpAccount(ctx, req.(*LinkGbpAccountRequest))
704 }
705 return interceptor(ctx, in, info, handler)
706 }
707
708 var _GbpAccountsService_serviceDesc = grpc.ServiceDesc{
709 ServiceName: "google.shopping.merchant.accounts.v1beta.GbpAccountsService",
710 HandlerType: (*GbpAccountsServiceServer)(nil),
711 Methods: []grpc.MethodDesc{
712 {
713 MethodName: "ListGbpAccounts",
714 Handler: _GbpAccountsService_ListGbpAccounts_Handler,
715 },
716 {
717 MethodName: "LinkGbpAccount",
718 Handler: _GbpAccountsService_LinkGbpAccount_Handler,
719 },
720 },
721 Streams: []grpc.StreamDesc{},
722 Metadata: "google/shopping/merchant/accounts/v1beta/gbpaccounts.proto",
723 }