google-shopping-merchant-lfp-v1beta 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fd0687ffb68c4538293d7668a5f5f04e661c867d73f37441f176e25d84d8b56
4
- data.tar.gz: 654916f6924f3d50955226aa4abae841b022f530c1aa2aeb8e955c86c428cfcd
3
+ metadata.gz: e34e247cd1aa4ed46fa342ebb3985dddfa8297ea89cb1ec7a87310c7c931aaeb
4
+ data.tar.gz: 7eea6e733fddaa0588c6836796df56b7d15f3d5c440cf5b364fa80afad20abb8
5
5
  SHA512:
6
- metadata.gz: 51284d8a8d9427a6bacf1327bebfe1f21fe9277d3bd6f3e03e39b5383d10065e8a27b0a860ee375e84ca68b4d2b32a287b7bcce4707fd57857aa05f5ace245c7
7
- data.tar.gz: 6e651138a5d6d3bdd43370dabc0d0116f15d45bb8d77799e6fc3d9bfc34e19bf3102b71be7c814383b4f3299f52c150d8f2071ac76ec77e38b00e3712921fe22
6
+ metadata.gz: c0f64ecc32212b5bcbe99b4c584b0a377a737cdc728829725ee404bb80bd74d07c4cfa204ad9ffe84067f995e60531ca89ab75668a8f1a3417bee560a8666ac0
7
+ data.tar.gz: 7f087564dd8b068fc6defd32892b712ed5c1c9358feb7277e951a239e7368f255173debf57df93585931823f2c7e2f8b5044c426d1a9b78f33f48190e02b0f30
@@ -33,6 +33,9 @@ module Google
33
33
  # inventories for a merchant.
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
 
@@ -228,10 +231,11 @@ module Google
228
231
  # Customize the options with defaults
229
232
  metadata = @config.rpcs.insert_lfp_inventory.metadata.to_h
230
233
 
231
- # Set x-goog-api-client and x-goog-user-project headers
234
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
232
235
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
233
236
  lib_name: @config.lib_name, lib_version: @config.lib_version,
234
237
  gapic_version: ::Google::Shopping::Merchant::Lfp::V1beta::VERSION
238
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
235
239
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
236
240
 
237
241
  header_params = {}
@@ -35,6 +35,9 @@ module Google
35
35
  # inventories for a merchant.
36
36
  #
37
37
  class Client
38
+ # @private
39
+ API_VERSION = ""
40
+
38
41
  # @private
39
42
  DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
40
43
 
@@ -220,12 +223,13 @@ module Google
220
223
  # Customize the options with defaults
221
224
  call_metadata = @config.rpcs.insert_lfp_inventory.metadata.to_h
222
225
 
223
- # Set x-goog-api-client and x-goog-user-project headers
226
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
224
227
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
225
228
  lib_name: @config.lib_name, lib_version: @config.lib_version,
226
229
  gapic_version: ::Google::Shopping::Merchant::Lfp::V1beta::VERSION,
227
230
  transports_version_send: [:rest]
228
231
 
232
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
229
233
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
230
234
 
231
235
  options.apply_defaults timeout: @config.rpcs.insert_lfp_inventory.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # data for a merchant.
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
 
@@ -226,10 +229,11 @@ module Google
226
229
  # Customize the options with defaults
227
230
  metadata = @config.rpcs.insert_lfp_sale.metadata.to_h
228
231
 
229
- # Set x-goog-api-client and x-goog-user-project headers
232
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
230
233
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
231
234
  lib_name: @config.lib_name, lib_version: @config.lib_version,
232
235
  gapic_version: ::Google::Shopping::Merchant::Lfp::V1beta::VERSION
236
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
233
237
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
238
 
235
239
  header_params = {}
@@ -35,6 +35,9 @@ module Google
35
35
  # data for a merchant.
36
36
  #
37
37
  class Client
38
+ # @private
39
+ API_VERSION = ""
40
+
38
41
  # @private
39
42
  DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
40
43
 
@@ -218,12 +221,13 @@ module Google
218
221
  # Customize the options with defaults
219
222
  call_metadata = @config.rpcs.insert_lfp_sale.metadata.to_h
220
223
 
221
- # Set x-goog-api-client and x-goog-user-project headers
224
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
222
225
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
223
226
  lib_name: @config.lib_name, lib_version: @config.lib_version,
224
227
  gapic_version: ::Google::Shopping::Merchant::Lfp::V1beta::VERSION,
225
228
  transports_version_send: [:rest]
226
229
 
230
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
227
231
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
228
232
 
229
233
  options.apply_defaults timeout: @config.rpcs.insert_lfp_sale.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # stores for a merchant.
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
 
@@ -224,10 +227,11 @@ module Google
224
227
  # Customize the options with defaults
225
228
  metadata = @config.rpcs.get_lfp_store.metadata.to_h
226
229
 
227
- # Set x-goog-api-client and x-goog-user-project headers
230
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
228
231
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
229
232
  lib_name: @config.lib_name, lib_version: @config.lib_version,
230
233
  gapic_version: ::Google::Shopping::Merchant::Lfp::V1beta::VERSION
234
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
231
235
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
232
236
 
233
237
  header_params = {}
@@ -313,10 +317,11 @@ module Google
313
317
  # Customize the options with defaults
314
318
  metadata = @config.rpcs.insert_lfp_store.metadata.to_h
315
319
 
316
- # Set x-goog-api-client and x-goog-user-project headers
320
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
317
321
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
318
322
  lib_name: @config.lib_name, lib_version: @config.lib_version,
319
323
  gapic_version: ::Google::Shopping::Merchant::Lfp::V1beta::VERSION
324
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
320
325
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
321
326
 
322
327
  header_params = {}
@@ -399,10 +404,11 @@ module Google
399
404
  # Customize the options with defaults
400
405
  metadata = @config.rpcs.delete_lfp_store.metadata.to_h
401
406
 
402
- # Set x-goog-api-client and x-goog-user-project headers
407
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
403
408
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
404
409
  lib_name: @config.lib_name, lib_version: @config.lib_version,
405
410
  gapic_version: ::Google::Shopping::Merchant::Lfp::V1beta::VERSION
411
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
406
412
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
407
413
 
408
414
  header_params = {}
@@ -505,10 +511,11 @@ module Google
505
511
  # Customize the options with defaults
506
512
  metadata = @config.rpcs.list_lfp_stores.metadata.to_h
507
513
 
508
- # Set x-goog-api-client and x-goog-user-project headers
514
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
509
515
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
510
516
  lib_name: @config.lib_name, lib_version: @config.lib_version,
511
517
  gapic_version: ::Google::Shopping::Merchant::Lfp::V1beta::VERSION
518
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
512
519
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
513
520
 
514
521
  header_params = {}
@@ -35,6 +35,9 @@ module Google
35
35
  # stores for a merchant.
36
36
  #
37
37
  class Client
38
+ # @private
39
+ API_VERSION = ""
40
+
38
41
  # @private
39
42
  DEFAULT_ENDPOINT_TEMPLATE = "merchantapi.$UNIVERSE_DOMAIN$"
40
43
 
@@ -216,12 +219,13 @@ module Google
216
219
  # Customize the options with defaults
217
220
  call_metadata = @config.rpcs.get_lfp_store.metadata.to_h
218
221
 
219
- # Set x-goog-api-client and x-goog-user-project headers
222
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
220
223
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
221
224
  lib_name: @config.lib_name, lib_version: @config.lib_version,
222
225
  gapic_version: ::Google::Shopping::Merchant::Lfp::V1beta::VERSION,
223
226
  transports_version_send: [:rest]
224
227
 
228
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
225
229
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
226
230
 
227
231
  options.apply_defaults timeout: @config.rpcs.get_lfp_store.timeout,
@@ -298,12 +302,13 @@ module Google
298
302
  # Customize the options with defaults
299
303
  call_metadata = @config.rpcs.insert_lfp_store.metadata.to_h
300
304
 
301
- # Set x-goog-api-client and x-goog-user-project headers
305
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
302
306
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
303
307
  lib_name: @config.lib_name, lib_version: @config.lib_version,
304
308
  gapic_version: ::Google::Shopping::Merchant::Lfp::V1beta::VERSION,
305
309
  transports_version_send: [:rest]
306
310
 
311
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
307
312
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
308
313
 
309
314
  options.apply_defaults timeout: @config.rpcs.insert_lfp_store.timeout,
@@ -377,12 +382,13 @@ module Google
377
382
  # Customize the options with defaults
378
383
  call_metadata = @config.rpcs.delete_lfp_store.metadata.to_h
379
384
 
380
- # Set x-goog-api-client and x-goog-user-project headers
385
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
381
386
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
382
387
  lib_name: @config.lib_name, lib_version: @config.lib_version,
383
388
  gapic_version: ::Google::Shopping::Merchant::Lfp::V1beta::VERSION,
384
389
  transports_version_send: [:rest]
385
390
 
391
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
386
392
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
387
393
 
388
394
  options.apply_defaults timeout: @config.rpcs.delete_lfp_store.timeout,
@@ -476,12 +482,13 @@ module Google
476
482
  # Customize the options with defaults
477
483
  call_metadata = @config.rpcs.list_lfp_stores.metadata.to_h
478
484
 
479
- # Set x-goog-api-client and x-goog-user-project headers
485
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
480
486
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
481
487
  lib_name: @config.lib_name, lib_version: @config.lib_version,
482
488
  gapic_version: ::Google::Shopping::Merchant::Lfp::V1beta::VERSION,
483
489
  transports_version_send: [:rest]
484
490
 
491
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
485
492
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
486
493
 
487
494
  options.apply_defaults timeout: @config.rpcs.list_lfp_stores.timeout,
@@ -22,7 +22,7 @@ module Google
22
22
  module Merchant
23
23
  module Lfp
24
24
  module V1beta
25
- VERSION = "0.1.0"
25
+ VERSION = "0.1.1"
26
26
  end
27
27
  end
28
28
  end
@@ -62,7 +62,7 @@ module Google
62
62
  # @!attribute [rw] availability
63
63
  # @return [::String]
64
64
  # Required. Availability of the product at this store.
65
- # For accepted attribute values, see the [local product inventory feed
65
+ # For accepted attribute values, see the [local product inventory data
66
66
  # specification](https://support.google.com/merchants/answer/3061342)
67
67
  # @!attribute [rw] quantity
68
68
  # @return [::Integer]
@@ -76,13 +76,13 @@ module Google
76
76
  # @return [::String]
77
77
  # Optional. Supported pickup method for this offer. Unless the value is "not
78
78
  # supported", this field must be submitted together with `pickupSla`. For
79
- # accepted attribute values, see the [local product inventory feed
79
+ # accepted attribute values, see the [local product inventory data
80
80
  # specification](https://support.google.com/merchants/answer/3061342).
81
81
  # @!attribute [rw] pickup_sla
82
82
  # @return [::String]
83
83
  # Optional. Expected date that an order will be ready for pickup relative to
84
84
  # the order date. Must be submitted together with `pickupMethod`. For
85
- # accepted attribute values, see the [local product inventory feed
85
+ # accepted attribute values, see the [local product inventory data
86
86
  # specification](https://support.google.com/merchants/answer/3061342).
87
87
  # @!attribute [rw] feed_label
88
88
  # @return [::String]
@@ -22,8 +22,8 @@ module Google
22
22
  module Merchant
23
23
  module Lfp
24
24
  module V1beta
25
- # A store for the merchant. This will be used to match to a Google Business
26
- # Profile listing for the target merchant. If a matching listing can't be
25
+ # A store for the merchant. This will be used to match to a store under the
26
+ # Google Business Profile of the target merchant. If a matching store can't be
27
27
  # found, the inventories or sales submitted with the store code will not be
28
28
  # used.
29
29
  # @!attribute [r] name
@@ -63,8 +63,8 @@ module Google
63
63
  # of the store location.
64
64
  # @!attribute [r] matching_state
65
65
  # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpStore::StoreMatchingState]
66
- # Optional. Output only. The state of matching to a Google Business Profile
67
- # listing. See
66
+ # Optional. Output only. The state of matching to a Google Business Profile.
67
+ # See
68
68
  # {::Google::Shopping::Merchant::Lfp::V1beta::LfpStore#matching_state_hint matchingStateHint}
69
69
  # for further details if no match is found.
70
70
  # @!attribute [r] matching_state_hint
@@ -91,7 +91,7 @@ module Google
91
91
  include ::Google::Protobuf::MessageExts
92
92
  extend ::Google::Protobuf::MessageExts::ClassMethods
93
93
 
94
- # The state of matching `LfpStore` to a Google Business Profile listing.
94
+ # The state of matching `LfpStore` to a Google Business Profile.
95
95
  module StoreMatchingState
96
96
  # Store matching state unspecified.
97
97
  STORE_MATCHING_STATE_UNSPECIFIED = 0
@@ -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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-shopping-merchant-lfp-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.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-04-25 00:00:00.000000000 Z
11
+ date: 2024-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common