google-shopping-merchant-inventories-v1beta 0.3.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/shopping/merchant/inventories/v1beta/local_inventory_service/client.rb +9 -3
- data/lib/google/shopping/merchant/inventories/v1beta/local_inventory_service/paths.rb +17 -0
- data/lib/google/shopping/merchant/inventories/v1beta/local_inventory_service/rest/client.rb +9 -3
- data/lib/google/shopping/merchant/inventories/v1beta/localinventory_pb.rb +1 -1
- data/lib/google/shopping/merchant/inventories/v1beta/regional_inventory_service/client.rb +9 -3
- data/lib/google/shopping/merchant/inventories/v1beta/regional_inventory_service/paths.rb +17 -0
- data/lib/google/shopping/merchant/inventories/v1beta/regional_inventory_service/rest/client.rb +9 -3
- data/lib/google/shopping/merchant/inventories/v1beta/regionalinventory_pb.rb +1 -1
- data/lib/google/shopping/merchant/inventories/v1beta/version.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/shopping/merchant/inventories/v1beta/localinventory.rb +10 -9
- data/proto_docs/google/shopping/merchant/inventories/v1beta/regionalinventory.rb +4 -4
- data/proto_docs/google/shopping/type/types.rb +38 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4519696167998a91ffe09fbc970b27994a10ba8ba328b8a15d2834b0c6ed4982
|
4
|
+
data.tar.gz: 4a9a0ac2124c4ad1ad8470186ace72a527960de35b1d7aa0ae64761d13758531
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4182a100932b1f2f60530939a3eec295004c82f0762cbfd21a5fe7afc310f3e6f06859babddcdce871ead20b504a5c8acd250cc229c9bd1ef62b22a5d3b5175b
|
7
|
+
data.tar.gz: ea3bc9223616b793d91ec4c95e365f98833d4f65523189427593d8949e95e15054c9e17d39b07e2fa722050b324dcfabbb8a18c6aaf03740763d9569905e59fe
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service to manage local inventory for products
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -246,10 +249,11 @@ module Google
|
|
246
249
|
# Customize the options with defaults
|
247
250
|
metadata = @config.rpcs.list_local_inventories.metadata.to_h
|
248
251
|
|
249
|
-
# Set x-goog-api-client
|
252
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
250
253
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
251
254
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
252
255
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION
|
256
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
253
257
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
254
258
|
|
255
259
|
header_params = {}
|
@@ -345,10 +349,11 @@ module Google
|
|
345
349
|
# Customize the options with defaults
|
346
350
|
metadata = @config.rpcs.insert_local_inventory.metadata.to_h
|
347
351
|
|
348
|
-
# Set x-goog-api-client
|
352
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
349
353
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
350
354
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
351
355
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION
|
356
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
352
357
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
353
358
|
|
354
359
|
header_params = {}
|
@@ -436,10 +441,11 @@ module Google
|
|
436
441
|
# Customize the options with defaults
|
437
442
|
metadata = @config.rpcs.delete_local_inventory.metadata.to_h
|
438
443
|
|
439
|
-
# Set x-goog-api-client
|
444
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
440
445
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
441
446
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
442
447
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION
|
448
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
443
449
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
444
450
|
|
445
451
|
header_params = {}
|
@@ -44,6 +44,23 @@ module Google
|
|
44
44
|
"accounts/#{account}/products/#{product}/localInventories/#{store_code}"
|
45
45
|
end
|
46
46
|
|
47
|
+
##
|
48
|
+
# Create a fully-qualified Product resource string.
|
49
|
+
#
|
50
|
+
# The resource will be in the following format:
|
51
|
+
#
|
52
|
+
# `accounts/{account}/products/{product}`
|
53
|
+
#
|
54
|
+
# @param account [String]
|
55
|
+
# @param product [String]
|
56
|
+
#
|
57
|
+
# @return [::String]
|
58
|
+
def product_path account:, product:
|
59
|
+
raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/"
|
60
|
+
|
61
|
+
"accounts/#{account}/products/#{product}"
|
62
|
+
end
|
63
|
+
|
47
64
|
extend self
|
48
65
|
end
|
49
66
|
end
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service to manage local inventory for products
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -238,12 +241,13 @@ module Google
|
|
238
241
|
# Customize the options with defaults
|
239
242
|
call_metadata = @config.rpcs.list_local_inventories.metadata.to_h
|
240
243
|
|
241
|
-
# Set x-goog-api-client
|
244
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
242
245
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
243
246
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
244
247
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION,
|
245
248
|
transports_version_send: [:rest]
|
246
249
|
|
250
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
247
251
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
248
252
|
|
249
253
|
options.apply_defaults timeout: @config.rpcs.list_local_inventories.timeout,
|
@@ -330,12 +334,13 @@ module Google
|
|
330
334
|
# Customize the options with defaults
|
331
335
|
call_metadata = @config.rpcs.insert_local_inventory.metadata.to_h
|
332
336
|
|
333
|
-
# Set x-goog-api-client
|
337
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
334
338
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
335
339
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
336
340
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION,
|
337
341
|
transports_version_send: [:rest]
|
338
342
|
|
343
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
339
344
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
340
345
|
|
341
346
|
options.apply_defaults timeout: @config.rpcs.insert_local_inventory.timeout,
|
@@ -414,12 +419,13 @@ module Google
|
|
414
419
|
# Customize the options with defaults
|
415
420
|
call_metadata = @config.rpcs.delete_local_inventory.metadata.to_h
|
416
421
|
|
417
|
-
# Set x-goog-api-client
|
422
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
418
423
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
419
424
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
420
425
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION,
|
421
426
|
transports_version_send: [:rest]
|
422
427
|
|
428
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
423
429
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
424
430
|
|
425
431
|
options.apply_defaults timeout: @config.rpcs.delete_local_inventory.timeout,
|
@@ -13,7 +13,7 @@ require 'google/shopping/type/types_pb'
|
|
13
13
|
require 'google/type/interval_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n@google/shopping/merchant/inventories/v1beta/localinventory.proto\x12+google.shopping.merchant.inventories.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/shopping/type/types.proto\x1a\x1agoogle/type/interval.proto\"\
|
16
|
+
descriptor_data = "\n@google/shopping/merchant/inventories/v1beta/localinventory.proto\x12+google.shopping.merchant.inventories.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/shopping/type/types.proto\x1a\x1agoogle/type/interval.proto\"\x8d\x05\n\x0eLocalInventory\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07\x61\x63\x63ount\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\nstore_code\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12*\n\x05price\x18\x04 \x01(\x0b\x32\x1b.google.shopping.type.Price\x12/\n\nsale_price\x18\x05 \x01(\x0b\x32\x1b.google.shopping.type.Price\x12\x38\n\x19sale_price_effective_date\x18\x06 \x01(\x0b\x32\x15.google.type.Interval\x12\x19\n\x0c\x61vailability\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08quantity\x18\x08 \x01(\x03H\x01\x88\x01\x01\x12\x1a\n\rpickup_method\x18\t \x01(\tH\x02\x88\x01\x01\x12\x17\n\npickup_sla\x18\n \x01(\tH\x03\x88\x01\x01\x12%\n\x18instore_product_location\x18\x0b \x01(\tH\x04\x88\x01\x01\x12@\n\x11\x63ustom_attributes\x18\x0c \x03(\x0b\x32%.google.shopping.type.CustomAttribute:s\xea\x41p\n)merchantapi.googleapis.com/LocalInventory\x12\x43\x61\x63\x63ounts/{account}/products/{product}/localInventories/{store_code}B\x0f\n\r_availabilityB\x0b\n\t_quantityB\x10\n\x0e_pickup_methodB\r\n\x0b_pickup_slaB\x1b\n\x19_instore_product_location\"\x87\x01\n\x1bListLocalInventoriesRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)merchantapi.googleapis.com/LocalInventory\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x8f\x01\n\x1cListLocalInventoriesResponse\x12V\n\x11local_inventories\x18\x01 \x03(\x0b\x32;.google.shopping.merchant.inventories.v1beta.LocalInventory\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xbb\x01\n\x1bInsertLocalInventoryRequest\x12\x41\n\x06parent\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\x12)merchantapi.googleapis.com/LocalInventory\x12Y\n\x0flocal_inventory\x18\x02 \x01(\x0b\x32;.google.shopping.merchant.inventories.v1beta.LocalInventoryB\x03\xe0\x41\x02\"^\n\x1b\x44\x65leteLocalInventoryRequest\x12?\n\x04name\x18\x01 \x01(\tB1\xe0\x41\x02\xfa\x41+\n)merchantapi.googleapis.com/LocalInventory2\xb8\x06\n\x15LocalInventoryService\x12\x81\x02\n\x14ListLocalInventories\x12H.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesRequest\x1aI.google.shopping.merchant.inventories.v1beta.ListLocalInventoriesResponse\"T\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x45\x12\x43/inventories/v1beta/{parent=accounts/*/products/*}/localInventories\x12\x82\x02\n\x14InsertLocalInventory\x12H.google.shopping.merchant.inventories.v1beta.InsertLocalInventoryRequest\x1a;.google.shopping.merchant.inventories.v1beta.LocalInventory\"c\x82\xd3\xe4\x93\x02]\"J/inventories/v1beta/{parent=accounts/*/products/*}/localInventories:insert:\x0flocal_inventory\x12\xcc\x01\n\x14\x44\x65leteLocalInventory\x12H.google.shopping.merchant.inventories.v1beta.DeleteLocalInventoryRequest\x1a\x16.google.protobuf.Empty\"R\xda\x41\x04name\x82\xd3\xe4\x93\x02\x45*C/inventories/v1beta/{name=accounts/*/products/*/localInventories/*}\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xef\x01\n/com.google.shopping.merchant.inventories.v1betaB\x13LocalInventoryProtoP\x01ZWcloud.google.com/go/shopping/merchant/inventories/apiv1beta/inventoriespb;inventoriespb\xea\x41K\n\"merchantapi.googleapis.com/Product\x12%accounts/{account}/products/{product}b\x06proto3"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# `regions` resource and API to manage regions definitions.
|
33
33
|
#
|
34
34
|
class Client
|
35
|
+
# @private
|
36
|
+
API_VERSION = ""
|
37
|
+
|
35
38
|
# @private
|
36
39
|
DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
|
37
40
|
|
@@ -246,10 +249,11 @@ module Google
|
|
246
249
|
# Customize the options with defaults
|
247
250
|
metadata = @config.rpcs.list_regional_inventories.metadata.to_h
|
248
251
|
|
249
|
-
# Set x-goog-api-client
|
252
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
250
253
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
251
254
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
252
255
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION
|
256
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
253
257
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
254
258
|
|
255
259
|
header_params = {}
|
@@ -345,10 +349,11 @@ module Google
|
|
345
349
|
# Customize the options with defaults
|
346
350
|
metadata = @config.rpcs.insert_regional_inventory.metadata.to_h
|
347
351
|
|
348
|
-
# Set x-goog-api-client
|
352
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
349
353
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
350
354
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
351
355
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION
|
356
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
352
357
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
353
358
|
|
354
359
|
header_params = {}
|
@@ -436,10 +441,11 @@ module Google
|
|
436
441
|
# Customize the options with defaults
|
437
442
|
metadata = @config.rpcs.delete_regional_inventory.metadata.to_h
|
438
443
|
|
439
|
-
# Set x-goog-api-client
|
444
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
440
445
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
441
446
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
442
447
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION
|
448
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
443
449
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
444
450
|
|
445
451
|
header_params = {}
|
@@ -25,6 +25,23 @@ module Google
|
|
25
25
|
module RegionalInventoryService
|
26
26
|
# Path helper methods for the RegionalInventoryService API.
|
27
27
|
module Paths
|
28
|
+
##
|
29
|
+
# Create a fully-qualified Product resource string.
|
30
|
+
#
|
31
|
+
# The resource will be in the following format:
|
32
|
+
#
|
33
|
+
# `accounts/{account}/products/{product}`
|
34
|
+
#
|
35
|
+
# @param account [String]
|
36
|
+
# @param product [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def product_path account:, product:
|
40
|
+
raise ::ArgumentError, "account cannot contain /" if account.to_s.include? "/"
|
41
|
+
|
42
|
+
"accounts/#{account}/products/#{product}"
|
43
|
+
end
|
44
|
+
|
28
45
|
##
|
29
46
|
# Create a fully-qualified RegionalInventory resource string.
|
30
47
|
#
|
data/lib/google/shopping/merchant/inventories/v1beta/regional_inventory_service/rest/client.rb
CHANGED
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# `regions` resource and API to manage regions definitions.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -238,12 +241,13 @@ module Google
|
|
238
241
|
# Customize the options with defaults
|
239
242
|
call_metadata = @config.rpcs.list_regional_inventories.metadata.to_h
|
240
243
|
|
241
|
-
# Set x-goog-api-client
|
244
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
242
245
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
243
246
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
244
247
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION,
|
245
248
|
transports_version_send: [:rest]
|
246
249
|
|
250
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
247
251
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
248
252
|
|
249
253
|
options.apply_defaults timeout: @config.rpcs.list_regional_inventories.timeout,
|
@@ -330,12 +334,13 @@ module Google
|
|
330
334
|
# Customize the options with defaults
|
331
335
|
call_metadata = @config.rpcs.insert_regional_inventory.metadata.to_h
|
332
336
|
|
333
|
-
# Set x-goog-api-client
|
337
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
334
338
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
335
339
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
336
340
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION,
|
337
341
|
transports_version_send: [:rest]
|
338
342
|
|
343
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
339
344
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
340
345
|
|
341
346
|
options.apply_defaults timeout: @config.rpcs.insert_regional_inventory.timeout,
|
@@ -414,12 +419,13 @@ module Google
|
|
414
419
|
# Customize the options with defaults
|
415
420
|
call_metadata = @config.rpcs.delete_regional_inventory.metadata.to_h
|
416
421
|
|
417
|
-
# Set x-goog-api-client
|
422
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
418
423
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
419
424
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
420
425
|
gapic_version: ::Google::Shopping::Merchant::Inventories::V1beta::VERSION,
|
421
426
|
transports_version_send: [:rest]
|
422
427
|
|
428
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
423
429
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
424
430
|
|
425
431
|
options.apply_defaults timeout: @config.rpcs.delete_regional_inventory.timeout,
|
@@ -13,7 +13,7 @@ require 'google/shopping/type/types_pb'
|
|
13
13
|
require 'google/type/interval_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\nCgoogle/shopping/merchant/inventories/v1beta/regionalinventory.proto\x12+google.shopping.merchant.inventories.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/shopping/type/types.proto\x1a\x1agoogle/type/interval.proto\"\
|
16
|
+
descriptor_data = "\nCgoogle/shopping/merchant/inventories/v1beta/regionalinventory.proto\x12+google.shopping.merchant.inventories.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/shopping/type/types.proto\x1a\x1agoogle/type/interval.proto\"\xd0\x03\n\x11RegionalInventory\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07\x61\x63\x63ount\x18\x02 \x01(\x03\x42\x03\xe0\x41\x03\x12\x16\n\x06region\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12*\n\x05price\x18\x04 \x01(\x0b\x32\x1b.google.shopping.type.Price\x12/\n\nsale_price\x18\x05 \x01(\x0b\x32\x1b.google.shopping.type.Price\x12\x38\n\x19sale_price_effective_date\x18\x06 \x01(\x0b\x32\x15.google.type.Interval\x12\x19\n\x0c\x61vailability\x18\x07 \x01(\tH\x00\x88\x01\x01\x12@\n\x11\x63ustom_attributes\x18\x08 \x03(\x0b\x32%.google.shopping.type.CustomAttribute:u\xea\x41r\n,merchantapi.googleapis.com/RegionalInventory\x12\x42\x61\x63\x63ounts/{account}/products/{product}/regionalInventories/{region}B\x0f\n\r_availability\"\x8d\x01\n\x1eListRegionalInventoriesRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,merchantapi.googleapis.com/RegionalInventory\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x98\x01\n\x1fListRegionalInventoriesResponse\x12\\\n\x14regional_inventories\x18\x01 \x03(\x0b\x32>.google.shopping.merchant.inventories.v1beta.RegionalInventory\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xc7\x01\n\x1eInsertRegionalInventoryRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\x12,merchantapi.googleapis.com/RegionalInventory\x12_\n\x12regional_inventory\x18\x02 \x01(\x0b\x32>.google.shopping.merchant.inventories.v1beta.RegionalInventoryB\x03\xe0\x41\x02\"d\n\x1e\x44\x65leteRegionalInventoryRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe0\x41\x02\xfa\x41.\n,merchantapi.googleapis.com/RegionalInventory2\xdf\x06\n\x18RegionalInventoryService\x12\x8d\x02\n\x17ListRegionalInventories\x12K.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesRequest\x1aL.google.shopping.merchant.inventories.v1beta.ListRegionalInventoriesResponse\"W\xda\x41\x06parent\x82\xd3\xe4\x93\x02H\x12\x46/inventories/v1beta/{parent=accounts/*/products/*}/regionalInventories\x12\x91\x02\n\x17InsertRegionalInventory\x12K.google.shopping.merchant.inventories.v1beta.InsertRegionalInventoryRequest\x1a>.google.shopping.merchant.inventories.v1beta.RegionalInventory\"i\x82\xd3\xe4\x93\x02\x63\"M/inventories/v1beta/{parent=accounts/*/products/*}/regionalInventories:insert:\x12regional_inventory\x12\xd5\x01\n\x17\x44\x65leteRegionalInventory\x12K.google.shopping.merchant.inventories.v1beta.DeleteRegionalInventoryRequest\x1a\x16.google.protobuf.Empty\"U\xda\x41\x04name\x82\xd3\xe4\x93\x02H*F/inventories/v1beta/{name=accounts/*/products/*/regionalInventories/*}\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\xa4\x01\n/com.google.shopping.merchant.inventories.v1betaB\x16RegionalInventoryProtoP\x01ZWcloud.google.com/go/shopping/merchant/inventories/apiv1beta/inventoriespb;inventoriespbb\x06proto3"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -118,6 +118,10 @@ module Google
|
|
118
118
|
# @return [::String]
|
119
119
|
# Optional link to proto reference documentation. Example:
|
120
120
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
121
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
122
|
+
# @return [::String]
|
123
|
+
# Optional link to REST reference documentation. Example:
|
124
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
125
|
class Publishing
|
122
126
|
include ::Google::Protobuf::MessageExts
|
123
127
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# for a specific product at the store specified by
|
27
27
|
# {::Google::Shopping::Merchant::Inventories::V1beta::LocalInventory#store_code `storeCode`}.
|
28
28
|
# For a list of all accepted attribute values, see the [local product inventory
|
29
|
-
#
|
29
|
+
# data specification](https://support.google.com/merchants/answer/3061342).
|
30
30
|
# @!attribute [r] name
|
31
31
|
# @return [::String]
|
32
32
|
# Output only. The name of the `LocalInventory` resource.
|
@@ -38,10 +38,11 @@ module Google
|
|
38
38
|
# if set by the client.
|
39
39
|
# @!attribute [rw] store_code
|
40
40
|
# @return [::String]
|
41
|
-
# Required. Store code (the store ID from your Business Profile)
|
42
|
-
# physical store the product is sold in. See the [Local product
|
43
|
-
#
|
44
|
-
# for
|
41
|
+
# Required. Immutable. Store code (the store ID from your Business Profile)
|
42
|
+
# of the physical store the product is sold in. See the [Local product
|
43
|
+
# inventory data
|
44
|
+
# specification](https://support.google.com/merchants/answer/3061342) for
|
45
|
+
# more information.
|
45
46
|
# @!attribute [rw] price
|
46
47
|
# @return [::Google::Shopping::Type::Price]
|
47
48
|
# Price of the product at this store.
|
@@ -57,7 +58,7 @@ module Google
|
|
57
58
|
# @!attribute [rw] availability
|
58
59
|
# @return [::String]
|
59
60
|
# Availability of the product at this store.
|
60
|
-
# For accepted attribute values, see the [local product inventory
|
61
|
+
# For accepted attribute values, see the [local product inventory data
|
61
62
|
# specification](https://support.google.com/merchants/answer/3061342)
|
62
63
|
# @!attribute [rw] quantity
|
63
64
|
# @return [::Integer]
|
@@ -68,14 +69,14 @@ module Google
|
|
68
69
|
# Supported pickup method for this product. Unless the value is `"not
|
69
70
|
# supported"`, this field must be submitted together with
|
70
71
|
# `pickupSla`.
|
71
|
-
# For accepted attribute values, see the [local product inventory
|
72
|
+
# For accepted attribute values, see the [local product inventory data
|
72
73
|
# specification](https://support.google.com/merchants/answer/3061342)
|
73
74
|
# @!attribute [rw] pickup_sla
|
74
75
|
# @return [::String]
|
75
76
|
# Relative time period from the order date for an order for this product,
|
76
77
|
# from this store, to be ready for pickup. Must be submitted with
|
77
78
|
# `pickupMethod`.
|
78
|
-
# For accepted attribute values, see the [local product inventory
|
79
|
+
# For accepted attribute values, see the [local product inventory data
|
79
80
|
# specification](https://support.google.com/merchants/answer/3061342)
|
80
81
|
# @!attribute [rw] instore_product_location
|
81
82
|
# @return [::String]
|
@@ -83,7 +84,7 @@ module Google
|
|
83
84
|
# @!attribute [rw] custom_attributes
|
84
85
|
# @return [::Array<::Google::Shopping::Type::CustomAttribute>]
|
85
86
|
# A list of custom (merchant-provided) attributes. You can also use
|
86
|
-
# `CustomAttribute` to submit any attribute of the
|
87
|
+
# `CustomAttribute` to submit any attribute of the data specification in its
|
87
88
|
# generic form.
|
88
89
|
class LocalInventory
|
89
90
|
include ::Google::Protobuf::MessageExts
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# information like price and availability for a given product in a specific
|
27
27
|
# {::Google::Shopping::Merchant::Inventories::V1beta::RegionalInventory#region `region`}.
|
28
28
|
# For a list of all accepted attribute values, see the [regional product
|
29
|
-
# inventory
|
29
|
+
# inventory data
|
30
30
|
# specification](https://support.google.com/merchants/answer/9698880).
|
31
31
|
# @!attribute [r] name
|
32
32
|
# @return [::String]
|
@@ -39,7 +39,7 @@ module Google
|
|
39
39
|
# if set by the client.
|
40
40
|
# @!attribute [rw] region
|
41
41
|
# @return [::String]
|
42
|
-
# Required. ID of the region for this
|
42
|
+
# Required. Immutable. ID of the region for this
|
43
43
|
# `RegionalInventory` resource. See the [Regional availability and
|
44
44
|
# pricing](https://support.google.com/merchants/answer/9698880) for more
|
45
45
|
# details.
|
@@ -58,12 +58,12 @@ module Google
|
|
58
58
|
# @!attribute [rw] availability
|
59
59
|
# @return [::String]
|
60
60
|
# Availability of the product in this region.
|
61
|
-
# For accepted attribute values, see the [regional product inventory
|
61
|
+
# For accepted attribute values, see the [regional product inventory data
|
62
62
|
# specification](https://support.google.com/merchants/answer/3061342)
|
63
63
|
# @!attribute [rw] custom_attributes
|
64
64
|
# @return [::Array<::Google::Shopping::Type::CustomAttribute>]
|
65
65
|
# A list of custom (merchant-provided) attributes. You can also use
|
66
|
-
# `CustomAttribute` to submit any attribute of the
|
66
|
+
# `CustomAttribute` to submit any attribute of the data specification in its
|
67
67
|
# generic form.
|
68
68
|
class RegionalInventory
|
69
69
|
include ::Google::Protobuf::MessageExts
|
@@ -20,14 +20,41 @@
|
|
20
20
|
module Google
|
21
21
|
module Shopping
|
22
22
|
module Type
|
23
|
+
# The weight represented as the value in string and the unit.
|
24
|
+
# @!attribute [rw] amount_micros
|
25
|
+
# @return [::Integer]
|
26
|
+
# Required. The weight represented as a number in micros (1 million micros is
|
27
|
+
# an equivalent to one's currency standard unit, for example, 1 kg = 1000000
|
28
|
+
# micros).
|
29
|
+
# This field can also be set as infinity by setting to -1.
|
30
|
+
# This field only support -1 and positive value.
|
31
|
+
# @!attribute [rw] unit
|
32
|
+
# @return [::Google::Shopping::Type::Weight::WeightUnit]
|
33
|
+
# Required. The weight unit.
|
34
|
+
# Acceptable values are: kg and lb
|
35
|
+
class Weight
|
36
|
+
include ::Google::Protobuf::MessageExts
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
38
|
+
|
39
|
+
# The weight unit.
|
40
|
+
module WeightUnit
|
41
|
+
# unit unspecified
|
42
|
+
WEIGHT_UNIT_UNSPECIFIED = 0
|
43
|
+
|
44
|
+
# lb unit.
|
45
|
+
POUND = 1
|
46
|
+
|
47
|
+
# kg unit.
|
48
|
+
KILOGRAM = 2
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
23
52
|
# The price represented as a number and currency.
|
24
53
|
# @!attribute [rw] amount_micros
|
25
54
|
# @return [::Integer]
|
26
55
|
# The price represented as a number in micros (1 million micros is an
|
27
56
|
# equivalent to one's currency standard unit, for example, 1 USD = 1000000
|
28
57
|
# micros).
|
29
|
-
# This field can also be set as infinity by setting to -1.
|
30
|
-
# This field only support -1 and positive value.
|
31
58
|
# @!attribute [rw] currency_code
|
32
59
|
# @return [::String]
|
33
60
|
# The currency of the price using three-letter acronyms according to [ISO
|
@@ -95,7 +122,7 @@ module Google
|
|
95
122
|
# Reporting contexts are groups of surfaces and formats for product results on
|
96
123
|
# Google. They can represent the entire destination (for example, [Shopping
|
97
124
|
# ads](https://support.google.com/merchants/answer/6149970)) or a subset of
|
98
|
-
# formats within a destination (for example, [
|
125
|
+
# formats within a destination (for example, [Demand Gen
|
99
126
|
# ads](https://support.google.com/merchants/answer/13389785)).
|
100
127
|
class ReportingContext
|
101
128
|
include ::Google::Protobuf::MessageExts
|
@@ -109,10 +136,18 @@ module Google
|
|
109
136
|
# [Shopping ads](https://support.google.com/merchants/answer/6149970).
|
110
137
|
SHOPPING_ADS = 1
|
111
138
|
|
139
|
+
# Deprecated: Use `DEMAND_GEN_ADS` instead.
|
112
140
|
# [Discovery and Demand Gen
|
113
141
|
# ads](https://support.google.com/merchants/answer/13389785).
|
114
142
|
DISCOVERY_ADS = 2
|
115
143
|
|
144
|
+
# [Demand Gen ads](https://support.google.com/merchants/answer/13389785).
|
145
|
+
DEMAND_GEN_ADS = 13
|
146
|
+
|
147
|
+
# [Demand Gen ads on Discover
|
148
|
+
# surface](https://support.google.com/merchants/answer/13389785).
|
149
|
+
DEMAND_GEN_ADS_DISCOVER_SURFACE = 14
|
150
|
+
|
116
151
|
# [Video ads](https://support.google.com/google-ads/answer/6340491).
|
117
152
|
VIDEO_ADS = 3
|
118
153
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-shopping-merchant-inventories-v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-05-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|