Debian Codegraph @

shopping/merchant/accounts/apiv1beta/accountspb/accounts.pb.go

raw
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/accounts.proto
20
21 package accountspb
22
23 import (
24 context "context"
25 _ "google.golang.org/genproto/googleapis/api/annotations"
26 datetime "google.golang.org/genproto/googleapis/type/datetime"
27 grpc "google.golang.org/grpc"
28 codes "google.golang.org/grpc/codes"
29 status "google.golang.org/grpc/status"
30 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
31 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
32 emptypb "google.golang.org/protobuf/types/known/emptypb"
33 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
34 reflect "reflect"
35 sync "sync"
36 )
37
38 const (
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 // An account.
46 type Account struct {
47 state protoimpl.MessageState
48 sizeCache protoimpl.SizeCache
49 unknownFields protoimpl.UnknownFields
50
51 // Identifier. The resource name of the account.
52 // Format: `accounts/{account}`
53 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
54 // Output only. The ID of the account.
55 AccountId int64 `protobuf:"varint,2,opt,name=account_id,json=accountId,proto3" json:"account_id,omitempty"`
56 // Required. A human-readable name of the account. See
57 // [store name](https://support.google.com/merchants/answer/160556) and
58 // [business name](https://support.google.com/merchants/answer/12159159) for
59 // more information.
60 AccountName string `protobuf:"bytes,3,opt,name=account_name,json=accountName,proto3" json:"account_name,omitempty"`
61 // Whether this account contains adult content.
62 AdultContent bool `protobuf:"varint,4,opt,name=adult_content,json=adultContent,proto3" json:"adult_content,omitempty"`
63 // Output only. Whether this is a test account.
64 TestAccount bool `protobuf:"varint,5,opt,name=test_account,json=testAccount,proto3" json:"test_account,omitempty"`
65 // Required. The time zone of the account.
66 //
67 // On writes, `time_zone` sets both the `reporting_time_zone` and the
68 // `display_time_zone`.
69 //
70 // For reads, `time_zone` always returns the `display_time_zone`. If
71 // `display_time_zone` doesn't exist for your account, `time_zone` is empty.
72 TimeZone *datetime.TimeZone `protobuf:"bytes,6,opt,name=time_zone,json=timeZone,proto3" json:"time_zone,omitempty"`
73 // Required. The account's [BCP-47 language
74 // code](https://tools.ietf.org/html/bcp47), such as `en-US` or `sr-Latn`.
75 LanguageCode string `protobuf:"bytes,7,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
76 }
77
78 func (x *Account) Reset() {
79 *x = Account{}
80 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[0]
81 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
82 ms.StoreMessageInfo(mi)
83 }
84
85 func (x *Account) String() string {
86 return protoimpl.X.MessageStringOf(x)
87 }
88
89 func (*Account) ProtoMessage() {}
90
91 func (x *Account) ProtoReflect() protoreflect.Message {
92 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[0]
93 if x != nil {
94 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
95 if ms.LoadMessageInfo() == nil {
96 ms.StoreMessageInfo(mi)
97 }
98 return ms
99 }
100 return mi.MessageOf(x)
101 }
102
103 // Deprecated: Use Account.ProtoReflect.Descriptor instead.
104 func (*Account) Descriptor() ([]byte, []int) {
105 return file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescGZIP(), []int{0}
106 }
107
108 func (x *Account) GetName() string {
109 if x != nil {
110 return x.Name
111 }
112 return ""
113 }
114
115 func (x *Account) GetAccountId() int64 {
116 if x != nil {
117 return x.AccountId
118 }
119 return 0
120 }
121
122 func (x *Account) GetAccountName() string {
123 if x != nil {
124 return x.AccountName
125 }
126 return ""
127 }
128
129 func (x *Account) GetAdultContent() bool {
130 if x != nil {
131 return x.AdultContent
132 }
133 return false
134 }
135
136 func (x *Account) GetTestAccount() bool {
137 if x != nil {
138 return x.TestAccount
139 }
140 return false
141 }
142
143 func (x *Account) GetTimeZone() *datetime.TimeZone {
144 if x != nil {
145 return x.TimeZone
146 }
147 return nil
148 }
149
150 func (x *Account) GetLanguageCode() string {
151 if x != nil {
152 return x.LanguageCode
153 }
154 return ""
155 }
156
157 // Request message for the `GetAccount` method.
158 type GetAccountRequest struct {
159 state protoimpl.MessageState
160 sizeCache protoimpl.SizeCache
161 unknownFields protoimpl.UnknownFields
162
163 // Required. The name of the account to retrieve.
164 // Format: `accounts/{account}`
165 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
166 }
167
168 func (x *GetAccountRequest) Reset() {
169 *x = GetAccountRequest{}
170 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[1]
171 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
172 ms.StoreMessageInfo(mi)
173 }
174
175 func (x *GetAccountRequest) String() string {
176 return protoimpl.X.MessageStringOf(x)
177 }
178
179 func (*GetAccountRequest) ProtoMessage() {}
180
181 func (x *GetAccountRequest) ProtoReflect() protoreflect.Message {
182 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[1]
183 if x != nil {
184 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
185 if ms.LoadMessageInfo() == nil {
186 ms.StoreMessageInfo(mi)
187 }
188 return ms
189 }
190 return mi.MessageOf(x)
191 }
192
193 // Deprecated: Use GetAccountRequest.ProtoReflect.Descriptor instead.
194 func (*GetAccountRequest) Descriptor() ([]byte, []int) {
195 return file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescGZIP(), []int{1}
196 }
197
198 func (x *GetAccountRequest) GetName() string {
199 if x != nil {
200 return x.Name
201 }
202 return ""
203 }
204
205 // Request message for the `CreateAndConfigureAccount` method.
206 type CreateAndConfigureAccountRequest struct {
207 state protoimpl.MessageState
208 sizeCache protoimpl.SizeCache
209 unknownFields protoimpl.UnknownFields
210
211 // Required. The account to be created.
212 Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
213 // Optional. Users to be added to the account.
214 Users []*CreateUserRequest `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"`
215 // Optional. The Terms of Service (ToS) to be accepted immediately upon
216 // account creation.
217 AcceptTermsOfService *CreateAndConfigureAccountRequest_AcceptTermsOfService `protobuf:"bytes,3,opt,name=accept_terms_of_service,json=acceptTermsOfService,proto3,oneof" json:"accept_terms_of_service,omitempty"`
218 // Required. An account service between the account to be created and the
219 // provider account is initialized as part of the creation. At least one such
220 // service needs to be provided. Currently exactly one of these needs to be
221 // `account_aggregation`, which means you can only create sub accounts, not
222 // standalone account through this method. Additional `account_management` or
223 // `product_management` services may be provided.
224 Service []*CreateAndConfigureAccountRequest_AddAccountService `protobuf:"bytes,4,rep,name=service,proto3" json:"service,omitempty"`
225 }
226
227 func (x *CreateAndConfigureAccountRequest) Reset() {
228 *x = CreateAndConfigureAccountRequest{}
229 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[2]
230 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
231 ms.StoreMessageInfo(mi)
232 }
233
234 func (x *CreateAndConfigureAccountRequest) String() string {
235 return protoimpl.X.MessageStringOf(x)
236 }
237
238 func (*CreateAndConfigureAccountRequest) ProtoMessage() {}
239
240 func (x *CreateAndConfigureAccountRequest) ProtoReflect() protoreflect.Message {
241 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[2]
242 if x != nil {
243 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
244 if ms.LoadMessageInfo() == nil {
245 ms.StoreMessageInfo(mi)
246 }
247 return ms
248 }
249 return mi.MessageOf(x)
250 }
251
252 // Deprecated: Use CreateAndConfigureAccountRequest.ProtoReflect.Descriptor instead.
253 func (*CreateAndConfigureAccountRequest) Descriptor() ([]byte, []int) {
254 return file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescGZIP(), []int{2}
255 }
256
257 func (x *CreateAndConfigureAccountRequest) GetAccount() *Account {
258 if x != nil {
259 return x.Account
260 }
261 return nil
262 }
263
264 func (x *CreateAndConfigureAccountRequest) GetUsers() []*CreateUserRequest {
265 if x != nil {
266 return x.Users
267 }
268 return nil
269 }
270
271 func (x *CreateAndConfigureAccountRequest) GetAcceptTermsOfService() *CreateAndConfigureAccountRequest_AcceptTermsOfService {
272 if x != nil {
273 return x.AcceptTermsOfService
274 }
275 return nil
276 }
277
278 func (x *CreateAndConfigureAccountRequest) GetService() []*CreateAndConfigureAccountRequest_AddAccountService {
279 if x != nil {
280 return x.Service
281 }
282 return nil
283 }
284
285 // Request message for the `DeleteAccount` method.
286 type DeleteAccountRequest struct {
287 state protoimpl.MessageState
288 sizeCache protoimpl.SizeCache
289 unknownFields protoimpl.UnknownFields
290
291 // Required. The name of the account to delete.
292 // Format: `accounts/{account}`
293 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
294 // Optional. If set to `true`, the account is deleted even if it provides
295 // services to other accounts or has processed offers.
296 Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
297 }
298
299 func (x *DeleteAccountRequest) Reset() {
300 *x = DeleteAccountRequest{}
301 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[3]
302 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
303 ms.StoreMessageInfo(mi)
304 }
305
306 func (x *DeleteAccountRequest) String() string {
307 return protoimpl.X.MessageStringOf(x)
308 }
309
310 func (*DeleteAccountRequest) ProtoMessage() {}
311
312 func (x *DeleteAccountRequest) ProtoReflect() protoreflect.Message {
313 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[3]
314 if x != nil {
315 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
316 if ms.LoadMessageInfo() == nil {
317 ms.StoreMessageInfo(mi)
318 }
319 return ms
320 }
321 return mi.MessageOf(x)
322 }
323
324 // Deprecated: Use DeleteAccountRequest.ProtoReflect.Descriptor instead.
325 func (*DeleteAccountRequest) Descriptor() ([]byte, []int) {
326 return file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescGZIP(), []int{3}
327 }
328
329 func (x *DeleteAccountRequest) GetName() string {
330 if x != nil {
331 return x.Name
332 }
333 return ""
334 }
335
336 func (x *DeleteAccountRequest) GetForce() bool {
337 if x != nil {
338 return x.Force
339 }
340 return false
341 }
342
343 // Request message for the `UpdateAccount` method.
344 type UpdateAccountRequest struct {
345 state protoimpl.MessageState
346 sizeCache protoimpl.SizeCache
347 unknownFields protoimpl.UnknownFields
348
349 // Required. The new version of the account.
350 Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
351 // Required. List of fields being updated.
352 UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
353 }
354
355 func (x *UpdateAccountRequest) Reset() {
356 *x = UpdateAccountRequest{}
357 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[4]
358 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
359 ms.StoreMessageInfo(mi)
360 }
361
362 func (x *UpdateAccountRequest) String() string {
363 return protoimpl.X.MessageStringOf(x)
364 }
365
366 func (*UpdateAccountRequest) ProtoMessage() {}
367
368 func (x *UpdateAccountRequest) ProtoReflect() protoreflect.Message {
369 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[4]
370 if x != nil {
371 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
372 if ms.LoadMessageInfo() == nil {
373 ms.StoreMessageInfo(mi)
374 }
375 return ms
376 }
377 return mi.MessageOf(x)
378 }
379
380 // Deprecated: Use UpdateAccountRequest.ProtoReflect.Descriptor instead.
381 func (*UpdateAccountRequest) Descriptor() ([]byte, []int) {
382 return file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescGZIP(), []int{4}
383 }
384
385 func (x *UpdateAccountRequest) GetAccount() *Account {
386 if x != nil {
387 return x.Account
388 }
389 return nil
390 }
391
392 func (x *UpdateAccountRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
393 if x != nil {
394 return x.UpdateMask
395 }
396 return nil
397 }
398
399 // Request message for the `ListAccounts` method.
400 type ListAccountsRequest struct {
401 state protoimpl.MessageState
402 sizeCache protoimpl.SizeCache
403 unknownFields protoimpl.UnknownFields
404
405 // Optional. The maximum number of accounts to return. The service may return
406 // fewer than this value. If unspecified, at most 250 accounts are returned.
407 // The maximum value is 500; values above 500 are coerced to 500.
408 PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
409 // Optional. A page token, received from a previous `ListAccounts` call.
410 // Provide this to retrieve the subsequent page.
411 //
412 // When paginating, all other parameters provided to `ListAccounts` must match
413 // the call that provided the page token.
414 PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
415 // Optional. Returns only accounts that match the
416 // [filter](/merchant/api/guides/accounts/filter).
417 // For more details, see the
418 // [filter syntax reference](/merchant/api/guides/accounts/filter-syntax).
419 Filter string `protobuf:"bytes,3,opt,name=filter,proto3" json:"filter,omitempty"`
420 }
421
422 func (x *ListAccountsRequest) Reset() {
423 *x = ListAccountsRequest{}
424 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[5]
425 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
426 ms.StoreMessageInfo(mi)
427 }
428
429 func (x *ListAccountsRequest) String() string {
430 return protoimpl.X.MessageStringOf(x)
431 }
432
433 func (*ListAccountsRequest) ProtoMessage() {}
434
435 func (x *ListAccountsRequest) ProtoReflect() protoreflect.Message {
436 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[5]
437 if x != nil {
438 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
439 if ms.LoadMessageInfo() == nil {
440 ms.StoreMessageInfo(mi)
441 }
442 return ms
443 }
444 return mi.MessageOf(x)
445 }
446
447 // Deprecated: Use ListAccountsRequest.ProtoReflect.Descriptor instead.
448 func (*ListAccountsRequest) Descriptor() ([]byte, []int) {
449 return file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescGZIP(), []int{5}
450 }
451
452 func (x *ListAccountsRequest) GetPageSize() int32 {
453 if x != nil {
454 return x.PageSize
455 }
456 return 0
457 }
458
459 func (x *ListAccountsRequest) GetPageToken() string {
460 if x != nil {
461 return x.PageToken
462 }
463 return ""
464 }
465
466 func (x *ListAccountsRequest) GetFilter() string {
467 if x != nil {
468 return x.Filter
469 }
470 return ""
471 }
472
473 // Response message for the `ListAccounts` method.
474 type ListAccountsResponse struct {
475 state protoimpl.MessageState
476 sizeCache protoimpl.SizeCache
477 unknownFields protoimpl.UnknownFields
478
479 // The accounts matching the `ListAccountsRequest`.
480 Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
481 // A token, which can be sent as `page_token` to retrieve the next page.
482 // If this field is omitted, there are no subsequent pages.
483 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
484 }
485
486 func (x *ListAccountsResponse) Reset() {
487 *x = ListAccountsResponse{}
488 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[6]
489 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
490 ms.StoreMessageInfo(mi)
491 }
492
493 func (x *ListAccountsResponse) String() string {
494 return protoimpl.X.MessageStringOf(x)
495 }
496
497 func (*ListAccountsResponse) ProtoMessage() {}
498
499 func (x *ListAccountsResponse) ProtoReflect() protoreflect.Message {
500 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[6]
501 if x != nil {
502 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
503 if ms.LoadMessageInfo() == nil {
504 ms.StoreMessageInfo(mi)
505 }
506 return ms
507 }
508 return mi.MessageOf(x)
509 }
510
511 // Deprecated: Use ListAccountsResponse.ProtoReflect.Descriptor instead.
512 func (*ListAccountsResponse) Descriptor() ([]byte, []int) {
513 return file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescGZIP(), []int{6}
514 }
515
516 func (x *ListAccountsResponse) GetAccounts() []*Account {
517 if x != nil {
518 return x.Accounts
519 }
520 return nil
521 }
522
523 func (x *ListAccountsResponse) GetNextPageToken() string {
524 if x != nil {
525 return x.NextPageToken
526 }
527 return ""
528 }
529
530 // Request message for the `ListSubAccounts` method.
531 type ListSubAccountsRequest struct {
532 state protoimpl.MessageState
533 sizeCache protoimpl.SizeCache
534 unknownFields protoimpl.UnknownFields
535
536 // Required. The parent account.
537 // Format: `accounts/{account}`
538 Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
539 // Optional. The maximum number of accounts to return. The service may return
540 // fewer than this value. If unspecified, at most 250 accounts are returned.
541 // The maximum value is 500; values above 500 are coerced to 500.
542 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
543 // Optional. A page token, received from a previous `ListAccounts` call.
544 // Provide this to retrieve the subsequent page.
545 //
546 // When paginating, all other parameters provided to `ListAccounts` must match
547 // the call that provided the page token.
548 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
549 }
550
551 func (x *ListSubAccountsRequest) Reset() {
552 *x = ListSubAccountsRequest{}
553 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[7]
554 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
555 ms.StoreMessageInfo(mi)
556 }
557
558 func (x *ListSubAccountsRequest) String() string {
559 return protoimpl.X.MessageStringOf(x)
560 }
561
562 func (*ListSubAccountsRequest) ProtoMessage() {}
563
564 func (x *ListSubAccountsRequest) ProtoReflect() protoreflect.Message {
565 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[7]
566 if x != nil {
567 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
568 if ms.LoadMessageInfo() == nil {
569 ms.StoreMessageInfo(mi)
570 }
571 return ms
572 }
573 return mi.MessageOf(x)
574 }
575
576 // Deprecated: Use ListSubAccountsRequest.ProtoReflect.Descriptor instead.
577 func (*ListSubAccountsRequest) Descriptor() ([]byte, []int) {
578 return file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescGZIP(), []int{7}
579 }
580
581 func (x *ListSubAccountsRequest) GetProvider() string {
582 if x != nil {
583 return x.Provider
584 }
585 return ""
586 }
587
588 func (x *ListSubAccountsRequest) GetPageSize() int32 {
589 if x != nil {
590 return x.PageSize
591 }
592 return 0
593 }
594
595 func (x *ListSubAccountsRequest) GetPageToken() string {
596 if x != nil {
597 return x.PageToken
598 }
599 return ""
600 }
601
602 // Response message for the `ListSubAccounts` method.
603 type ListSubAccountsResponse struct {
604 state protoimpl.MessageState
605 sizeCache protoimpl.SizeCache
606 unknownFields protoimpl.UnknownFields
607
608 // The accounts for which the given parent account is an aggregator.
609 Accounts []*Account `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
610 // A token, which can be sent as `page_token` to retrieve the next page.
611 // If this field is omitted, there are no subsequent pages.
612 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
613 }
614
615 func (x *ListSubAccountsResponse) Reset() {
616 *x = ListSubAccountsResponse{}
617 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[8]
618 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
619 ms.StoreMessageInfo(mi)
620 }
621
622 func (x *ListSubAccountsResponse) String() string {
623 return protoimpl.X.MessageStringOf(x)
624 }
625
626 func (*ListSubAccountsResponse) ProtoMessage() {}
627
628 func (x *ListSubAccountsResponse) ProtoReflect() protoreflect.Message {
629 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[8]
630 if x != nil {
631 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
632 if ms.LoadMessageInfo() == nil {
633 ms.StoreMessageInfo(mi)
634 }
635 return ms
636 }
637 return mi.MessageOf(x)
638 }
639
640 // Deprecated: Use ListSubAccountsResponse.ProtoReflect.Descriptor instead.
641 func (*ListSubAccountsResponse) Descriptor() ([]byte, []int) {
642 return file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescGZIP(), []int{8}
643 }
644
645 func (x *ListSubAccountsResponse) GetAccounts() []*Account {
646 if x != nil {
647 return x.Accounts
648 }
649 return nil
650 }
651
652 func (x *ListSubAccountsResponse) GetNextPageToken() string {
653 if x != nil {
654 return x.NextPageToken
655 }
656 return ""
657 }
658
659 // Reference to a Terms of Service resource.
660 type CreateAndConfigureAccountRequest_AcceptTermsOfService struct {
661 state protoimpl.MessageState
662 sizeCache protoimpl.SizeCache
663 unknownFields protoimpl.UnknownFields
664
665 // Required. The resource name of the terms of service version in the format
666 // `termsOfService/{version}`. To retrieve the latest version, use the
667 // [termsOfService.retrieveLatest](/merchant/api/reference/rest/accounts_v1beta/termsOfService/retrieveLatest)
668 // method.
669 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
670 // Required. Region code as defined by [CLDR](https://cldr.unicode.org/).
671 // This is either a country when the ToS applies specifically to that
672 // country or `001` when it applies globally.
673 RegionCode string `protobuf:"bytes,3,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
674 }
675
676 func (x *CreateAndConfigureAccountRequest_AcceptTermsOfService) Reset() {
677 *x = CreateAndConfigureAccountRequest_AcceptTermsOfService{}
678 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[9]
679 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
680 ms.StoreMessageInfo(mi)
681 }
682
683 func (x *CreateAndConfigureAccountRequest_AcceptTermsOfService) String() string {
684 return protoimpl.X.MessageStringOf(x)
685 }
686
687 func (*CreateAndConfigureAccountRequest_AcceptTermsOfService) ProtoMessage() {}
688
689 func (x *CreateAndConfigureAccountRequest_AcceptTermsOfService) ProtoReflect() protoreflect.Message {
690 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[9]
691 if x != nil {
692 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
693 if ms.LoadMessageInfo() == nil {
694 ms.StoreMessageInfo(mi)
695 }
696 return ms
697 }
698 return mi.MessageOf(x)
699 }
700
701 // Deprecated: Use CreateAndConfigureAccountRequest_AcceptTermsOfService.ProtoReflect.Descriptor instead.
702 func (*CreateAndConfigureAccountRequest_AcceptTermsOfService) Descriptor() ([]byte, []int) {
703 return file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescGZIP(), []int{2, 0}
704 }
705
706 func (x *CreateAndConfigureAccountRequest_AcceptTermsOfService) GetName() string {
707 if x != nil {
708 return x.Name
709 }
710 return ""
711 }
712
713 func (x *CreateAndConfigureAccountRequest_AcceptTermsOfService) GetRegionCode() string {
714 if x != nil {
715 return x.RegionCode
716 }
717 return ""
718 }
719
720 // Additional instructions to add account services during creation of the
721 // account.
722 type CreateAndConfigureAccountRequest_AddAccountService struct {
723 state protoimpl.MessageState
724 sizeCache protoimpl.SizeCache
725 unknownFields protoimpl.UnknownFields
726
727 // The service type to be added.
728 //
729 // Types that are assignable to ServiceType:
730 //
731 // *CreateAndConfigureAccountRequest_AddAccountService_AccountAggregation
732 ServiceType isCreateAndConfigureAccountRequest_AddAccountService_ServiceType `protobuf_oneof:"service_type"`
733 // Optional. The provider of the service.
734 // Format: `accounts/{account}`
735 Provider *string `protobuf:"bytes,1,opt,name=provider,proto3,oneof" json:"provider,omitempty"`
736 }
737
738 func (x *CreateAndConfigureAccountRequest_AddAccountService) Reset() {
739 *x = CreateAndConfigureAccountRequest_AddAccountService{}
740 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[10]
741 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
742 ms.StoreMessageInfo(mi)
743 }
744
745 func (x *CreateAndConfigureAccountRequest_AddAccountService) String() string {
746 return protoimpl.X.MessageStringOf(x)
747 }
748
749 func (*CreateAndConfigureAccountRequest_AddAccountService) ProtoMessage() {}
750
751 func (x *CreateAndConfigureAccountRequest_AddAccountService) ProtoReflect() protoreflect.Message {
752 mi := &file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[10]
753 if x != nil {
754 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
755 if ms.LoadMessageInfo() == nil {
756 ms.StoreMessageInfo(mi)
757 }
758 return ms
759 }
760 return mi.MessageOf(x)
761 }
762
763 // Deprecated: Use CreateAndConfigureAccountRequest_AddAccountService.ProtoReflect.Descriptor instead.
764 func (*CreateAndConfigureAccountRequest_AddAccountService) Descriptor() ([]byte, []int) {
765 return file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescGZIP(), []int{2, 1}
766 }
767
768 func (m *CreateAndConfigureAccountRequest_AddAccountService) GetServiceType() isCreateAndConfigureAccountRequest_AddAccountService_ServiceType {
769 if m != nil {
770 return m.ServiceType
771 }
772 return nil
773 }
774
775 func (x *CreateAndConfigureAccountRequest_AddAccountService) GetAccountAggregation() *AccountAggregation {
776 if x, ok := x.GetServiceType().(*CreateAndConfigureAccountRequest_AddAccountService_AccountAggregation); ok {
777 return x.AccountAggregation
778 }
779 return nil
780 }
781
782 func (x *CreateAndConfigureAccountRequest_AddAccountService) GetProvider() string {
783 if x != nil && x.Provider != nil {
784 return *x.Provider
785 }
786 return ""
787 }
788
789 type isCreateAndConfigureAccountRequest_AddAccountService_ServiceType interface {
790 isCreateAndConfigureAccountRequest_AddAccountService_ServiceType()
791 }
792
793 type CreateAndConfigureAccountRequest_AddAccountService_AccountAggregation struct {
794 // The provider is an
795 // [aggregator](https://support.google.com/merchants/answer/188487) for
796 // the account. Payload for service type Account Aggregation.
797 AccountAggregation *AccountAggregation `protobuf:"bytes,103,opt,name=account_aggregation,json=accountAggregation,proto3,oneof"`
798 }
799
800 func (*CreateAndConfigureAccountRequest_AddAccountService_AccountAggregation) isCreateAndConfigureAccountRequest_AddAccountService_ServiceType() {
801 }
802
803 var File_google_shopping_merchant_accounts_v1beta_accounts_proto protoreflect.FileDescriptor
804
805 var file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDesc = []byte{
806 0x0a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
807 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
808 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
809 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
810 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68,
811 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62,
812 0x65, 0x74, 0x61, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
813 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74,
814 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c,
815 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
816 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68,
817 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f,
818 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
819 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70,
820 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72,
821 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
822 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e,
823 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68,
824 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f,
825 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f,
826 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x2e,
827 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68,
828 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f,
829 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f,
830 0x75, 0x73, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67, 0x6f, 0x6f, 0x67,
831 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65,
832 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdb, 0x02, 0x0a, 0x07, 0x41, 0x63, 0x63, 0x6f, 0x75,
833 0x6e, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
834 0x42, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x61,
835 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x42,
836 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12,
837 0x26, 0x0a, 0x0c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
838 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x61, 0x63, 0x63, 0x6f,
839 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x61, 0x64, 0x75, 0x6c, 0x74,
840 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c,
841 0x61, 0x64, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x26, 0x0a, 0x0c,
842 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01,
843 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x74, 0x65, 0x73, 0x74, 0x41, 0x63, 0x63,
844 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x37, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x7a, 0x6f, 0x6e,
845 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
846 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x5a, 0x6f, 0x6e, 0x65, 0x42, 0x03,
847 0xe0, 0x41, 0x02, 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x5a, 0x6f, 0x6e, 0x65, 0x12, 0x28, 0x0a,
848 0x0d, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x07,
849 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x6c, 0x61, 0x6e, 0x67, 0x75,
850 0x61, 0x67, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x3a, 0x3b, 0xea, 0x41, 0x38, 0x0a, 0x22, 0x6d, 0x65,
851 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
852 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
853 0x12, 0x12, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f,
854 0x75, 0x6e, 0x74, 0x7d, 0x22, 0x53, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75,
855 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
856 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a,
857 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f,
858 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f,
859 0x75, 0x6e, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xff, 0x06, 0x0a, 0x20, 0x43, 0x72,
860 0x65, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65,
861 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50,
862 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
863 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
864 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
865 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75,
866 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
867 0x12, 0x56, 0x0a, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
868 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
869 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
870 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
871 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x42, 0x03, 0xe0, 0x41,
872 0x01, 0x52, 0x05, 0x75, 0x73, 0x65, 0x72, 0x73, 0x12, 0xa0, 0x01, 0x0a, 0x17, 0x61, 0x63, 0x63,
873 0x65, 0x70, 0x74, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x73, 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x65, 0x72,
874 0x76, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x5f, 0x2e, 0x67, 0x6f, 0x6f,
875 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72,
876 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76,
877 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x43,
878 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52,
879 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x54, 0x65, 0x72,
880 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01,
881 0x48, 0x00, 0x52, 0x14, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f,
882 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x88, 0x01, 0x01, 0x12, 0x7b, 0x0a, 0x07, 0x73,
883 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x5c, 0x2e, 0x67,
884 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d,
885 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
886 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6e,
887 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
888 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x64, 0x64, 0x41, 0x63, 0x63, 0x6f,
889 0x75, 0x6e, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
890 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x83, 0x01, 0x0a, 0x14, 0x41, 0x63, 0x63,
891 0x65, 0x70, 0x74, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63,
892 0x65, 0x12, 0x45, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
893 0x31, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x2b, 0x0a, 0x29, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e,
894 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
895 0x63, 0x6f, 0x6d, 0x2f, 0x54, 0x65, 0x72, 0x6d, 0x73, 0x4f, 0x66, 0x53, 0x65, 0x72, 0x76, 0x69,
896 0x63, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0b, 0x72, 0x65, 0x67, 0x69,
897 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
898 0x41, 0x02, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x1a, 0xee,
899 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x53, 0x65, 0x72,
900 0x76, 0x69, 0x63, 0x65, 0x12, 0x6f, 0x0a, 0x13, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f,
901 0x61, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x67, 0x20, 0x01, 0x28,
902 0x0b, 0x32, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70,
903 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63,
904 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x63, 0x63,
905 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x48,
906 0x00, 0x52, 0x12, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x41, 0x67, 0x67, 0x72, 0x65, 0x67,
907 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65,
908 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x01, 0xfa, 0x41, 0x24, 0x0a,
909 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f,
910 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f,
911 0x75, 0x6e, 0x74, 0x48, 0x01, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x88,
912 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x79,
913 0x70, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x42,
914 0x1a, 0x0a, 0x18, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x70, 0x74, 0x5f, 0x74, 0x65, 0x72, 0x6d, 0x73,
915 0x5f, 0x6f, 0x66, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0x71, 0x0a, 0x14, 0x44,
916 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75,
917 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
918 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68,
919 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
920 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x04, 0x6e,
921 0x61, 0x6d, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01,
922 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x66, 0x6f, 0x72, 0x63, 0x65, 0x22, 0xaa,
923 0x01, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
924 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x50, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75,
925 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
926 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68,
927 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62,
928 0x65, 0x74, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x02,
929 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64,
930 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
931 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
932 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
933 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x22, 0x78, 0x0a, 0x13, 0x4c,
934 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
935 0x73, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,
936 0x01, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65,
937 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b,
938 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70,
939 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74,
940 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06, 0x66,
941 0x69, 0x6c, 0x74, 0x65, 0x72, 0x22, 0x8d, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63,
942 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d,
943 0x0a, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
944 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69,
945 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f,
946 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f,
947 0x75, 0x6e, 0x74, 0x52, 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a,
948 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e,
949 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65,
950 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0xa6, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75,
951 0x62, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
952 0x12, 0x46, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
953 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63,
954 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
955 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x08,
956 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65,
957 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01,
958 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61,
959 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
960 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x90,
961 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e,
962 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x08, 0x61, 0x63,
963 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67,
964 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d,
965 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
966 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52,
967 0x08, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78,
968 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01,
969 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,
970 0x6e, 0x32, 0xee, 0x09, 0x0a, 0x0f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x53, 0x65,
971 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xaf, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x41, 0x63, 0x63,
972 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68,
973 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e,
974 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e,
975 0x47, 0x65, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
976 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70,
977 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63,
978 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x63, 0x63,
979 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x31, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4,
980 0x93, 0x02, 0x24, 0x12, 0x22, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76,
981 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f,
982 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xd3, 0x01, 0x0a, 0x19, 0x43, 0x72, 0x65, 0x61,
983 0x74, 0x65, 0x41, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x41, 0x63,
984 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x4a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73,
985 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
986 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61,
987 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
988 0x75, 0x72, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
989 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70,
990 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63,
991 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x63, 0x63,
992 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x3a, 0x01, 0x2a, 0x22,
993 0x2c, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74,
994 0x61, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x3a, 0x63, 0x72, 0x65, 0x61, 0x74,
995 0x65, 0x41, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x12, 0x9a, 0x01,
996 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12,
997 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
998 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
999 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
1000 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
1001 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
1002 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x31, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,
1003 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x24, 0x2a, 0x22, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
1004 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61,
1005 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xd5, 0x01, 0x0a, 0x0d, 0x55,
1006 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3e, 0x2e, 0x67,
1007 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d,
1008 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
1009 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x63,
1010 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67,
1011 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d,
1012 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
1013 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22,
1014 0x51, 0xda, 0x41, 0x13, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2c, 0x75, 0x70, 0x64, 0x61,
1015 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x35, 0x3a, 0x07, 0x61,
1016 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x2a, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
1017 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
1018 0x74, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f,
1019 0x2a, 0x7d, 0x12, 0xb0, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75,
1020 0x6e, 0x74, 0x73, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f,
1021 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61,
1022 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c,
1023 0x69, 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
1024 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70,
1025 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63,
1026 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69,
1027 0x73, 0x74, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
1028 0x73, 0x65, 0x22, 0x21, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1b, 0x12, 0x19, 0x2f, 0x61, 0x63, 0x63,
1029 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x61, 0x63, 0x63,
1030 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0xe1, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75,
1031 0x62, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x40, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
1032 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63,
1033 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31,
1034 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x41, 0x63, 0x63, 0x6f,
1035 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x41, 0x2e, 0x67, 0x6f,
1036 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65,
1037 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e,
1038 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x62, 0x41, 0x63,
1039 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x49,
1040 0xda, 0x41, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x82, 0xd3, 0xe4, 0x93, 0x02,
1041 0x38, 0x12, 0x36, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62,
1042 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x3d, 0x61, 0x63,
1043 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x6c, 0x69, 0x73, 0x74, 0x53, 0x75,
1044 0x62, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x1a, 0x47, 0xca, 0x41, 0x1a, 0x6d, 0x65,
1045 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
1046 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73,
1047 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69,
1048 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65,
1049 0x6e, 0x74, 0x42, 0x8f, 0x01, 0x0a, 0x2c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
1050 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68,
1051 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62,
1052 0x65, 0x74, 0x61, 0x42, 0x0d, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f,
1053 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
1054 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69,
1055 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f,
1056 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x61,
1057 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x3b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
1058 0x74, 0x73, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
1059 }
1060
1061 var (
1062 file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescOnce sync.Once
1063 file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescData = file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDesc
1064 )
1065
1066 func file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescGZIP() []byte {
1067 file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescOnce.Do(func() {
1068 file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescData)
1069 })
1070 return file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDescData
1071 }
1072
1073 var file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
1074 var file_google_shopping_merchant_accounts_v1beta_accounts_proto_goTypes = []any{
1075 (*Account)(nil), // 0: google.shopping.merchant.accounts.v1beta.Account
1076 (*GetAccountRequest)(nil), // 1: google.shopping.merchant.accounts.v1beta.GetAccountRequest
1077 (*CreateAndConfigureAccountRequest)(nil), // 2: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
1078 (*DeleteAccountRequest)(nil), // 3: google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
1079 (*UpdateAccountRequest)(nil), // 4: google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
1080 (*ListAccountsRequest)(nil), // 5: google.shopping.merchant.accounts.v1beta.ListAccountsRequest
1081 (*ListAccountsResponse)(nil), // 6: google.shopping.merchant.accounts.v1beta.ListAccountsResponse
1082 (*ListSubAccountsRequest)(nil), // 7: google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
1083 (*ListSubAccountsResponse)(nil), // 8: google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
1084 (*CreateAndConfigureAccountRequest_AcceptTermsOfService)(nil), // 9: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
1085 (*CreateAndConfigureAccountRequest_AddAccountService)(nil), // 10: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
1086 (*datetime.TimeZone)(nil), // 11: google.type.TimeZone
1087 (*CreateUserRequest)(nil), // 12: google.shopping.merchant.accounts.v1beta.CreateUserRequest
1088 (*fieldmaskpb.FieldMask)(nil), // 13: google.protobuf.FieldMask
1089 (*AccountAggregation)(nil), // 14: google.shopping.merchant.accounts.v1beta.AccountAggregation
1090 (*emptypb.Empty)(nil), // 15: google.protobuf.Empty
1091 }
1092 var file_google_shopping_merchant_accounts_v1beta_accounts_proto_depIdxs = []int32{
1093 11, // 0: google.shopping.merchant.accounts.v1beta.Account.time_zone:type_name -> google.type.TimeZone
1094 0, // 1: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.account:type_name -> google.shopping.merchant.accounts.v1beta.Account
1095 12, // 2: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.users:type_name -> google.shopping.merchant.accounts.v1beta.CreateUserRequest
1096 9, // 3: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.accept_terms_of_service:type_name -> google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AcceptTermsOfService
1097 10, // 4: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.service:type_name -> google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService
1098 0, // 5: google.shopping.merchant.accounts.v1beta.UpdateAccountRequest.account:type_name -> google.shopping.merchant.accounts.v1beta.Account
1099 13, // 6: google.shopping.merchant.accounts.v1beta.UpdateAccountRequest.update_mask:type_name -> google.protobuf.FieldMask
1100 0, // 7: google.shopping.merchant.accounts.v1beta.ListAccountsResponse.accounts:type_name -> google.shopping.merchant.accounts.v1beta.Account
1101 0, // 8: google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse.accounts:type_name -> google.shopping.merchant.accounts.v1beta.Account
1102 14, // 9: google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest.AddAccountService.account_aggregation:type_name -> google.shopping.merchant.accounts.v1beta.AccountAggregation
1103 1, // 10: google.shopping.merchant.accounts.v1beta.AccountsService.GetAccount:input_type -> google.shopping.merchant.accounts.v1beta.GetAccountRequest
1104 2, // 11: google.shopping.merchant.accounts.v1beta.AccountsService.CreateAndConfigureAccount:input_type -> google.shopping.merchant.accounts.v1beta.CreateAndConfigureAccountRequest
1105 3, // 12: google.shopping.merchant.accounts.v1beta.AccountsService.DeleteAccount:input_type -> google.shopping.merchant.accounts.v1beta.DeleteAccountRequest
1106 4, // 13: google.shopping.merchant.accounts.v1beta.AccountsService.UpdateAccount:input_type -> google.shopping.merchant.accounts.v1beta.UpdateAccountRequest
1107 5, // 14: google.shopping.merchant.accounts.v1beta.AccountsService.ListAccounts:input_type -> google.shopping.merchant.accounts.v1beta.ListAccountsRequest
1108 7, // 15: google.shopping.merchant.accounts.v1beta.AccountsService.ListSubAccounts:input_type -> google.shopping.merchant.accounts.v1beta.ListSubAccountsRequest
1109 0, // 16: google.shopping.merchant.accounts.v1beta.AccountsService.GetAccount:output_type -> google.shopping.merchant.accounts.v1beta.Account
1110 0, // 17: google.shopping.merchant.accounts.v1beta.AccountsService.CreateAndConfigureAccount:output_type -> google.shopping.merchant.accounts.v1beta.Account
1111 15, // 18: google.shopping.merchant.accounts.v1beta.AccountsService.DeleteAccount:output_type -> google.protobuf.Empty
1112 0, // 19: google.shopping.merchant.accounts.v1beta.AccountsService.UpdateAccount:output_type -> google.shopping.merchant.accounts.v1beta.Account
1113 6, // 20: google.shopping.merchant.accounts.v1beta.AccountsService.ListAccounts:output_type -> google.shopping.merchant.accounts.v1beta.ListAccountsResponse
1114 8, // 21: google.shopping.merchant.accounts.v1beta.AccountsService.ListSubAccounts:output_type -> google.shopping.merchant.accounts.v1beta.ListSubAccountsResponse
1115 16, // [16:22] is the sub-list for method output_type
1116 10, // [10:16] is the sub-list for method input_type
1117 10, // [10:10] is the sub-list for extension type_name
1118 10, // [10:10] is the sub-list for extension extendee
1119 0, // [0:10] is the sub-list for field type_name
1120 }
1121
1122 func init() { file_google_shopping_merchant_accounts_v1beta_accounts_proto_init() }
1123 func file_google_shopping_merchant_accounts_v1beta_accounts_proto_init() {
1124 if File_google_shopping_merchant_accounts_v1beta_accounts_proto != nil {
1125 return
1126 }
1127 file_google_shopping_merchant_accounts_v1beta_accountservices_proto_init()
1128 file_google_shopping_merchant_accounts_v1beta_user_proto_init()
1129 file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[2].OneofWrappers = []any{}
1130 file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes[10].OneofWrappers = []any{
1131 (*CreateAndConfigureAccountRequest_AddAccountService_AccountAggregation)(nil),
1132 }
1133 type x struct{}
1134 out := protoimpl.TypeBuilder{
1135 File: protoimpl.DescBuilder{
1136 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
1137 RawDescriptor: file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDesc,
1138 NumEnums: 0,
1139 NumMessages: 11,
1140 NumExtensions: 0,
1141 NumServices: 1,
1142 },
1143 GoTypes: file_google_shopping_merchant_accounts_v1beta_accounts_proto_goTypes,
1144 DependencyIndexes: file_google_shopping_merchant_accounts_v1beta_accounts_proto_depIdxs,
1145 MessageInfos: file_google_shopping_merchant_accounts_v1beta_accounts_proto_msgTypes,
1146 }.Build()
1147 File_google_shopping_merchant_accounts_v1beta_accounts_proto = out.File
1148 file_google_shopping_merchant_accounts_v1beta_accounts_proto_rawDesc = nil
1149 file_google_shopping_merchant_accounts_v1beta_accounts_proto_goTypes = nil
1150 file_google_shopping_merchant_accounts_v1beta_accounts_proto_depIdxs = nil
1151 }
1152
1153 // Reference imports to suppress errors if they are not otherwise used.
1154 var _ context.Context
1155 var _ grpc.ClientConnInterface
1156
1157 // This is a compile-time assertion to ensure that this generated file
1158 // is compatible with the grpc package it is being compiled against.
1159 const _ = grpc.SupportPackageIsVersion6
1160
1161 // AccountsServiceClient is the client API for AccountsService service.
1162 //
1163 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1164 type AccountsServiceClient interface {
1165 // Retrieves an account from your Merchant Center account.
1166 // After inserting, updating, or deleting an account, it may take several
1167 // minutes before changes take effect.
1168 GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*Account, error)
1169 // Creates a standalone Merchant Center account with additional configuration.
1170 // Adds the user that makes the request as an admin for the new account.
1171 CreateAndConfigureAccount(ctx context.Context, in *CreateAndConfigureAccountRequest, opts ...grpc.CallOption) (*Account, error)
1172 // Deletes the specified account regardless of its type: standalone, MCA or
1173 // sub-account. Deleting an MCA leads to the deletion of all of its
1174 // sub-accounts. Executing this method requires admin access.
1175 // The deletion succeeds only if the account does not provide services
1176 // to any other account and has no processed offers. You can use the `force`
1177 // parameter to override this.
1178 DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
1179 // Updates an account regardless of its type: standalone, MCA or sub-account.
1180 // Executing this method requires admin access.
1181 UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*Account, error)
1182 // Lists accounts accessible to the calling user and matching the
1183 // constraints of the request such as page size or filters.
1184 // This is not just listing the sub-accounts of an MCA, but all accounts the
1185 // calling user has access to including other MCAs, linked accounts,
1186 // standalone accounts and so on. If no filter is provided, then it returns
1187 // accounts the user is directly added to.
1188 ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error)
1189 // List all sub-accounts for a given multi client account. This is a
1190 // convenience wrapper for the more powerful `ListAccounts` method. This
1191 // method will produce the same results as calling `ListsAccounts` with the
1192 // following filter:
1193 // `relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))`
1194 ListSubAccounts(ctx context.Context, in *ListSubAccountsRequest, opts ...grpc.CallOption) (*ListSubAccountsResponse, error)
1195 }
1196
1197 type accountsServiceClient struct {
1198 cc grpc.ClientConnInterface
1199 }
1200
1201 func NewAccountsServiceClient(cc grpc.ClientConnInterface) AccountsServiceClient {
1202 return &accountsServiceClient{cc}
1203 }
1204
1205 func (c *accountsServiceClient) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*Account, error) {
1206 out := new(Account)
1207 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.AccountsService/GetAccount", in, out, opts...)
1208 if err != nil {
1209 return nil, err
1210 }
1211 return out, nil
1212 }
1213
1214 func (c *accountsServiceClient) CreateAndConfigureAccount(ctx context.Context, in *CreateAndConfigureAccountRequest, opts ...grpc.CallOption) (*Account, error) {
1215 out := new(Account)
1216 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.AccountsService/CreateAndConfigureAccount", in, out, opts...)
1217 if err != nil {
1218 return nil, err
1219 }
1220 return out, nil
1221 }
1222
1223 func (c *accountsServiceClient) DeleteAccount(ctx context.Context, in *DeleteAccountRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
1224 out := new(emptypb.Empty)
1225 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.AccountsService/DeleteAccount", in, out, opts...)
1226 if err != nil {
1227 return nil, err
1228 }
1229 return out, nil
1230 }
1231
1232 func (c *accountsServiceClient) UpdateAccount(ctx context.Context, in *UpdateAccountRequest, opts ...grpc.CallOption) (*Account, error) {
1233 out := new(Account)
1234 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.AccountsService/UpdateAccount", in, out, opts...)
1235 if err != nil {
1236 return nil, err
1237 }
1238 return out, nil
1239 }
1240
1241 func (c *accountsServiceClient) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) {
1242 out := new(ListAccountsResponse)
1243 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.AccountsService/ListAccounts", in, out, opts...)
1244 if err != nil {
1245 return nil, err
1246 }
1247 return out, nil
1248 }
1249
1250 func (c *accountsServiceClient) ListSubAccounts(ctx context.Context, in *ListSubAccountsRequest, opts ...grpc.CallOption) (*ListSubAccountsResponse, error) {
1251 out := new(ListSubAccountsResponse)
1252 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.AccountsService/ListSubAccounts", in, out, opts...)
1253 if err != nil {
1254 return nil, err
1255 }
1256 return out, nil
1257 }
1258
1259 // AccountsServiceServer is the server API for AccountsService service.
1260 type AccountsServiceServer interface {
1261 // Retrieves an account from your Merchant Center account.
1262 // After inserting, updating, or deleting an account, it may take several
1263 // minutes before changes take effect.
1264 GetAccount(context.Context, *GetAccountRequest) (*Account, error)
1265 // Creates a standalone Merchant Center account with additional configuration.
1266 // Adds the user that makes the request as an admin for the new account.
1267 CreateAndConfigureAccount(context.Context, *CreateAndConfigureAccountRequest) (*Account, error)
1268 // Deletes the specified account regardless of its type: standalone, MCA or
1269 // sub-account. Deleting an MCA leads to the deletion of all of its
1270 // sub-accounts. Executing this method requires admin access.
1271 // The deletion succeeds only if the account does not provide services
1272 // to any other account and has no processed offers. You can use the `force`
1273 // parameter to override this.
1274 DeleteAccount(context.Context, *DeleteAccountRequest) (*emptypb.Empty, error)
1275 // Updates an account regardless of its type: standalone, MCA or sub-account.
1276 // Executing this method requires admin access.
1277 UpdateAccount(context.Context, *UpdateAccountRequest) (*Account, error)
1278 // Lists accounts accessible to the calling user and matching the
1279 // constraints of the request such as page size or filters.
1280 // This is not just listing the sub-accounts of an MCA, but all accounts the
1281 // calling user has access to including other MCAs, linked accounts,
1282 // standalone accounts and so on. If no filter is provided, then it returns
1283 // accounts the user is directly added to.
1284 ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error)
1285 // List all sub-accounts for a given multi client account. This is a
1286 // convenience wrapper for the more powerful `ListAccounts` method. This
1287 // method will produce the same results as calling `ListsAccounts` with the
1288 // following filter:
1289 // `relationship(providerId={parent} AND service(type="ACCOUNT_AGGREGATION"))`
1290 ListSubAccounts(context.Context, *ListSubAccountsRequest) (*ListSubAccountsResponse, error)
1291 }
1292
1293 // UnimplementedAccountsServiceServer can be embedded to have forward compatible implementations.
1294 type UnimplementedAccountsServiceServer struct {
1295 }
1296
1297 func (*UnimplementedAccountsServiceServer) GetAccount(context.Context, *GetAccountRequest) (*Account, error) {
1298 return nil, status.Errorf(codes.Unimplemented, "method GetAccount not implemented")
1299 }
1300 func (*UnimplementedAccountsServiceServer) CreateAndConfigureAccount(context.Context, *CreateAndConfigureAccountRequest) (*Account, error) {
1301 return nil, status.Errorf(codes.Unimplemented, "method CreateAndConfigureAccount not implemented")
1302 }
1303 func (*UnimplementedAccountsServiceServer) DeleteAccount(context.Context, *DeleteAccountRequest) (*emptypb.Empty, error) {
1304 return nil, status.Errorf(codes.Unimplemented, "method DeleteAccount not implemented")
1305 }
1306 func (*UnimplementedAccountsServiceServer) UpdateAccount(context.Context, *UpdateAccountRequest) (*Account, error) {
1307 return nil, status.Errorf(codes.Unimplemented, "method UpdateAccount not implemented")
1308 }
1309 func (*UnimplementedAccountsServiceServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) {
1310 return nil, status.Errorf(codes.Unimplemented, "method ListAccounts not implemented")
1311 }
1312 func (*UnimplementedAccountsServiceServer) ListSubAccounts(context.Context, *ListSubAccountsRequest) (*ListSubAccountsResponse, error) {
1313 return nil, status.Errorf(codes.Unimplemented, "method ListSubAccounts not implemented")
1314 }
1315
1316 func RegisterAccountsServiceServer(s *grpc.Server, srv AccountsServiceServer) {
1317 s.RegisterService(&_AccountsService_serviceDesc, srv)
1318 }
1319
1320 func _AccountsService_GetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1321 in := new(GetAccountRequest)
1322 if err := dec(in); err != nil {
1323 return nil, err
1324 }
1325 if interceptor == nil {
1326 return srv.(AccountsServiceServer).GetAccount(ctx, in)
1327 }
1328 info := &grpc.UnaryServerInfo{
1329 Server: srv,
1330 FullMethod: "/google.shopping.merchant.accounts.v1beta.AccountsService/GetAccount",
1331 }
1332 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1333 return srv.(AccountsServiceServer).GetAccount(ctx, req.(*GetAccountRequest))
1334 }
1335 return interceptor(ctx, in, info, handler)
1336 }
1337
1338 func _AccountsService_CreateAndConfigureAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1339 in := new(CreateAndConfigureAccountRequest)
1340 if err := dec(in); err != nil {
1341 return nil, err
1342 }
1343 if interceptor == nil {
1344 return srv.(AccountsServiceServer).CreateAndConfigureAccount(ctx, in)
1345 }
1346 info := &grpc.UnaryServerInfo{
1347 Server: srv,
1348 FullMethod: "/google.shopping.merchant.accounts.v1beta.AccountsService/CreateAndConfigureAccount",
1349 }
1350 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1351 return srv.(AccountsServiceServer).CreateAndConfigureAccount(ctx, req.(*CreateAndConfigureAccountRequest))
1352 }
1353 return interceptor(ctx, in, info, handler)
1354 }
1355
1356 func _AccountsService_DeleteAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1357 in := new(DeleteAccountRequest)
1358 if err := dec(in); err != nil {
1359 return nil, err
1360 }
1361 if interceptor == nil {
1362 return srv.(AccountsServiceServer).DeleteAccount(ctx, in)
1363 }
1364 info := &grpc.UnaryServerInfo{
1365 Server: srv,
1366 FullMethod: "/google.shopping.merchant.accounts.v1beta.AccountsService/DeleteAccount",
1367 }
1368 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1369 return srv.(AccountsServiceServer).DeleteAccount(ctx, req.(*DeleteAccountRequest))
1370 }
1371 return interceptor(ctx, in, info, handler)
1372 }
1373
1374 func _AccountsService_UpdateAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1375 in := new(UpdateAccountRequest)
1376 if err := dec(in); err != nil {
1377 return nil, err
1378 }
1379 if interceptor == nil {
1380 return srv.(AccountsServiceServer).UpdateAccount(ctx, in)
1381 }
1382 info := &grpc.UnaryServerInfo{
1383 Server: srv,
1384 FullMethod: "/google.shopping.merchant.accounts.v1beta.AccountsService/UpdateAccount",
1385 }
1386 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1387 return srv.(AccountsServiceServer).UpdateAccount(ctx, req.(*UpdateAccountRequest))
1388 }
1389 return interceptor(ctx, in, info, handler)
1390 }
1391
1392 func _AccountsService_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1393 in := new(ListAccountsRequest)
1394 if err := dec(in); err != nil {
1395 return nil, err
1396 }
1397 if interceptor == nil {
1398 return srv.(AccountsServiceServer).ListAccounts(ctx, in)
1399 }
1400 info := &grpc.UnaryServerInfo{
1401 Server: srv,
1402 FullMethod: "/google.shopping.merchant.accounts.v1beta.AccountsService/ListAccounts",
1403 }
1404 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1405 return srv.(AccountsServiceServer).ListAccounts(ctx, req.(*ListAccountsRequest))
1406 }
1407 return interceptor(ctx, in, info, handler)
1408 }
1409
1410 func _AccountsService_ListSubAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1411 in := new(ListSubAccountsRequest)
1412 if err := dec(in); err != nil {
1413 return nil, err
1414 }
1415 if interceptor == nil {
1416 return srv.(AccountsServiceServer).ListSubAccounts(ctx, in)
1417 }
1418 info := &grpc.UnaryServerInfo{
1419 Server: srv,
1420 FullMethod: "/google.shopping.merchant.accounts.v1beta.AccountsService/ListSubAccounts",
1421 }
1422 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1423 return srv.(AccountsServiceServer).ListSubAccounts(ctx, req.(*ListSubAccountsRequest))
1424 }
1425 return interceptor(ctx, in, info, handler)
1426 }
1427
1428 var _AccountsService_serviceDesc = grpc.ServiceDesc{
1429 ServiceName: "google.shopping.merchant.accounts.v1beta.AccountsService",
1430 HandlerType: (*AccountsServiceServer)(nil),
1431 Methods: []grpc.MethodDesc{
1432 {
1433 MethodName: "GetAccount",
1434 Handler: _AccountsService_GetAccount_Handler,
1435 },
1436 {
1437 MethodName: "CreateAndConfigureAccount",
1438 Handler: _AccountsService_CreateAndConfigureAccount_Handler,
1439 },
1440 {
1441 MethodName: "DeleteAccount",
1442 Handler: _AccountsService_DeleteAccount_Handler,
1443 },
1444 {
1445 MethodName: "UpdateAccount",
1446 Handler: _AccountsService_UpdateAccount_Handler,
1447 },
1448 {
1449 MethodName: "ListAccounts",
1450 Handler: _AccountsService_ListAccounts_Handler,
1451 },
1452 {
1453 MethodName: "ListSubAccounts",
1454 Handler: _AccountsService_ListSubAccounts_Handler,
1455 },
1456 },
1457 Streams: []grpc.StreamDesc{},
1458 Metadata: "google/shopping/merchant/accounts/v1beta/accounts.proto",
1459 }