google-apis-retail_v2alpha 0.21.0 → 0.25.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: bafb3e22626a98ee8ec463c20ac057ba504147866243d9579fa0b16d7b5f2653
4
- data.tar.gz: 459112597f37a9e3dc2bf26ae5eb8340fc97f294ae9ccd6875828cec19e78566
3
+ metadata.gz: 6b82c9e252804694a1c32980bfd4aec38e363e38b1e0af362762979018fbef16
4
+ data.tar.gz: fb2dd70fdf3b7a582801c402f5c75f6065d0442360e58c93b7cf34e2b81f156a
5
5
  SHA512:
6
- metadata.gz: 9e0f49b410dfc12f9b3529b4cfb5c02c095817f9374e3559541f4c96aa1fd5e4b405d57078c6a9f2c65fd3b43f336ab84d7505abf2263d66122322292a4339cd
7
- data.tar.gz: b23c08c2cc4797efbe80488850d3b795d92038011cbc38393369de3600e8d34973727b590edf8acb3cc41f1501b213492c67f4b38bef9a0ab98076c548fa742d
6
+ metadata.gz: 922a1f9b04beb5b2458c46f590af68c101700a32f331b693f3b892d2371ef91886a73e8e710e7c0ce9d65433ef847de65a1016fc8d365348c6600fcd33aa7f8f
7
+ data.tar.gz: 2a2e227d91987754a404a9b5fbccce5f0f1be960f423b385b9f63b77a072b31f0cc89a5ff54efb553a467198afe06a53426a746b16faf32d0fe5242407766956
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.25.0 (2022-01-13)
4
+
5
+ * Regenerated from discovery document revision 20220106
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.24.0 (2021-12-16)
9
+
10
+ * Regenerated from discovery document revision 20211210
11
+
12
+ ### v0.23.0 (2021-12-09)
13
+
14
+ * Regenerated from discovery document revision 20211203
15
+
16
+ ### v0.22.0 (2021-11-17)
17
+
18
+ * Regenerated from discovery document revision 20211116
19
+
3
20
  ### v0.21.0 (2021-11-10)
4
21
 
5
22
  * Regenerated from discovery document revision 20211104
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.
@@ -751,7 +751,7 @@ module Google
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,13 +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. * The attribute does not
1786
- # support search. The `searchable` field should be unset or set to false.
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.
1787
1787
  # Corresponds to the JSON property `attributes`
1788
1788
  # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
1789
1789
  attr_accessor :attributes
@@ -1827,13 +1827,21 @@ module Google
1827
1827
 
1828
1828
  # String representing the destination to import for, all if left empty. List of
1829
1829
  # possible values can be found here. [https://support.google.com/merchants/
1830
- # answer/7501026] List of allowed string values: "shopping-ads", "buy-on-google-
1831
- # listings", "display-ads", "local-inventory -ads", "free-listings", "free-local-
1832
- # 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.
1833
1833
  # Corresponds to the JSON property `destinations`
1834
1834
  # @return [Array<String>]
1835
1835
  attr_accessor :destinations
1836
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
+
1837
1845
  # Required. The linked [Merchant center account id](https://developers.google.
1838
1846
  # com/shopping-content/guides/accountstatuses). The account must be a standalone
1839
1847
  # account or a sub-account of a MCA.
@@ -1841,6 +1849,14 @@ module Google
1841
1849
  # @return [Fixnum]
1842
1850
  attr_accessor :merchant_center_account_id
1843
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
+
1844
1860
  def initialize(**args)
1845
1861
  update!(**args)
1846
1862
  end
@@ -1849,7 +1865,9 @@ module Google
1849
1865
  def update!(**args)
1850
1866
  @branch_id = args[:branch_id] if args.key?(:branch_id)
1851
1867
  @destinations = args[:destinations] if args.key?(:destinations)
1868
+ @language_code = args[:language_code] if args.key?(:language_code)
1852
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)
1853
1871
  end
1854
1872
  end
1855
1873
 
@@ -2072,8 +2090,8 @@ module Google
2072
2090
  attr_accessor :original_price
2073
2091
 
2074
2092
  # Price of the product. Google Merchant Center property [price](https://support.
2075
- # google.com/merchants/answer/6324371). Schema.org property [Offer.
2076
- # priceSpecification](https://schema.org/priceSpecification).
2093
+ # google.com/merchants/answer/6324371). Schema.org property [Offer.price](https:/
2094
+ # /schema.org/price).
2077
2095
  # Corresponds to the JSON property `price`
2078
2096
  # @return [Float]
2079
2097
  attr_accessor :price
@@ -2161,7 +2179,10 @@ module Google
2161
2179
  # INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must
2162
2180
  # be a UTF-8 encoded string with a length limit of 128 characters. * For
2163
2181
  # indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example,
2164
- # 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.
2165
2186
  # Corresponds to the JSON property `attributes`
2166
2187
  # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
2167
2188
  attr_accessor :attributes
@@ -2172,9 +2193,9 @@ module Google
2172
2193
  attr_accessor :audience
2173
2194
 
2174
2195
  # The online availability of the Product. Default to Availability.IN_STOCK.
2175
- # Google Merchant Center Property [availability](https://support.google.com/
2176
- # merchants/answer/6324448). Schema.org Property [Offer.availability](https://
2177
- # 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).
2178
2199
  # Corresponds to the JSON property `availability`
2179
2200
  # @return [String]
2180
2201
  attr_accessor :availability
@@ -2191,9 +2212,9 @@ module Google
2191
2212
 
2192
2213
  # The brands of the product. A maximum of 30 brands are allowed. Each brand must
2193
2214
  # be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise,
2194
- # an INVALID_ARGUMENT error is returned. Google Merchant Center property [brand](
2195
- # https://support.google.com/merchants/answer/6324351). Schema.org property [
2196
- # 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).
2197
2218
  # Corresponds to the JSON property `brands`
2198
2219
  # @return [Array<String>]
2199
2220
  attr_accessor :brands
@@ -2210,10 +2231,10 @@ module Google
2210
2231
  # INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product.
2211
2232
  # Empty values are not allowed. Each value must be a UTF-8 encoded string with
2212
2233
  # a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is
2213
- # returned. Google Merchant Center property google_product_category. Schema.org
2214
- # property [Product.category] (https://schema.org/category). [
2215
- # mc_google_product_category]: https://support.google.com/merchants/answer/
2216
- # 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
2217
2238
  # Corresponds to the JSON property `categories`
2218
2239
  # @return [Array<String>]
2219
2240
  attr_accessor :categories
@@ -2231,21 +2252,21 @@ module Google
2231
2252
  attr_accessor :color_info
2232
2253
 
2233
2254
  # The condition of the product. Strongly encouraged to use the standard values: "
2234
- # new", "refurbished", "used". A maximum of 5 values are allowed per Product.
2235
- # Each value must be a UTF-8 encoded string with a length limit of 128
2236
- # characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant
2237
- # Center property [condition](https://support.google.com/merchants/answer/
2238
- # 6324469). Schema.org property [Offer.itemCondition](https://schema.org/
2239
- # itemCondition).
2255
+ # new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each
2256
+ # value must be a UTF-8 encoded string with a length limit of 128 characters.
2257
+ # Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
2258
+ # Google Merchant Center property [condition](https://support.google.com/
2259
+ # merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://
2260
+ # schema.org/itemCondition).
2240
2261
  # Corresponds to the JSON property `conditions`
2241
2262
  # @return [Array<String>]
2242
2263
  attr_accessor :conditions
2243
2264
 
2244
2265
  # Product description. This field must be a UTF-8 encoded string with a length
2245
2266
  # limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
2246
- # Google Merchant Center property [description](https://support.google.com/
2247
- # merchants/answer/6324468). schema.org property [Product.description](https://
2248
- # 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).
2249
2270
  # Corresponds to the JSON property `description`
2250
2271
  # @return [String]
2251
2272
  attr_accessor :description
@@ -2255,8 +2276,8 @@ module Google
2255
2276
  # expire_time. However, the product can still be retrieved by ProductService.
2256
2277
  # GetProduct and ProductService.ListProducts. expire_time must be later than
2257
2278
  # available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown.
2258
- # Google Merchant Center property [expiration_date](https://support.google.com/
2259
- # merchants/answer/6324499).
2279
+ # Corresponding properties: Google Merchant Center property [expiration_date](
2280
+ # https://support.google.com/merchants/answer/6324499).
2260
2281
  # Corresponds to the JSON property `expireTime`
2261
2282
  # @return [String]
2262
2283
  attr_accessor :expire_time
@@ -2271,12 +2292,13 @@ module Google
2271
2292
  # The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8
2272
2293
  # encoded string with a length limit of 128 characters. Otherwise, an
2273
2294
  # INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise,
2274
- # an INVALID_ARGUMENT error is returned. Google Merchant Center property [gtin](
2275
- # https://support.google.com/merchants/answer/6324461). Schema.org property [
2276
- # Product.isbn](https://schema.org/isbn) or [Product.gtin8](https://schema.org/
2277
- # gtin8) or [Product.gtin12](https://schema.org/gtin12) or [Product.gtin13](
2278
- # https://schema.org/gtin13) or [Product.gtin14](https://schema.org/gtin14). If
2279
- # 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.
2280
2302
  # Corresponds to the JSON property `gtin`
2281
2303
  # @return [String]
2282
2304
  attr_accessor :gtin
@@ -2285,27 +2307,28 @@ module Google
2285
2307
  # example, this field is "id_1", if name is `projects/*/locations/global/
2286
2308
  # catalogs/default_catalog/branches/default_branch/products/id_1`. This field
2287
2309
  # must be a UTF-8 encoded string with a length limit of 128 characters.
2288
- # Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center
2289
- # property [id](https://support.google.com/merchants/answer/6324405). Schema.org
2290
- # 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).
2291
2313
  # Corresponds to the JSON property `id`
2292
2314
  # @return [String]
2293
2315
  attr_accessor :id
2294
2316
 
2295
2317
  # Product images for the product.Highly recommended to put the main image to the
2296
- # first. A maximum of 300 images are allowed. Google Merchant Center property [
2297
- # image_link](https://support.google.com/merchants/answer/6324350). Schema.org
2298
- # 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).
2299
2321
  # Corresponds to the JSON property `images`
2300
2322
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaImage>]
2301
2323
  attr_accessor :images
2302
2324
 
2303
2325
  # Language of the title/description and other string attributes. Use language
2304
- # tags defined by BCP 47. For product prediction, this field is ignored and the
2305
- # model automatically detects the text language. The Product can include text in
2306
- # different languages, but duplicating Products to provide text in multiple
2307
- # languages can result in degraded model performance. For product search this
2308
- # 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.
2309
2332
  # Corresponds to the JSON property `languageCode`
2310
2333
  # @return [String]
2311
2334
  attr_accessor :language_code
@@ -2313,9 +2336,9 @@ module Google
2313
2336
  # The material of the product. For example, "leather", "wooden". A maximum of 20
2314
2337
  # values are allowed. Each value must be a UTF-8 encoded string with a length
2315
2338
  # limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
2316
- # Google Merchant Center property [material](https://support.google.com/
2317
- # merchants/answer/6324410). Schema.org property [Product.material](https://
2318
- # 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).
2319
2342
  # Corresponds to the JSON property `materials`
2320
2343
  # @return [Array<String>]
2321
2344
  attr_accessor :materials
@@ -2329,9 +2352,10 @@ module Google
2329
2352
  # The pattern or graphic print of the product. For example, "striped", "polka
2330
2353
  # dot", "paisley". A maximum of 20 values are allowed per Product. Each value
2331
2354
  # must be a UTF-8 encoded string with a length limit of 128 characters.
2332
- # Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center
2333
- # property [pattern](https://support.google.com/merchants/answer/6324483).
2334
- # 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).
2335
2359
  # Corresponds to the JSON property `patterns`
2336
2360
  # @return [Array<String>]
2337
2361
  attr_accessor :patterns
@@ -2346,10 +2370,9 @@ module Google
2346
2370
  # can only be empty or set to the same value as id. For VARIANT Products, this
2347
2371
  # field cannot be empty. A maximum of 2,000 products are allowed to share the
2348
2372
  # same Type.PRIMARY Product. Otherwise, an INVALID_ARGUMENT error is returned.
2349
- # Google Merchant Center Property [item_group_id](https://support.google.com/
2350
- # merchants/answer/6324507). Schema.org Property [Product.inProductGroupWithID](
2351
- # https://schema.org/inProductGroupWithID). This field must be enabled before it
2352
- # 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).
2353
2376
  # Corresponds to the JSON property `primaryProductId`
2354
2377
  # @return [String]
2355
2378
  attr_accessor :primary_product_id
@@ -2398,10 +2421,11 @@ module Google
2398
2421
  # system and size type are empty, while size value is "32 inches". A maximum of
2399
2422
  # 20 values are allowed per Product. Each value must be a UTF-8 encoded string
2400
2423
  # with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is
2401
- # returned. Google Merchant Center property [size](https://support.google.com/
2402
- # merchants/answer/6324492), [size_type](https://support.google.com/merchants/
2403
- # answer/6324497) and [size_system](https://support.google.com/merchants/answer/
2404
- # 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).
2405
2429
  # Corresponds to the JSON property `sizes`
2406
2430
  # @return [Array<String>]
2407
2431
  attr_accessor :sizes
@@ -2410,17 +2434,18 @@ module Google
2410
2434
  # Product. This value must be a UTF-8 encoded string with a length limit of 1,
2411
2435
  # 000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can
2412
2436
  # be used for filtering recommendation results by passing the tag as part of the
2413
- # PredictRequest.filter. Google Merchant Center property [custom_label_0–4](
2414
- # 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).
2415
2440
  # Corresponds to the JSON property `tags`
2416
2441
  # @return [Array<String>]
2417
2442
  attr_accessor :tags
2418
2443
 
2419
2444
  # Required. Product title. This field must be a UTF-8 encoded string with a
2420
2445
  # length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is
2421
- # returned. Google Merchant Center property [title](https://support.google.com/
2422
- # merchants/answer/6324415). Schema.org property [Product.name](https://schema.
2423
- # 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).
2424
2449
  # Corresponds to the JSON property `title`
2425
2450
  # @return [String]
2426
2451
  attr_accessor :title
@@ -2446,9 +2471,9 @@ module Google
2446
2471
  # recommended to provide a valid uri for the product, otherwise the service
2447
2472
  # performance could be significantly degraded. This field must be a UTF-8
2448
2473
  # encoded string with a length limit of 5,000 characters. Otherwise, an
2449
- # INVALID_ARGUMENT error is returned. Google Merchant Center property [link](
2450
- # https://support.google.com/merchants/answer/6324416). Schema.org property [
2451
- # 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).
2452
2477
  # Corresponds to the JSON property `uri`
2453
2478
  # @return [String]
2454
2479
  attr_accessor :uri
@@ -2974,7 +2999,7 @@ module Google
2974
2999
  attr_accessor :allow_missing
2975
3000
  alias_method :allow_missing?, :allow_missing
2976
3001
 
2977
- # 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
2978
3003
  # place IDs are allowed per request.
2979
3004
  # Corresponds to the JSON property `placeIds`
2980
3005
  # @return [Array<String>]
@@ -3133,24 +3158,26 @@ module Google
3133
3158
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo]
3134
3159
  attr_accessor :user_info
3135
3160
 
3136
- # The keys to fetch and rollup the matching variant Products attributes. The
3137
- # attributes from all the matching variant Products are merged and de-duplicated.
3138
- # Notice that rollup variant Products attributes will lead to extra query
3139
- # latency. Maximum number of keys is 10. For FulfillmentInfo, a fulfillment type
3140
- # and a fulfillment ID must be provided in the format of "fulfillmentType.
3141
- # fulfillmentId". E.g., in "pickupInStore.store123", "pickupInStore" is
3142
- # fulfillment type and "store123" is the store ID. Supported keys are: *
3143
- # colorFamilies * price * originalPrice * discount * inventory(place_id,price) *
3144
- # attributes.key, where key is any key in the Product.attributes map. *
3145
- # pickupInStore.id, where id is any FulfillmentInfo.place_ids for
3146
- # FulfillmentInfo.type "pickup-in-store". * shipToStore.id, where id is any
3147
- # FulfillmentInfo.place_ids for FulfillmentInfo.type "ship-to-store". *
3148
- # sameDayDelivery.id, where id is any FulfillmentInfo.place_ids for
3149
- # FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id, where id is
3150
- # any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-delivery". *
3151
- # customFulfillment1.id, where id is any FulfillmentInfo.place_ids for
3152
- # FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is any
3153
- # 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". *
3154
3181
  # customFulfillment3.id, where id is any FulfillmentInfo.place_ids for
3155
3182
  # FulfillmentInfo.type "custom-type-3". * customFulfillment4.id, where id is any
3156
3183
  # FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-4". *
@@ -3164,9 +3191,9 @@ module Google
3164
3191
  # Required. A unique identifier for tracking visitors. For example, this could
3165
3192
  # be implemented with an HTTP cookie, which should be able to uniquely identify
3166
3193
  # a visitor on a single device. This unique identifier should not change if the
3167
- # visitor logs in or out of the website. The field must be a UTF-8 encoded
3168
- # string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
3169
- # 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.
3170
3197
  # Corresponds to the JSON property `visitorId`
3171
3198
  # @return [String]
3172
3199
  attr_accessor :visitor_id
@@ -3369,9 +3396,10 @@ module Google
3369
3396
  # colors" * "sizes" * "materials" * "patterns" * "conditions" * "attributes.key"
3370
3397
  # * "pickupInStore" * "shipToStore" * "sameDayDelivery" * "nextDayDelivery" * "
3371
3398
  # customFulfillment1" * "customFulfillment2" * "customFulfillment3" * "
3372
- # customFulfillment4" * "customFulfillment5" * numerical_field = * "price" * "
3373
- # discount" * "rating" * "ratingCount" * "attributes.key" * "inventory(place_id,
3374
- # 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)"
3375
3403
  # Corresponds to the JSON property `key`
3376
3404
  # @return [String]
3377
3405
  attr_accessor :key
@@ -3470,6 +3498,12 @@ module Google
3470
3498
  class GoogleCloudRetailV2alphaSearchResponse
3471
3499
  include Google::Apis::Core::Hashable
3472
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
+
3473
3507
  # A unique search token. This should be included in the UserEvent logs resulting
3474
3508
  # from this search, which enables accurate attribution of search model
3475
3509
  # performance.
@@ -3524,6 +3558,7 @@ module Google
3524
3558
 
3525
3559
  # Update properties of this object
3526
3560
  def update!(**args)
3561
+ @applied_controls = args[:applied_controls] if args.key?(:applied_controls)
3527
3562
  @attribution_token = args[:attribution_token] if args.key?(:attribution_token)
3528
3563
  @corrected_query = args[:corrected_query] if args.key?(:corrected_query)
3529
3564
  @facets = args[:facets] if args.key?(:facets)
@@ -3749,10 +3784,9 @@ module Google
3749
3784
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProduct]
3750
3785
  attr_accessor :inventory
3751
3786
 
3752
- # Indicates which inventory fields in the provided Product to update. If not set
3753
- # or set with empty paths, all inventory fields will be updated. If an
3754
- # unsupported or unknown field is provided, an INVALID_ARGUMENT error is
3755
- # 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.
3756
3790
  # Corresponds to the JSON property `setMask`
3757
3791
  # @return [String]
3758
3792
  attr_accessor :set_mask
@@ -3796,12 +3830,15 @@ module Google
3796
3830
  class GoogleCloudRetailV2alphaUserEvent
3797
3831
  include Google::Apis::Core::Hashable
3798
3832
 
3799
- # Extra user event features to include in the recommendation model. The key must
3800
- # be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
3801
- # an INVALID_ARGUMENT error is returned. For product recommendation, an example
3802
- # of extra user information is traffic_channel, i.e. how user arrives at the
3803
- # site. Users can arrive at the site by coming to the site directly, or coming
3804
- # through Google search, and etc.
3833
+ # Extra user event features to include in the recommendation model. This field
3834
+ # needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is
3835
+ # returned: * The key must be a UTF-8 encoded string with a length limit of 5,
3836
+ # 000 characters. * For text attributes, at most 400 values are allowed. Empty
3837
+ # values are not allowed. Each value must be a UTF-8 encoded string with a
3838
+ # length limit of 256 characters. * For number attributes, at most 400 values
3839
+ # are allowed. For product recommendation, an example of extra user information
3840
+ # is traffic_channel, i.e. how user arrives at the site. Users can arrive at the
3841
+ # site by coming to the site directly, or coming through Google search, and etc.
3805
3842
  # Corresponds to the JSON property `attributes`
3806
3843
  # @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaCustomAttribute>]
3807
3844
  attr_accessor :attributes
@@ -3843,12 +3880,11 @@ module Google
3843
3880
 
3844
3881
  # Required. User event type. Allowed values are: * `add-to-cart`: Products being
3845
3882
  # added to cart. * `category-page-view`: Special pages such as sale or promotion
3846
- # pages viewed. * `completion`: Completion query result showed/clicked. * `
3847
- # detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage
3848
- # viewed. * `promotion-offered`: Promotion is offered to a user. * `promotion-
3849
- # not-offered`: Promotion is not offered to a user. * `purchase-complete`: User
3850
- # finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`:
3851
- # User viewing a shopping cart.
3883
+ # pages viewed. * `detail-page-view`: Products detail page viewed. * `home-page-
3884
+ # view`: Homepage viewed. * `promotion-offered`: Promotion is offered to a user.
3885
+ # * `promotion-not-offered`: Promotion is not offered to a user. * `purchase-
3886
+ # complete`: User finishing a purchase. * `search`: Product search. * `shopping-
3887
+ # cart-page-view`: User viewing a shopping cart.
3852
3888
  # Corresponds to the JSON property `eventType`
3853
3889
  # @return [String]
3854
3890
  attr_accessor :event_type
@@ -3915,12 +3951,12 @@ module Google
3915
3951
 
3916
3952
  # The main product details related to the event. This field is required for the
3917
3953
  # following event types: * `add-to-cart` * `detail-page-view` * `purchase-
3918
- # complete` In a `search` event, this field represents the products returned to
3919
- # the end user on the current page (the end user may have not finished browsing
3920
- # the whole page yet). When a new page is returned to the end user, after
3921
- # pagination/filtering/ordering even for the same query, a new `search` event
3922
- # with different product_details is desired. The end user may have not finished
3923
- # browsing the whole page yet.
3954
+ # complete` * `search` In a `search` event, this field represents the products
3955
+ # returned to the end user on the current page (the end user may have not
3956
+ # finished browsing the whole page yet). When a new page is returned to the end
3957
+ # user, after pagination/filtering/ordering even for the same query, a new `
3958
+ # search` event with different product_details is desired. The end user may have
3959
+ # not finished browsing the whole page yet.
3924
3960
  # Corresponds to the JSON property `productDetails`
3925
3961
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaProductDetail>]
3926
3962
  attr_accessor :product_details
@@ -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.21.0"
19
+ GEM_VERSION = "0.25.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211104"
25
+ REVISION = "20220106"
26
26
  end
27
27
  end
28
28
  end
@@ -1338,7 +1338,9 @@ module Google
1338
1338
  class Representation < Google::Apis::Core::JsonRepresentation
1339
1339
  property :branch_id, as: 'branchId'
1340
1340
  collection :destinations, as: 'destinations'
1341
+ property :language_code, as: 'languageCode'
1341
1342
  property :merchant_center_account_id, :numeric_string => true, as: 'merchantCenterAccountId'
1343
+ property :region_code, as: 'regionCode'
1342
1344
  end
1343
1345
  end
1344
1346
 
@@ -1691,6 +1693,7 @@ module Google
1691
1693
  class GoogleCloudRetailV2alphaSearchResponse
1692
1694
  # @private
1693
1695
  class Representation < Google::Apis::Core::JsonRepresentation
1696
+ collection :applied_controls, as: 'appliedControls'
1694
1697
  property :attribution_token, as: 'attributionToken'
1695
1698
  property :corrected_query, as: 'correctedQuery'
1696
1699
  collection :facets, as: 'facets', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchResponseFacet::Representation
@@ -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)
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.21.0
4
+ version: 0.25.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-15 00:00:00.000000000 Z
11
+ date: 2022-01-17 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.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.25.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.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Retail API V2alpha