google-apis-retail_v2alpha 0.20.0 → 0.24.0

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: 81b33fcc38ddd550c3692293c10d9414f0cc3300ae70e825bf0f8da79cfdad95
4
- data.tar.gz: c2d1dc89671d11118cf25e8595a6e70ea7dc3ffd4770ec28c723d2cd2e6bac82
3
+ metadata.gz: c597c7c3e4e8d54b6452442b40588729d9483d8543b1ed8da020684648ac3b96
4
+ data.tar.gz: 71ebf0a020be508646193baa196cd38d7c0e2b872e54d597d31646c72fc39a96
5
5
  SHA512:
6
- metadata.gz: 5cb84361796d3c4fcca698eea982de98929d9750d18f220d4d7ab8a15c41966c3052636dfc0dae02e3716373aa222a712a85ed3373e2878cb6cc253c95afee7d
7
- data.tar.gz: 001feb988f31d678c1b4732fd7200bf327e3254286bfd1882c27b89d7c447f0de664653c524a302aea8cfd7f5859f56fd20ebd1c341e847914320f1f90786948
6
+ metadata.gz: 35822cb95f7f558f0592e0a460648a2be658a4ff665247ebf7d5ae5e6edba422b931ebd1f87cf15d14b9e6efeb235690d4dff534049d451fb01b8cf012168c4a
7
+ data.tar.gz: 86bce977dc3a4b458fefd9e8ae6c06ac59464f9a581caf7f923896ee948cf25ff703897460bdc173350d15c534b87ff9a3ae8d8c7aa9636921359afe986f1f21
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.24.0 (2021-12-16)
4
+
5
+ * Regenerated from discovery document revision 20211210
6
+
7
+ ### v0.23.0 (2021-12-09)
8
+
9
+ * Regenerated from discovery document revision 20211203
10
+
11
+ ### v0.22.0 (2021-11-17)
12
+
13
+ * Regenerated from discovery document revision 20211116
14
+
15
+ ### v0.21.0 (2021-11-10)
16
+
17
+ * Regenerated from discovery document revision 20211104
18
+
3
19
  ### v0.20.0 (2021-11-03)
4
20
 
5
21
  * Regenerated from discovery document revision 20211028
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/retail_v2alpha"
51
51
  client = Google::Apis::RetailV2alpha::CloudRetailService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -743,15 +743,15 @@ module Google
743
743
 
744
744
  # If set to true, and the Product is not found, the local inventory will still
745
745
  # be processed and retained for at most 1 day and processed once the Product is
746
- # created. If set to false, an INVALID_ARGUMENT error is returned if the Product
747
- # is not found.
746
+ # created. If set to false, a NOT_FOUND error is returned if the Product is not
747
+ # found.
748
748
  # Corresponds to the JSON property `allowMissing`
749
749
  # @return [Boolean]
750
750
  attr_accessor :allow_missing
751
751
  alias_method :allow_missing?, :allow_missing
752
752
 
753
753
  # Required. A list of inventory information at difference places. Each place is
754
- # identified by its place ID. At most 1000 inventories are allowed per request.
754
+ # identified by its place ID. At most 3000 inventories are allowed per request.
755
755
  # Corresponds to the JSON property `localInventories`
756
756
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory>]
757
757
  attr_accessor :local_inventories
@@ -1122,9 +1122,8 @@ module Google
1122
1122
  alias_method :indexable?, :indexable
1123
1123
 
1124
1124
  # The numerical values of this custom attribute. For example, `[2.3, 15.4]` when
1125
- # the key is "lengths_cm". At most 400 values are allowed.Otherwise, an
1126
- # INVALID_ARGUMENT error is returned. Exactly one of text or numbers should be
1127
- # set. Otherwise, an INVALID_ARGUMENT error is returned.
1125
+ # the key is "lengths_cm". Exactly one of text or numbers should be set.
1126
+ # Otherwise, an INVALID_ARGUMENT error is returned.
1128
1127
  # Corresponds to the JSON property `numbers`
1129
1128
  # @return [Array<Float>]
1130
1129
  attr_accessor :numbers
@@ -1138,11 +1137,8 @@ module Google
1138
1137
  alias_method :searchable?, :searchable
1139
1138
 
1140
1139
  # The textual values of this custom attribute. For example, `["yellow", "green"]`
1141
- # when the key is "color". At most 400 values are allowed. Empty values are not
1142
- # allowed. Each value must be a UTF-8 encoded string with a length limit of 256
1143
- # characters. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of
1144
- # text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is
1145
- # returned.
1140
+ # when the key is "color". Exactly one of text or numbers should be set.
1141
+ # Otherwise, an INVALID_ARGUMENT error is returned.
1146
1142
  # Corresponds to the JSON property `text`
1147
1143
  # @return [Array<String>]
1148
1144
  attr_accessor :text
@@ -1309,6 +1305,8 @@ module Google
1309
1305
  # recommendations-ai/docs/upload-catalog#mc). Supported values for user events
1310
1306
  # imports: * `user_event` (default): One JSON UserEvent per line. * `
1311
1307
  # user_event_ga360`: Using https://support.google.com/analytics/answer/3437719.
1308
+ # Supported values for control imports: * 'control' (default): One JSON Control
1309
+ # per line.
1312
1310
  # Corresponds to the JSON property `dataSchema`
1313
1311
  # @return [String]
1314
1312
  attr_accessor :data_schema
@@ -1777,12 +1775,15 @@ module Google
1777
1775
  include Google::Apis::Core::Hashable
1778
1776
 
1779
1777
  # Additional local inventory attributes, for example, store name, promotion tags,
1780
- # etc. * At most 5 values are allowed. Otherwise, an INVALID_ARGUMENT error is
1781
- # returned. * The key must be a UTF-8 encoded string with a length limit of 10
1782
- # characters. * The key must match the pattern: `a-zA-Z0-9*`. For example,
1783
- # key0LikeThis or KEY_1_LIKE_THIS. * The attribute values must be of the same
1784
- # type (text or number). * The max number of values per attribute is 10. * For
1785
- # text values, the length limit is 10 UTF-8 characters.
1778
+ # etc. This field needs to pass all below criteria, otherwise an
1779
+ # INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The
1780
+ # key must be a UTF-8 encoded string with a length limit of 32 characters. * The
1781
+ # key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or
1782
+ # KEY_1_LIKE_THIS. * The attribute values must be of the same type (text or
1783
+ # number). * The max number of values per attribute is 10. * For text values,
1784
+ # the length limit is 256 UTF-8 characters. * The attribute does not support
1785
+ # search. The `searchable` field should be unset or set to false. * The max
1786
+ # summed total bytes of custom attribute keys and values per product is 5MiB.
1786
1787
  # Corresponds to the JSON property `attributes`
1787
1788
  # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
1788
1789
  attr_accessor :attributes
@@ -1826,13 +1827,21 @@ module Google
1826
1827
 
1827
1828
  # String representing the destination to import for, all if left empty. List of
1828
1829
  # possible values can be found here. [https://support.google.com/merchants/
1829
- # answer/7501026] List of allowed string values: "shopping-ads", "buy-on-google-
1830
- # listings", "display-ads", "local-inventory -ads", "free-listings", "free-local-
1831
- # listings" NOTE: The string values are case sensitive.
1830
+ # answer/7501026] List of allowed string values: "Shopping_ads", "
1831
+ # Buy_on_google_listings", "Display_ads", "Local_inventory _ads", "Free_listings"
1832
+ # , "Free_local_listings" NOTE: The string values are case sensitive.
1832
1833
  # Corresponds to the JSON property `destinations`
1833
1834
  # @return [Array<String>]
1834
1835
  attr_accessor :destinations
1835
1836
 
1837
+ # Language of the title/description and other string attributes. Use language
1838
+ # tags defined by BCP 47. ISO 639-1. This specifies the language of offers in
1839
+ # Merchant Center that will be accepted. If empty no language filtering will be
1840
+ # performed.
1841
+ # Corresponds to the JSON property `languageCode`
1842
+ # @return [String]
1843
+ attr_accessor :language_code
1844
+
1836
1845
  # Required. The linked [Merchant center account id](https://developers.google.
1837
1846
  # com/shopping-content/guides/accountstatuses). The account must be a standalone
1838
1847
  # account or a sub-account of a MCA.
@@ -1840,6 +1849,14 @@ module Google
1840
1849
  # @return [Fixnum]
1841
1850
  attr_accessor :merchant_center_account_id
1842
1851
 
1852
+ # Region code of offers to accept. 2-letter Uppercase ISO 3166-1 alpha-2 code.
1853
+ # List of values can be found here under the `region` tag. [https://www.iana.org/
1854
+ # assignments/language-subtag-registry/language-subtag-registry]. If left blank
1855
+ # no region filtering will be performed. Ex. `US`.
1856
+ # Corresponds to the JSON property `regionCode`
1857
+ # @return [String]
1858
+ attr_accessor :region_code
1859
+
1843
1860
  def initialize(**args)
1844
1861
  update!(**args)
1845
1862
  end
@@ -1848,7 +1865,9 @@ module Google
1848
1865
  def update!(**args)
1849
1866
  @branch_id = args[:branch_id] if args.key?(:branch_id)
1850
1867
  @destinations = args[:destinations] if args.key?(:destinations)
1868
+ @language_code = args[:language_code] if args.key?(:language_code)
1851
1869
  @merchant_center_account_id = args[:merchant_center_account_id] if args.key?(:merchant_center_account_id)
1870
+ @region_code = args[:region_code] if args.key?(:region_code)
1852
1871
  end
1853
1872
  end
1854
1873
 
@@ -2071,8 +2090,8 @@ module Google
2071
2090
  attr_accessor :original_price
2072
2091
 
2073
2092
  # Price of the product. Google Merchant Center property [price](https://support.
2074
- # google.com/merchants/answer/6324371). Schema.org property [Offer.
2075
- # priceSpecification](https://schema.org/priceSpecification).
2093
+ # google.com/merchants/answer/6324371). Schema.org property [Offer.price](https:/
2094
+ # /schema.org/price).
2076
2095
  # Corresponds to the JSON property `price`
2077
2096
  # @return [Float]
2078
2097
  attr_accessor :price
@@ -2160,7 +2179,10 @@ module Google
2160
2179
  # INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must
2161
2180
  # be a UTF-8 encoded string with a length limit of 128 characters. * For
2162
2181
  # indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example,
2163
- # key0LikeThis or KEY_1_LIKE_THIS.
2182
+ # `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400
2183
+ # values are allowed. Empty values are not allowed. Each value must be a UTF-8
2184
+ # encoded string with a length limit of 256 characters. * For number attributes,
2185
+ # at most 400 values are allowed.
2164
2186
  # Corresponds to the JSON property `attributes`
2165
2187
  # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
2166
2188
  attr_accessor :attributes
@@ -2171,9 +2193,9 @@ module Google
2171
2193
  attr_accessor :audience
2172
2194
 
2173
2195
  # The online availability of the Product. Default to Availability.IN_STOCK.
2174
- # Google Merchant Center Property [availability](https://support.google.com/
2175
- # merchants/answer/6324448). Schema.org Property [Offer.availability](https://
2176
- # schema.org/availability).
2196
+ # Corresponding properties: Google Merchant Center property [availability](https:
2197
+ # //support.google.com/merchants/answer/6324448). Schema.org property [Offer.
2198
+ # availability](https://schema.org/availability).
2177
2199
  # Corresponds to the JSON property `availability`
2178
2200
  # @return [String]
2179
2201
  attr_accessor :availability
@@ -2190,9 +2212,9 @@ module Google
2190
2212
 
2191
2213
  # The brands of the product. A maximum of 30 brands are allowed. Each brand must
2192
2214
  # be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise,
2193
- # an INVALID_ARGUMENT error is returned. Google Merchant Center property [brand](
2194
- # https://support.google.com/merchants/answer/6324351). Schema.org property [
2195
- # Product.brand](https://schema.org/brand).
2215
+ # an INVALID_ARGUMENT error is returned. Corresponding properties: Google
2216
+ # Merchant Center property [brand](https://support.google.com/merchants/answer/
2217
+ # 6324351). Schema.org property [Product.brand](https://schema.org/brand).
2196
2218
  # Corresponds to the JSON property `brands`
2197
2219
  # @return [Array<String>]
2198
2220
  attr_accessor :brands
@@ -2209,10 +2231,10 @@ module Google
2209
2231
  # INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product.
2210
2232
  # Empty values are not allowed. Each value must be a UTF-8 encoded string with
2211
2233
  # a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is
2212
- # returned. Google Merchant Center property google_product_category. Schema.org
2213
- # property [Product.category] (https://schema.org/category). [
2214
- # mc_google_product_category]: https://support.google.com/merchants/answer/
2215
- # 6324436
2234
+ # returned. Corresponding properties: Google Merchant Center property
2235
+ # google_product_category. Schema.org property [Product.category] (https://
2236
+ # schema.org/category). [mc_google_product_category]: https://support.google.com/
2237
+ # merchants/answer/6324436
2216
2238
  # Corresponds to the JSON property `categories`
2217
2239
  # @return [Array<String>]
2218
2240
  attr_accessor :categories
@@ -2232,19 +2254,19 @@ module Google
2232
2254
  # The condition of the product. Strongly encouraged to use the standard values: "
2233
2255
  # new", "refurbished", "used". A maximum of 5 values are allowed per Product.
2234
2256
  # Each value must be a UTF-8 encoded string with a length limit of 128
2235
- # characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant
2236
- # Center property [condition](https://support.google.com/merchants/answer/
2237
- # 6324469). Schema.org property [Offer.itemCondition](https://schema.org/
2238
- # itemCondition).
2257
+ # characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding
2258
+ # properties: Google Merchant Center property [condition](https://support.google.
2259
+ # com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https:
2260
+ # //schema.org/itemCondition).
2239
2261
  # Corresponds to the JSON property `conditions`
2240
2262
  # @return [Array<String>]
2241
2263
  attr_accessor :conditions
2242
2264
 
2243
2265
  # Product description. This field must be a UTF-8 encoded string with a length
2244
2266
  # limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
2245
- # Google Merchant Center property [description](https://support.google.com/
2246
- # merchants/answer/6324468). schema.org property [Product.description](https://
2247
- # schema.org/description).
2267
+ # Corresponding properties: Google Merchant Center property [description](https:/
2268
+ # /support.google.com/merchants/answer/6324468). Schema.org property [Product.
2269
+ # description](https://schema.org/description).
2248
2270
  # Corresponds to the JSON property `description`
2249
2271
  # @return [String]
2250
2272
  attr_accessor :description
@@ -2254,8 +2276,8 @@ module Google
2254
2276
  # expire_time. However, the product can still be retrieved by ProductService.
2255
2277
  # GetProduct and ProductService.ListProducts. expire_time must be later than
2256
2278
  # available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown.
2257
- # Google Merchant Center property [expiration_date](https://support.google.com/
2258
- # merchants/answer/6324499).
2279
+ # Corresponding properties: Google Merchant Center property [expiration_date](
2280
+ # https://support.google.com/merchants/answer/6324499).
2259
2281
  # Corresponds to the JSON property `expireTime`
2260
2282
  # @return [String]
2261
2283
  attr_accessor :expire_time
@@ -2270,12 +2292,13 @@ module Google
2270
2292
  # The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8
2271
2293
  # encoded string with a length limit of 128 characters. Otherwise, an
2272
2294
  # INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise,
2273
- # an INVALID_ARGUMENT error is returned. Google Merchant Center property [gtin](
2274
- # https://support.google.com/merchants/answer/6324461). Schema.org property [
2275
- # Product.isbn](https://schema.org/isbn) or [Product.gtin8](https://schema.org/
2276
- # gtin8) or [Product.gtin12](https://schema.org/gtin12) or [Product.gtin13](
2277
- # https://schema.org/gtin13) or [Product.gtin14](https://schema.org/gtin14). If
2278
- # the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.
2295
+ # an INVALID_ARGUMENT error is returned. Corresponding properties: Google
2296
+ # Merchant Center property [gtin](https://support.google.com/merchants/answer/
2297
+ # 6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [
2298
+ # Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/
2299
+ # gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](
2300
+ # https://schema.org/gtin14). If the value is not a valid GTIN, an
2301
+ # INVALID_ARGUMENT error is returned.
2279
2302
  # Corresponds to the JSON property `gtin`
2280
2303
  # @return [String]
2281
2304
  attr_accessor :gtin
@@ -2284,27 +2307,28 @@ module Google
2284
2307
  # example, this field is "id_1", if name is `projects/*/locations/global/
2285
2308
  # catalogs/default_catalog/branches/default_branch/products/id_1`. This field
2286
2309
  # must be a UTF-8 encoded string with a length limit of 128 characters.
2287
- # Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center
2288
- # property [id](https://support.google.com/merchants/answer/6324405). Schema.org
2289
- # Property [Product.sku](https://schema.org/sku).
2310
+ # Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
2311
+ # Google Merchant Center property [id](https://support.google.com/merchants/
2312
+ # answer/6324405). Schema.org property [Product.sku](https://schema.org/sku).
2290
2313
  # Corresponds to the JSON property `id`
2291
2314
  # @return [String]
2292
2315
  attr_accessor :id
2293
2316
 
2294
2317
  # Product images for the product.Highly recommended to put the main image to the
2295
- # first. A maximum of 300 images are allowed. Google Merchant Center property [
2296
- # image_link](https://support.google.com/merchants/answer/6324350). Schema.org
2297
- # property [Product.image](https://schema.org/image).
2318
+ # first. A maximum of 300 images are allowed. Corresponding properties: Google
2319
+ # Merchant Center property [image_link](https://support.google.com/merchants/
2320
+ # answer/6324350). Schema.org property [Product.image](https://schema.org/image).
2298
2321
  # Corresponds to the JSON property `images`
2299
2322
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImage>]
2300
2323
  attr_accessor :images
2301
2324
 
2302
2325
  # Language of the title/description and other string attributes. Use language
2303
- # tags defined by BCP 47. For product prediction, this field is ignored and the
2304
- # model automatically detects the text language. The Product can include text in
2305
- # different languages, but duplicating Products to provide text in multiple
2306
- # languages can result in degraded model performance. For product search this
2307
- # field is in use. It defaults to "en-US" if unset.
2326
+ # tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For
2327
+ # product prediction, this field is ignored and the model automatically detects
2328
+ # the text language. The Product can include text in different languages, but
2329
+ # duplicating Products to provide text in multiple languages can result in
2330
+ # degraded model performance. For product search this field is in use. It
2331
+ # defaults to "en-US" if unset.
2308
2332
  # Corresponds to the JSON property `languageCode`
2309
2333
  # @return [String]
2310
2334
  attr_accessor :language_code
@@ -2312,9 +2336,9 @@ module Google
2312
2336
  # The material of the product. For example, "leather", "wooden". A maximum of 20
2313
2337
  # values are allowed. Each value must be a UTF-8 encoded string with a length
2314
2338
  # limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
2315
- # Google Merchant Center property [material](https://support.google.com/
2316
- # merchants/answer/6324410). Schema.org property [Product.material](https://
2317
- # schema.org/material).
2339
+ # Corresponding properties: Google Merchant Center property [material](https://
2340
+ # support.google.com/merchants/answer/6324410). Schema.org property [Product.
2341
+ # material](https://schema.org/material).
2318
2342
  # Corresponds to the JSON property `materials`
2319
2343
  # @return [Array<String>]
2320
2344
  attr_accessor :materials
@@ -2328,9 +2352,10 @@ module Google
2328
2352
  # The pattern or graphic print of the product. For example, "striped", "polka
2329
2353
  # dot", "paisley". A maximum of 20 values are allowed per Product. Each value
2330
2354
  # must be a UTF-8 encoded string with a length limit of 128 characters.
2331
- # Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center
2332
- # property [pattern](https://support.google.com/merchants/answer/6324483).
2333
- # Schema.org property [Product.pattern](https://schema.org/pattern).
2355
+ # Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
2356
+ # Google Merchant Center property [pattern](https://support.google.com/merchants/
2357
+ # answer/6324483). Schema.org property [Product.pattern](https://schema.org/
2358
+ # pattern).
2334
2359
  # Corresponds to the JSON property `patterns`
2335
2360
  # @return [Array<String>]
2336
2361
  attr_accessor :patterns
@@ -2345,10 +2370,9 @@ module Google
2345
2370
  # can only be empty or set to the same value as id. For VARIANT Products, this
2346
2371
  # field cannot be empty. A maximum of 2,000 products are allowed to share the
2347
2372
  # same Type.PRIMARY Product. Otherwise, an INVALID_ARGUMENT error is returned.
2348
- # Google Merchant Center Property [item_group_id](https://support.google.com/
2349
- # merchants/answer/6324507). Schema.org Property [Product.inProductGroupWithID](
2350
- # https://schema.org/inProductGroupWithID). This field must be enabled before it
2351
- # can be used. [Learn more](/recommendations-ai/docs/catalog#item-group-id).
2373
+ # Corresponding properties: Google Merchant Center property [item_group_id](
2374
+ # https://support.google.com/merchants/answer/6324507). Schema.org property [
2375
+ # Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
2352
2376
  # Corresponds to the JSON property `primaryProductId`
2353
2377
  # @return [String]
2354
2378
  attr_accessor :primary_product_id
@@ -2397,10 +2421,11 @@ module Google
2397
2421
  # system and size type are empty, while size value is "32 inches". A maximum of
2398
2422
  # 20 values are allowed per Product. Each value must be a UTF-8 encoded string
2399
2423
  # with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is
2400
- # returned. Google Merchant Center property [size](https://support.google.com/
2401
- # merchants/answer/6324492), [size_type](https://support.google.com/merchants/
2402
- # answer/6324497) and [size_system](https://support.google.com/merchants/answer/
2403
- # 6324502). Schema.org property [Product.size](https://schema.org/size).
2424
+ # returned. Corresponding properties: Google Merchant Center property [size](
2425
+ # https://support.google.com/merchants/answer/6324492), [size_type](https://
2426
+ # support.google.com/merchants/answer/6324497), and [size_system](https://
2427
+ # support.google.com/merchants/answer/6324502). Schema.org property [Product.
2428
+ # size](https://schema.org/size).
2404
2429
  # Corresponds to the JSON property `sizes`
2405
2430
  # @return [Array<String>]
2406
2431
  attr_accessor :sizes
@@ -2409,17 +2434,18 @@ module Google
2409
2434
  # Product. This value must be a UTF-8 encoded string with a length limit of 1,
2410
2435
  # 000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can
2411
2436
  # be used for filtering recommendation results by passing the tag as part of the
2412
- # PredictRequest.filter. Google Merchant Center property [custom_label_0–4](
2413
- # https://support.google.com/merchants/answer/6324473).
2437
+ # PredictRequest.filter. Corresponding properties: Google Merchant Center
2438
+ # property [custom_label_0–4](https://support.google.com/merchants/answer/
2439
+ # 6324473).
2414
2440
  # Corresponds to the JSON property `tags`
2415
2441
  # @return [Array<String>]
2416
2442
  attr_accessor :tags
2417
2443
 
2418
2444
  # Required. Product title. This field must be a UTF-8 encoded string with a
2419
2445
  # length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is
2420
- # returned. Google Merchant Center property [title](https://support.google.com/
2421
- # merchants/answer/6324415). Schema.org property [Product.name](https://schema.
2422
- # org/name).
2446
+ # returned. Corresponding properties: Google Merchant Center property [title](
2447
+ # https://support.google.com/merchants/answer/6324415). Schema.org property [
2448
+ # Product.name](https://schema.org/name).
2423
2449
  # Corresponds to the JSON property `title`
2424
2450
  # @return [String]
2425
2451
  attr_accessor :title
@@ -2445,9 +2471,9 @@ module Google
2445
2471
  # recommended to provide a valid uri for the product, otherwise the service
2446
2472
  # performance could be significantly degraded. This field must be a UTF-8
2447
2473
  # encoded string with a length limit of 5,000 characters. Otherwise, an
2448
- # INVALID_ARGUMENT error is returned. Google Merchant Center property [link](
2449
- # https://support.google.com/merchants/answer/6324416). Schema.org property [
2450
- # Offer.url](https://schema.org/url).
2474
+ # INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant
2475
+ # Center property [link](https://support.google.com/merchants/answer/6324416).
2476
+ # Schema.org property [Offer.url](https://schema.org/url).
2451
2477
  # Corresponds to the JSON property `uri`
2452
2478
  # @return [String]
2453
2479
  attr_accessor :uri
@@ -2589,15 +2615,15 @@ module Google
2589
2615
  include Google::Apis::Core::Hashable
2590
2616
 
2591
2617
  # The type of Products allowed to be ingested into the catalog. Acceptable
2592
- # values are: * `primary` (default): You can only ingest Product.Type.PRIMARY
2593
- # Products. This means Product.primary_product_id can only be empty or set to
2594
- # the same value as Product.id. * `variant`: You can only ingest Product.Type.
2595
- # VARIANT Products. This means Product.primary_product_id cannot be empty. If
2596
- # this field is set to an invalid value other than these, an INVALID_ARGUMENT
2597
- # error is returned. If this field is `variant` and
2598
- # merchant_center_product_id_field is `itemGroupId`, an INVALID_ARGUMENT error
2599
- # is returned. See [Using product levels](https://cloud.google.com/retail/
2600
- # recommendations-ai/docs/catalog#product-levels) for more details.
2618
+ # values are: * `primary` (default): You can ingest Products of all types. When
2619
+ # ingesting a Product, its type will default to Product.Type.PRIMARY if unset. *
2620
+ # `variant`: You can only ingest Product.Type.VARIANT Products. This means
2621
+ # Product.primary_product_id cannot be empty. If this field is set to an invalid
2622
+ # value other than these, an INVALID_ARGUMENT error is returned. If this field
2623
+ # is `variant` and merchant_center_product_id_field is `itemGroupId`, an
2624
+ # INVALID_ARGUMENT error is returned. See [Using product levels](https://cloud.
2625
+ # google.com/retail/recommendations-ai/docs/catalog#product-levels) for more
2626
+ # details.
2601
2627
  # Corresponds to the JSON property `ingestionProductType`
2602
2628
  # @return [String]
2603
2629
  attr_accessor :ingestion_product_type
@@ -2973,7 +2999,7 @@ module Google
2973
2999
  attr_accessor :allow_missing
2974
3000
  alias_method :allow_missing?, :allow_missing
2975
3001
 
2976
- # Required. A list of place IDs to have their inventory deleted. At most 1000
3002
+ # Required. A list of place IDs to have their inventory deleted. At most 3000
2977
3003
  # place IDs are allowed per request.
2978
3004
  # Corresponds to the JSON property `placeIds`
2979
3005
  # @return [Array<String>]
@@ -3132,24 +3158,26 @@ module Google
3132
3158
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo]
3133
3159
  attr_accessor :user_info
3134
3160
 
3135
- # The keys to fetch and rollup the matching variant Products attributes. The
3136
- # attributes from all the matching variant Products are merged and de-duplicated.
3137
- # Notice that rollup variant Products attributes will lead to extra query
3138
- # latency. Maximum number of keys is 10. For FulfillmentInfo, a fulfillment type
3139
- # and a fulfillment ID must be provided in the format of "fulfillmentType.
3140
- # fulfillmentId". E.g., in "pickupInStore.store123", "pickupInStore" is
3141
- # fulfillment type and "store123" is the store ID. Supported keys are: *
3142
- # colorFamilies * price * originalPrice * discount * inventory(place_id,price) *
3143
- # attributes.key, where key is any key in the Product.attributes map. *
3144
- # pickupInStore.id, where id is any FulfillmentInfo.place_ids for
3145
- # FulfillmentInfo.type "pickup-in-store". * shipToStore.id, where id is any
3146
- # FulfillmentInfo.place_ids for FulfillmentInfo.type "ship-to-store". *
3147
- # sameDayDelivery.id, where id is any FulfillmentInfo.place_ids for
3148
- # FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id, where id is
3149
- # any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-delivery". *
3150
- # customFulfillment1.id, where id is any FulfillmentInfo.place_ids for
3151
- # FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is any
3152
- # FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-2". *
3161
+ # The keys to fetch and rollup the matching variant Products attributes,
3162
+ # FulfillmentInfo or LocalInventorys attributes. The attributes from all the
3163
+ # matching variant Products or LocalInventorys are merged and de-duplicated.
3164
+ # Notice that rollup attributes will lead to extra query latency. Maximum number
3165
+ # of keys is 30. For FulfillmentInfo, a fulfillment type and a fulfillment ID
3166
+ # must be provided in the format of "fulfillmentType.fulfillmentId". E.g., in "
3167
+ # pickupInStore.store123", "pickupInStore" is fulfillment type and "store123" is
3168
+ # the store ID. Supported keys are: * colorFamilies * price * originalPrice *
3169
+ # discount * variantId * inventory(place_id,price) * inventory(place_id,
3170
+ # original_price) * inventory(place_id,attributes.key), where key is any key in
3171
+ # the Product.inventories.attributes map. * attributes.key, where key is any key
3172
+ # in the Product.attributes map. * pickupInStore.id, where id is any
3173
+ # FulfillmentInfo.place_ids for FulfillmentInfo.type "pickup-in-store". *
3174
+ # shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.
3175
+ # type "ship-to-store". * sameDayDelivery.id, where id is any FulfillmentInfo.
3176
+ # place_ids for FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id,
3177
+ # where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-
3178
+ # delivery". * customFulfillment1.id, where id is any FulfillmentInfo.place_ids
3179
+ # for FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is
3180
+ # any FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-2". *
3153
3181
  # customFulfillment3.id, where id is any FulfillmentInfo.place_ids for
3154
3182
  # FulfillmentInfo.type "custom-type-3". * customFulfillment4.id, where id is any
3155
3183
  # FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-4". *
@@ -3163,9 +3191,9 @@ module Google
3163
3191
  # Required. A unique identifier for tracking visitors. For example, this could
3164
3192
  # be implemented with an HTTP cookie, which should be able to uniquely identify
3165
3193
  # a visitor on a single device. This unique identifier should not change if the
3166
- # visitor logs in or out of the website. The field must be a UTF-8 encoded
3167
- # string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
3168
- # error is returned.
3194
+ # visitor logs in or out of the website. This should be the same identifier as
3195
+ # UserEvent.visitor_id. The field must be a UTF-8 encoded string with a length
3196
+ # limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
3169
3197
  # Corresponds to the JSON property `visitorId`
3170
3198
  # @return [String]
3171
3199
  attr_accessor :visitor_id
@@ -3368,9 +3396,10 @@ module Google
3368
3396
  # colors" * "sizes" * "materials" * "patterns" * "conditions" * "attributes.key"
3369
3397
  # * "pickupInStore" * "shipToStore" * "sameDayDelivery" * "nextDayDelivery" * "
3370
3398
  # customFulfillment1" * "customFulfillment2" * "customFulfillment3" * "
3371
- # customFulfillment4" * "customFulfillment5" * numerical_field = * "price" * "
3372
- # discount" * "rating" * "ratingCount" * "attributes.key" * "inventory(place_id,
3373
- # price)"
3399
+ # customFulfillment4" * "customFulfillment5" * "inventory(place_id,attributes.
3400
+ # key)" * numerical_field = * "price" * "discount" * "rating" * "ratingCount" * "
3401
+ # attributes.key" * "inventory(place_id,price)" * "inventory(place_id,
3402
+ # original_price)" * "inventory(place_id,attributes.key)"
3374
3403
  # Corresponds to the JSON property `key`
3375
3404
  # @return [String]
3376
3405
  attr_accessor :key
@@ -3469,6 +3498,12 @@ module Google
3469
3498
  class GoogleCloudRetailV2alphaSearchResponse
3470
3499
  include Google::Apis::Core::Hashable
3471
3500
 
3501
+ # The fully qualified resource name of applied [controls](https://cloud.google.
3502
+ # com/retail/docs/serving-control-rules).
3503
+ # Corresponds to the JSON property `appliedControls`
3504
+ # @return [Array<String>]
3505
+ attr_accessor :applied_controls
3506
+
3472
3507
  # A unique search token. This should be included in the UserEvent logs resulting
3473
3508
  # from this search, which enables accurate attribution of search model
3474
3509
  # performance.
@@ -3523,6 +3558,7 @@ module Google
3523
3558
 
3524
3559
  # Update properties of this object
3525
3560
  def update!(**args)
3561
+ @applied_controls = args[:applied_controls] if args.key?(:applied_controls)
3526
3562
  @attribution_token = args[:attribution_token] if args.key?(:attribution_token)
3527
3563
  @corrected_query = args[:corrected_query] if args.key?(:corrected_query)
3528
3564
  @facets = args[:facets] if args.key?(:facets)
@@ -3748,10 +3784,9 @@ module Google
3748
3784
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct]
3749
3785
  attr_accessor :inventory
3750
3786
 
3751
- # Indicates which inventory fields in the provided Product to update. If not set
3752
- # or set with empty paths, all inventory fields will be updated. If an
3753
- # unsupported or unknown field is provided, an INVALID_ARGUMENT error is
3754
- # returned and the entire update will be ignored.
3787
+ # Indicates which inventory fields in the provided Product to update. At least
3788
+ # one field must be provided. If an unsupported or unknown field is provided, an
3789
+ # INVALID_ARGUMENT error is returned and the entire update will be ignored.
3755
3790
  # Corresponds to the JSON property `setMask`
3756
3791
  # @return [String]
3757
3792
  attr_accessor :set_mask
@@ -3790,17 +3825,90 @@ module Google
3790
3825
  end
3791
3826
  end
3792
3827
 
3828
+ # Metadata related to the progress of the SetLocalInventories operation.
3829
+ # Currently empty because there is no meaningful metadata populated from the
3830
+ # SetLocalInventories method.
3831
+ class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
3832
+ include Google::Apis::Core::Hashable
3833
+
3834
+ def initialize(**args)
3835
+ update!(**args)
3836
+ end
3837
+
3838
+ # Update properties of this object
3839
+ def update!(**args)
3840
+ end
3841
+ end
3842
+
3843
+ # Request message for SetLocalInventories method.
3844
+ class GoogleCloudRetailV2alphaSetLocalInventoriesRequest
3845
+ include Google::Apis::Core::Hashable
3846
+
3847
+ # If set to true, and the Product is not found, the local inventory will still
3848
+ # be processed and retained for at most 1 day and processed once the Product is
3849
+ # created. If set to false, a NOT_FOUND error is returned if the Product is not
3850
+ # found.
3851
+ # Corresponds to the JSON property `allowMissing`
3852
+ # @return [Boolean]
3853
+ attr_accessor :allow_missing
3854
+ alias_method :allow_missing?, :allow_missing
3855
+
3856
+ # A list of inventory information at difference places. Each place is identified
3857
+ # by its place ID. For example, if `place1` and `place2` are stored, and this
3858
+ # list is `[place1, place3]` with a fresher set timestamp, then the stored
3859
+ # places will become `place1` and `place3`. An empty list removes all existing
3860
+ # places with staler fields. At most 3000 inventories are allowed per request.
3861
+ # Corresponds to the JSON property `localInventories`
3862
+ # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory>]
3863
+ attr_accessor :local_inventories
3864
+
3865
+ # The time when the inventory updates are issued. Used to prevent out-of-order
3866
+ # updates on local inventory fields. If not provided, the internal system time
3867
+ # will be used.
3868
+ # Corresponds to the JSON property `setTime`
3869
+ # @return [String]
3870
+ attr_accessor :set_time
3871
+
3872
+ def initialize(**args)
3873
+ update!(**args)
3874
+ end
3875
+
3876
+ # Update properties of this object
3877
+ def update!(**args)
3878
+ @allow_missing = args[:allow_missing] if args.key?(:allow_missing)
3879
+ @local_inventories = args[:local_inventories] if args.key?(:local_inventories)
3880
+ @set_time = args[:set_time] if args.key?(:set_time)
3881
+ end
3882
+ end
3883
+
3884
+ # Response of the SetLocalInventories API. Currently empty because there is no
3885
+ # meaningful response populated from the SetLocalInventories method.
3886
+ class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
3887
+ include Google::Apis::Core::Hashable
3888
+
3889
+ def initialize(**args)
3890
+ update!(**args)
3891
+ end
3892
+
3893
+ # Update properties of this object
3894
+ def update!(**args)
3895
+ end
3896
+ end
3897
+
3793
3898
  # UserEvent captures all metadata information Retail API needs to know about how
3794
3899
  # end users interact with customers' website.
3795
3900
  class GoogleCloudRetailV2alphaUserEvent
3796
3901
  include Google::Apis::Core::Hashable
3797
3902
 
3798
- # Extra user event features to include in the recommendation model. The key must
3799
- # be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
3800
- # an INVALID_ARGUMENT error is returned. For product recommendation, an example
3801
- # of extra user information is traffic_channel, i.e. how user arrives at the
3802
- # site. Users can arrive at the site by coming to the site directly, or coming
3803
- # through Google search, and etc.
3903
+ # Extra user event features to include in the recommendation model. This field
3904
+ # needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is
3905
+ # returned: * The key must be a UTF-8 encoded string with a length limit of 5,
3906
+ # 000 characters. * For text attributes, at most 400 values are allowed. Empty
3907
+ # values are not allowed. Each value must be a UTF-8 encoded string with a
3908
+ # length limit of 256 characters. * For number attributes, at most 400 values
3909
+ # are allowed. For product recommendation, an example of extra user information
3910
+ # is traffic_channel, i.e. how user arrives at the site. Users can arrive at the
3911
+ # site by coming to the site directly, or coming through Google search, and etc.
3804
3912
  # Corresponds to the JSON property `attributes`
3805
3913
  # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
3806
3914
  attr_accessor :attributes
@@ -3842,12 +3950,11 @@ module Google
3842
3950
 
3843
3951
  # Required. User event type. Allowed values are: * `add-to-cart`: Products being
3844
3952
  # added to cart. * `category-page-view`: Special pages such as sale or promotion
3845
- # pages viewed. * `completion`: Completion query result showed/clicked. * `
3846
- # detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage
3847
- # viewed. * `promotion-offered`: Promotion is offered to a user. * `promotion-
3848
- # not-offered`: Promotion is not offered to a user. * `purchase-complete`: User
3849
- # finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`:
3850
- # User viewing a shopping cart.
3953
+ # pages viewed. * `detail-page-view`: Products detail page viewed. * `home-page-
3954
+ # view`: Homepage viewed. * `promotion-offered`: Promotion is offered to a user.
3955
+ # * `promotion-not-offered`: Promotion is not offered to a user. * `purchase-
3956
+ # complete`: User finishing a purchase. * `search`: Product search. * `shopping-
3957
+ # cart-page-view`: User viewing a shopping cart.
3851
3958
  # Corresponds to the JSON property `eventType`
3852
3959
  # @return [String]
3853
3960
  attr_accessor :event_type
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2alpha
18
18
  # Version of the google-apis-retail_v2alpha gem
19
- GEM_VERSION = "0.20.0"
19
+ GEM_VERSION = "0.24.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211028"
25
+ REVISION = "20211210"
26
26
  end
27
27
  end
28
28
  end
@@ -634,6 +634,24 @@ module Google
634
634
  include Google::Apis::Core::JsonObjectSupport
635
635
  end
636
636
 
637
+ class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
638
+ class Representation < Google::Apis::Core::JsonRepresentation; end
639
+
640
+ include Google::Apis::Core::JsonObjectSupport
641
+ end
642
+
643
+ class GoogleCloudRetailV2alphaSetLocalInventoriesRequest
644
+ class Representation < Google::Apis::Core::JsonRepresentation; end
645
+
646
+ include Google::Apis::Core::JsonObjectSupport
647
+ end
648
+
649
+ class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
650
+ class Representation < Google::Apis::Core::JsonRepresentation; end
651
+
652
+ include Google::Apis::Core::JsonObjectSupport
653
+ end
654
+
637
655
  class GoogleCloudRetailV2alphaUserEvent
638
656
  class Representation < Google::Apis::Core::JsonRepresentation; end
639
657
 
@@ -1338,7 +1356,9 @@ module Google
1338
1356
  class Representation < Google::Apis::Core::JsonRepresentation
1339
1357
  property :branch_id, as: 'branchId'
1340
1358
  collection :destinations, as: 'destinations'
1359
+ property :language_code, as: 'languageCode'
1341
1360
  property :merchant_center_account_id, :numeric_string => true, as: 'merchantCenterAccountId'
1361
+ property :region_code, as: 'regionCode'
1342
1362
  end
1343
1363
  end
1344
1364
 
@@ -1691,6 +1711,7 @@ module Google
1691
1711
  class GoogleCloudRetailV2alphaSearchResponse
1692
1712
  # @private
1693
1713
  class Representation < Google::Apis::Core::JsonRepresentation
1714
+ collection :applied_controls, as: 'appliedControls'
1694
1715
  property :attribution_token, as: 'attributionToken'
1695
1716
  property :corrected_query, as: 'correctedQuery'
1696
1717
  collection :facets, as: 'facets', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet::Representation
@@ -1776,6 +1797,28 @@ module Google
1776
1797
  end
1777
1798
  end
1778
1799
 
1800
+ class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
1801
+ # @private
1802
+ class Representation < Google::Apis::Core::JsonRepresentation
1803
+ end
1804
+ end
1805
+
1806
+ class GoogleCloudRetailV2alphaSetLocalInventoriesRequest
1807
+ # @private
1808
+ class Representation < Google::Apis::Core::JsonRepresentation
1809
+ property :allow_missing, as: 'allowMissing'
1810
+ collection :local_inventories, as: 'localInventories', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaLocalInventory::Representation
1811
+
1812
+ property :set_time, as: 'setTime'
1813
+ end
1814
+ end
1815
+
1816
+ class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
1817
+ # @private
1818
+ class Representation < Google::Apis::Core::JsonRepresentation
1819
+ end
1820
+ end
1821
+
1779
1822
  class GoogleCloudRetailV2alphaUserEvent
1780
1823
  # @private
1781
1824
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -373,7 +373,7 @@ module Google
373
373
  # inventory information. If the request is valid, the update will be enqueued
374
374
  # and processed downstream. As a consequence, when a response is returned,
375
375
  # updates are not immediately manifested in the Product queried by GetProduct or
376
- # ListProducts. Store inventory information can only be modified using this
376
+ # ListProducts. Local inventory information can only be modified using this
377
377
  # method. CreateProduct and UpdateProduct has no effect on local inventories.
378
378
  # This feature is only available for users who have Retail Search enabled.
379
379
  # Please submit a form [here](https://cloud.google.com/contact) to contact Cloud
@@ -729,7 +729,7 @@ module Google
729
729
  # removal timestamp. This process is asynchronous. If the request is valid, the
730
730
  # removal will be enqueued and processed downstream. As a consequence, when a
731
731
  # response is returned, removals are not immediately manifested in the Product
732
- # queried by GetProduct or ListProducts. Store inventory information can only be
732
+ # queried by GetProduct or ListProducts. Local inventory information can only be
733
733
  # removed using this method. CreateProduct and UpdateProduct has no effect on
734
734
  # local inventories. This feature is only available for users who have Retail
735
735
  # Search enabled. Please submit a form [here](https://cloud.google.com/contact)
@@ -821,6 +821,59 @@ module Google
821
821
  execute_or_queue_command(command, &block)
822
822
  end
823
823
 
824
+ # Set local inventory information for a Product with the provided list of places
825
+ # at a set timestamp. If a place in the provided list does not exist, the place
826
+ # will be created. If a place in the provided list already exists, it will be
827
+ # updated while respecting the last update timestamps of each inventory field.
828
+ # If an existing place is not in the provided list, it will be removed. This
829
+ # process is asynchronous. If the request is valid, the set operation will be
830
+ # enqueued and processed downstream. As a consequence, when a response is
831
+ # returned, set operations are not immediately manifested in the Product queried
832
+ # by GetProduct or ListProducts. When applying the set operation, this process
833
+ # takes a snapshot of currently existing places and their corresponding
834
+ # timestamps to determine the places to update. Avoid concurrent
835
+ # AddLocalInventories and RemoveLocalInventories calls, since they can introduce
836
+ # asynchronous updates that could be missed by the set operation. Local
837
+ # inventory information can only be updated with this method and other local
838
+ # inventory-specific methods. CreateProduct and UpdateProduct has no effect on
839
+ # local inventories. This feature is only available for users who have Retail
840
+ # Search enabled. Please submit a form [here](https://cloud.google.com/contact)
841
+ # to contact Cloud sales if you are interested in using Retail Search.
842
+ # @param [String] product
843
+ # Required. Full resource name of Product, such as `projects/*/locations/global/
844
+ # catalogs/default_catalog/branches/default_branch/products/some_product_id`. If
845
+ # the caller does not have permission to access the Product, regardless of
846
+ # whether or not it exists, a PERMISSION_DENIED error is returned.
847
+ # @param [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSetLocalInventoriesRequest] google_cloud_retail_v2alpha_set_local_inventories_request_object
848
+ # @param [String] fields
849
+ # Selector specifying which fields to include in a partial response.
850
+ # @param [String] quota_user
851
+ # Available to use for quota purposes for server-side applications. Can be any
852
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
853
+ # @param [Google::Apis::RequestOptions] options
854
+ # Request-specific options
855
+ #
856
+ # @yield [result, err] Result & error if block supplied
857
+ # @yieldparam result [Google::Apis::RetailV2alpha::GoogleLongrunningOperation] parsed result object
858
+ # @yieldparam err [StandardError] error object if request failed
859
+ #
860
+ # @return [Google::Apis::RetailV2alpha::GoogleLongrunningOperation]
861
+ #
862
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
863
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
864
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
865
+ def set_project_location_catalog_branch_product_local_inventories(product, google_cloud_retail_v2alpha_set_local_inventories_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
866
+ command = make_simple_command(:post, 'v2alpha/{+product}:setLocalInventories', options)
867
+ command.request_representation = Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSetLocalInventoriesRequest::Representation
868
+ command.request_object = google_cloud_retail_v2alpha_set_local_inventories_request_object
869
+ command.response_representation = Google::Apis::RetailV2alpha::GoogleLongrunningOperation::Representation
870
+ command.response_class = Google::Apis::RetailV2alpha::GoogleLongrunningOperation
871
+ command.params['product'] = product unless product.nil?
872
+ command.query['fields'] = fields unless fields.nil?
873
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
874
+ execute_or_queue_command(command, &block)
875
+ end
876
+
824
877
  # Bulk import of processed completion dataset. Request processing may be
825
878
  # synchronous. Partial updating is not supported. This feature is only available
826
879
  # for users who have Retail Search enabled. Please submit a form [here](https://
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-08 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.24.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Retail API V2alpha