Debian Codegraph @

internal/generated/snippets/shopping/merchant/accounts/apiv1/snippet_metadata.google.shopping.merchant.accounts.v1.json

raw symbols SCIP
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/shopping/merchant/accounts/apiv1",
4 "version": "1.1.0",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.shopping.merchant.accounts.v1",
9 "version": "v1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "merchantapi_v1_generated_AccountIssueService_ListAccountIssues_sync",
16 "title": "merchantapi ListAccountIssues Sample",
17 "description": "ListAccountIssues lists all account issues of a Merchant Center account.\n\nWhen called on a multi-client account, this method only returns issues\nbelonging to that account, not its sub-accounts. To retrieve issues for\nsub-accounts, you must first call the\n[accounts.listSubaccounts][google.shopping.merchant.accounts.v1.AccountsService.ListSubAccounts]\nmethod to obtain a list of sub-accounts, and then call\n`accounts.issues.list` for each sub-account individually.",
18 "file": "AccountIssueClient/ListAccountIssues/main.go",
19 "language": "GO",
20 "clientMethod": {
21 "shortName": "ListAccountIssues",
22 "fullName": "google.shopping.merchant.accounts.v1.AccountIssueClient.ListAccountIssues",
23 "parameters": [
24 {
25 "type": "context.Context",
26 "name": "ctx"
27 },
28 {
29 "type": "accountspb.ListAccountIssuesRequest",
30 "name": "req"
31 },
32 {
33 "type": "...gax.CallOption",
34 "name": "opts"
35 }
36 ],
37 "resultType": "AccountIssueIterator",
38 "client": {
39 "shortName": "AccountIssueClient",
40 "fullName": "google.shopping.merchant.accounts.v1.AccountIssueClient"
41 },
42 "method": {
43 "shortName": "ListAccountIssues",
44 "fullName": "google.shopping.merchant.accounts.v1.AccountIssueService.ListAccountIssues",
45 "service": {
46 "shortName": "AccountIssueService",
47 "fullName": "google.shopping.merchant.accounts.v1.AccountIssueService"
48 }
49 }
50 },
51 "origin": "API_DEFINITION",
52 "segments": [
53 {
54 "start": 18,
55 "end": 66,
56 "type": "FULL"
57 }
58 ]
59 },
60 {
61 "regionTag": "merchantapi_v1_generated_AccountRelationshipsService_GetAccountRelationship_sync",
62 "title": "merchantapi GetAccountRelationship Sample",
63 "description": "GetAccountRelationship retrieve an account relationship.",
64 "file": "AccountRelationshipsClient/GetAccountRelationship/main.go",
65 "language": "GO",
66 "clientMethod": {
67 "shortName": "GetAccountRelationship",
68 "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsClient.GetAccountRelationship",
69 "parameters": [
70 {
71 "type": "context.Context",
72 "name": "ctx"
73 },
74 {
75 "type": "accountspb.GetAccountRelationshipRequest",
76 "name": "req"
77 },
78 {
79 "type": "...gax.CallOption",
80 "name": "opts"
81 }
82 ],
83 "resultType": "*accountspb.AccountRelationship",
84 "client": {
85 "shortName": "AccountRelationshipsClient",
86 "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsClient"
87 },
88 "method": {
89 "shortName": "GetAccountRelationship",
90 "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService.GetAccountRelationship",
91 "service": {
92 "shortName": "AccountRelationshipsService",
93 "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService"
94 }
95 }
96 },
97 "origin": "API_DEFINITION",
98 "segments": [
99 {
100 "start": 18,
101 "end": 53,
102 "type": "FULL"
103 }
104 ]
105 },
106 {
107 "regionTag": "merchantapi_v1_generated_AccountRelationshipsService_ListAccountRelationships_sync",
108 "title": "merchantapi ListAccountRelationships Sample",
109 "description": "ListAccountRelationships list account relationships for the specified account.",
110 "file": "AccountRelationshipsClient/ListAccountRelationships/main.go",
111 "language": "GO",
112 "clientMethod": {
113 "shortName": "ListAccountRelationships",
114 "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsClient.ListAccountRelationships",
115 "parameters": [
116 {
117 "type": "context.Context",
118 "name": "ctx"
119 },
120 {
121 "type": "accountspb.ListAccountRelationshipsRequest",
122 "name": "req"
123 },
124 {
125 "type": "...gax.CallOption",
126 "name": "opts"
127 }
128 ],
129 "resultType": "AccountRelationshipIterator",
130 "client": {
131 "shortName": "AccountRelationshipsClient",
132 "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsClient"
133 },
134 "method": {
135 "shortName": "ListAccountRelationships",
136 "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService.ListAccountRelationships",
137 "service": {
138 "shortName": "AccountRelationshipsService",
139 "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService"
140 }
141 }
142 },
143 "origin": "API_DEFINITION",
144 "segments": [
145 {
146 "start": 18,
147 "end": 66,
148 "type": "FULL"
149 }
150 ]
151 },
152 {
153 "regionTag": "merchantapi_v1_generated_AccountRelationshipsService_UpdateAccountRelationship_sync",
154 "title": "merchantapi UpdateAccountRelationship Sample",
155 "description": "UpdateAccountRelationship updates the account relationship. Executing this method requires admin\naccess.",
156 "file": "AccountRelationshipsClient/UpdateAccountRelationship/main.go",
157 "language": "GO",
158 "clientMethod": {
159 "shortName": "UpdateAccountRelationship",
160 "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsClient.UpdateAccountRelationship",
161 "parameters": [
162 {
163 "type": "context.Context",
164 "name": "ctx"
165 },
166 {
167 "type": "accountspb.UpdateAccountRelationshipRequest",
168 "name": "req"
169 },
170 {
171 "type": "...gax.CallOption",
172 "name": "opts"
173 }
174 ],
175 "resultType": "*accountspb.AccountRelationship",
176 "client": {
177 "shortName": "AccountRelationshipsClient",
178 "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsClient"
179 },
180 "method": {
181 "shortName": "UpdateAccountRelationship",
182 "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService.UpdateAccountRelationship",
183 "service": {
184 "shortName": "AccountRelationshipsService",
185 "fullName": "google.shopping.merchant.accounts.v1.AccountRelationshipsService"
186 }
187 }
188 },
189 "origin": "API_DEFINITION",
190 "segments": [
191 {
192 "start": 18,
193 "end": 53,
194 "type": "FULL"
195 }
196 ]
197 },
198 {
199 "regionTag": "merchantapi_v1_generated_AccountServicesService_ApproveAccountService_sync",
200 "title": "merchantapi ApproveAccountService Sample",
201 "description": "ApproveAccountService approve an account service proposal.",
202 "file": "AccountServicesClient/ApproveAccountService/main.go",
203 "language": "GO",
204 "clientMethod": {
205 "shortName": "ApproveAccountService",
206 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesClient.ApproveAccountService",
207 "parameters": [
208 {
209 "type": "context.Context",
210 "name": "ctx"
211 },
212 {
213 "type": "accountspb.ApproveAccountServiceRequest",
214 "name": "req"
215 },
216 {
217 "type": "...gax.CallOption",
218 "name": "opts"
219 }
220 ],
221 "resultType": "*accountspb.AccountService",
222 "client": {
223 "shortName": "AccountServicesClient",
224 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesClient"
225 },
226 "method": {
227 "shortName": "ApproveAccountService",
228 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.ApproveAccountService",
229 "service": {
230 "shortName": "AccountServicesService",
231 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService"
232 }
233 }
234 },
235 "origin": "API_DEFINITION",
236 "segments": [
237 {
238 "start": 18,
239 "end": 53,
240 "type": "FULL"
241 }
242 ]
243 },
244 {
245 "regionTag": "merchantapi_v1_generated_AccountServicesService_GetAccountService_sync",
246 "title": "merchantapi GetAccountService Sample",
247 "description": "GetAccountService retrieve an account service.",
248 "file": "AccountServicesClient/GetAccountService/main.go",
249 "language": "GO",
250 "clientMethod": {
251 "shortName": "GetAccountService",
252 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesClient.GetAccountService",
253 "parameters": [
254 {
255 "type": "context.Context",
256 "name": "ctx"
257 },
258 {
259 "type": "accountspb.GetAccountServiceRequest",
260 "name": "req"
261 },
262 {
263 "type": "...gax.CallOption",
264 "name": "opts"
265 }
266 ],
267 "resultType": "*accountspb.AccountService",
268 "client": {
269 "shortName": "AccountServicesClient",
270 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesClient"
271 },
272 "method": {
273 "shortName": "GetAccountService",
274 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.GetAccountService",
275 "service": {
276 "shortName": "AccountServicesService",
277 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService"
278 }
279 }
280 },
281 "origin": "API_DEFINITION",
282 "segments": [
283 {
284 "start": 18,
285 "end": 53,
286 "type": "FULL"
287 }
288 ]
289 },
290 {
291 "regionTag": "merchantapi_v1_generated_AccountServicesService_ListAccountServices_sync",
292 "title": "merchantapi ListAccountServices Sample",
293 "description": "ListAccountServices list account services for the specified accounts. Supports filtering.",
294 "file": "AccountServicesClient/ListAccountServices/main.go",
295 "language": "GO",
296 "clientMethod": {
297 "shortName": "ListAccountServices",
298 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesClient.ListAccountServices",
299 "parameters": [
300 {
301 "type": "context.Context",
302 "name": "ctx"
303 },
304 {
305 "type": "accountspb.ListAccountServicesRequest",
306 "name": "req"
307 },
308 {
309 "type": "...gax.CallOption",
310 "name": "opts"
311 }
312 ],
313 "resultType": "AccountServiceIterator",
314 "client": {
315 "shortName": "AccountServicesClient",
316 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesClient"
317 },
318 "method": {
319 "shortName": "ListAccountServices",
320 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.ListAccountServices",
321 "service": {
322 "shortName": "AccountServicesService",
323 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService"
324 }
325 }
326 },
327 "origin": "API_DEFINITION",
328 "segments": [
329 {
330 "start": 18,
331 "end": 66,
332 "type": "FULL"
333 }
334 ]
335 },
336 {
337 "regionTag": "merchantapi_v1_generated_AccountServicesService_ProposeAccountService_sync",
338 "title": "merchantapi ProposeAccountService Sample",
339 "description": "ProposeAccountService propose an account service.",
340 "file": "AccountServicesClient/ProposeAccountService/main.go",
341 "language": "GO",
342 "clientMethod": {
343 "shortName": "ProposeAccountService",
344 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesClient.ProposeAccountService",
345 "parameters": [
346 {
347 "type": "context.Context",
348 "name": "ctx"
349 },
350 {
351 "type": "accountspb.ProposeAccountServiceRequest",
352 "name": "req"
353 },
354 {
355 "type": "...gax.CallOption",
356 "name": "opts"
357 }
358 ],
359 "resultType": "*accountspb.AccountService",
360 "client": {
361 "shortName": "AccountServicesClient",
362 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesClient"
363 },
364 "method": {
365 "shortName": "ProposeAccountService",
366 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.ProposeAccountService",
367 "service": {
368 "shortName": "AccountServicesService",
369 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService"
370 }
371 }
372 },
373 "origin": "API_DEFINITION",
374 "segments": [
375 {
376 "start": 18,
377 "end": 53,
378 "type": "FULL"
379 }
380 ]
381 },
382 {
383 "regionTag": "merchantapi_v1_generated_AccountServicesService_RejectAccountService_sync",
384 "title": "merchantapi RejectAccountService Sample",
385 "description": "RejectAccountService reject an account service (both proposed and approve services can be\nrejected).",
386 "file": "AccountServicesClient/RejectAccountService/main.go",
387 "language": "GO",
388 "clientMethod": {
389 "shortName": "RejectAccountService",
390 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesClient.RejectAccountService",
391 "parameters": [
392 {
393 "type": "context.Context",
394 "name": "ctx"
395 },
396 {
397 "type": "accountspb.RejectAccountServiceRequest",
398 "name": "req"
399 },
400 {
401 "type": "...gax.CallOption",
402 "name": "opts"
403 }
404 ],
405 "client": {
406 "shortName": "AccountServicesClient",
407 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesClient"
408 },
409 "method": {
410 "shortName": "RejectAccountService",
411 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService.RejectAccountService",
412 "service": {
413 "shortName": "AccountServicesService",
414 "fullName": "google.shopping.merchant.accounts.v1.AccountServicesService"
415 }
416 }
417 },
418 "origin": "API_DEFINITION",
419 "segments": [
420 {
421 "start": 18,
422 "end": 51,
423 "type": "FULL"
424 }
425 ]
426 },
427 {
428 "regionTag": "merchantapi_v1_generated_AccountsService_CreateAndConfigureAccount_sync",
429 "title": "merchantapi CreateAndConfigureAccount Sample",
430 "description": "CreateAndConfigureAccount creates a Merchant Center account with additional configuration. Adds the\nuser that makes the request as an admin for the new account.",
431 "file": "Client/CreateAndConfigureAccount/main.go",
432 "language": "GO",
433 "clientMethod": {
434 "shortName": "CreateAndConfigureAccount",
435 "fullName": "google.shopping.merchant.accounts.v1.Client.CreateAndConfigureAccount",
436 "parameters": [
437 {
438 "type": "context.Context",
439 "name": "ctx"
440 },
441 {
442 "type": "accountspb.CreateAndConfigureAccountRequest",
443 "name": "req"
444 },
445 {
446 "type": "...gax.CallOption",
447 "name": "opts"
448 }
449 ],
450 "resultType": "*accountspb.Account",
451 "client": {
452 "shortName": "Client",
453 "fullName": "google.shopping.merchant.accounts.v1.Client"
454 },
455 "method": {
456 "shortName": "CreateAndConfigureAccount",
457 "fullName": "google.shopping.merchant.accounts.v1.AccountsService.CreateAndConfigureAccount",
458 "service": {
459 "shortName": "AccountsService",
460 "fullName": "google.shopping.merchant.accounts.v1.AccountsService"
461 }
462 }
463 },
464 "origin": "API_DEFINITION",
465 "segments": [
466 {
467 "start": 18,
468 "end": 53,
469 "type": "FULL"
470 }
471 ]
472 },
473 {
474 "regionTag": "merchantapi_v1_generated_AccountsService_DeleteAccount_sync",
475 "title": "merchantapi DeleteAccount Sample",
476 "description": "DeleteAccount deletes the specified account regardless of its type: standalone, advanced\naccount or sub-account. Deleting an advanced account leads to the deletion\nof all of its sub-accounts. Executing this method requires admin access.\nThe deletion succeeds only if the account does not provide services\nto any other account and has no processed offers. You can use the `force`\nparameter to override this.",
477 "file": "Client/DeleteAccount/main.go",
478 "language": "GO",
479 "clientMethod": {
480 "shortName": "DeleteAccount",
481 "fullName": "google.shopping.merchant.accounts.v1.Client.DeleteAccount",
482 "parameters": [
483 {
484 "type": "context.Context",
485 "name": "ctx"
486 },
487 {
488 "type": "accountspb.DeleteAccountRequest",
489 "name": "req"
490 },
491 {
492 "type": "...gax.CallOption",
493 "name": "opts"
494 }
495 ],
496 "client": {
497 "shortName": "Client",
498 "fullName": "google.shopping.merchant.accounts.v1.Client"
499 },
500 "method": {
501 "shortName": "DeleteAccount",
502 "fullName": "google.shopping.merchant.accounts.v1.AccountsService.DeleteAccount",
503 "service": {
504 "shortName": "AccountsService",
505 "fullName": "google.shopping.merchant.accounts.v1.AccountsService"
506 }
507 }
508 },
509 "origin": "API_DEFINITION",
510 "segments": [
511 {
512 "start": 18,
513 "end": 51,
514 "type": "FULL"
515 }
516 ]
517 },
518 {
519 "regionTag": "merchantapi_v1_generated_AccountsService_GetAccount_sync",
520 "title": "merchantapi GetAccount Sample",
521 "description": "GetAccount retrieves an account from your Merchant Center account.\nAfter inserting, updating, or deleting an account, it may take several\nminutes before changes take effect.",
522 "file": "Client/GetAccount/main.go",
523 "language": "GO",
524 "clientMethod": {
525 "shortName": "GetAccount",
526 "fullName": "google.shopping.merchant.accounts.v1.Client.GetAccount",
527 "parameters": [
528 {
529 "type": "context.Context",
530 "name": "ctx"
531 },
532 {
533 "type": "accountspb.GetAccountRequest",
534 "name": "req"
535 },
536 {
537 "type": "...gax.CallOption",
538 "name": "opts"
539 }
540 ],
541 "resultType": "*accountspb.Account",
542 "client": {
543 "shortName": "Client",
544 "fullName": "google.shopping.merchant.accounts.v1.Client"
545 },
546 "method": {
547 "shortName": "GetAccount",
548 "fullName": "google.shopping.merchant.accounts.v1.AccountsService.GetAccount",
549 "service": {
550 "shortName": "AccountsService",
551 "fullName": "google.shopping.merchant.accounts.v1.AccountsService"
552 }
553 }
554 },
555 "origin": "API_DEFINITION",
556 "segments": [
557 {
558 "start": 18,
559 "end": 53,
560 "type": "FULL"
561 }
562 ]
563 },
564 {
565 "regionTag": "merchantapi_v1_generated_AccountsService_ListAccounts_sync",
566 "title": "merchantapi ListAccounts Sample",
567 "description": "ListAccounts note: For the `accounts.list` method, quota and limits usage are charged\nfor each user, and not for the Merchant Center ID or the advanced account\nID. To list several sub-accounts, you should use the\n`accounts.listSubaccounts` method, which is more suitable for advanced\naccounts use case.",
568 "file": "Client/ListAccounts/main.go",
569 "language": "GO",
570 "clientMethod": {
571 "shortName": "ListAccounts",
572 "fullName": "google.shopping.merchant.accounts.v1.Client.ListAccounts",
573 "parameters": [
574 {
575 "type": "context.Context",
576 "name": "ctx"
577 },
578 {
579 "type": "accountspb.ListAccountsRequest",
580 "name": "req"
581 },
582 {
583 "type": "...gax.CallOption",
584 "name": "opts"
585 }
586 ],
587 "resultType": "AccountIterator",
588 "client": {
589 "shortName": "Client",
590 "fullName": "google.shopping.merchant.accounts.v1.Client"
591 },
592 "method": {
593 "shortName": "ListAccounts",
594 "fullName": "google.shopping.merchant.accounts.v1.AccountsService.ListAccounts",
595 "service": {
596 "shortName": "AccountsService",
597 "fullName": "google.shopping.merchant.accounts.v1.AccountsService"
598 }
599 }
600 },
601 "origin": "API_DEFINITION",
602 "segments": [
603 {
604 "start": 18,
605 "end": 66,
606 "type": "FULL"
607 }
608 ]
609 },
610 {
611 "regionTag": "merchantapi_v1_generated_AccountsService_ListSubAccounts_sync",
612 "title": "merchantapi ListSubAccounts Sample",
613 "description": "ListSubAccounts list all sub-accounts for a given advanced account. This is a\nconvenience wrapper for the more powerful `accounts.list` method. This\nmethod will produce the same results as calling `ListsAccounts` with the\nfollowing filter: \n`relationship(providerId={parent} AND service(type=\"ACCOUNT_AGGREGATION\"))`",
614 "file": "Client/ListSubAccounts/main.go",
615 "language": "GO",
616 "clientMethod": {
617 "shortName": "ListSubAccounts",
618 "fullName": "google.shopping.merchant.accounts.v1.Client.ListSubAccounts",
619 "parameters": [
620 {
621 "type": "context.Context",
622 "name": "ctx"
623 },
624 {
625 "type": "accountspb.ListSubAccountsRequest",
626 "name": "req"
627 },
628 {
629 "type": "...gax.CallOption",
630 "name": "opts"
631 }
632 ],
633 "resultType": "AccountIterator",
634 "client": {
635 "shortName": "Client",
636 "fullName": "google.shopping.merchant.accounts.v1.Client"
637 },
638 "method": {
639 "shortName": "ListSubAccounts",
640 "fullName": "google.shopping.merchant.accounts.v1.AccountsService.ListSubAccounts",
641 "service": {
642 "shortName": "AccountsService",
643 "fullName": "google.shopping.merchant.accounts.v1.AccountsService"
644 }
645 }
646 },
647 "origin": "API_DEFINITION",
648 "segments": [
649 {
650 "start": 18,
651 "end": 66,
652 "type": "FULL"
653 }
654 ]
655 },
656 {
657 "regionTag": "merchantapi_v1_generated_AccountsService_UpdateAccount_sync",
658 "title": "merchantapi UpdateAccount Sample",
659 "description": "UpdateAccount updates an account regardless of its type: standalone, advanced account or\nsub-account. Executing this method requires admin access.",
660 "file": "Client/UpdateAccount/main.go",
661 "language": "GO",
662 "clientMethod": {
663 "shortName": "UpdateAccount",
664 "fullName": "google.shopping.merchant.accounts.v1.Client.UpdateAccount",
665 "parameters": [
666 {
667 "type": "context.Context",
668 "name": "ctx"
669 },
670 {
671 "type": "accountspb.UpdateAccountRequest",
672 "name": "req"
673 },
674 {
675 "type": "...gax.CallOption",
676 "name": "opts"
677 }
678 ],
679 "resultType": "*accountspb.Account",
680 "client": {
681 "shortName": "Client",
682 "fullName": "google.shopping.merchant.accounts.v1.Client"
683 },
684 "method": {
685 "shortName": "UpdateAccount",
686 "fullName": "google.shopping.merchant.accounts.v1.AccountsService.UpdateAccount",
687 "service": {
688 "shortName": "AccountsService",
689 "fullName": "google.shopping.merchant.accounts.v1.AccountsService"
690 }
691 }
692 },
693 "origin": "API_DEFINITION",
694 "segments": [
695 {
696 "start": 18,
697 "end": 53,
698 "type": "FULL"
699 }
700 ]
701 },
702 {
703 "regionTag": "merchantapi_v1_generated_AutofeedSettingsService_GetAutofeedSettings_sync",
704 "title": "merchantapi GetAutofeedSettings Sample",
705 "description": "GetAutofeedSettings retrieves the autofeed settings of an account.",
706 "file": "AutofeedSettingsClient/GetAutofeedSettings/main.go",
707 "language": "GO",
708 "clientMethod": {
709 "shortName": "GetAutofeedSettings",
710 "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsClient.GetAutofeedSettings",
711 "parameters": [
712 {
713 "type": "context.Context",
714 "name": "ctx"
715 },
716 {
717 "type": "accountspb.GetAutofeedSettingsRequest",
718 "name": "req"
719 },
720 {
721 "type": "...gax.CallOption",
722 "name": "opts"
723 }
724 ],
725 "resultType": "*accountspb.AutofeedSettings",
726 "client": {
727 "shortName": "AutofeedSettingsClient",
728 "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsClient"
729 },
730 "method": {
731 "shortName": "GetAutofeedSettings",
732 "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsService.GetAutofeedSettings",
733 "service": {
734 "shortName": "AutofeedSettingsService",
735 "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsService"
736 }
737 }
738 },
739 "origin": "API_DEFINITION",
740 "segments": [
741 {
742 "start": 18,
743 "end": 53,
744 "type": "FULL"
745 }
746 ]
747 },
748 {
749 "regionTag": "merchantapi_v1_generated_AutofeedSettingsService_UpdateAutofeedSettings_sync",
750 "title": "merchantapi UpdateAutofeedSettings Sample",
751 "description": "UpdateAutofeedSettings updates the autofeed settings of an account.",
752 "file": "AutofeedSettingsClient/UpdateAutofeedSettings/main.go",
753 "language": "GO",
754 "clientMethod": {
755 "shortName": "UpdateAutofeedSettings",
756 "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsClient.UpdateAutofeedSettings",
757 "parameters": [
758 {
759 "type": "context.Context",
760 "name": "ctx"
761 },
762 {
763 "type": "accountspb.UpdateAutofeedSettingsRequest",
764 "name": "req"
765 },
766 {
767 "type": "...gax.CallOption",
768 "name": "opts"
769 }
770 ],
771 "resultType": "*accountspb.AutofeedSettings",
772 "client": {
773 "shortName": "AutofeedSettingsClient",
774 "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsClient"
775 },
776 "method": {
777 "shortName": "UpdateAutofeedSettings",
778 "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsService.UpdateAutofeedSettings",
779 "service": {
780 "shortName": "AutofeedSettingsService",
781 "fullName": "google.shopping.merchant.accounts.v1.AutofeedSettingsService"
782 }
783 }
784 },
785 "origin": "API_DEFINITION",
786 "segments": [
787 {
788 "start": 18,
789 "end": 53,
790 "type": "FULL"
791 }
792 ]
793 },
794 {
795 "regionTag": "merchantapi_v1_generated_AutomaticImprovementsService_GetAutomaticImprovements_sync",
796 "title": "merchantapi GetAutomaticImprovements Sample",
797 "description": "GetAutomaticImprovements retrieves the automatic improvements of an account.",
798 "file": "AutomaticImprovementsClient/GetAutomaticImprovements/main.go",
799 "language": "GO",
800 "clientMethod": {
801 "shortName": "GetAutomaticImprovements",
802 "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsClient.GetAutomaticImprovements",
803 "parameters": [
804 {
805 "type": "context.Context",
806 "name": "ctx"
807 },
808 {
809 "type": "accountspb.GetAutomaticImprovementsRequest",
810 "name": "req"
811 },
812 {
813 "type": "...gax.CallOption",
814 "name": "opts"
815 }
816 ],
817 "resultType": "*accountspb.AutomaticImprovements",
818 "client": {
819 "shortName": "AutomaticImprovementsClient",
820 "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsClient"
821 },
822 "method": {
823 "shortName": "GetAutomaticImprovements",
824 "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsService.GetAutomaticImprovements",
825 "service": {
826 "shortName": "AutomaticImprovementsService",
827 "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsService"
828 }
829 }
830 },
831 "origin": "API_DEFINITION",
832 "segments": [
833 {
834 "start": 18,
835 "end": 53,
836 "type": "FULL"
837 }
838 ]
839 },
840 {
841 "regionTag": "merchantapi_v1_generated_AutomaticImprovementsService_UpdateAutomaticImprovements_sync",
842 "title": "merchantapi UpdateAutomaticImprovements Sample",
843 "description": "UpdateAutomaticImprovements updates the automatic improvements of an account.",
844 "file": "AutomaticImprovementsClient/UpdateAutomaticImprovements/main.go",
845 "language": "GO",
846 "clientMethod": {
847 "shortName": "UpdateAutomaticImprovements",
848 "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsClient.UpdateAutomaticImprovements",
849 "parameters": [
850 {
851 "type": "context.Context",
852 "name": "ctx"
853 },
854 {
855 "type": "accountspb.UpdateAutomaticImprovementsRequest",
856 "name": "req"
857 },
858 {
859 "type": "...gax.CallOption",
860 "name": "opts"
861 }
862 ],
863 "resultType": "*accountspb.AutomaticImprovements",
864 "client": {
865 "shortName": "AutomaticImprovementsClient",
866 "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsClient"
867 },
868 "method": {
869 "shortName": "UpdateAutomaticImprovements",
870 "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsService.UpdateAutomaticImprovements",
871 "service": {
872 "shortName": "AutomaticImprovementsService",
873 "fullName": "google.shopping.merchant.accounts.v1.AutomaticImprovementsService"
874 }
875 }
876 },
877 "origin": "API_DEFINITION",
878 "segments": [
879 {
880 "start": 18,
881 "end": 53,
882 "type": "FULL"
883 }
884 ]
885 },
886 {
887 "regionTag": "merchantapi_v1_generated_BusinessIdentityService_GetBusinessIdentity_sync",
888 "title": "merchantapi GetBusinessIdentity Sample",
889 "description": "GetBusinessIdentity retrieves the business identity of an account.",
890 "file": "BusinessIdentityClient/GetBusinessIdentity/main.go",
891 "language": "GO",
892 "clientMethod": {
893 "shortName": "GetBusinessIdentity",
894 "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityClient.GetBusinessIdentity",
895 "parameters": [
896 {
897 "type": "context.Context",
898 "name": "ctx"
899 },
900 {
901 "type": "accountspb.GetBusinessIdentityRequest",
902 "name": "req"
903 },
904 {
905 "type": "...gax.CallOption",
906 "name": "opts"
907 }
908 ],
909 "resultType": "*accountspb.BusinessIdentity",
910 "client": {
911 "shortName": "BusinessIdentityClient",
912 "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityClient"
913 },
914 "method": {
915 "shortName": "GetBusinessIdentity",
916 "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityService.GetBusinessIdentity",
917 "service": {
918 "shortName": "BusinessIdentityService",
919 "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityService"
920 }
921 }
922 },
923 "origin": "API_DEFINITION",
924 "segments": [
925 {
926 "start": 18,
927 "end": 53,
928 "type": "FULL"
929 }
930 ]
931 },
932 {
933 "regionTag": "merchantapi_v1_generated_BusinessIdentityService_UpdateBusinessIdentity_sync",
934 "title": "merchantapi UpdateBusinessIdentity Sample",
935 "description": "UpdateBusinessIdentity updates the business identity of an account. Executing this method requires\nadmin access.",
936 "file": "BusinessIdentityClient/UpdateBusinessIdentity/main.go",
937 "language": "GO",
938 "clientMethod": {
939 "shortName": "UpdateBusinessIdentity",
940 "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityClient.UpdateBusinessIdentity",
941 "parameters": [
942 {
943 "type": "context.Context",
944 "name": "ctx"
945 },
946 {
947 "type": "accountspb.UpdateBusinessIdentityRequest",
948 "name": "req"
949 },
950 {
951 "type": "...gax.CallOption",
952 "name": "opts"
953 }
954 ],
955 "resultType": "*accountspb.BusinessIdentity",
956 "client": {
957 "shortName": "BusinessIdentityClient",
958 "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityClient"
959 },
960 "method": {
961 "shortName": "UpdateBusinessIdentity",
962 "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityService.UpdateBusinessIdentity",
963 "service": {
964 "shortName": "BusinessIdentityService",
965 "fullName": "google.shopping.merchant.accounts.v1.BusinessIdentityService"
966 }
967 }
968 },
969 "origin": "API_DEFINITION",
970 "segments": [
971 {
972 "start": 18,
973 "end": 53,
974 "type": "FULL"
975 }
976 ]
977 },
978 {
979 "regionTag": "merchantapi_v1_generated_BusinessInfoService_GetBusinessInfo_sync",
980 "title": "merchantapi GetBusinessInfo Sample",
981 "description": "GetBusinessInfo retrieves the business info of an account.",
982 "file": "BusinessInfoClient/GetBusinessInfo/main.go",
983 "language": "GO",
984 "clientMethod": {
985 "shortName": "GetBusinessInfo",
986 "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoClient.GetBusinessInfo",
987 "parameters": [
988 {
989 "type": "context.Context",
990 "name": "ctx"
991 },
992 {
993 "type": "accountspb.GetBusinessInfoRequest",
994 "name": "req"
995 },
996 {
997 "type": "...gax.CallOption",
998 "name": "opts"
999 }
1000 ],
1001 "resultType": "*accountspb.BusinessInfo",
1002 "client": {
1003 "shortName": "BusinessInfoClient",
1004 "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoClient"
1005 },
1006 "method": {
1007 "shortName": "GetBusinessInfo",
1008 "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoService.GetBusinessInfo",
1009 "service": {
1010 "shortName": "BusinessInfoService",
1011 "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoService"
1012 }
1013 }
1014 },
1015 "origin": "API_DEFINITION",
1016 "segments": [
1017 {
1018 "start": 18,
1019 "end": 53,
1020 "type": "FULL"
1021 }
1022 ]
1023 },
1024 {
1025 "regionTag": "merchantapi_v1_generated_BusinessInfoService_UpdateBusinessInfo_sync",
1026 "title": "merchantapi UpdateBusinessInfo Sample",
1027 "description": "UpdateBusinessInfo updates the business info of an account. Executing this method requires\nadmin access.",
1028 "file": "BusinessInfoClient/UpdateBusinessInfo/main.go",
1029 "language": "GO",
1030 "clientMethod": {
1031 "shortName": "UpdateBusinessInfo",
1032 "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoClient.UpdateBusinessInfo",
1033 "parameters": [
1034 {
1035 "type": "context.Context",
1036 "name": "ctx"
1037 },
1038 {
1039 "type": "accountspb.UpdateBusinessInfoRequest",
1040 "name": "req"
1041 },
1042 {
1043 "type": "...gax.CallOption",
1044 "name": "opts"
1045 }
1046 ],
1047 "resultType": "*accountspb.BusinessInfo",
1048 "client": {
1049 "shortName": "BusinessInfoClient",
1050 "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoClient"
1051 },
1052 "method": {
1053 "shortName": "UpdateBusinessInfo",
1054 "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoService.UpdateBusinessInfo",
1055 "service": {
1056 "shortName": "BusinessInfoService",
1057 "fullName": "google.shopping.merchant.accounts.v1.BusinessInfoService"
1058 }
1059 }
1060 },
1061 "origin": "API_DEFINITION",
1062 "segments": [
1063 {
1064 "start": 18,
1065 "end": 53,
1066 "type": "FULL"
1067 }
1068 ]
1069 },
1070 {
1071 "regionTag": "merchantapi_v1_generated_CheckoutSettingsService_CreateCheckoutSettings_sync",
1072 "title": "merchantapi CreateCheckoutSettings Sample",
1073 "description": "CreateCheckoutSettings creates `CheckoutSettings` for the given merchant.",
1074 "file": "CheckoutSettingsClient/CreateCheckoutSettings/main.go",
1075 "language": "GO",
1076 "clientMethod": {
1077 "shortName": "CreateCheckoutSettings",
1078 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsClient.CreateCheckoutSettings",
1079 "parameters": [
1080 {
1081 "type": "context.Context",
1082 "name": "ctx"
1083 },
1084 {
1085 "type": "accountspb.CreateCheckoutSettingsRequest",
1086 "name": "req"
1087 },
1088 {
1089 "type": "...gax.CallOption",
1090 "name": "opts"
1091 }
1092 ],
1093 "resultType": "*accountspb.CheckoutSettings",
1094 "client": {
1095 "shortName": "CheckoutSettingsClient",
1096 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsClient"
1097 },
1098 "method": {
1099 "shortName": "CreateCheckoutSettings",
1100 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService.CreateCheckoutSettings",
1101 "service": {
1102 "shortName": "CheckoutSettingsService",
1103 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService"
1104 }
1105 }
1106 },
1107 "origin": "API_DEFINITION",
1108 "segments": [
1109 {
1110 "start": 18,
1111 "end": 53,
1112 "type": "FULL"
1113 }
1114 ]
1115 },
1116 {
1117 "regionTag": "merchantapi_v1_generated_CheckoutSettingsService_DeleteCheckoutSettings_sync",
1118 "title": "merchantapi DeleteCheckoutSettings Sample",
1119 "description": "DeleteCheckoutSettings deletes `CheckoutSettings` and unenrolls merchant from\n`Checkout` program.",
1120 "file": "CheckoutSettingsClient/DeleteCheckoutSettings/main.go",
1121 "language": "GO",
1122 "clientMethod": {
1123 "shortName": "DeleteCheckoutSettings",
1124 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsClient.DeleteCheckoutSettings",
1125 "parameters": [
1126 {
1127 "type": "context.Context",
1128 "name": "ctx"
1129 },
1130 {
1131 "type": "accountspb.DeleteCheckoutSettingsRequest",
1132 "name": "req"
1133 },
1134 {
1135 "type": "...gax.CallOption",
1136 "name": "opts"
1137 }
1138 ],
1139 "client": {
1140 "shortName": "CheckoutSettingsClient",
1141 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsClient"
1142 },
1143 "method": {
1144 "shortName": "DeleteCheckoutSettings",
1145 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService.DeleteCheckoutSettings",
1146 "service": {
1147 "shortName": "CheckoutSettingsService",
1148 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService"
1149 }
1150 }
1151 },
1152 "origin": "API_DEFINITION",
1153 "segments": [
1154 {
1155 "start": 18,
1156 "end": 51,
1157 "type": "FULL"
1158 }
1159 ]
1160 },
1161 {
1162 "regionTag": "merchantapi_v1_generated_CheckoutSettingsService_GetCheckoutSettings_sync",
1163 "title": "merchantapi GetCheckoutSettings Sample",
1164 "description": "GetCheckoutSettings gets `CheckoutSettings` for the given merchant. This includes\ninformation about review state, enrollment state and URL settings.",
1165 "file": "CheckoutSettingsClient/GetCheckoutSettings/main.go",
1166 "language": "GO",
1167 "clientMethod": {
1168 "shortName": "GetCheckoutSettings",
1169 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsClient.GetCheckoutSettings",
1170 "parameters": [
1171 {
1172 "type": "context.Context",
1173 "name": "ctx"
1174 },
1175 {
1176 "type": "accountspb.GetCheckoutSettingsRequest",
1177 "name": "req"
1178 },
1179 {
1180 "type": "...gax.CallOption",
1181 "name": "opts"
1182 }
1183 ],
1184 "resultType": "*accountspb.CheckoutSettings",
1185 "client": {
1186 "shortName": "CheckoutSettingsClient",
1187 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsClient"
1188 },
1189 "method": {
1190 "shortName": "GetCheckoutSettings",
1191 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService.GetCheckoutSettings",
1192 "service": {
1193 "shortName": "CheckoutSettingsService",
1194 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService"
1195 }
1196 }
1197 },
1198 "origin": "API_DEFINITION",
1199 "segments": [
1200 {
1201 "start": 18,
1202 "end": 53,
1203 "type": "FULL"
1204 }
1205 ]
1206 },
1207 {
1208 "regionTag": "merchantapi_v1_generated_CheckoutSettingsService_UpdateCheckoutSettings_sync",
1209 "title": "merchantapi UpdateCheckoutSettings Sample",
1210 "description": "UpdateCheckoutSettings updates `CheckoutSettings` for the given merchant.",
1211 "file": "CheckoutSettingsClient/UpdateCheckoutSettings/main.go",
1212 "language": "GO",
1213 "clientMethod": {
1214 "shortName": "UpdateCheckoutSettings",
1215 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsClient.UpdateCheckoutSettings",
1216 "parameters": [
1217 {
1218 "type": "context.Context",
1219 "name": "ctx"
1220 },
1221 {
1222 "type": "accountspb.UpdateCheckoutSettingsRequest",
1223 "name": "req"
1224 },
1225 {
1226 "type": "...gax.CallOption",
1227 "name": "opts"
1228 }
1229 ],
1230 "resultType": "*accountspb.CheckoutSettings",
1231 "client": {
1232 "shortName": "CheckoutSettingsClient",
1233 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsClient"
1234 },
1235 "method": {
1236 "shortName": "UpdateCheckoutSettings",
1237 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService.UpdateCheckoutSettings",
1238 "service": {
1239 "shortName": "CheckoutSettingsService",
1240 "fullName": "google.shopping.merchant.accounts.v1.CheckoutSettingsService"
1241 }
1242 }
1243 },
1244 "origin": "API_DEFINITION",
1245 "segments": [
1246 {
1247 "start": 18,
1248 "end": 53,
1249 "type": "FULL"
1250 }
1251 ]
1252 },
1253 {
1254 "regionTag": "merchantapi_v1_generated_DeveloperRegistrationService_GetDeveloperRegistration_sync",
1255 "title": "merchantapi GetDeveloperRegistration Sample",
1256 "description": "GetDeveloperRegistration retrieves a developer registration for a merchant.",
1257 "file": "DeveloperRegistrationClient/GetDeveloperRegistration/main.go",
1258 "language": "GO",
1259 "clientMethod": {
1260 "shortName": "GetDeveloperRegistration",
1261 "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationClient.GetDeveloperRegistration",
1262 "parameters": [
1263 {
1264 "type": "context.Context",
1265 "name": "ctx"
1266 },
1267 {
1268 "type": "accountspb.GetDeveloperRegistrationRequest",
1269 "name": "req"
1270 },
1271 {
1272 "type": "...gax.CallOption",
1273 "name": "opts"
1274 }
1275 ],
1276 "resultType": "*accountspb.DeveloperRegistration",
1277 "client": {
1278 "shortName": "DeveloperRegistrationClient",
1279 "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationClient"
1280 },
1281 "method": {
1282 "shortName": "GetDeveloperRegistration",
1283 "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService.GetDeveloperRegistration",
1284 "service": {
1285 "shortName": "DeveloperRegistrationService",
1286 "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService"
1287 }
1288 }
1289 },
1290 "origin": "API_DEFINITION",
1291 "segments": [
1292 {
1293 "start": 18,
1294 "end": 53,
1295 "type": "FULL"
1296 }
1297 ]
1298 },
1299 {
1300 "regionTag": "merchantapi_v1_generated_DeveloperRegistrationService_RegisterGcp_sync",
1301 "title": "merchantapi RegisterGcp Sample",
1302 "description": "RegisterGcp registers the GCP used for the API call to the shopping account passed in\nthe request. Will create a user with an \"API developer\" and add the\n\"developer_email\" as a contact with \"API notifications\" email preference\non.",
1303 "file": "DeveloperRegistrationClient/RegisterGcp/main.go",
1304 "language": "GO",
1305 "clientMethod": {
1306 "shortName": "RegisterGcp",
1307 "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationClient.RegisterGcp",
1308 "parameters": [
1309 {
1310 "type": "context.Context",
1311 "name": "ctx"
1312 },
1313 {
1314 "type": "accountspb.RegisterGcpRequest",
1315 "name": "req"
1316 },
1317 {
1318 "type": "...gax.CallOption",
1319 "name": "opts"
1320 }
1321 ],
1322 "resultType": "*accountspb.DeveloperRegistration",
1323 "client": {
1324 "shortName": "DeveloperRegistrationClient",
1325 "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationClient"
1326 },
1327 "method": {
1328 "shortName": "RegisterGcp",
1329 "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService.RegisterGcp",
1330 "service": {
1331 "shortName": "DeveloperRegistrationService",
1332 "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService"
1333 }
1334 }
1335 },
1336 "origin": "API_DEFINITION",
1337 "segments": [
1338 {
1339 "start": 18,
1340 "end": 53,
1341 "type": "FULL"
1342 }
1343 ]
1344 },
1345 {
1346 "regionTag": "merchantapi_v1_generated_DeveloperRegistrationService_UnregisterGcp_sync",
1347 "title": "merchantapi UnregisterGcp Sample",
1348 "description": "UnregisterGcp unregister the calling GCP from the calling shopping account. Note that the\nGCP will still be able to access the API for at most 1 day from the\nunregister succussful call.",
1349 "file": "DeveloperRegistrationClient/UnregisterGcp/main.go",
1350 "language": "GO",
1351 "clientMethod": {
1352 "shortName": "UnregisterGcp",
1353 "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationClient.UnregisterGcp",
1354 "parameters": [
1355 {
1356 "type": "context.Context",
1357 "name": "ctx"
1358 },
1359 {
1360 "type": "accountspb.UnregisterGcpRequest",
1361 "name": "req"
1362 },
1363 {
1364 "type": "...gax.CallOption",
1365 "name": "opts"
1366 }
1367 ],
1368 "client": {
1369 "shortName": "DeveloperRegistrationClient",
1370 "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationClient"
1371 },
1372 "method": {
1373 "shortName": "UnregisterGcp",
1374 "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService.UnregisterGcp",
1375 "service": {
1376 "shortName": "DeveloperRegistrationService",
1377 "fullName": "google.shopping.merchant.accounts.v1.DeveloperRegistrationService"
1378 }
1379 }
1380 },
1381 "origin": "API_DEFINITION",
1382 "segments": [
1383 {
1384 "start": 18,
1385 "end": 51,
1386 "type": "FULL"
1387 }
1388 ]
1389 },
1390 {
1391 "regionTag": "merchantapi_v1_generated_EmailPreferencesService_GetEmailPreferences_sync",
1392 "title": "merchantapi GetEmailPreferences Sample",
1393 "description": "GetEmailPreferences returns the email preferences for a Merchant Center account user.\nThis service only permits retrieving and updating email preferences for the\nauthenticated user.\nUse the name=accounts/*/users/me/emailPreferences alias to get preferences\nfor the authenticated user.",
1394 "file": "EmailPreferencesClient/GetEmailPreferences/main.go",
1395 "language": "GO",
1396 "clientMethod": {
1397 "shortName": "GetEmailPreferences",
1398 "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesClient.GetEmailPreferences",
1399 "parameters": [
1400 {
1401 "type": "context.Context",
1402 "name": "ctx"
1403 },
1404 {
1405 "type": "accountspb.GetEmailPreferencesRequest",
1406 "name": "req"
1407 },
1408 {
1409 "type": "...gax.CallOption",
1410 "name": "opts"
1411 }
1412 ],
1413 "resultType": "*accountspb.EmailPreferences",
1414 "client": {
1415 "shortName": "EmailPreferencesClient",
1416 "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesClient"
1417 },
1418 "method": {
1419 "shortName": "GetEmailPreferences",
1420 "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesService.GetEmailPreferences",
1421 "service": {
1422 "shortName": "EmailPreferencesService",
1423 "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesService"
1424 }
1425 }
1426 },
1427 "origin": "API_DEFINITION",
1428 "segments": [
1429 {
1430 "start": 18,
1431 "end": 53,
1432 "type": "FULL"
1433 }
1434 ]
1435 },
1436 {
1437 "regionTag": "merchantapi_v1_generated_EmailPreferencesService_UpdateEmailPreferences_sync",
1438 "title": "merchantapi UpdateEmailPreferences Sample",
1439 "description": "UpdateEmailPreferences updates the email preferences for a Merchant Center account user. Advanced\naccount users should specify the advanced account rather than a sub-account\nof the advanced account.\n\nPreferences which are not explicitly selected in the update mask will not\nbe updated.\n\nIt is invalid for updates to specify an UNCONFIRMED opt-in status value.\n\nUse the name=accounts/*/users/me/emailPreferences alias to update\npreferences\nfor the authenticated user.",
1440 "file": "EmailPreferencesClient/UpdateEmailPreferences/main.go",
1441 "language": "GO",
1442 "clientMethod": {
1443 "shortName": "UpdateEmailPreferences",
1444 "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesClient.UpdateEmailPreferences",
1445 "parameters": [
1446 {
1447 "type": "context.Context",
1448 "name": "ctx"
1449 },
1450 {
1451 "type": "accountspb.UpdateEmailPreferencesRequest",
1452 "name": "req"
1453 },
1454 {
1455 "type": "...gax.CallOption",
1456 "name": "opts"
1457 }
1458 ],
1459 "resultType": "*accountspb.EmailPreferences",
1460 "client": {
1461 "shortName": "EmailPreferencesClient",
1462 "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesClient"
1463 },
1464 "method": {
1465 "shortName": "UpdateEmailPreferences",
1466 "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesService.UpdateEmailPreferences",
1467 "service": {
1468 "shortName": "EmailPreferencesService",
1469 "fullName": "google.shopping.merchant.accounts.v1.EmailPreferencesService"
1470 }
1471 }
1472 },
1473 "origin": "API_DEFINITION",
1474 "segments": [
1475 {
1476 "start": 18,
1477 "end": 53,
1478 "type": "FULL"
1479 }
1480 ]
1481 },
1482 {
1483 "regionTag": "merchantapi_v1_generated_GbpAccountsService_LinkGbpAccount_sync",
1484 "title": "merchantapi LinkGbpAccount Sample",
1485 "description": "LinkGbpAccount link the specified merchant to a GBP account for all countries.\n\nTo run this method, you must have admin access to the Merchant Center\naccount. If you don't have admin access, the request fails with the error\nmessage `User is not an administrator of account {ACCOUNT_ID}`.",
1486 "file": "GbpAccountsClient/LinkGbpAccount/main.go",
1487 "language": "GO",
1488 "clientMethod": {
1489 "shortName": "LinkGbpAccount",
1490 "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsClient.LinkGbpAccount",
1491 "parameters": [
1492 {
1493 "type": "context.Context",
1494 "name": "ctx"
1495 },
1496 {
1497 "type": "accountspb.LinkGbpAccountRequest",
1498 "name": "req"
1499 },
1500 {
1501 "type": "...gax.CallOption",
1502 "name": "opts"
1503 }
1504 ],
1505 "resultType": "*accountspb.LinkGbpAccountResponse",
1506 "client": {
1507 "shortName": "GbpAccountsClient",
1508 "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsClient"
1509 },
1510 "method": {
1511 "shortName": "LinkGbpAccount",
1512 "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsService.LinkGbpAccount",
1513 "service": {
1514 "shortName": "GbpAccountsService",
1515 "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsService"
1516 }
1517 }
1518 },
1519 "origin": "API_DEFINITION",
1520 "segments": [
1521 {
1522 "start": 18,
1523 "end": 53,
1524 "type": "FULL"
1525 }
1526 ]
1527 },
1528 {
1529 "regionTag": "merchantapi_v1_generated_GbpAccountsService_ListGbpAccounts_sync",
1530 "title": "merchantapi ListGbpAccounts Sample",
1531 "description": "ListGbpAccounts list the GBP accounts for a given merchant.",
1532 "file": "GbpAccountsClient/ListGbpAccounts/main.go",
1533 "language": "GO",
1534 "clientMethod": {
1535 "shortName": "ListGbpAccounts",
1536 "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsClient.ListGbpAccounts",
1537 "parameters": [
1538 {
1539 "type": "context.Context",
1540 "name": "ctx"
1541 },
1542 {
1543 "type": "accountspb.ListGbpAccountsRequest",
1544 "name": "req"
1545 },
1546 {
1547 "type": "...gax.CallOption",
1548 "name": "opts"
1549 }
1550 ],
1551 "resultType": "GbpAccountIterator",
1552 "client": {
1553 "shortName": "GbpAccountsClient",
1554 "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsClient"
1555 },
1556 "method": {
1557 "shortName": "ListGbpAccounts",
1558 "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsService.ListGbpAccounts",
1559 "service": {
1560 "shortName": "GbpAccountsService",
1561 "fullName": "google.shopping.merchant.accounts.v1.GbpAccountsService"
1562 }
1563 }
1564 },
1565 "origin": "API_DEFINITION",
1566 "segments": [
1567 {
1568 "start": 18,
1569 "end": 66,
1570 "type": "FULL"
1571 }
1572 ]
1573 },
1574 {
1575 "regionTag": "merchantapi_v1_generated_HomepageService_ClaimHomepage_sync",
1576 "title": "merchantapi ClaimHomepage Sample",
1577 "description": "ClaimHomepage claims a store's homepage. Executing this method requires admin access.\n\nIf the homepage is already claimed, this will recheck the\nverification (unless the business is exempted from claiming, which also\nexempts from verification) and return a successful response. If ownership\ncan no longer be verified, it will return an error, but it won't clear the\nclaim.\n\nIn case of failure, a canonical error message is returned: \n\n* PERMISSION_DENIED: User doesn't have the necessary permissions on this\nMerchant Center account.\n\n* FAILED_PRECONDITION: \n\n- The account is not a Merchant Center account.\n\n- Merchant Center account doesn't have a homepage.\n\n- Claiming failed (in this case the error message contains more\ndetails).",
1578 "file": "HomepageClient/ClaimHomepage/main.go",
1579 "language": "GO",
1580 "clientMethod": {
1581 "shortName": "ClaimHomepage",
1582 "fullName": "google.shopping.merchant.accounts.v1.HomepageClient.ClaimHomepage",
1583 "parameters": [
1584 {
1585 "type": "context.Context",
1586 "name": "ctx"
1587 },
1588 {
1589 "type": "accountspb.ClaimHomepageRequest",
1590 "name": "req"
1591 },
1592 {
1593 "type": "...gax.CallOption",
1594 "name": "opts"
1595 }
1596 ],
1597 "resultType": "*accountspb.Homepage",
1598 "client": {
1599 "shortName": "HomepageClient",
1600 "fullName": "google.shopping.merchant.accounts.v1.HomepageClient"
1601 },
1602 "method": {
1603 "shortName": "ClaimHomepage",
1604 "fullName": "google.shopping.merchant.accounts.v1.HomepageService.ClaimHomepage",
1605 "service": {
1606 "shortName": "HomepageService",
1607 "fullName": "google.shopping.merchant.accounts.v1.HomepageService"
1608 }
1609 }
1610 },
1611 "origin": "API_DEFINITION",
1612 "segments": [
1613 {
1614 "start": 18,
1615 "end": 53,
1616 "type": "FULL"
1617 }
1618 ]
1619 },
1620 {
1621 "regionTag": "merchantapi_v1_generated_HomepageService_GetHomepage_sync",
1622 "title": "merchantapi GetHomepage Sample",
1623 "description": "GetHomepage retrieves a store's homepage.",
1624 "file": "HomepageClient/GetHomepage/main.go",
1625 "language": "GO",
1626 "clientMethod": {
1627 "shortName": "GetHomepage",
1628 "fullName": "google.shopping.merchant.accounts.v1.HomepageClient.GetHomepage",
1629 "parameters": [
1630 {
1631 "type": "context.Context",
1632 "name": "ctx"
1633 },
1634 {
1635 "type": "accountspb.GetHomepageRequest",
1636 "name": "req"
1637 },
1638 {
1639 "type": "...gax.CallOption",
1640 "name": "opts"
1641 }
1642 ],
1643 "resultType": "*accountspb.Homepage",
1644 "client": {
1645 "shortName": "HomepageClient",
1646 "fullName": "google.shopping.merchant.accounts.v1.HomepageClient"
1647 },
1648 "method": {
1649 "shortName": "GetHomepage",
1650 "fullName": "google.shopping.merchant.accounts.v1.HomepageService.GetHomepage",
1651 "service": {
1652 "shortName": "HomepageService",
1653 "fullName": "google.shopping.merchant.accounts.v1.HomepageService"
1654 }
1655 }
1656 },
1657 "origin": "API_DEFINITION",
1658 "segments": [
1659 {
1660 "start": 18,
1661 "end": 53,
1662 "type": "FULL"
1663 }
1664 ]
1665 },
1666 {
1667 "regionTag": "merchantapi_v1_generated_HomepageService_UnclaimHomepage_sync",
1668 "title": "merchantapi UnclaimHomepage Sample",
1669 "description": "UnclaimHomepage unclaims a store's homepage. Executing this method requires admin access.",
1670 "file": "HomepageClient/UnclaimHomepage/main.go",
1671 "language": "GO",
1672 "clientMethod": {
1673 "shortName": "UnclaimHomepage",
1674 "fullName": "google.shopping.merchant.accounts.v1.HomepageClient.UnclaimHomepage",
1675 "parameters": [
1676 {
1677 "type": "context.Context",
1678 "name": "ctx"
1679 },
1680 {
1681 "type": "accountspb.UnclaimHomepageRequest",
1682 "name": "req"
1683 },
1684 {
1685 "type": "...gax.CallOption",
1686 "name": "opts"
1687 }
1688 ],
1689 "resultType": "*accountspb.Homepage",
1690 "client": {
1691 "shortName": "HomepageClient",
1692 "fullName": "google.shopping.merchant.accounts.v1.HomepageClient"
1693 },
1694 "method": {
1695 "shortName": "UnclaimHomepage",
1696 "fullName": "google.shopping.merchant.accounts.v1.HomepageService.UnclaimHomepage",
1697 "service": {
1698 "shortName": "HomepageService",
1699 "fullName": "google.shopping.merchant.accounts.v1.HomepageService"
1700 }
1701 }
1702 },
1703 "origin": "API_DEFINITION",
1704 "segments": [
1705 {
1706 "start": 18,
1707 "end": 53,
1708 "type": "FULL"
1709 }
1710 ]
1711 },
1712 {
1713 "regionTag": "merchantapi_v1_generated_HomepageService_UpdateHomepage_sync",
1714 "title": "merchantapi UpdateHomepage Sample",
1715 "description": "UpdateHomepage updates a store's homepage. Executing this method requires admin access.",
1716 "file": "HomepageClient/UpdateHomepage/main.go",
1717 "language": "GO",
1718 "clientMethod": {
1719 "shortName": "UpdateHomepage",
1720 "fullName": "google.shopping.merchant.accounts.v1.HomepageClient.UpdateHomepage",
1721 "parameters": [
1722 {
1723 "type": "context.Context",
1724 "name": "ctx"
1725 },
1726 {
1727 "type": "accountspb.UpdateHomepageRequest",
1728 "name": "req"
1729 },
1730 {
1731 "type": "...gax.CallOption",
1732 "name": "opts"
1733 }
1734 ],
1735 "resultType": "*accountspb.Homepage",
1736 "client": {
1737 "shortName": "HomepageClient",
1738 "fullName": "google.shopping.merchant.accounts.v1.HomepageClient"
1739 },
1740 "method": {
1741 "shortName": "UpdateHomepage",
1742 "fullName": "google.shopping.merchant.accounts.v1.HomepageService.UpdateHomepage",
1743 "service": {
1744 "shortName": "HomepageService",
1745 "fullName": "google.shopping.merchant.accounts.v1.HomepageService"
1746 }
1747 }
1748 },
1749 "origin": "API_DEFINITION",
1750 "segments": [
1751 {
1752 "start": 18,
1753 "end": 53,
1754 "type": "FULL"
1755 }
1756 ]
1757 },
1758 {
1759 "regionTag": "merchantapi_v1_generated_LfpProvidersService_FindLfpProviders_sync",
1760 "title": "merchantapi FindLfpProviders Sample",
1761 "description": "FindLfpProviders find the LFP provider candidates in a given country.",
1762 "file": "LfpProvidersClient/FindLfpProviders/main.go",
1763 "language": "GO",
1764 "clientMethod": {
1765 "shortName": "FindLfpProviders",
1766 "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersClient.FindLfpProviders",
1767 "parameters": [
1768 {
1769 "type": "context.Context",
1770 "name": "ctx"
1771 },
1772 {
1773 "type": "accountspb.FindLfpProvidersRequest",
1774 "name": "req"
1775 },
1776 {
1777 "type": "...gax.CallOption",
1778 "name": "opts"
1779 }
1780 ],
1781 "resultType": "LfpProviderIterator",
1782 "client": {
1783 "shortName": "LfpProvidersClient",
1784 "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersClient"
1785 },
1786 "method": {
1787 "shortName": "FindLfpProviders",
1788 "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersService.FindLfpProviders",
1789 "service": {
1790 "shortName": "LfpProvidersService",
1791 "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersService"
1792 }
1793 }
1794 },
1795 "origin": "API_DEFINITION",
1796 "segments": [
1797 {
1798 "start": 18,
1799 "end": 66,
1800 "type": "FULL"
1801 }
1802 ]
1803 },
1804 {
1805 "regionTag": "merchantapi_v1_generated_LfpProvidersService_LinkLfpProvider_sync",
1806 "title": "merchantapi LinkLfpProvider Sample",
1807 "description": "LinkLfpProvider link the specified merchant to a LFP provider for the specified country.",
1808 "file": "LfpProvidersClient/LinkLfpProvider/main.go",
1809 "language": "GO",
1810 "clientMethod": {
1811 "shortName": "LinkLfpProvider",
1812 "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersClient.LinkLfpProvider",
1813 "parameters": [
1814 {
1815 "type": "context.Context",
1816 "name": "ctx"
1817 },
1818 {
1819 "type": "accountspb.LinkLfpProviderRequest",
1820 "name": "req"
1821 },
1822 {
1823 "type": "...gax.CallOption",
1824 "name": "opts"
1825 }
1826 ],
1827 "resultType": "*accountspb.LinkLfpProviderResponse",
1828 "client": {
1829 "shortName": "LfpProvidersClient",
1830 "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersClient"
1831 },
1832 "method": {
1833 "shortName": "LinkLfpProvider",
1834 "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersService.LinkLfpProvider",
1835 "service": {
1836 "shortName": "LfpProvidersService",
1837 "fullName": "google.shopping.merchant.accounts.v1.LfpProvidersService"
1838 }
1839 }
1840 },
1841 "origin": "API_DEFINITION",
1842 "segments": [
1843 {
1844 "start": 18,
1845 "end": 53,
1846 "type": "FULL"
1847 }
1848 ]
1849 },
1850 {
1851 "regionTag": "merchantapi_v1_generated_OmnichannelSettingsService_CreateOmnichannelSetting_sync",
1852 "title": "merchantapi CreateOmnichannelSetting Sample",
1853 "description": "CreateOmnichannelSetting create the omnichannel settings for a given merchant.",
1854 "file": "OmnichannelSettingsClient/CreateOmnichannelSetting/main.go",
1855 "language": "GO",
1856 "clientMethod": {
1857 "shortName": "CreateOmnichannelSetting",
1858 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsClient.CreateOmnichannelSetting",
1859 "parameters": [
1860 {
1861 "type": "context.Context",
1862 "name": "ctx"
1863 },
1864 {
1865 "type": "accountspb.CreateOmnichannelSettingRequest",
1866 "name": "req"
1867 },
1868 {
1869 "type": "...gax.CallOption",
1870 "name": "opts"
1871 }
1872 ],
1873 "resultType": "*accountspb.OmnichannelSetting",
1874 "client": {
1875 "shortName": "OmnichannelSettingsClient",
1876 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsClient"
1877 },
1878 "method": {
1879 "shortName": "CreateOmnichannelSetting",
1880 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.CreateOmnichannelSetting",
1881 "service": {
1882 "shortName": "OmnichannelSettingsService",
1883 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService"
1884 }
1885 }
1886 },
1887 "origin": "API_DEFINITION",
1888 "segments": [
1889 {
1890 "start": 18,
1891 "end": 53,
1892 "type": "FULL"
1893 }
1894 ]
1895 },
1896 {
1897 "regionTag": "merchantapi_v1_generated_OmnichannelSettingsService_GetOmnichannelSetting_sync",
1898 "title": "merchantapi GetOmnichannelSetting Sample",
1899 "description": "GetOmnichannelSetting get the omnichannel settings for a given merchant.",
1900 "file": "OmnichannelSettingsClient/GetOmnichannelSetting/main.go",
1901 "language": "GO",
1902 "clientMethod": {
1903 "shortName": "GetOmnichannelSetting",
1904 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsClient.GetOmnichannelSetting",
1905 "parameters": [
1906 {
1907 "type": "context.Context",
1908 "name": "ctx"
1909 },
1910 {
1911 "type": "accountspb.GetOmnichannelSettingRequest",
1912 "name": "req"
1913 },
1914 {
1915 "type": "...gax.CallOption",
1916 "name": "opts"
1917 }
1918 ],
1919 "resultType": "*accountspb.OmnichannelSetting",
1920 "client": {
1921 "shortName": "OmnichannelSettingsClient",
1922 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsClient"
1923 },
1924 "method": {
1925 "shortName": "GetOmnichannelSetting",
1926 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.GetOmnichannelSetting",
1927 "service": {
1928 "shortName": "OmnichannelSettingsService",
1929 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService"
1930 }
1931 }
1932 },
1933 "origin": "API_DEFINITION",
1934 "segments": [
1935 {
1936 "start": 18,
1937 "end": 53,
1938 "type": "FULL"
1939 }
1940 ]
1941 },
1942 {
1943 "regionTag": "merchantapi_v1_generated_OmnichannelSettingsService_ListOmnichannelSettings_sync",
1944 "title": "merchantapi ListOmnichannelSettings Sample",
1945 "description": "ListOmnichannelSettings list all the omnichannel settings for a given merchant.",
1946 "file": "OmnichannelSettingsClient/ListOmnichannelSettings/main.go",
1947 "language": "GO",
1948 "clientMethod": {
1949 "shortName": "ListOmnichannelSettings",
1950 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsClient.ListOmnichannelSettings",
1951 "parameters": [
1952 {
1953 "type": "context.Context",
1954 "name": "ctx"
1955 },
1956 {
1957 "type": "accountspb.ListOmnichannelSettingsRequest",
1958 "name": "req"
1959 },
1960 {
1961 "type": "...gax.CallOption",
1962 "name": "opts"
1963 }
1964 ],
1965 "resultType": "OmnichannelSettingIterator",
1966 "client": {
1967 "shortName": "OmnichannelSettingsClient",
1968 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsClient"
1969 },
1970 "method": {
1971 "shortName": "ListOmnichannelSettings",
1972 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.ListOmnichannelSettings",
1973 "service": {
1974 "shortName": "OmnichannelSettingsService",
1975 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService"
1976 }
1977 }
1978 },
1979 "origin": "API_DEFINITION",
1980 "segments": [
1981 {
1982 "start": 18,
1983 "end": 66,
1984 "type": "FULL"
1985 }
1986 ]
1987 },
1988 {
1989 "regionTag": "merchantapi_v1_generated_OmnichannelSettingsService_RequestInventoryVerification_sync",
1990 "title": "merchantapi RequestInventoryVerification Sample",
1991 "description": "RequestInventoryVerification requests inventory verification for a given merchant in a given country.",
1992 "file": "OmnichannelSettingsClient/RequestInventoryVerification/main.go",
1993 "language": "GO",
1994 "clientMethod": {
1995 "shortName": "RequestInventoryVerification",
1996 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsClient.RequestInventoryVerification",
1997 "parameters": [
1998 {
1999 "type": "context.Context",
2000 "name": "ctx"
2001 },
2002 {
2003 "type": "accountspb.RequestInventoryVerificationRequest",
2004 "name": "req"
2005 },
2006 {
2007 "type": "...gax.CallOption",
2008 "name": "opts"
2009 }
2010 ],
2011 "resultType": "*accountspb.RequestInventoryVerificationResponse",
2012 "client": {
2013 "shortName": "OmnichannelSettingsClient",
2014 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsClient"
2015 },
2016 "method": {
2017 "shortName": "RequestInventoryVerification",
2018 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.RequestInventoryVerification",
2019 "service": {
2020 "shortName": "OmnichannelSettingsService",
2021 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService"
2022 }
2023 }
2024 },
2025 "origin": "API_DEFINITION",
2026 "segments": [
2027 {
2028 "start": 18,
2029 "end": 53,
2030 "type": "FULL"
2031 }
2032 ]
2033 },
2034 {
2035 "regionTag": "merchantapi_v1_generated_OmnichannelSettingsService_UpdateOmnichannelSetting_sync",
2036 "title": "merchantapi UpdateOmnichannelSetting Sample",
2037 "description": "UpdateOmnichannelSetting update the omnichannel setting for a given merchant in a given country.",
2038 "file": "OmnichannelSettingsClient/UpdateOmnichannelSetting/main.go",
2039 "language": "GO",
2040 "clientMethod": {
2041 "shortName": "UpdateOmnichannelSetting",
2042 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsClient.UpdateOmnichannelSetting",
2043 "parameters": [
2044 {
2045 "type": "context.Context",
2046 "name": "ctx"
2047 },
2048 {
2049 "type": "accountspb.UpdateOmnichannelSettingRequest",
2050 "name": "req"
2051 },
2052 {
2053 "type": "...gax.CallOption",
2054 "name": "opts"
2055 }
2056 ],
2057 "resultType": "*accountspb.OmnichannelSetting",
2058 "client": {
2059 "shortName": "OmnichannelSettingsClient",
2060 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsClient"
2061 },
2062 "method": {
2063 "shortName": "UpdateOmnichannelSetting",
2064 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService.UpdateOmnichannelSetting",
2065 "service": {
2066 "shortName": "OmnichannelSettingsService",
2067 "fullName": "google.shopping.merchant.accounts.v1.OmnichannelSettingsService"
2068 }
2069 }
2070 },
2071 "origin": "API_DEFINITION",
2072 "segments": [
2073 {
2074 "start": 18,
2075 "end": 53,
2076 "type": "FULL"
2077 }
2078 ]
2079 },
2080 {
2081 "regionTag": "merchantapi_v1_generated_OnlineReturnPolicyService_CreateOnlineReturnPolicy_sync",
2082 "title": "merchantapi CreateOnlineReturnPolicy Sample",
2083 "description": "CreateOnlineReturnPolicy creates a new return policy for a given business.",
2084 "file": "OnlineReturnPolicyClient/CreateOnlineReturnPolicy/main.go",
2085 "language": "GO",
2086 "clientMethod": {
2087 "shortName": "CreateOnlineReturnPolicy",
2088 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyClient.CreateOnlineReturnPolicy",
2089 "parameters": [
2090 {
2091 "type": "context.Context",
2092 "name": "ctx"
2093 },
2094 {
2095 "type": "accountspb.CreateOnlineReturnPolicyRequest",
2096 "name": "req"
2097 },
2098 {
2099 "type": "...gax.CallOption",
2100 "name": "opts"
2101 }
2102 ],
2103 "resultType": "*accountspb.OnlineReturnPolicy",
2104 "client": {
2105 "shortName": "OnlineReturnPolicyClient",
2106 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyClient"
2107 },
2108 "method": {
2109 "shortName": "CreateOnlineReturnPolicy",
2110 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService.CreateOnlineReturnPolicy",
2111 "service": {
2112 "shortName": "OnlineReturnPolicyService",
2113 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService"
2114 }
2115 }
2116 },
2117 "origin": "API_DEFINITION",
2118 "segments": [
2119 {
2120 "start": 18,
2121 "end": 53,
2122 "type": "FULL"
2123 }
2124 ]
2125 },
2126 {
2127 "regionTag": "merchantapi_v1_generated_OnlineReturnPolicyService_DeleteOnlineReturnPolicy_sync",
2128 "title": "merchantapi DeleteOnlineReturnPolicy Sample",
2129 "description": "DeleteOnlineReturnPolicy deletes an existing return policy.",
2130 "file": "OnlineReturnPolicyClient/DeleteOnlineReturnPolicy/main.go",
2131 "language": "GO",
2132 "clientMethod": {
2133 "shortName": "DeleteOnlineReturnPolicy",
2134 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyClient.DeleteOnlineReturnPolicy",
2135 "parameters": [
2136 {
2137 "type": "context.Context",
2138 "name": "ctx"
2139 },
2140 {
2141 "type": "accountspb.DeleteOnlineReturnPolicyRequest",
2142 "name": "req"
2143 },
2144 {
2145 "type": "...gax.CallOption",
2146 "name": "opts"
2147 }
2148 ],
2149 "client": {
2150 "shortName": "OnlineReturnPolicyClient",
2151 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyClient"
2152 },
2153 "method": {
2154 "shortName": "DeleteOnlineReturnPolicy",
2155 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService.DeleteOnlineReturnPolicy",
2156 "service": {
2157 "shortName": "OnlineReturnPolicyService",
2158 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService"
2159 }
2160 }
2161 },
2162 "origin": "API_DEFINITION",
2163 "segments": [
2164 {
2165 "start": 18,
2166 "end": 51,
2167 "type": "FULL"
2168 }
2169 ]
2170 },
2171 {
2172 "regionTag": "merchantapi_v1_generated_OnlineReturnPolicyService_GetOnlineReturnPolicy_sync",
2173 "title": "merchantapi GetOnlineReturnPolicy Sample",
2174 "description": "GetOnlineReturnPolicy gets an existing return policy for a given business.",
2175 "file": "OnlineReturnPolicyClient/GetOnlineReturnPolicy/main.go",
2176 "language": "GO",
2177 "clientMethod": {
2178 "shortName": "GetOnlineReturnPolicy",
2179 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyClient.GetOnlineReturnPolicy",
2180 "parameters": [
2181 {
2182 "type": "context.Context",
2183 "name": "ctx"
2184 },
2185 {
2186 "type": "accountspb.GetOnlineReturnPolicyRequest",
2187 "name": "req"
2188 },
2189 {
2190 "type": "...gax.CallOption",
2191 "name": "opts"
2192 }
2193 ],
2194 "resultType": "*accountspb.OnlineReturnPolicy",
2195 "client": {
2196 "shortName": "OnlineReturnPolicyClient",
2197 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyClient"
2198 },
2199 "method": {
2200 "shortName": "GetOnlineReturnPolicy",
2201 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService.GetOnlineReturnPolicy",
2202 "service": {
2203 "shortName": "OnlineReturnPolicyService",
2204 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService"
2205 }
2206 }
2207 },
2208 "origin": "API_DEFINITION",
2209 "segments": [
2210 {
2211 "start": 18,
2212 "end": 53,
2213 "type": "FULL"
2214 }
2215 ]
2216 },
2217 {
2218 "regionTag": "merchantapi_v1_generated_OnlineReturnPolicyService_ListOnlineReturnPolicies_sync",
2219 "title": "merchantapi ListOnlineReturnPolicies Sample",
2220 "description": "ListOnlineReturnPolicies lists all existing return policies for a given business.",
2221 "file": "OnlineReturnPolicyClient/ListOnlineReturnPolicies/main.go",
2222 "language": "GO",
2223 "clientMethod": {
2224 "shortName": "ListOnlineReturnPolicies",
2225 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyClient.ListOnlineReturnPolicies",
2226 "parameters": [
2227 {
2228 "type": "context.Context",
2229 "name": "ctx"
2230 },
2231 {
2232 "type": "accountspb.ListOnlineReturnPoliciesRequest",
2233 "name": "req"
2234 },
2235 {
2236 "type": "...gax.CallOption",
2237 "name": "opts"
2238 }
2239 ],
2240 "resultType": "OnlineReturnPolicyIterator",
2241 "client": {
2242 "shortName": "OnlineReturnPolicyClient",
2243 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyClient"
2244 },
2245 "method": {
2246 "shortName": "ListOnlineReturnPolicies",
2247 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService.ListOnlineReturnPolicies",
2248 "service": {
2249 "shortName": "OnlineReturnPolicyService",
2250 "fullName": "google.shopping.merchant.accounts.v1.OnlineReturnPolicyService"
2251 }
2252 }
2253 },
2254 "origin": "API_DEFINITION",
2255 "segments": [
2256 {
2257 "start": 18,
2258 "end": 66,
2259 "type": "FULL"
2260 }
2261 ]
2262 },
2263 {
2264 "regionTag": "merchantapi_v1_generated_ProgramsService_DisableProgram_sync",
2265 "title": "merchantapi DisableProgram Sample",
2266 "description": "DisableProgram disable participation in the specified program for the account.",
2267 "file": "ProgramsClient/DisableProgram/main.go",
2268 "language": "GO",
2269 "clientMethod": {
2270 "shortName": "DisableProgram",
2271 "fullName": "google.shopping.merchant.accounts.v1.ProgramsClient.DisableProgram",
2272 "parameters": [
2273 {
2274 "type": "context.Context",
2275 "name": "ctx"
2276 },
2277 {
2278 "type": "accountspb.DisableProgramRequest",
2279 "name": "req"
2280 },
2281 {
2282 "type": "...gax.CallOption",
2283 "name": "opts"
2284 }
2285 ],
2286 "resultType": "*accountspb.Program",
2287 "client": {
2288 "shortName": "ProgramsClient",
2289 "fullName": "google.shopping.merchant.accounts.v1.ProgramsClient"
2290 },
2291 "method": {
2292 "shortName": "DisableProgram",
2293 "fullName": "google.shopping.merchant.accounts.v1.ProgramsService.DisableProgram",
2294 "service": {
2295 "shortName": "ProgramsService",
2296 "fullName": "google.shopping.merchant.accounts.v1.ProgramsService"
2297 }
2298 }
2299 },
2300 "origin": "API_DEFINITION",
2301 "segments": [
2302 {
2303 "start": 18,
2304 "end": 53,
2305 "type": "FULL"
2306 }
2307 ]
2308 },
2309 {
2310 "regionTag": "merchantapi_v1_generated_ProgramsService_EnableProgram_sync",
2311 "title": "merchantapi EnableProgram Sample",
2312 "description": "EnableProgram enable participation in the specified program for the account.",
2313 "file": "ProgramsClient/EnableProgram/main.go",
2314 "language": "GO",
2315 "clientMethod": {
2316 "shortName": "EnableProgram",
2317 "fullName": "google.shopping.merchant.accounts.v1.ProgramsClient.EnableProgram",
2318 "parameters": [
2319 {
2320 "type": "context.Context",
2321 "name": "ctx"
2322 },
2323 {
2324 "type": "accountspb.EnableProgramRequest",
2325 "name": "req"
2326 },
2327 {
2328 "type": "...gax.CallOption",
2329 "name": "opts"
2330 }
2331 ],
2332 "resultType": "*accountspb.Program",
2333 "client": {
2334 "shortName": "ProgramsClient",
2335 "fullName": "google.shopping.merchant.accounts.v1.ProgramsClient"
2336 },
2337 "method": {
2338 "shortName": "EnableProgram",
2339 "fullName": "google.shopping.merchant.accounts.v1.ProgramsService.EnableProgram",
2340 "service": {
2341 "shortName": "ProgramsService",
2342 "fullName": "google.shopping.merchant.accounts.v1.ProgramsService"
2343 }
2344 }
2345 },
2346 "origin": "API_DEFINITION",
2347 "segments": [
2348 {
2349 "start": 18,
2350 "end": 53,
2351 "type": "FULL"
2352 }
2353 ]
2354 },
2355 {
2356 "regionTag": "merchantapi_v1_generated_ProgramsService_GetProgram_sync",
2357 "title": "merchantapi GetProgram Sample",
2358 "description": "GetProgram retrieves the specified program for the account.",
2359 "file": "ProgramsClient/GetProgram/main.go",
2360 "language": "GO",
2361 "clientMethod": {
2362 "shortName": "GetProgram",
2363 "fullName": "google.shopping.merchant.accounts.v1.ProgramsClient.GetProgram",
2364 "parameters": [
2365 {
2366 "type": "context.Context",
2367 "name": "ctx"
2368 },
2369 {
2370 "type": "accountspb.GetProgramRequest",
2371 "name": "req"
2372 },
2373 {
2374 "type": "...gax.CallOption",
2375 "name": "opts"
2376 }
2377 ],
2378 "resultType": "*accountspb.Program",
2379 "client": {
2380 "shortName": "ProgramsClient",
2381 "fullName": "google.shopping.merchant.accounts.v1.ProgramsClient"
2382 },
2383 "method": {
2384 "shortName": "GetProgram",
2385 "fullName": "google.shopping.merchant.accounts.v1.ProgramsService.GetProgram",
2386 "service": {
2387 "shortName": "ProgramsService",
2388 "fullName": "google.shopping.merchant.accounts.v1.ProgramsService"
2389 }
2390 }
2391 },
2392 "origin": "API_DEFINITION",
2393 "segments": [
2394 {
2395 "start": 18,
2396 "end": 53,
2397 "type": "FULL"
2398 }
2399 ]
2400 },
2401 {
2402 "regionTag": "merchantapi_v1_generated_ProgramsService_ListPrograms_sync",
2403 "title": "merchantapi ListPrograms Sample",
2404 "description": "ListPrograms retrieves all programs for the account.",
2405 "file": "ProgramsClient/ListPrograms/main.go",
2406 "language": "GO",
2407 "clientMethod": {
2408 "shortName": "ListPrograms",
2409 "fullName": "google.shopping.merchant.accounts.v1.ProgramsClient.ListPrograms",
2410 "parameters": [
2411 {
2412 "type": "context.Context",
2413 "name": "ctx"
2414 },
2415 {
2416 "type": "accountspb.ListProgramsRequest",
2417 "name": "req"
2418 },
2419 {
2420 "type": "...gax.CallOption",
2421 "name": "opts"
2422 }
2423 ],
2424 "resultType": "ProgramIterator",
2425 "client": {
2426 "shortName": "ProgramsClient",
2427 "fullName": "google.shopping.merchant.accounts.v1.ProgramsClient"
2428 },
2429 "method": {
2430 "shortName": "ListPrograms",
2431 "fullName": "google.shopping.merchant.accounts.v1.ProgramsService.ListPrograms",
2432 "service": {
2433 "shortName": "ProgramsService",
2434 "fullName": "google.shopping.merchant.accounts.v1.ProgramsService"
2435 }
2436 }
2437 },
2438 "origin": "API_DEFINITION",
2439 "segments": [
2440 {
2441 "start": 18,
2442 "end": 66,
2443 "type": "FULL"
2444 }
2445 ]
2446 },
2447 {
2448 "regionTag": "merchantapi_v1_generated_RegionsService_BatchCreateRegions_sync",
2449 "title": "merchantapi BatchCreateRegions Sample",
2450 "description": "BatchCreateRegions creates one or more regions in your Merchant Center account.\nExecuting this method requires admin access.",
2451 "file": "RegionsClient/BatchCreateRegions/main.go",
2452 "language": "GO",
2453 "clientMethod": {
2454 "shortName": "BatchCreateRegions",
2455 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient.BatchCreateRegions",
2456 "parameters": [
2457 {
2458 "type": "context.Context",
2459 "name": "ctx"
2460 },
2461 {
2462 "type": "accountspb.BatchCreateRegionsRequest",
2463 "name": "req"
2464 },
2465 {
2466 "type": "...gax.CallOption",
2467 "name": "opts"
2468 }
2469 ],
2470 "resultType": "*accountspb.BatchCreateRegionsResponse",
2471 "client": {
2472 "shortName": "RegionsClient",
2473 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient"
2474 },
2475 "method": {
2476 "shortName": "BatchCreateRegions",
2477 "fullName": "google.shopping.merchant.accounts.v1.RegionsService.BatchCreateRegions",
2478 "service": {
2479 "shortName": "RegionsService",
2480 "fullName": "google.shopping.merchant.accounts.v1.RegionsService"
2481 }
2482 }
2483 },
2484 "origin": "API_DEFINITION",
2485 "segments": [
2486 {
2487 "start": 18,
2488 "end": 53,
2489 "type": "FULL"
2490 }
2491 ]
2492 },
2493 {
2494 "regionTag": "merchantapi_v1_generated_RegionsService_BatchDeleteRegions_sync",
2495 "title": "merchantapi BatchDeleteRegions Sample",
2496 "description": "BatchDeleteRegions deletes multiple regions by name from your Merchant Center account.\nExecuting this method requires admin access.",
2497 "file": "RegionsClient/BatchDeleteRegions/main.go",
2498 "language": "GO",
2499 "clientMethod": {
2500 "shortName": "BatchDeleteRegions",
2501 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient.BatchDeleteRegions",
2502 "parameters": [
2503 {
2504 "type": "context.Context",
2505 "name": "ctx"
2506 },
2507 {
2508 "type": "accountspb.BatchDeleteRegionsRequest",
2509 "name": "req"
2510 },
2511 {
2512 "type": "...gax.CallOption",
2513 "name": "opts"
2514 }
2515 ],
2516 "client": {
2517 "shortName": "RegionsClient",
2518 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient"
2519 },
2520 "method": {
2521 "shortName": "BatchDeleteRegions",
2522 "fullName": "google.shopping.merchant.accounts.v1.RegionsService.BatchDeleteRegions",
2523 "service": {
2524 "shortName": "RegionsService",
2525 "fullName": "google.shopping.merchant.accounts.v1.RegionsService"
2526 }
2527 }
2528 },
2529 "origin": "API_DEFINITION",
2530 "segments": [
2531 {
2532 "start": 18,
2533 "end": 51,
2534 "type": "FULL"
2535 }
2536 ]
2537 },
2538 {
2539 "regionTag": "merchantapi_v1_generated_RegionsService_BatchUpdateRegions_sync",
2540 "title": "merchantapi BatchUpdateRegions Sample",
2541 "description": "BatchUpdateRegions updates one or more regions in your Merchant Center account.\nExecuting this method requires admin access.",
2542 "file": "RegionsClient/BatchUpdateRegions/main.go",
2543 "language": "GO",
2544 "clientMethod": {
2545 "shortName": "BatchUpdateRegions",
2546 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient.BatchUpdateRegions",
2547 "parameters": [
2548 {
2549 "type": "context.Context",
2550 "name": "ctx"
2551 },
2552 {
2553 "type": "accountspb.BatchUpdateRegionsRequest",
2554 "name": "req"
2555 },
2556 {
2557 "type": "...gax.CallOption",
2558 "name": "opts"
2559 }
2560 ],
2561 "resultType": "*accountspb.BatchUpdateRegionsResponse",
2562 "client": {
2563 "shortName": "RegionsClient",
2564 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient"
2565 },
2566 "method": {
2567 "shortName": "BatchUpdateRegions",
2568 "fullName": "google.shopping.merchant.accounts.v1.RegionsService.BatchUpdateRegions",
2569 "service": {
2570 "shortName": "RegionsService",
2571 "fullName": "google.shopping.merchant.accounts.v1.RegionsService"
2572 }
2573 }
2574 },
2575 "origin": "API_DEFINITION",
2576 "segments": [
2577 {
2578 "start": 18,
2579 "end": 53,
2580 "type": "FULL"
2581 }
2582 ]
2583 },
2584 {
2585 "regionTag": "merchantapi_v1_generated_RegionsService_CreateRegion_sync",
2586 "title": "merchantapi CreateRegion Sample",
2587 "description": "CreateRegion creates a region definition in your Merchant Center account. Executing this\nmethod requires admin access.",
2588 "file": "RegionsClient/CreateRegion/main.go",
2589 "language": "GO",
2590 "clientMethod": {
2591 "shortName": "CreateRegion",
2592 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient.CreateRegion",
2593 "parameters": [
2594 {
2595 "type": "context.Context",
2596 "name": "ctx"
2597 },
2598 {
2599 "type": "accountspb.CreateRegionRequest",
2600 "name": "req"
2601 },
2602 {
2603 "type": "...gax.CallOption",
2604 "name": "opts"
2605 }
2606 ],
2607 "resultType": "*accountspb.Region",
2608 "client": {
2609 "shortName": "RegionsClient",
2610 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient"
2611 },
2612 "method": {
2613 "shortName": "CreateRegion",
2614 "fullName": "google.shopping.merchant.accounts.v1.RegionsService.CreateRegion",
2615 "service": {
2616 "shortName": "RegionsService",
2617 "fullName": "google.shopping.merchant.accounts.v1.RegionsService"
2618 }
2619 }
2620 },
2621 "origin": "API_DEFINITION",
2622 "segments": [
2623 {
2624 "start": 18,
2625 "end": 53,
2626 "type": "FULL"
2627 }
2628 ]
2629 },
2630 {
2631 "regionTag": "merchantapi_v1_generated_RegionsService_DeleteRegion_sync",
2632 "title": "merchantapi DeleteRegion Sample",
2633 "description": "DeleteRegion deletes a region definition from your Merchant Center account. Executing\nthis method requires admin access.",
2634 "file": "RegionsClient/DeleteRegion/main.go",
2635 "language": "GO",
2636 "clientMethod": {
2637 "shortName": "DeleteRegion",
2638 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient.DeleteRegion",
2639 "parameters": [
2640 {
2641 "type": "context.Context",
2642 "name": "ctx"
2643 },
2644 {
2645 "type": "accountspb.DeleteRegionRequest",
2646 "name": "req"
2647 },
2648 {
2649 "type": "...gax.CallOption",
2650 "name": "opts"
2651 }
2652 ],
2653 "client": {
2654 "shortName": "RegionsClient",
2655 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient"
2656 },
2657 "method": {
2658 "shortName": "DeleteRegion",
2659 "fullName": "google.shopping.merchant.accounts.v1.RegionsService.DeleteRegion",
2660 "service": {
2661 "shortName": "RegionsService",
2662 "fullName": "google.shopping.merchant.accounts.v1.RegionsService"
2663 }
2664 }
2665 },
2666 "origin": "API_DEFINITION",
2667 "segments": [
2668 {
2669 "start": 18,
2670 "end": 51,
2671 "type": "FULL"
2672 }
2673 ]
2674 },
2675 {
2676 "regionTag": "merchantapi_v1_generated_RegionsService_GetRegion_sync",
2677 "title": "merchantapi GetRegion Sample",
2678 "description": "GetRegion retrieves a region defined in your Merchant Center account.",
2679 "file": "RegionsClient/GetRegion/main.go",
2680 "language": "GO",
2681 "clientMethod": {
2682 "shortName": "GetRegion",
2683 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient.GetRegion",
2684 "parameters": [
2685 {
2686 "type": "context.Context",
2687 "name": "ctx"
2688 },
2689 {
2690 "type": "accountspb.GetRegionRequest",
2691 "name": "req"
2692 },
2693 {
2694 "type": "...gax.CallOption",
2695 "name": "opts"
2696 }
2697 ],
2698 "resultType": "*accountspb.Region",
2699 "client": {
2700 "shortName": "RegionsClient",
2701 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient"
2702 },
2703 "method": {
2704 "shortName": "GetRegion",
2705 "fullName": "google.shopping.merchant.accounts.v1.RegionsService.GetRegion",
2706 "service": {
2707 "shortName": "RegionsService",
2708 "fullName": "google.shopping.merchant.accounts.v1.RegionsService"
2709 }
2710 }
2711 },
2712 "origin": "API_DEFINITION",
2713 "segments": [
2714 {
2715 "start": 18,
2716 "end": 53,
2717 "type": "FULL"
2718 }
2719 ]
2720 },
2721 {
2722 "regionTag": "merchantapi_v1_generated_RegionsService_ListRegions_sync",
2723 "title": "merchantapi ListRegions Sample",
2724 "description": "ListRegions lists the regions in your Merchant Center account.",
2725 "file": "RegionsClient/ListRegions/main.go",
2726 "language": "GO",
2727 "clientMethod": {
2728 "shortName": "ListRegions",
2729 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient.ListRegions",
2730 "parameters": [
2731 {
2732 "type": "context.Context",
2733 "name": "ctx"
2734 },
2735 {
2736 "type": "accountspb.ListRegionsRequest",
2737 "name": "req"
2738 },
2739 {
2740 "type": "...gax.CallOption",
2741 "name": "opts"
2742 }
2743 ],
2744 "resultType": "RegionIterator",
2745 "client": {
2746 "shortName": "RegionsClient",
2747 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient"
2748 },
2749 "method": {
2750 "shortName": "ListRegions",
2751 "fullName": "google.shopping.merchant.accounts.v1.RegionsService.ListRegions",
2752 "service": {
2753 "shortName": "RegionsService",
2754 "fullName": "google.shopping.merchant.accounts.v1.RegionsService"
2755 }
2756 }
2757 },
2758 "origin": "API_DEFINITION",
2759 "segments": [
2760 {
2761 "start": 18,
2762 "end": 66,
2763 "type": "FULL"
2764 }
2765 ]
2766 },
2767 {
2768 "regionTag": "merchantapi_v1_generated_RegionsService_UpdateRegion_sync",
2769 "title": "merchantapi UpdateRegion Sample",
2770 "description": "UpdateRegion updates a region definition in your Merchant Center account.\nExecuting this method requires admin access.",
2771 "file": "RegionsClient/UpdateRegion/main.go",
2772 "language": "GO",
2773 "clientMethod": {
2774 "shortName": "UpdateRegion",
2775 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient.UpdateRegion",
2776 "parameters": [
2777 {
2778 "type": "context.Context",
2779 "name": "ctx"
2780 },
2781 {
2782 "type": "accountspb.UpdateRegionRequest",
2783 "name": "req"
2784 },
2785 {
2786 "type": "...gax.CallOption",
2787 "name": "opts"
2788 }
2789 ],
2790 "resultType": "*accountspb.Region",
2791 "client": {
2792 "shortName": "RegionsClient",
2793 "fullName": "google.shopping.merchant.accounts.v1.RegionsClient"
2794 },
2795 "method": {
2796 "shortName": "UpdateRegion",
2797 "fullName": "google.shopping.merchant.accounts.v1.RegionsService.UpdateRegion",
2798 "service": {
2799 "shortName": "RegionsService",
2800 "fullName": "google.shopping.merchant.accounts.v1.RegionsService"
2801 }
2802 }
2803 },
2804 "origin": "API_DEFINITION",
2805 "segments": [
2806 {
2807 "start": 18,
2808 "end": 53,
2809 "type": "FULL"
2810 }
2811 ]
2812 },
2813 {
2814 "regionTag": "merchantapi_v1_generated_ShippingSettingsService_GetShippingSettings_sync",
2815 "title": "merchantapi GetShippingSettings Sample",
2816 "description": "GetShippingSettings retrieve shipping setting information.",
2817 "file": "ShippingSettingsClient/GetShippingSettings/main.go",
2818 "language": "GO",
2819 "clientMethod": {
2820 "shortName": "GetShippingSettings",
2821 "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsClient.GetShippingSettings",
2822 "parameters": [
2823 {
2824 "type": "context.Context",
2825 "name": "ctx"
2826 },
2827 {
2828 "type": "accountspb.GetShippingSettingsRequest",
2829 "name": "req"
2830 },
2831 {
2832 "type": "...gax.CallOption",
2833 "name": "opts"
2834 }
2835 ],
2836 "resultType": "*accountspb.ShippingSettings",
2837 "client": {
2838 "shortName": "ShippingSettingsClient",
2839 "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsClient"
2840 },
2841 "method": {
2842 "shortName": "GetShippingSettings",
2843 "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsService.GetShippingSettings",
2844 "service": {
2845 "shortName": "ShippingSettingsService",
2846 "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsService"
2847 }
2848 }
2849 },
2850 "origin": "API_DEFINITION",
2851 "segments": [
2852 {
2853 "start": 18,
2854 "end": 53,
2855 "type": "FULL"
2856 }
2857 ]
2858 },
2859 {
2860 "regionTag": "merchantapi_v1_generated_ShippingSettingsService_InsertShippingSettings_sync",
2861 "title": "merchantapi InsertShippingSettings Sample",
2862 "description": "InsertShippingSettings replace the shipping setting of a business with the request shipping\nsetting. Executing this method requires admin access.",
2863 "file": "ShippingSettingsClient/InsertShippingSettings/main.go",
2864 "language": "GO",
2865 "clientMethod": {
2866 "shortName": "InsertShippingSettings",
2867 "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsClient.InsertShippingSettings",
2868 "parameters": [
2869 {
2870 "type": "context.Context",
2871 "name": "ctx"
2872 },
2873 {
2874 "type": "accountspb.InsertShippingSettingsRequest",
2875 "name": "req"
2876 },
2877 {
2878 "type": "...gax.CallOption",
2879 "name": "opts"
2880 }
2881 ],
2882 "resultType": "*accountspb.ShippingSettings",
2883 "client": {
2884 "shortName": "ShippingSettingsClient",
2885 "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsClient"
2886 },
2887 "method": {
2888 "shortName": "InsertShippingSettings",
2889 "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsService.InsertShippingSettings",
2890 "service": {
2891 "shortName": "ShippingSettingsService",
2892 "fullName": "google.shopping.merchant.accounts.v1.ShippingSettingsService"
2893 }
2894 }
2895 },
2896 "origin": "API_DEFINITION",
2897 "segments": [
2898 {
2899 "start": 18,
2900 "end": 53,
2901 "type": "FULL"
2902 }
2903 ]
2904 },
2905 {
2906 "regionTag": "merchantapi_v1_generated_TermsOfServiceAgreementStateService_GetTermsOfServiceAgreementState_sync",
2907 "title": "merchantapi GetTermsOfServiceAgreementState Sample",
2908 "description": "GetTermsOfServiceAgreementState returns the state of a terms of service agreement.",
2909 "file": "TermsOfServiceAgreementStateClient/GetTermsOfServiceAgreementState/main.go",
2910 "language": "GO",
2911 "clientMethod": {
2912 "shortName": "GetTermsOfServiceAgreementState",
2913 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateClient.GetTermsOfServiceAgreementState",
2914 "parameters": [
2915 {
2916 "type": "context.Context",
2917 "name": "ctx"
2918 },
2919 {
2920 "type": "accountspb.GetTermsOfServiceAgreementStateRequest",
2921 "name": "req"
2922 },
2923 {
2924 "type": "...gax.CallOption",
2925 "name": "opts"
2926 }
2927 ],
2928 "resultType": "*accountspb.TermsOfServiceAgreementState",
2929 "client": {
2930 "shortName": "TermsOfServiceAgreementStateClient",
2931 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateClient"
2932 },
2933 "method": {
2934 "shortName": "GetTermsOfServiceAgreementState",
2935 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateService.GetTermsOfServiceAgreementState",
2936 "service": {
2937 "shortName": "TermsOfServiceAgreementStateService",
2938 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateService"
2939 }
2940 }
2941 },
2942 "origin": "API_DEFINITION",
2943 "segments": [
2944 {
2945 "start": 18,
2946 "end": 53,
2947 "type": "FULL"
2948 }
2949 ]
2950 },
2951 {
2952 "regionTag": "merchantapi_v1_generated_TermsOfServiceAgreementStateService_RetrieveForApplicationTermsOfServiceAgreementState_sync",
2953 "title": "merchantapi RetrieveForApplicationTermsOfServiceAgreementState Sample",
2954 "description": "RetrieveForApplicationTermsOfServiceAgreementState retrieves the state of the agreement for the application terms of service.\n\nApplication terms of service covers permissions related to the usage of\ndata provided through Merchant Center, CSS Center, Manufacturer Center, and\nmore.",
2955 "file": "TermsOfServiceAgreementStateClient/RetrieveForApplicationTermsOfServiceAgreementState/main.go",
2956 "language": "GO",
2957 "clientMethod": {
2958 "shortName": "RetrieveForApplicationTermsOfServiceAgreementState",
2959 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateClient.RetrieveForApplicationTermsOfServiceAgreementState",
2960 "parameters": [
2961 {
2962 "type": "context.Context",
2963 "name": "ctx"
2964 },
2965 {
2966 "type": "accountspb.RetrieveForApplicationTermsOfServiceAgreementStateRequest",
2967 "name": "req"
2968 },
2969 {
2970 "type": "...gax.CallOption",
2971 "name": "opts"
2972 }
2973 ],
2974 "resultType": "*accountspb.TermsOfServiceAgreementState",
2975 "client": {
2976 "shortName": "TermsOfServiceAgreementStateClient",
2977 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateClient"
2978 },
2979 "method": {
2980 "shortName": "RetrieveForApplicationTermsOfServiceAgreementState",
2981 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateService.RetrieveForApplicationTermsOfServiceAgreementState",
2982 "service": {
2983 "shortName": "TermsOfServiceAgreementStateService",
2984 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceAgreementStateService"
2985 }
2986 }
2987 },
2988 "origin": "API_DEFINITION",
2989 "segments": [
2990 {
2991 "start": 18,
2992 "end": 53,
2993 "type": "FULL"
2994 }
2995 ]
2996 },
2997 {
2998 "regionTag": "merchantapi_v1_generated_TermsOfServiceService_AcceptTermsOfService_sync",
2999 "title": "merchantapi AcceptTermsOfService Sample",
3000 "description": "AcceptTermsOfService accepts a `TermsOfService`. Executing this method requires admin access.",
3001 "file": "TermsOfServiceClient/AcceptTermsOfService/main.go",
3002 "language": "GO",
3003 "clientMethod": {
3004 "shortName": "AcceptTermsOfService",
3005 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceClient.AcceptTermsOfService",
3006 "parameters": [
3007 {
3008 "type": "context.Context",
3009 "name": "ctx"
3010 },
3011 {
3012 "type": "accountspb.AcceptTermsOfServiceRequest",
3013 "name": "req"
3014 },
3015 {
3016 "type": "...gax.CallOption",
3017 "name": "opts"
3018 }
3019 ],
3020 "resultType": "*accountspb.AcceptTermsOfServiceResponse",
3021 "client": {
3022 "shortName": "TermsOfServiceClient",
3023 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceClient"
3024 },
3025 "method": {
3026 "shortName": "AcceptTermsOfService",
3027 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService.AcceptTermsOfService",
3028 "service": {
3029 "shortName": "TermsOfServiceService",
3030 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService"
3031 }
3032 }
3033 },
3034 "origin": "API_DEFINITION",
3035 "segments": [
3036 {
3037 "start": 18,
3038 "end": 53,
3039 "type": "FULL"
3040 }
3041 ]
3042 },
3043 {
3044 "regionTag": "merchantapi_v1_generated_TermsOfServiceService_GetTermsOfService_sync",
3045 "title": "merchantapi GetTermsOfService Sample",
3046 "description": "GetTermsOfService retrieves the `TermsOfService` associated with the provided version.",
3047 "file": "TermsOfServiceClient/GetTermsOfService/main.go",
3048 "language": "GO",
3049 "clientMethod": {
3050 "shortName": "GetTermsOfService",
3051 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceClient.GetTermsOfService",
3052 "parameters": [
3053 {
3054 "type": "context.Context",
3055 "name": "ctx"
3056 },
3057 {
3058 "type": "accountspb.GetTermsOfServiceRequest",
3059 "name": "req"
3060 },
3061 {
3062 "type": "...gax.CallOption",
3063 "name": "opts"
3064 }
3065 ],
3066 "resultType": "*accountspb.TermsOfService",
3067 "client": {
3068 "shortName": "TermsOfServiceClient",
3069 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceClient"
3070 },
3071 "method": {
3072 "shortName": "GetTermsOfService",
3073 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService.GetTermsOfService",
3074 "service": {
3075 "shortName": "TermsOfServiceService",
3076 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService"
3077 }
3078 }
3079 },
3080 "origin": "API_DEFINITION",
3081 "segments": [
3082 {
3083 "start": 18,
3084 "end": 53,
3085 "type": "FULL"
3086 }
3087 ]
3088 },
3089 {
3090 "regionTag": "merchantapi_v1_generated_TermsOfServiceService_RetrieveLatestTermsOfService_sync",
3091 "title": "merchantapi RetrieveLatestTermsOfService Sample",
3092 "description": "RetrieveLatestTermsOfService retrieves the latest version of the `TermsOfService` for a given `kind` and\n`region_code`.",
3093 "file": "TermsOfServiceClient/RetrieveLatestTermsOfService/main.go",
3094 "language": "GO",
3095 "clientMethod": {
3096 "shortName": "RetrieveLatestTermsOfService",
3097 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceClient.RetrieveLatestTermsOfService",
3098 "parameters": [
3099 {
3100 "type": "context.Context",
3101 "name": "ctx"
3102 },
3103 {
3104 "type": "accountspb.RetrieveLatestTermsOfServiceRequest",
3105 "name": "req"
3106 },
3107 {
3108 "type": "...gax.CallOption",
3109 "name": "opts"
3110 }
3111 ],
3112 "resultType": "*accountspb.TermsOfService",
3113 "client": {
3114 "shortName": "TermsOfServiceClient",
3115 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceClient"
3116 },
3117 "method": {
3118 "shortName": "RetrieveLatestTermsOfService",
3119 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService.RetrieveLatestTermsOfService",
3120 "service": {
3121 "shortName": "TermsOfServiceService",
3122 "fullName": "google.shopping.merchant.accounts.v1.TermsOfServiceService"
3123 }
3124 }
3125 },
3126 "origin": "API_DEFINITION",
3127 "segments": [
3128 {
3129 "start": 18,
3130 "end": 53,
3131 "type": "FULL"
3132 }
3133 ]
3134 },
3135 {
3136 "regionTag": "merchantapi_v1_generated_UserService_CreateUser_sync",
3137 "title": "merchantapi CreateUser Sample",
3138 "description": "CreateUser creates a Merchant Center account user. Executing this method requires\nadmin access.",
3139 "file": "UserClient/CreateUser/main.go",
3140 "language": "GO",
3141 "clientMethod": {
3142 "shortName": "CreateUser",
3143 "fullName": "google.shopping.merchant.accounts.v1.UserClient.CreateUser",
3144 "parameters": [
3145 {
3146 "type": "context.Context",
3147 "name": "ctx"
3148 },
3149 {
3150 "type": "accountspb.CreateUserRequest",
3151 "name": "req"
3152 },
3153 {
3154 "type": "...gax.CallOption",
3155 "name": "opts"
3156 }
3157 ],
3158 "resultType": "*accountspb.User",
3159 "client": {
3160 "shortName": "UserClient",
3161 "fullName": "google.shopping.merchant.accounts.v1.UserClient"
3162 },
3163 "method": {
3164 "shortName": "CreateUser",
3165 "fullName": "google.shopping.merchant.accounts.v1.UserService.CreateUser",
3166 "service": {
3167 "shortName": "UserService",
3168 "fullName": "google.shopping.merchant.accounts.v1.UserService"
3169 }
3170 }
3171 },
3172 "origin": "API_DEFINITION",
3173 "segments": [
3174 {
3175 "start": 18,
3176 "end": 53,
3177 "type": "FULL"
3178 }
3179 ]
3180 },
3181 {
3182 "regionTag": "merchantapi_v1_generated_UserService_DeleteUser_sync",
3183 "title": "merchantapi DeleteUser Sample",
3184 "description": "DeleteUser deletes a Merchant Center account user. Executing this method requires\nadmin access. The user to be deleted can't be the last admin user of that\naccount. Also a user is protected from deletion if it\nis managed by Business Manager\"",
3185 "file": "UserClient/DeleteUser/main.go",
3186 "language": "GO",
3187 "clientMethod": {
3188 "shortName": "DeleteUser",
3189 "fullName": "google.shopping.merchant.accounts.v1.UserClient.DeleteUser",
3190 "parameters": [
3191 {
3192 "type": "context.Context",
3193 "name": "ctx"
3194 },
3195 {
3196 "type": "accountspb.DeleteUserRequest",
3197 "name": "req"
3198 },
3199 {
3200 "type": "...gax.CallOption",
3201 "name": "opts"
3202 }
3203 ],
3204 "client": {
3205 "shortName": "UserClient",
3206 "fullName": "google.shopping.merchant.accounts.v1.UserClient"
3207 },
3208 "method": {
3209 "shortName": "DeleteUser",
3210 "fullName": "google.shopping.merchant.accounts.v1.UserService.DeleteUser",
3211 "service": {
3212 "shortName": "UserService",
3213 "fullName": "google.shopping.merchant.accounts.v1.UserService"
3214 }
3215 }
3216 },
3217 "origin": "API_DEFINITION",
3218 "segments": [
3219 {
3220 "start": 18,
3221 "end": 51,
3222 "type": "FULL"
3223 }
3224 ]
3225 },
3226 {
3227 "regionTag": "merchantapi_v1_generated_UserService_GetUser_sync",
3228 "title": "merchantapi GetUser Sample",
3229 "description": "GetUser retrieves a Merchant Center account user.",
3230 "file": "UserClient/GetUser/main.go",
3231 "language": "GO",
3232 "clientMethod": {
3233 "shortName": "GetUser",
3234 "fullName": "google.shopping.merchant.accounts.v1.UserClient.GetUser",
3235 "parameters": [
3236 {
3237 "type": "context.Context",
3238 "name": "ctx"
3239 },
3240 {
3241 "type": "accountspb.GetUserRequest",
3242 "name": "req"
3243 },
3244 {
3245 "type": "...gax.CallOption",
3246 "name": "opts"
3247 }
3248 ],
3249 "resultType": "*accountspb.User",
3250 "client": {
3251 "shortName": "UserClient",
3252 "fullName": "google.shopping.merchant.accounts.v1.UserClient"
3253 },
3254 "method": {
3255 "shortName": "GetUser",
3256 "fullName": "google.shopping.merchant.accounts.v1.UserService.GetUser",
3257 "service": {
3258 "shortName": "UserService",
3259 "fullName": "google.shopping.merchant.accounts.v1.UserService"
3260 }
3261 }
3262 },
3263 "origin": "API_DEFINITION",
3264 "segments": [
3265 {
3266 "start": 18,
3267 "end": 53,
3268 "type": "FULL"
3269 }
3270 ]
3271 },
3272 {
3273 "regionTag": "merchantapi_v1_generated_UserService_ListUsers_sync",
3274 "title": "merchantapi ListUsers Sample",
3275 "description": "ListUsers lists all users of a Merchant Center account.",
3276 "file": "UserClient/ListUsers/main.go",
3277 "language": "GO",
3278 "clientMethod": {
3279 "shortName": "ListUsers",
3280 "fullName": "google.shopping.merchant.accounts.v1.UserClient.ListUsers",
3281 "parameters": [
3282 {
3283 "type": "context.Context",
3284 "name": "ctx"
3285 },
3286 {
3287 "type": "accountspb.ListUsersRequest",
3288 "name": "req"
3289 },
3290 {
3291 "type": "...gax.CallOption",
3292 "name": "opts"
3293 }
3294 ],
3295 "resultType": "UserIterator",
3296 "client": {
3297 "shortName": "UserClient",
3298 "fullName": "google.shopping.merchant.accounts.v1.UserClient"
3299 },
3300 "method": {
3301 "shortName": "ListUsers",
3302 "fullName": "google.shopping.merchant.accounts.v1.UserService.ListUsers",
3303 "service": {
3304 "shortName": "UserService",
3305 "fullName": "google.shopping.merchant.accounts.v1.UserService"
3306 }
3307 }
3308 },
3309 "origin": "API_DEFINITION",
3310 "segments": [
3311 {
3312 "start": 18,
3313 "end": 66,
3314 "type": "FULL"
3315 }
3316 ]
3317 },
3318 {
3319 "regionTag": "merchantapi_v1_generated_UserService_UpdateUser_sync",
3320 "title": "merchantapi UpdateUser Sample",
3321 "description": "UpdateUser updates a Merchant Center account user. Executing this method requires\nadmin access.",
3322 "file": "UserClient/UpdateUser/main.go",
3323 "language": "GO",
3324 "clientMethod": {
3325 "shortName": "UpdateUser",
3326 "fullName": "google.shopping.merchant.accounts.v1.UserClient.UpdateUser",
3327 "parameters": [
3328 {
3329 "type": "context.Context",
3330 "name": "ctx"
3331 },
3332 {
3333 "type": "accountspb.UpdateUserRequest",
3334 "name": "req"
3335 },
3336 {
3337 "type": "...gax.CallOption",
3338 "name": "opts"
3339 }
3340 ],
3341 "resultType": "*accountspb.User",
3342 "client": {
3343 "shortName": "UserClient",
3344 "fullName": "google.shopping.merchant.accounts.v1.UserClient"
3345 },
3346 "method": {
3347 "shortName": "UpdateUser",
3348 "fullName": "google.shopping.merchant.accounts.v1.UserService.UpdateUser",
3349 "service": {
3350 "shortName": "UserService",
3351 "fullName": "google.shopping.merchant.accounts.v1.UserService"
3352 }
3353 }
3354 },
3355 "origin": "API_DEFINITION",
3356 "segments": [
3357 {
3358 "start": 18,
3359 "end": 53,
3360 "type": "FULL"
3361 }
3362 ]
3363 }
3364 ]
3365 }