google-shopping-merchant-accounts-v1 0.a → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/shopping/merchant/accounts/v1/accessright_pb.rb +44 -0
  6. data/lib/google/shopping/merchant/accounts/v1/account_issue_service/client.rb +497 -0
  7. data/lib/google/shopping/merchant/accounts/v1/account_issue_service/credentials.rb +49 -0
  8. data/lib/google/shopping/merchant/accounts/v1/account_issue_service/paths.rb +49 -0
  9. data/lib/google/shopping/merchant/accounts/v1/account_issue_service/rest/client.rb +464 -0
  10. data/lib/google/shopping/merchant/accounts/v1/account_issue_service/rest/service_stub.rb +144 -0
  11. data/lib/google/shopping/merchant/accounts/v1/account_issue_service/rest.rb +54 -0
  12. data/lib/google/shopping/merchant/accounts/v1/account_issue_service.rb +57 -0
  13. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/client.rb +671 -0
  14. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/credentials.rb +49 -0
  15. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/paths.rb +66 -0
  16. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/rest/client.rb +624 -0
  17. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/rest/service_stub.rb +267 -0
  18. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service/rest.rb +54 -0
  19. data/lib/google/shopping/merchant/accounts/v1/account_relationships_service.rb +57 -0
  20. data/lib/google/shopping/merchant/accounts/v1/account_services_service/client.rb +856 -0
  21. data/lib/google/shopping/merchant/accounts/v1/account_services_service/credentials.rb +49 -0
  22. data/lib/google/shopping/merchant/accounts/v1/account_services_service/paths.rb +66 -0
  23. data/lib/google/shopping/merchant/accounts/v1/account_services_service/rest/client.rb +795 -0
  24. data/lib/google/shopping/merchant/accounts/v1/account_services_service/rest/service_stub.rb +391 -0
  25. data/lib/google/shopping/merchant/accounts/v1/account_services_service/rest.rb +54 -0
  26. data/lib/google/shopping/merchant/accounts/v1/account_services_service.rb +57 -0
  27. data/lib/google/shopping/merchant/accounts/v1/accountissue_pb.rb +55 -0
  28. data/lib/google/shopping/merchant/accounts/v1/accountissue_services_pb.rb +54 -0
  29. data/lib/google/shopping/merchant/accounts/v1/accountrelationships_pb.rb +55 -0
  30. data/lib/google/shopping/merchant/accounts/v1/accountrelationships_services_pb.rb +52 -0
  31. data/lib/google/shopping/merchant/accounts/v1/accounts_pb.rb +68 -0
  32. data/lib/google/shopping/merchant/accounts/v1/accounts_service/client.rb +987 -0
  33. data/lib/google/shopping/merchant/accounts/v1/accounts_service/credentials.rb +49 -0
  34. data/lib/google/shopping/merchant/accounts/v1/accounts_service/paths.rb +66 -0
  35. data/lib/google/shopping/merchant/accounts/v1/accounts_service/rest/client.rb +935 -0
  36. data/lib/google/shopping/merchant/accounts/v1/accounts_service/rest/service_stub.rb +447 -0
  37. data/lib/google/shopping/merchant/accounts/v1/accounts_service/rest.rb +54 -0
  38. data/lib/google/shopping/merchant/accounts/v1/accounts_service.rb +57 -0
  39. data/lib/google/shopping/merchant/accounts/v1/accounts_services_pb.rb +74 -0
  40. data/lib/google/shopping/merchant/accounts/v1/accountservices_pb.rb +65 -0
  41. data/lib/google/shopping/merchant/accounts/v1/accountservices_services_pb.rb +56 -0
  42. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/client.rb +560 -0
  43. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/credentials.rb +49 -0
  44. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/paths.rb +49 -0
  45. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/rest/client.rb +520 -0
  46. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/rest/service_stub.rb +206 -0
  47. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service/rest.rb +55 -0
  48. data/lib/google/shopping/merchant/accounts/v1/autofeed_settings_service.rb +58 -0
  49. data/lib/google/shopping/merchant/accounts/v1/autofeedsettings_pb.rb +53 -0
  50. data/lib/google/shopping/merchant/accounts/v1/autofeedsettings_services_pb.rb +50 -0
  51. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/client.rb +570 -0
  52. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/credentials.rb +49 -0
  53. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/paths.rb +49 -0
  54. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/rest/client.rb +530 -0
  55. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/rest/service_stub.rb +206 -0
  56. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service/rest.rb +56 -0
  57. data/lib/google/shopping/merchant/accounts/v1/automatic_improvements_service.rb +59 -0
  58. data/lib/google/shopping/merchant/accounts/v1/automaticimprovements_pb.rb +58 -0
  59. data/lib/google/shopping/merchant/accounts/v1/automaticimprovements_services_pb.rb +51 -0
  60. data/lib/google/shopping/merchant/accounts/v1/business_identity_service/client.rb +572 -0
  61. data/lib/google/shopping/merchant/accounts/v1/business_identity_service/credentials.rb +49 -0
  62. data/lib/google/shopping/merchant/accounts/v1/business_identity_service/paths.rb +49 -0
  63. data/lib/google/shopping/merchant/accounts/v1/business_identity_service/rest/client.rb +532 -0
  64. data/lib/google/shopping/merchant/accounts/v1/business_identity_service/rest/service_stub.rb +206 -0
  65. data/lib/google/shopping/merchant/accounts/v1/business_identity_service/rest.rb +55 -0
  66. data/lib/google/shopping/merchant/accounts/v1/business_identity_service.rb +58 -0
  67. data/lib/google/shopping/merchant/accounts/v1/business_info_service/client.rb +568 -0
  68. data/lib/google/shopping/merchant/accounts/v1/business_info_service/credentials.rb +49 -0
  69. data/lib/google/shopping/merchant/accounts/v1/business_info_service/paths.rb +49 -0
  70. data/lib/google/shopping/merchant/accounts/v1/business_info_service/rest/client.rb +528 -0
  71. data/lib/google/shopping/merchant/accounts/v1/business_info_service/rest/service_stub.rb +206 -0
  72. data/lib/google/shopping/merchant/accounts/v1/business_info_service/rest.rb +54 -0
  73. data/lib/google/shopping/merchant/accounts/v1/business_info_service.rb +57 -0
  74. data/lib/google/shopping/merchant/accounts/v1/businessidentity_pb.rb +56 -0
  75. data/lib/google/shopping/merchant/accounts/v1/businessidentity_services_pb.rb +51 -0
  76. data/lib/google/shopping/merchant/accounts/v1/businessinfo_pb.rb +60 -0
  77. data/lib/google/shopping/merchant/accounts/v1/businessinfo_services_pb.rb +50 -0
  78. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/client.rb +757 -0
  79. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/credentials.rb +49 -0
  80. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/paths.rb +69 -0
  81. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/rest/client.rb +703 -0
  82. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/rest/service_stub.rb +329 -0
  83. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service/rest.rb +55 -0
  84. data/lib/google/shopping/merchant/accounts/v1/checkout_settings_service.rb +58 -0
  85. data/lib/google/shopping/merchant/accounts/v1/checkoutsettings_pb.rb +60 -0
  86. data/lib/google/shopping/merchant/accounts/v1/checkoutsettings_services_pb.rb +56 -0
  87. data/lib/google/shopping/merchant/accounts/v1/customerservice_pb.rb +48 -0
  88. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/client.rb +665 -0
  89. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/credentials.rb +49 -0
  90. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/paths.rb +49 -0
  91. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/rest/client.rb +618 -0
  92. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/rest/service_stub.rb +268 -0
  93. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service/rest.rb +54 -0
  94. data/lib/google/shopping/merchant/accounts/v1/developer_registration_service.rb +57 -0
  95. data/lib/google/shopping/merchant/accounts/v1/developerregistration_pb.rb +53 -0
  96. data/lib/google/shopping/merchant/accounts/v1/developerregistration_services_pb.rb +56 -0
  97. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/client.rb +579 -0
  98. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/credentials.rb +49 -0
  99. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/paths.rb +52 -0
  100. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/rest/client.rb +539 -0
  101. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/rest/service_stub.rb +206 -0
  102. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service/rest.rb +54 -0
  103. data/lib/google/shopping/merchant/accounts/v1/email_preferences_service.rb +57 -0
  104. data/lib/google/shopping/merchant/accounts/v1/emailpreferences_pb.rb +54 -0
  105. data/lib/google/shopping/merchant/accounts/v1/emailpreferences_services_pb.rb +64 -0
  106. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/client.rb +585 -0
  107. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/credentials.rb +49 -0
  108. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/paths.rb +49 -0
  109. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/rest/client.rb +545 -0
  110. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/rest/service_stub.rb +206 -0
  111. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service/rest.rb +57 -0
  112. data/lib/google/shopping/merchant/accounts/v1/gbp_accounts_service.rb +60 -0
  113. data/lib/google/shopping/merchant/accounts/v1/gbpaccounts_pb.rb +56 -0
  114. data/lib/google/shopping/merchant/accounts/v1/gbpaccounts_services_pb.rb +56 -0
  115. data/lib/google/shopping/merchant/accounts/v1/homepage_pb.rb +55 -0
  116. data/lib/google/shopping/merchant/accounts/v1/homepage_service/client.rb +774 -0
  117. data/lib/google/shopping/merchant/accounts/v1/homepage_service/credentials.rb +49 -0
  118. data/lib/google/shopping/merchant/accounts/v1/homepage_service/paths.rb +49 -0
  119. data/lib/google/shopping/merchant/accounts/v1/homepage_service/rest/client.rb +720 -0
  120. data/lib/google/shopping/merchant/accounts/v1/homepage_service/rest/service_stub.rb +330 -0
  121. data/lib/google/shopping/merchant/accounts/v1/homepage_service/rest.rb +54 -0
  122. data/lib/google/shopping/merchant/accounts/v1/homepage_service.rb +57 -0
  123. data/lib/google/shopping/merchant/accounts/v1/homepage_services_pb.rb +73 -0
  124. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/client.rb +584 -0
  125. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/credentials.rb +49 -0
  126. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/paths.rb +71 -0
  127. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/rest/client.rb +544 -0
  128. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/rest/service_stub.rb +206 -0
  129. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service/rest.rb +56 -0
  130. data/lib/google/shopping/merchant/accounts/v1/lfp_providers_service.rb +59 -0
  131. data/lib/google/shopping/merchant/accounts/v1/lfpproviders_pb.rb +55 -0
  132. data/lib/google/shopping/merchant/accounts/v1/lfpproviders_services_pb.rb +51 -0
  133. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/client.rb +875 -0
  134. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/credentials.rb +49 -0
  135. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/paths.rb +66 -0
  136. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/rest/client.rb +814 -0
  137. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/rest/service_stub.rb +391 -0
  138. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service/rest.rb +57 -0
  139. data/lib/google/shopping/merchant/accounts/v1/omnichannel_settings_service.rb +60 -0
  140. data/lib/google/shopping/merchant/accounts/v1/omnichannelsettings_pb.rb +68 -0
  141. data/lib/google/shopping/merchant/accounts/v1/omnichannelsettings_services_pb.rb +58 -0
  142. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_pb.rb +68 -0
  143. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/client.rb +771 -0
  144. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/credentials.rb +49 -0
  145. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/paths.rb +66 -0
  146. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/rest/client.rb +717 -0
  147. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/rest/service_stub.rb +328 -0
  148. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service/rest.rb +58 -0
  149. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_service.rb +61 -0
  150. data/lib/google/shopping/merchant/accounts/v1/online_return_policy_services_pb.rb +57 -0
  151. data/lib/google/shopping/merchant/accounts/v1/phoneverificationstate_pb.rb +44 -0
  152. data/lib/google/shopping/merchant/accounts/v1/programs_pb.rb +56 -0
  153. data/lib/google/shopping/merchant/accounts/v1/programs_service/client.rb +770 -0
  154. data/lib/google/shopping/merchant/accounts/v1/programs_service/credentials.rb +49 -0
  155. data/lib/google/shopping/merchant/accounts/v1/programs_service/paths.rb +66 -0
  156. data/lib/google/shopping/merchant/accounts/v1/programs_service/rest/client.rb +716 -0
  157. data/lib/google/shopping/merchant/accounts/v1/programs_service/rest/service_stub.rb +329 -0
  158. data/lib/google/shopping/merchant/accounts/v1/programs_service/rest.rb +64 -0
  159. data/lib/google/shopping/merchant/accounts/v1/programs_service.rb +67 -0
  160. data/lib/google/shopping/merchant/accounts/v1/programs_services_pb.rb +63 -0
  161. data/lib/google/shopping/merchant/accounts/v1/regions_pb.rb +63 -0
  162. data/lib/google/shopping/merchant/accounts/v1/regions_service/client.rb +869 -0
  163. data/lib/google/shopping/merchant/accounts/v1/regions_service/credentials.rb +49 -0
  164. data/lib/google/shopping/merchant/accounts/v1/regions_service/paths.rb +66 -0
  165. data/lib/google/shopping/merchant/accounts/v1/regions_service/rest/client.rb +808 -0
  166. data/lib/google/shopping/merchant/accounts/v1/regions_service/rest/service_stub.rb +390 -0
  167. data/lib/google/shopping/merchant/accounts/v1/regions_service/rest.rb +58 -0
  168. data/lib/google/shopping/merchant/accounts/v1/regions_service.rb +61 -0
  169. data/lib/google/shopping/merchant/accounts/v1/regions_services_pb.rb +62 -0
  170. data/lib/google/shopping/merchant/accounts/v1/rest.rb +60 -0
  171. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/client.rb +564 -0
  172. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/credentials.rb +49 -0
  173. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/paths.rb +63 -0
  174. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/rest/client.rb +524 -0
  175. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/rest/service_stub.rb +206 -0
  176. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service/rest.rb +55 -0
  177. data/lib/google/shopping/merchant/accounts/v1/shipping_settings_service.rb +58 -0
  178. data/lib/google/shopping/merchant/accounts/v1/shippingsettings_pb.rb +83 -0
  179. data/lib/google/shopping/merchant/accounts/v1/shippingsettings_services_pb.rb +51 -0
  180. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/client.rb +563 -0
  181. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/credentials.rb +49 -0
  182. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/paths.rb +66 -0
  183. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/rest/client.rb +523 -0
  184. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/rest/service_stub.rb +205 -0
  185. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service/rest.rb +54 -0
  186. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_agreement_state_service.rb +57 -0
  187. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/client.rb +654 -0
  188. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/credentials.rb +49 -0
  189. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/paths.rb +63 -0
  190. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/rest/client.rb +615 -0
  191. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/rest/service_stub.rb +264 -0
  192. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service/rest.rb +54 -0
  193. data/lib/google/shopping/merchant/accounts/v1/terms_of_service_service.rb +57 -0
  194. data/lib/google/shopping/merchant/accounts/v1/termsofservice_pb.rb +56 -0
  195. data/lib/google/shopping/merchant/accounts/v1/termsofservice_services_pb.rb +52 -0
  196. data/lib/google/shopping/merchant/accounts/v1/termsofserviceagreementstate_pb.rb +56 -0
  197. data/lib/google/shopping/merchant/accounts/v1/termsofserviceagreementstate_services_pb.rb +53 -0
  198. data/lib/google/shopping/merchant/accounts/v1/termsofservicekind_pb.rb +44 -0
  199. data/lib/google/shopping/merchant/accounts/v1/user_pb.rb +60 -0
  200. data/lib/google/shopping/merchant/accounts/v1/user_service/client.rb +879 -0
  201. data/lib/google/shopping/merchant/accounts/v1/user_service/credentials.rb +49 -0
  202. data/lib/google/shopping/merchant/accounts/v1/user_service/paths.rb +66 -0
  203. data/lib/google/shopping/merchant/accounts/v1/user_service/rest/client.rb +818 -0
  204. data/lib/google/shopping/merchant/accounts/v1/user_service/rest/service_stub.rb +390 -0
  205. data/lib/google/shopping/merchant/accounts/v1/user_service/rest.rb +54 -0
  206. data/lib/google/shopping/merchant/accounts/v1/user_service.rb +57 -0
  207. data/lib/google/shopping/merchant/accounts/v1/user_services_pb.rb +60 -0
  208. data/lib/google/shopping/merchant/accounts/v1/version.rb +7 -2
  209. data/lib/google/shopping/merchant/accounts/v1.rb +68 -0
  210. data/lib/google-shopping-merchant-accounts-v1.rb +21 -0
  211. data/proto_docs/README.md +4 -0
  212. data/proto_docs/google/api/client.rb +473 -0
  213. data/proto_docs/google/api/field_behavior.rb +85 -0
  214. data/proto_docs/google/api/launch_stage.rb +71 -0
  215. data/proto_docs/google/api/resource.rb +227 -0
  216. data/proto_docs/google/protobuf/duration.rb +98 -0
  217. data/proto_docs/google/protobuf/empty.rb +34 -0
  218. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  219. data/proto_docs/google/protobuf/wrappers.rb +121 -0
  220. data/proto_docs/google/shopping/merchant/accounts/v1/accessright.rb +51 -0
  221. data/proto_docs/google/shopping/merchant/accounts/v1/accountissue.rb +144 -0
  222. data/proto_docs/google/shopping/merchant/accounts/v1/accountrelationships.rb +124 -0
  223. data/proto_docs/google/shopping/merchant/accounts/v1/accounts.rb +250 -0
  224. data/proto_docs/google/shopping/merchant/accounts/v1/accountservices.rb +288 -0
  225. data/proto_docs/google/shopping/merchant/accounts/v1/autofeedsettings.rb +75 -0
  226. data/proto_docs/google/shopping/merchant/accounts/v1/automaticimprovements.rb +235 -0
  227. data/proto_docs/google/shopping/merchant/accounts/v1/businessidentity.rb +140 -0
  228. data/proto_docs/google/shopping/merchant/accounts/v1/businessinfo.rb +91 -0
  229. data/proto_docs/google/shopping/merchant/accounts/v1/checkoutsettings.rb +187 -0
  230. data/proto_docs/google/shopping/merchant/accounts/v1/customerservice.rb +43 -0
  231. data/proto_docs/google/shopping/merchant/accounts/v1/developerregistration.rb +82 -0
  232. data/proto_docs/google/shopping/merchant/accounts/v1/emailpreferences.rb +87 -0
  233. data/proto_docs/google/shopping/merchant/accounts/v1/gbpaccounts.rb +123 -0
  234. data/proto_docs/google/shopping/merchant/accounts/v1/homepage.rb +106 -0
  235. data/proto_docs/google/shopping/merchant/accounts/v1/lfpproviders.rb +108 -0
  236. data/proto_docs/google/shopping/merchant/accounts/v1/omnichannelsettings.rb +336 -0
  237. data/proto_docs/google/shopping/merchant/accounts/v1/online_return_policy.rb +317 -0
  238. data/proto_docs/google/shopping/merchant/accounts/v1/phoneverificationstate.rb +40 -0
  239. data/proto_docs/google/shopping/merchant/accounts/v1/programs.rb +170 -0
  240. data/proto_docs/google/shopping/merchant/accounts/v1/regions.rb +195 -0
  241. data/proto_docs/google/shopping/merchant/accounts/v1/shippingsettings.rb +757 -0
  242. data/proto_docs/google/shopping/merchant/accounts/v1/termsofservice.rb +118 -0
  243. data/proto_docs/google/shopping/merchant/accounts/v1/termsofserviceagreementstate.rb +136 -0
  244. data/proto_docs/google/shopping/merchant/accounts/v1/termsofservicekind.rb +37 -0
  245. data/proto_docs/google/shopping/merchant/accounts/v1/user.rb +164 -0
  246. data/proto_docs/google/shopping/type/types.rb +210 -0
  247. data/proto_docs/google/type/date.rb +53 -0
  248. data/proto_docs/google/type/datetime.rb +103 -0
  249. data/proto_docs/google/type/phone_number.rb +116 -0
  250. data/proto_docs/google/type/postal_address.rb +135 -0
  251. metadata +309 -9
@@ -0,0 +1,328 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/shopping/merchant/accounts/v1/online_return_policy_pb"
20
+
21
+ module Google
22
+ module Shopping
23
+ module Merchant
24
+ module Accounts
25
+ module V1
26
+ module OnlineReturnPolicyService
27
+ module Rest
28
+ ##
29
+ # REST service stub for the OnlineReturnPolicyService service.
30
+ # Service stub contains baseline method implementations
31
+ # including transcoding, making the REST call, and deserialing the response.
32
+ #
33
+ class ServiceStub
34
+ # @private
35
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
36
+ # These require statements are intentionally placed here to initialize
37
+ # the REST modules only when it's required.
38
+ require "gapic/rest"
39
+
40
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
41
+ endpoint_template: endpoint_template,
42
+ universe_domain: universe_domain,
43
+ credentials: credentials,
44
+ numeric_enums: true,
45
+ service_name: self.class,
46
+ raise_faraday_errors: false,
47
+ logger: logger
48
+ end
49
+
50
+ ##
51
+ # The effective universe domain
52
+ #
53
+ # @return [String]
54
+ #
55
+ def universe_domain
56
+ @client_stub.universe_domain
57
+ end
58
+
59
+ ##
60
+ # The effective endpoint
61
+ #
62
+ # @return [String]
63
+ #
64
+ def endpoint
65
+ @client_stub.endpoint
66
+ end
67
+
68
+ ##
69
+ # The logger used for request/response debug logging.
70
+ #
71
+ # @return [Logger]
72
+ #
73
+ def logger stub: false
74
+ stub ? @client_stub.stub_logger : @client_stub.logger
75
+ end
76
+
77
+ ##
78
+ # Baseline implementation for the get_online_return_policy REST call
79
+ #
80
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1::GetOnlineReturnPolicyRequest]
81
+ # A request object representing the call parameters. Required.
82
+ # @param options [::Gapic::CallOptions]
83
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
84
+ #
85
+ # @yield [result, operation] Access the result along with the TransportOperation object
86
+ # @yieldparam result [::Google::Shopping::Merchant::Accounts::V1::OnlineReturnPolicy]
87
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
88
+ #
89
+ # @return [::Google::Shopping::Merchant::Accounts::V1::OnlineReturnPolicy]
90
+ # A result object deserialized from the server's reply
91
+ def get_online_return_policy request_pb, options = nil
92
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
93
+
94
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_online_return_policy_request request_pb
95
+ query_string_params = if query_string_params.any?
96
+ query_string_params.to_h { |p| p.split "=", 2 }
97
+ else
98
+ {}
99
+ end
100
+
101
+ response = @client_stub.make_http_request(
102
+ verb,
103
+ uri: uri,
104
+ body: body || "",
105
+ params: query_string_params,
106
+ method_name: "get_online_return_policy",
107
+ options: options
108
+ )
109
+ operation = ::Gapic::Rest::TransportOperation.new response
110
+ result = ::Google::Shopping::Merchant::Accounts::V1::OnlineReturnPolicy.decode_json response.body, ignore_unknown_fields: true
111
+ catch :response do
112
+ yield result, operation if block_given?
113
+ result
114
+ end
115
+ end
116
+
117
+ ##
118
+ # Baseline implementation for the list_online_return_policies REST call
119
+ #
120
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1::ListOnlineReturnPoliciesRequest]
121
+ # A request object representing the call parameters. Required.
122
+ # @param options [::Gapic::CallOptions]
123
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
124
+ #
125
+ # @yield [result, operation] Access the result along with the TransportOperation object
126
+ # @yieldparam result [::Google::Shopping::Merchant::Accounts::V1::ListOnlineReturnPoliciesResponse]
127
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
128
+ #
129
+ # @return [::Google::Shopping::Merchant::Accounts::V1::ListOnlineReturnPoliciesResponse]
130
+ # A result object deserialized from the server's reply
131
+ def list_online_return_policies request_pb, options = nil
132
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
133
+
134
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_online_return_policies_request request_pb
135
+ query_string_params = if query_string_params.any?
136
+ query_string_params.to_h { |p| p.split "=", 2 }
137
+ else
138
+ {}
139
+ end
140
+
141
+ response = @client_stub.make_http_request(
142
+ verb,
143
+ uri: uri,
144
+ body: body || "",
145
+ params: query_string_params,
146
+ method_name: "list_online_return_policies",
147
+ options: options
148
+ )
149
+ operation = ::Gapic::Rest::TransportOperation.new response
150
+ result = ::Google::Shopping::Merchant::Accounts::V1::ListOnlineReturnPoliciesResponse.decode_json response.body, ignore_unknown_fields: true
151
+ catch :response do
152
+ yield result, operation if block_given?
153
+ result
154
+ end
155
+ end
156
+
157
+ ##
158
+ # Baseline implementation for the create_online_return_policy REST call
159
+ #
160
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1::CreateOnlineReturnPolicyRequest]
161
+ # A request object representing the call parameters. Required.
162
+ # @param options [::Gapic::CallOptions]
163
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
164
+ #
165
+ # @yield [result, operation] Access the result along with the TransportOperation object
166
+ # @yieldparam result [::Google::Shopping::Merchant::Accounts::V1::OnlineReturnPolicy]
167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
168
+ #
169
+ # @return [::Google::Shopping::Merchant::Accounts::V1::OnlineReturnPolicy]
170
+ # A result object deserialized from the server's reply
171
+ def create_online_return_policy request_pb, options = nil
172
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
173
+
174
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_online_return_policy_request request_pb
175
+ query_string_params = if query_string_params.any?
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
+ else
178
+ {}
179
+ end
180
+
181
+ response = @client_stub.make_http_request(
182
+ verb,
183
+ uri: uri,
184
+ body: body || "",
185
+ params: query_string_params,
186
+ method_name: "create_online_return_policy",
187
+ options: options
188
+ )
189
+ operation = ::Gapic::Rest::TransportOperation.new response
190
+ result = ::Google::Shopping::Merchant::Accounts::V1::OnlineReturnPolicy.decode_json response.body, ignore_unknown_fields: true
191
+ catch :response do
192
+ yield result, operation if block_given?
193
+ result
194
+ end
195
+ end
196
+
197
+ ##
198
+ # Baseline implementation for the delete_online_return_policy REST call
199
+ #
200
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1::DeleteOnlineReturnPolicyRequest]
201
+ # A request object representing the call parameters. Required.
202
+ # @param options [::Gapic::CallOptions]
203
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
204
+ #
205
+ # @yield [result, operation] Access the result along with the TransportOperation object
206
+ # @yieldparam result [::Google::Protobuf::Empty]
207
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
208
+ #
209
+ # @return [::Google::Protobuf::Empty]
210
+ # A result object deserialized from the server's reply
211
+ def delete_online_return_policy request_pb, options = nil
212
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
213
+
214
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_online_return_policy_request request_pb
215
+ query_string_params = if query_string_params.any?
216
+ query_string_params.to_h { |p| p.split "=", 2 }
217
+ else
218
+ {}
219
+ end
220
+
221
+ response = @client_stub.make_http_request(
222
+ verb,
223
+ uri: uri,
224
+ body: body || "",
225
+ params: query_string_params,
226
+ method_name: "delete_online_return_policy",
227
+ options: options
228
+ )
229
+ operation = ::Gapic::Rest::TransportOperation.new response
230
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
231
+ catch :response do
232
+ yield result, operation if block_given?
233
+ result
234
+ end
235
+ end
236
+
237
+ ##
238
+ # @private
239
+ #
240
+ # GRPC transcoding helper method for the get_online_return_policy REST call
241
+ #
242
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1::GetOnlineReturnPolicyRequest]
243
+ # A request object representing the call parameters. Required.
244
+ # @return [Array(String, [String, nil], Hash{String => String})]
245
+ # Uri, Body, Query string parameters
246
+ def self.transcode_get_online_return_policy_request request_pb
247
+ transcoder = Gapic::Rest::GrpcTranscoder.new
248
+ .with_bindings(
249
+ uri_method: :get,
250
+ uri_template: "/accounts/v1/{name}",
251
+ matches: [
252
+ ["name", %r{^accounts/[^/]+/onlineReturnPolicies/[^/]+/?$}, false]
253
+ ]
254
+ )
255
+ transcoder.transcode request_pb
256
+ end
257
+
258
+ ##
259
+ # @private
260
+ #
261
+ # GRPC transcoding helper method for the list_online_return_policies REST call
262
+ #
263
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1::ListOnlineReturnPoliciesRequest]
264
+ # A request object representing the call parameters. Required.
265
+ # @return [Array(String, [String, nil], Hash{String => String})]
266
+ # Uri, Body, Query string parameters
267
+ def self.transcode_list_online_return_policies_request request_pb
268
+ transcoder = Gapic::Rest::GrpcTranscoder.new
269
+ .with_bindings(
270
+ uri_method: :get,
271
+ uri_template: "/accounts/v1/{parent}/onlineReturnPolicies",
272
+ matches: [
273
+ ["parent", %r{^accounts/[^/]+/?$}, false]
274
+ ]
275
+ )
276
+ transcoder.transcode request_pb
277
+ end
278
+
279
+ ##
280
+ # @private
281
+ #
282
+ # GRPC transcoding helper method for the create_online_return_policy REST call
283
+ #
284
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1::CreateOnlineReturnPolicyRequest]
285
+ # A request object representing the call parameters. Required.
286
+ # @return [Array(String, [String, nil], Hash{String => String})]
287
+ # Uri, Body, Query string parameters
288
+ def self.transcode_create_online_return_policy_request request_pb
289
+ transcoder = Gapic::Rest::GrpcTranscoder.new
290
+ .with_bindings(
291
+ uri_method: :post,
292
+ uri_template: "/accounts/v1/{parent}/onlineReturnPolicies",
293
+ body: "online_return_policy",
294
+ matches: [
295
+ ["parent", %r{^accounts/[^/]+/?$}, false]
296
+ ]
297
+ )
298
+ transcoder.transcode request_pb
299
+ end
300
+
301
+ ##
302
+ # @private
303
+ #
304
+ # GRPC transcoding helper method for the delete_online_return_policy REST call
305
+ #
306
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1::DeleteOnlineReturnPolicyRequest]
307
+ # A request object representing the call parameters. Required.
308
+ # @return [Array(String, [String, nil], Hash{String => String})]
309
+ # Uri, Body, Query string parameters
310
+ def self.transcode_delete_online_return_policy_request request_pb
311
+ transcoder = Gapic::Rest::GrpcTranscoder.new
312
+ .with_bindings(
313
+ uri_method: :delete,
314
+ uri_template: "/accounts/v1/{name}",
315
+ matches: [
316
+ ["name", %r{^accounts/[^/]+/onlineReturnPolicies/[^/]+/?$}, false]
317
+ ]
318
+ )
319
+ transcoder.transcode request_pb
320
+ end
321
+ end
322
+ end
323
+ end
324
+ end
325
+ end
326
+ end
327
+ end
328
+ end
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/shopping/merchant/accounts/v1/version"
24
+
25
+ require "google/shopping/merchant/accounts/v1/online_return_policy_service/credentials"
26
+ require "google/shopping/merchant/accounts/v1/online_return_policy_service/paths"
27
+ require "google/shopping/merchant/accounts/v1/online_return_policy_service/rest/client"
28
+
29
+ module Google
30
+ module Shopping
31
+ module Merchant
32
+ module Accounts
33
+ module V1
34
+ ##
35
+ # The service facilitates the management of a business's remorse return policy
36
+ # configuration, encompassing return policies for both ads and free listings
37
+ # ## programs. This API defines the following resource model:
38
+ #
39
+ # [OnlineReturnPolicy](/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1#google.shopping.merchant.accounts.v1.OnlineReturnPolicy)
40
+ #
41
+ # To load this service and instantiate a REST client:
42
+ #
43
+ # require "google/shopping/merchant/accounts/v1/online_return_policy_service/rest"
44
+ # client = ::Google::Shopping::Merchant::Accounts::V1::OnlineReturnPolicyService::Rest::Client.new
45
+ #
46
+ module OnlineReturnPolicyService
47
+ # Client for the REST transport
48
+ module Rest
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+
57
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
58
+ require "google/shopping/merchant/accounts/v1/online_return_policy_service/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,61 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/shopping/merchant/accounts/v1/version"
24
+
25
+ require "google/shopping/merchant/accounts/v1/online_return_policy_service/credentials"
26
+ require "google/shopping/merchant/accounts/v1/online_return_policy_service/paths"
27
+ require "google/shopping/merchant/accounts/v1/online_return_policy_service/client"
28
+ require "google/shopping/merchant/accounts/v1/online_return_policy_service/rest"
29
+
30
+ module Google
31
+ module Shopping
32
+ module Merchant
33
+ module Accounts
34
+ module V1
35
+ ##
36
+ # The service facilitates the management of a business's remorse return policy
37
+ # configuration, encompassing return policies for both ads and free listings
38
+ # ## programs. This API defines the following resource model:
39
+ #
40
+ # [OnlineReturnPolicy](/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1#google.shopping.merchant.accounts.v1.OnlineReturnPolicy)
41
+ #
42
+ # @example Load this service and instantiate a gRPC client
43
+ #
44
+ # require "google/shopping/merchant/accounts/v1/online_return_policy_service"
45
+ # client = ::Google::Shopping::Merchant::Accounts::V1::OnlineReturnPolicyService::Client.new
46
+ #
47
+ # @example Load this service and instantiate a REST client
48
+ #
49
+ # require "google/shopping/merchant/accounts/v1/online_return_policy_service/rest"
50
+ # client = ::Google::Shopping::Merchant::Accounts::V1::OnlineReturnPolicyService::Rest::Client.new
51
+ #
52
+ module OnlineReturnPolicyService
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end
59
+
60
+ helper_path = ::File.join __dir__, "online_return_policy_service", "helpers.rb"
61
+ require "google/shopping/merchant/accounts/v1/online_return_policy_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,57 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/shopping/merchant/accounts/v1/online_return_policy.proto for package 'Google.Shopping.Merchant.Accounts.V1'
3
+ # Original file comments:
4
+ # Copyright 2025 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/shopping/merchant/accounts/v1/online_return_policy_pb'
21
+
22
+ module Google
23
+ module Shopping
24
+ module Merchant
25
+ module Accounts
26
+ module V1
27
+ module OnlineReturnPolicyService
28
+ # The service facilitates the management of a business's remorse return policy
29
+ # configuration, encompassing return policies for both ads and free listings
30
+ # ## programs. This API defines the following resource model:
31
+ #
32
+ # [OnlineReturnPolicy](/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1#google.shopping.merchant.accounts.v1.OnlineReturnPolicy)
33
+ class Service
34
+
35
+ include ::GRPC::GenericService
36
+
37
+ self.marshal_class_method = :encode
38
+ self.unmarshal_class_method = :decode
39
+ self.service_name = 'google.shopping.merchant.accounts.v1.OnlineReturnPolicyService'
40
+
41
+ # Gets an existing return policy for a given business.
42
+ rpc :GetOnlineReturnPolicy, ::Google::Shopping::Merchant::Accounts::V1::GetOnlineReturnPolicyRequest, ::Google::Shopping::Merchant::Accounts::V1::OnlineReturnPolicy
43
+ # Lists all existing return policies for a given business.
44
+ rpc :ListOnlineReturnPolicies, ::Google::Shopping::Merchant::Accounts::V1::ListOnlineReturnPoliciesRequest, ::Google::Shopping::Merchant::Accounts::V1::ListOnlineReturnPoliciesResponse
45
+ # Creates a new return policy for a given business.
46
+ rpc :CreateOnlineReturnPolicy, ::Google::Shopping::Merchant::Accounts::V1::CreateOnlineReturnPolicyRequest, ::Google::Shopping::Merchant::Accounts::V1::OnlineReturnPolicy
47
+ # Deletes an existing return policy.
48
+ rpc :DeleteOnlineReturnPolicy, ::Google::Shopping::Merchant::Accounts::V1::DeleteOnlineReturnPolicyRequest, ::Google::Protobuf::Empty
49
+ end
50
+
51
+ Stub = Service.rpc_stub_class
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/shopping/merchant/accounts/v1/phoneverificationstate.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\nAgoogle/shopping/merchant/accounts/v1/phoneverificationstate.proto\x12$google.shopping.merchant.accounts.v1*\x92\x01\n\x16PhoneVerificationState\x12(\n$PHONE_VERIFICATION_STATE_UNSPECIFIED\x10\x00\x12%\n!PHONE_VERIFICATION_STATE_VERIFIED\x10\x01\x12\'\n#PHONE_VERIFICATION_STATE_UNVERIFIED\x10\x02\x42\x8e\x02\n(com.google.shopping.merchant.accounts.v1B\x1bPhoneVerificationStateProtoP\x01ZJcloud.google.com/go/shopping/merchant/accounts/apiv1/accountspb;accountspb\xaa\x02$Google.Shopping.Merchant.Accounts.V1\xca\x02$Google\\Shopping\\Merchant\\Accounts\\V1\xea\x02(Google::Shopping::Merchant::Accounts::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
28
+ end
29
+ end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
32
+ end
33
+
34
+ module Google
35
+ module Shopping
36
+ module Merchant
37
+ module Accounts
38
+ module V1
39
+ PhoneVerificationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.PhoneVerificationState").enummodule
40
+ end
41
+ end
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/shopping/merchant/accounts/v1/programs.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+
12
+
13
+ descriptor_data = "\n3google/shopping/merchant/accounts/v1/programs.proto\x12$google.shopping.merchant.accounts.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9a\x04\n\x07Program\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1e\n\x11\x64ocumentation_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12G\n\x05state\x18\x03 \x01(\x0e\x32\x33.google.shopping.merchant.accounts.v1.Program.StateB\x03\xe0\x41\x03\x12 \n\x13\x61\x63tive_region_codes\x18\x04 \x03(\tB\x03\xe0\x41\x03\x12Z\n\x12unmet_requirements\x18\x05 \x03(\x0b\x32\x39.google.shopping.merchant.accounts.v1.Program.RequirementB\x03\xe0\x41\x03\x1a\x65\n\x0bRequirement\x12\x12\n\x05title\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1e\n\x11\x64ocumentation_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x61\x66\x66\x65\x63ted_region_codes\x18\x03 \x03(\tB\x03\xe0\x41\x03\"K\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x10\n\x0cNOT_ELIGIBLE\x10\x01\x12\x0c\n\x08\x45LIGIBLE\x10\x02\x12\x0b\n\x07\x45NABLED\x10\x03:a\xea\x41^\n\"merchantapi.googleapis.com/Program\x12%accounts/{account}/programs/{program}*\x08programs2\x07program\"M\n\x11GetProgramRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Program\"\x82\x01\n\x13ListProgramsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\x12\"merchantapi.googleapis.com/Program\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"p\n\x14ListProgramsResponse\x12?\n\x08programs\x18\x01 \x03(\x0b\x32-.google.shopping.merchant.accounts.v1.Program\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"P\n\x14\x45nableProgramRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Program\"Q\n\x15\x44isableProgramRequest\x12\x38\n\x04name\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Program2\xd4\x06\n\x0fProgramsService\x12\xae\x01\n\nGetProgram\x12\x37.google.shopping.merchant.accounts.v1.GetProgramRequest\x1a-.google.shopping.merchant.accounts.v1.Program\"8\xda\x41\x04name\x82\xd3\xe4\x93\x02+\x12)/accounts/v1/{name=accounts/*/programs/*}\x12\xc1\x01\n\x0cListPrograms\x12\x39.google.shopping.merchant.accounts.v1.ListProgramsRequest\x1a:.google.shopping.merchant.accounts.v1.ListProgramsResponse\":\xda\x41\x06parent\x82\xd3\xe4\x93\x02+\x12)/accounts/v1/{parent=accounts/*}/programs\x12\xbe\x01\n\rEnableProgram\x12:.google.shopping.merchant.accounts.v1.EnableProgramRequest\x1a-.google.shopping.merchant.accounts.v1.Program\"B\xda\x41\x04name\x82\xd3\xe4\x93\x02\x35\"0/accounts/v1/{name=accounts/*/programs/*}:enable:\x01*\x12\xc1\x01\n\x0e\x44isableProgram\x12;.google.shopping.merchant.accounts.v1.DisableProgramRequest\x1a-.google.shopping.merchant.accounts.v1.Program\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\"1/accounts/v1/{name=accounts/*/programs/*}:disable:\x01*\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x80\x02\n(com.google.shopping.merchant.accounts.v1B\rProgramsProtoP\x01ZJcloud.google.com/go/shopping/merchant/accounts/apiv1/accountspb;accountspb\xaa\x02$Google.Shopping.Merchant.Accounts.V1\xca\x02$Google\\Shopping\\Merchant\\Accounts\\V1\xea\x02(Google::Shopping::Merchant::Accounts::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
+ end
34
+ end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
37
+ end
38
+
39
+ module Google
40
+ module Shopping
41
+ module Merchant
42
+ module Accounts
43
+ module V1
44
+ Program = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.Program").msgclass
45
+ Program::Requirement = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.Program.Requirement").msgclass
46
+ Program::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.Program.State").enummodule
47
+ GetProgramRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.GetProgramRequest").msgclass
48
+ ListProgramsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.ListProgramsRequest").msgclass
49
+ ListProgramsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.ListProgramsResponse").msgclass
50
+ EnableProgramRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.EnableProgramRequest").msgclass
51
+ DisableProgramRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1.DisableProgramRequest").msgclass
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end