Debian Codegraph @

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