google-shopping-merchant-accounts-v1beta 0.8.0 → 0.9.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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service/client.rb +581 -0
  3. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service/credentials.rb +49 -0
  4. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service/paths.rb +49 -0
  5. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service/rest/client.rb +541 -0
  6. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service/rest/service_stub.rb +206 -0
  7. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service/rest.rb +57 -0
  8. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service.rb +60 -0
  9. data/lib/google/shopping/merchant/accounts/v1beta/gbpaccounts_pb.rb +56 -0
  10. data/lib/google/shopping/merchant/accounts/v1beta/gbpaccounts_services_pb.rb +52 -0
  11. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/client.rb +584 -0
  12. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/credentials.rb +49 -0
  13. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/paths.rb +71 -0
  14. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/rest/client.rb +544 -0
  15. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/rest/service_stub.rb +206 -0
  16. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/rest.rb +56 -0
  17. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service.rb +59 -0
  18. data/lib/google/shopping/merchant/accounts/v1beta/lfpproviders_pb.rb +55 -0
  19. data/lib/google/shopping/merchant/accounts/v1beta/lfpproviders_services_pb.rb +51 -0
  20. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/client.rb +875 -0
  21. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/credentials.rb +49 -0
  22. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/paths.rb +66 -0
  23. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/rest/client.rb +814 -0
  24. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/rest/service_stub.rb +391 -0
  25. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/rest.rb +57 -0
  26. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service.rb +60 -0
  27. data/lib/google/shopping/merchant/accounts/v1beta/omnichannelsettings_pb.rb +68 -0
  28. data/lib/google/shopping/merchant/accounts/v1beta/omnichannelsettings_services_pb.rb +58 -0
  29. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_pb.rb +8 -1
  30. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/client.rb +285 -4
  31. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest/client.rb +264 -4
  32. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest/service_stub.rb +185 -0
  33. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest.rb +1 -1
  34. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service.rb +1 -1
  35. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_services_pb.rb +9 -3
  36. data/lib/google/shopping/merchant/accounts/v1beta/rest.rb +3 -0
  37. data/lib/google/shopping/merchant/accounts/v1beta/version.rb +1 -1
  38. data/lib/google/shopping/merchant/accounts/v1beta.rb +3 -0
  39. data/proto_docs/google/shopping/merchant/accounts/v1beta/gbpaccounts.rb +123 -0
  40. data/proto_docs/google/shopping/merchant/accounts/v1beta/lfpproviders.rb +108 -0
  41. data/proto_docs/google/shopping/merchant/accounts/v1beta/omnichannelsettings.rb +336 -0
  42. data/proto_docs/google/shopping/merchant/accounts/v1beta/online_return_policy.rb +64 -10
  43. metadata +31 -1
@@ -0,0 +1,391 @@
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/v1beta/omnichannelsettings_pb"
20
+
21
+ module Google
22
+ module Shopping
23
+ module Merchant
24
+ module Accounts
25
+ module V1beta
26
+ module OmnichannelSettingsService
27
+ module Rest
28
+ ##
29
+ # REST service stub for the OmnichannelSettingsService 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_omnichannel_setting REST call
79
+ #
80
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1beta::GetOmnichannelSettingRequest]
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::V1beta::OmnichannelSetting]
87
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
88
+ #
89
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSetting]
90
+ # A result object deserialized from the server's reply
91
+ def get_omnichannel_setting 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_omnichannel_setting_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_omnichannel_setting",
107
+ options: options
108
+ )
109
+ operation = ::Gapic::Rest::TransportOperation.new response
110
+ result = ::Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSetting.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_omnichannel_settings REST call
119
+ #
120
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1beta::ListOmnichannelSettingsRequest]
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::V1beta::ListOmnichannelSettingsResponse]
127
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
128
+ #
129
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::ListOmnichannelSettingsResponse]
130
+ # A result object deserialized from the server's reply
131
+ def list_omnichannel_settings 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_omnichannel_settings_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_omnichannel_settings",
147
+ options: options
148
+ )
149
+ operation = ::Gapic::Rest::TransportOperation.new response
150
+ result = ::Google::Shopping::Merchant::Accounts::V1beta::ListOmnichannelSettingsResponse.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_omnichannel_setting REST call
159
+ #
160
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1beta::CreateOmnichannelSettingRequest]
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::V1beta::OmnichannelSetting]
167
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
168
+ #
169
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSetting]
170
+ # A result object deserialized from the server's reply
171
+ def create_omnichannel_setting 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_omnichannel_setting_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_omnichannel_setting",
187
+ options: options
188
+ )
189
+ operation = ::Gapic::Rest::TransportOperation.new response
190
+ result = ::Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSetting.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 update_omnichannel_setting REST call
199
+ #
200
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1beta::UpdateOmnichannelSettingRequest]
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::Shopping::Merchant::Accounts::V1beta::OmnichannelSetting]
207
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
208
+ #
209
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSetting]
210
+ # A result object deserialized from the server's reply
211
+ def update_omnichannel_setting 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_update_omnichannel_setting_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: "update_omnichannel_setting",
227
+ options: options
228
+ )
229
+ operation = ::Gapic::Rest::TransportOperation.new response
230
+ result = ::Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSetting.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
+ # Baseline implementation for the request_inventory_verification REST call
239
+ #
240
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1beta::RequestInventoryVerificationRequest]
241
+ # A request object representing the call parameters. Required.
242
+ # @param options [::Gapic::CallOptions]
243
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
244
+ #
245
+ # @yield [result, operation] Access the result along with the TransportOperation object
246
+ # @yieldparam result [::Google::Shopping::Merchant::Accounts::V1beta::RequestInventoryVerificationResponse]
247
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
248
+ #
249
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::RequestInventoryVerificationResponse]
250
+ # A result object deserialized from the server's reply
251
+ def request_inventory_verification request_pb, options = nil
252
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
253
+
254
+ verb, uri, query_string_params, body = ServiceStub.transcode_request_inventory_verification_request request_pb
255
+ query_string_params = if query_string_params.any?
256
+ query_string_params.to_h { |p| p.split "=", 2 }
257
+ else
258
+ {}
259
+ end
260
+
261
+ response = @client_stub.make_http_request(
262
+ verb,
263
+ uri: uri,
264
+ body: body || "",
265
+ params: query_string_params,
266
+ method_name: "request_inventory_verification",
267
+ options: options
268
+ )
269
+ operation = ::Gapic::Rest::TransportOperation.new response
270
+ result = ::Google::Shopping::Merchant::Accounts::V1beta::RequestInventoryVerificationResponse.decode_json response.body, ignore_unknown_fields: true
271
+ catch :response do
272
+ yield result, operation if block_given?
273
+ result
274
+ end
275
+ end
276
+
277
+ ##
278
+ # @private
279
+ #
280
+ # GRPC transcoding helper method for the get_omnichannel_setting REST call
281
+ #
282
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1beta::GetOmnichannelSettingRequest]
283
+ # A request object representing the call parameters. Required.
284
+ # @return [Array(String, [String, nil], Hash{String => String})]
285
+ # Uri, Body, Query string parameters
286
+ def self.transcode_get_omnichannel_setting_request request_pb
287
+ transcoder = Gapic::Rest::GrpcTranscoder.new
288
+ .with_bindings(
289
+ uri_method: :get,
290
+ uri_template: "/accounts/v1beta/{name}",
291
+ matches: [
292
+ ["name", %r{^accounts/[^/]+/omnichannelSettings/[^/]+/?$}, false]
293
+ ]
294
+ )
295
+ transcoder.transcode request_pb
296
+ end
297
+
298
+ ##
299
+ # @private
300
+ #
301
+ # GRPC transcoding helper method for the list_omnichannel_settings REST call
302
+ #
303
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1beta::ListOmnichannelSettingsRequest]
304
+ # A request object representing the call parameters. Required.
305
+ # @return [Array(String, [String, nil], Hash{String => String})]
306
+ # Uri, Body, Query string parameters
307
+ def self.transcode_list_omnichannel_settings_request request_pb
308
+ transcoder = Gapic::Rest::GrpcTranscoder.new
309
+ .with_bindings(
310
+ uri_method: :get,
311
+ uri_template: "/accounts/v1beta/{parent}/omnichannelSettings",
312
+ matches: [
313
+ ["parent", %r{^accounts/[^/]+/?$}, false]
314
+ ]
315
+ )
316
+ transcoder.transcode request_pb
317
+ end
318
+
319
+ ##
320
+ # @private
321
+ #
322
+ # GRPC transcoding helper method for the create_omnichannel_setting REST call
323
+ #
324
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1beta::CreateOmnichannelSettingRequest]
325
+ # A request object representing the call parameters. Required.
326
+ # @return [Array(String, [String, nil], Hash{String => String})]
327
+ # Uri, Body, Query string parameters
328
+ def self.transcode_create_omnichannel_setting_request request_pb
329
+ transcoder = Gapic::Rest::GrpcTranscoder.new
330
+ .with_bindings(
331
+ uri_method: :post,
332
+ uri_template: "/accounts/v1beta/{parent}/omnichannelSettings",
333
+ body: "omnichannel_setting",
334
+ matches: [
335
+ ["parent", %r{^accounts/[^/]+/?$}, false]
336
+ ]
337
+ )
338
+ transcoder.transcode request_pb
339
+ end
340
+
341
+ ##
342
+ # @private
343
+ #
344
+ # GRPC transcoding helper method for the update_omnichannel_setting REST call
345
+ #
346
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1beta::UpdateOmnichannelSettingRequest]
347
+ # A request object representing the call parameters. Required.
348
+ # @return [Array(String, [String, nil], Hash{String => String})]
349
+ # Uri, Body, Query string parameters
350
+ def self.transcode_update_omnichannel_setting_request request_pb
351
+ transcoder = Gapic::Rest::GrpcTranscoder.new
352
+ .with_bindings(
353
+ uri_method: :patch,
354
+ uri_template: "/accounts/v1beta/{omnichannel_setting.name}",
355
+ body: "omnichannel_setting",
356
+ matches: [
357
+ ["omnichannel_setting.name", %r{^accounts/[^/]+/omnichannelSettings/[^/]+/?$}, false]
358
+ ]
359
+ )
360
+ transcoder.transcode request_pb
361
+ end
362
+
363
+ ##
364
+ # @private
365
+ #
366
+ # GRPC transcoding helper method for the request_inventory_verification REST call
367
+ #
368
+ # @param request_pb [::Google::Shopping::Merchant::Accounts::V1beta::RequestInventoryVerificationRequest]
369
+ # A request object representing the call parameters. Required.
370
+ # @return [Array(String, [String, nil], Hash{String => String})]
371
+ # Uri, Body, Query string parameters
372
+ def self.transcode_request_inventory_verification_request request_pb
373
+ transcoder = Gapic::Rest::GrpcTranscoder.new
374
+ .with_bindings(
375
+ uri_method: :post,
376
+ uri_template: "/accounts/v1beta/{name}:requestInventoryVerification",
377
+ body: "*",
378
+ matches: [
379
+ ["name", %r{^accounts/[^/]+/omnichannelSettings/[^/]+/?$}, false]
380
+ ]
381
+ )
382
+ transcoder.transcode request_pb
383
+ end
384
+ end
385
+ end
386
+ end
387
+ end
388
+ end
389
+ end
390
+ end
391
+ end
@@ -0,0 +1,57 @@
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/v1beta/version"
24
+
25
+ require "google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/credentials"
26
+ require "google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/paths"
27
+ require "google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/rest/client"
28
+
29
+ module Google
30
+ module Shopping
31
+ module Merchant
32
+ module Accounts
33
+ module V1beta
34
+ ##
35
+ # The service facilitates the management of a merchant's omnichannel settings.
36
+ # ## This API defines the following resource model:
37
+ #
38
+ # [OmnichannelSetting][google.shopping.merchant.accounts.v1.OmnichannelSetting]
39
+ #
40
+ # To load this service and instantiate a REST client:
41
+ #
42
+ # require "google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/rest"
43
+ # client = ::Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSettingsService::Rest::Client.new
44
+ #
45
+ module OmnichannelSettingsService
46
+ # Client for the REST transport
47
+ module Rest
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+
56
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
57
+ require "google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,60 @@
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/v1beta/version"
24
+
25
+ require "google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/credentials"
26
+ require "google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/paths"
27
+ require "google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/client"
28
+ require "google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/rest"
29
+
30
+ module Google
31
+ module Shopping
32
+ module Merchant
33
+ module Accounts
34
+ module V1beta
35
+ ##
36
+ # The service facilitates the management of a merchant's omnichannel settings.
37
+ # ## This API defines the following resource model:
38
+ #
39
+ # [OmnichannelSetting][google.shopping.merchant.accounts.v1.OmnichannelSetting]
40
+ #
41
+ # @example Load this service and instantiate a gRPC client
42
+ #
43
+ # require "google/shopping/merchant/accounts/v1beta/omnichannel_settings_service"
44
+ # client = ::Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSettingsService::Client.new
45
+ #
46
+ # @example Load this service and instantiate a REST client
47
+ #
48
+ # require "google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/rest"
49
+ # client = ::Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSettingsService::Rest::Client.new
50
+ #
51
+ module OmnichannelSettingsService
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
58
+
59
+ helper_path = ::File.join __dir__, "omnichannel_settings_service", "helpers.rb"
60
+ require "google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/helpers" if ::File.file? helper_path
@@ -0,0 +1,68 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/shopping/merchant/accounts/v1beta/omnichannelsettings.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
+ require 'google/protobuf/field_mask_pb'
12
+
13
+
14
+ descriptor_data = "\nBgoogle/shopping/merchant/accounts/v1beta/omnichannelsettings.proto\x12(google.shopping.merchant.accounts.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\"\xe3\x06\n\x12OmnichannelSetting\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1b\n\x0bregion_code\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12[\n\x08lsf_type\x18\x0c \x01(\x0e\x32\x44.google.shopping.merchant.accounts.v1beta.OmnichannelSetting.LsfTypeB\x03\xe0\x41\x02\x12H\n\x08in_stock\x18\r \x01(\x0b\x32\x31.google.shopping.merchant.accounts.v1beta.InStockB\x03\xe0\x41\x01\x12\x45\n\x06pickup\x18\x0e \x01(\x0b\x32\x30.google.shopping.merchant.accounts.v1beta.PickupB\x03\xe0\x41\x01\x12H\n\x08lfp_link\x18\x05 \x01(\x0b\x32\x31.google.shopping.merchant.accounts.v1beta.LfpLinkB\x03\xe0\x41\x03\x12L\n\x03odo\x18\x06 \x01(\x0b\x32:.google.shopping.merchant.accounts.v1beta.OnDisplayToOrderB\x03\xe0\x41\x01\x12\x43\n\x05\x61\x62out\x18\x07 \x01(\x0b\x32/.google.shopping.merchant.accounts.v1beta.AboutB\x03\xe0\x41\x01\x12\x64\n\x16inventory_verification\x18\x08 \x01(\x0b\x32?.google.shopping.merchant.accounts.v1beta.InventoryVerificationB\x03\xe0\x41\x01\"O\n\x07LsfType\x12\x18\n\x14LSF_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05GHLSF\x10\x01\x12\x0f\n\x0bMHLSF_BASIC\x10\x02\x12\x0e\n\nMHLSF_FULL\x10\x03:\x9a\x01\xea\x41\x96\x01\n-merchantapi.googleapis.com/OmnichannelSetting\x12<accounts/{account}/omnichannelSettings/{omnichannel_setting}*\x13omnichannelSettings2\x12omnichannelSetting\"g\n\x0bReviewState\"X\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\n\n\x06\x41\x43TIVE\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\x13\n\x0f\x41\x43TION_REQUIRED\x10\x04\"l\n\x07InStock\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12O\n\x05state\x18\x02 \x01(\x0e\x32;.google.shopping.merchant.accounts.v1beta.ReviewState.StateB\x03\xe0\x41\x03\"k\n\x06Pickup\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\x05state\x18\x02 \x01(\x0e\x32;.google.shopping.merchant.accounts.v1beta.ReviewState.StateB\x03\xe0\x41\x03\"\x97\x01\n\x07LfpLink\x12\x19\n\x0clfp_provider\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13\x65xternal_account_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12O\n\x05state\x18\x03 \x01(\x0e\x32;.google.shopping.merchant.accounts.v1beta.ReviewState.StateB\x03\xe0\x41\x03\"u\n\x10OnDisplayToOrder\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\x05state\x18\x02 \x01(\x0e\x32;.google.shopping.merchant.accounts.v1beta.ReviewState.StateB\x03\xe0\x41\x03\"j\n\x05\x41\x62out\x12\x10\n\x03uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\x05state\x18\x02 \x01(\x0e\x32;.google.shopping.merchant.accounts.v1beta.ReviewState.StateB\x03\xe0\x41\x03\"\xeb\x02\n\x15InventoryVerification\x12Y\n\x05state\x18\x01 \x01(\x0e\x32\x45.google.shopping.merchant.accounts.v1beta.InventoryVerification.StateB\x03\xe0\x41\x03\x12\x14\n\x07\x63ontact\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rcontact_email\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12W\n\rcontact_state\x18\x04 \x01(\x0e\x32;.google.shopping.merchant.accounts.v1beta.ReviewState.StateB\x03\xe0\x41\x03\"l\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x13\n\x0f\x41\x43TION_REQUIRED\x10\x01\x12\x0c\n\x08INACTIVE\x10\x05\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\r\n\tSUSPENDED\x10\x04\"c\n\x1cGetOmnichannelSettingRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-merchantapi.googleapis.com/OmnichannelSetting\"\x8d\x01\n\x1eListOmnichannelSettingsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\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\"\x96\x01\n\x1fListOmnichannelSettingsResponse\x12Z\n\x14omnichannel_settings\x18\x01 \x03(\x0b\x32<.google.shopping.merchant.accounts.v1beta.OmnichannelSetting\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbd\x01\n\x1f\x43reateOmnichannelSettingRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe0\x41\x02\xfa\x41$\n\"merchantapi.googleapis.com/Account\x12^\n\x13omnichannel_setting\x18\x02 \x01(\x0b\x32<.google.shopping.merchant.accounts.v1beta.OmnichannelSettingB\x03\xe0\x41\x02\"\xb7\x01\n\x1fUpdateOmnichannelSettingRequest\x12^\n\x13omnichannel_setting\x18\x01 \x01(\x0b\x32<.google.shopping.merchant.accounts.v1beta.OmnichannelSettingB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"j\n#RequestInventoryVerificationRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-merchantapi.googleapis.com/OmnichannelSetting\"\x81\x01\n$RequestInventoryVerificationResponse\x12Y\n\x13omnichannel_setting\x18\x01 \x01(\x0b\x32<.google.shopping.merchant.accounts.v1beta.OmnichannelSetting2\xc1\x0b\n\x1aOmnichannelSettingsService\x12\xe6\x01\n\x15GetOmnichannelSetting\x12\x46.google.shopping.merchant.accounts.v1beta.GetOmnichannelSettingRequest\x1a<.google.shopping.merchant.accounts.v1beta.OmnichannelSetting\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/accounts/v1beta/{name=accounts/*/omnichannelSettings/*}\x12\xf9\x01\n\x17ListOmnichannelSettings\x12H.google.shopping.merchant.accounts.v1beta.ListOmnichannelSettingsRequest\x1aI.google.shopping.merchant.accounts.v1beta.ListOmnichannelSettingsResponse\"I\xda\x41\x06parent\x82\xd3\xe4\x93\x02:\x12\x38/accounts/v1beta/{parent=accounts/*}/omnichannelSettings\x12\x97\x02\n\x18\x43reateOmnichannelSetting\x12I.google.shopping.merchant.accounts.v1beta.CreateOmnichannelSettingRequest\x1a<.google.shopping.merchant.accounts.v1beta.OmnichannelSetting\"r\xda\x41\x1aparent,omnichannel_setting\x82\xd3\xe4\x93\x02O\"8/accounts/v1beta/{parent=accounts/*}/omnichannelSettings:\x13omnichannel_setting\x12\xb1\x02\n\x18UpdateOmnichannelSetting\x12I.google.shopping.merchant.accounts.v1beta.UpdateOmnichannelSettingRequest\x1a<.google.shopping.merchant.accounts.v1beta.OmnichannelSetting\"\x8b\x01\xda\x41\x1fomnichannel_setting,update_mask\x82\xd3\xe4\x93\x02\x63\x32L/accounts/v1beta/{omnichannel_setting.name=accounts/*/omnichannelSettings/*}:\x13omnichannel_setting\x12\xa6\x02\n\x1cRequestInventoryVerification\x12M.google.shopping.merchant.accounts.v1beta.RequestInventoryVerificationRequest\x1aN.google.shopping.merchant.accounts.v1beta.RequestInventoryVerificationResponse\"g\xda\x41\x04name\x82\xd3\xe4\x93\x02Z\"U/accounts/v1beta/{name=accounts/*/omnichannelSettings/*}:requestInventoryVerification:\x01*\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x9a\x01\n,com.google.shopping.merchant.accounts.v1betaB\x18OmnichannelSettingsProtoP\x01ZNcloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspbb\x06proto3"
15
+
16
+ pool = Google::Protobuf::DescriptorPool.generated_pool
17
+
18
+ begin
19
+ pool.add_serialized_file(descriptor_data)
20
+ rescue TypeError
21
+ # Compatibility code: will be removed in the next major version.
22
+ require 'google/protobuf/descriptor_pb'
23
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
+ parsed.clear_dependency
25
+ serialized = parsed.class.encode(parsed)
26
+ file = pool.add_serialized_file(serialized)
27
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
+ imports = [
29
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
30
+ ]
31
+ imports.each do |type_name, expected_filename|
32
+ import_file = pool.lookup(type_name).file_descriptor
33
+ if import_file.name != expected_filename
34
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
35
+ end
36
+ end
37
+ warn "Each proto file must use a consistent fully-qualified name."
38
+ warn "This will become an error in the next major version."
39
+ end
40
+
41
+ module Google
42
+ module Shopping
43
+ module Merchant
44
+ module Accounts
45
+ module V1beta
46
+ OmnichannelSetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.OmnichannelSetting").msgclass
47
+ OmnichannelSetting::LsfType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.OmnichannelSetting.LsfType").enummodule
48
+ ReviewState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.ReviewState").msgclass
49
+ ReviewState::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.ReviewState.State").enummodule
50
+ InStock = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.InStock").msgclass
51
+ Pickup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.Pickup").msgclass
52
+ LfpLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.LfpLink").msgclass
53
+ OnDisplayToOrder = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.OnDisplayToOrder").msgclass
54
+ About = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.About").msgclass
55
+ InventoryVerification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.InventoryVerification").msgclass
56
+ InventoryVerification::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.InventoryVerification.State").enummodule
57
+ GetOmnichannelSettingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.GetOmnichannelSettingRequest").msgclass
58
+ ListOmnichannelSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.ListOmnichannelSettingsRequest").msgclass
59
+ ListOmnichannelSettingsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.ListOmnichannelSettingsResponse").msgclass
60
+ CreateOmnichannelSettingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.CreateOmnichannelSettingRequest").msgclass
61
+ UpdateOmnichannelSettingRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.UpdateOmnichannelSettingRequest").msgclass
62
+ RequestInventoryVerificationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.RequestInventoryVerificationRequest").msgclass
63
+ RequestInventoryVerificationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.RequestInventoryVerificationResponse").msgclass
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
@@ -0,0 +1,58 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/shopping/merchant/accounts/v1beta/omnichannelsettings.proto for package 'google.shopping.merchant.accounts.v1beta'
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/v1beta/omnichannelsettings_pb'
21
+
22
+ module Google
23
+ module Shopping
24
+ module Merchant
25
+ module Accounts
26
+ module V1beta
27
+ module OmnichannelSettingsService
28
+ # The service facilitates the management of a merchant's omnichannel settings.
29
+ # ## This API defines the following resource model:
30
+ #
31
+ # [OmnichannelSetting][google.shopping.merchant.accounts.v1.OmnichannelSetting]
32
+ class Service
33
+
34
+ include ::GRPC::GenericService
35
+
36
+ self.marshal_class_method = :encode
37
+ self.unmarshal_class_method = :decode
38
+ self.service_name = 'google.shopping.merchant.accounts.v1beta.OmnichannelSettingsService'
39
+
40
+ # Get the omnichannel settings for a given merchant.
41
+ rpc :GetOmnichannelSetting, ::Google::Shopping::Merchant::Accounts::V1beta::GetOmnichannelSettingRequest, ::Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSetting
42
+ # List all the omnichannel settings for a given merchant.
43
+ rpc :ListOmnichannelSettings, ::Google::Shopping::Merchant::Accounts::V1beta::ListOmnichannelSettingsRequest, ::Google::Shopping::Merchant::Accounts::V1beta::ListOmnichannelSettingsResponse
44
+ # Create the omnichannel settings for a given merchant.
45
+ rpc :CreateOmnichannelSetting, ::Google::Shopping::Merchant::Accounts::V1beta::CreateOmnichannelSettingRequest, ::Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSetting
46
+ # Update the omnichannel setting for a given merchant in a given country.
47
+ rpc :UpdateOmnichannelSetting, ::Google::Shopping::Merchant::Accounts::V1beta::UpdateOmnichannelSettingRequest, ::Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSetting
48
+ # Requests inventory verification for a given merchant in a given country.
49
+ rpc :RequestInventoryVerification, ::Google::Shopping::Merchant::Accounts::V1beta::RequestInventoryVerificationRequest, ::Google::Shopping::Merchant::Accounts::V1beta::RequestInventoryVerificationResponse
50
+ end
51
+
52
+ Stub = Service.rpc_stub_class
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end
58
+ end