google-apis-retail_v2beta 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: e83e98a63736700b4d839c01b4d54de9d8902ee7b7324ae408fbf678ad4d0086
4
- data.tar.gz: 48c5d5af3d64cc880332a5ff4657342dbd579f3d675d2c1e75496f8f6b04a4d0
3
+ metadata.gz: a90f8a59934337fad7aa01a975daf86ef6da2a98932377fd88576e8294138392
4
+ data.tar.gz: 3efb04e2d06377438d37ef6ed7c2d20b76797e291796e8e769b6170ab8a0b2ce
5
5
  SHA512:
6
- metadata.gz: 8d77fc4b02fa3487c9d422be62e7836548854558995d8c7fa2da160735557b3e172bb37bc2ba5c088772ba8cec8d14dcfc1616ced6935e19800dfd270e560b63
7
- data.tar.gz: 6af358dfa01661b1628e84799384a125bef54b520ac1747eb3b38ac6f1f7725f74e2518bb707cee3c5d54de41f44b57d5b5e58ccfc172d6aa63d3b7786613899
6
+ metadata.gz: 7e3e71bcda051072115eba20a0890a9d536c0accfaa085059088db2cc299a269c53b06c298ebf81e330f2e7e65902d0135c15214f188425e90dcb1132db3fa38
7
+ data.tar.gz: c02d5ed92338b4be7f318e4f067fe366afd0db0d43108118f95fca82fad9f8e8aa781d1367816c863a0fa46c21077b2b45f6f1a4c434b465ac86f5246e05016c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-retail_v2beta
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_v2beta"
51
51
  client = Google::Apis::RetailV2beta::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.
@@ -1534,9 +1534,8 @@ module Google
1534
1534
  alias_method :indexable?, :indexable
1535
1535
 
1536
1536
  # The numerical values of this custom attribute. For example, `[2.3, 15.4]` when
1537
- # the key is "lengths_cm". At most 400 values are allowed.Otherwise, an
1538
- # INVALID_ARGUMENT error is returned. Exactly one of text or numbers should be
1539
- # set. Otherwise, an INVALID_ARGUMENT error is returned.
1537
+ # the key is "lengths_cm". Exactly one of text or numbers should be set.
1538
+ # Otherwise, an INVALID_ARGUMENT error is returned.
1540
1539
  # Corresponds to the JSON property `numbers`
1541
1540
  # @return [Array<Float>]
1542
1541
  attr_accessor :numbers
@@ -1550,11 +1549,8 @@ module Google
1550
1549
  alias_method :searchable?, :searchable
1551
1550
 
1552
1551
  # The textual values of this custom attribute. For example, `["yellow", "green"]`
1553
- # when the key is "color". At most 400 values are allowed. Empty values are not
1554
- # allowed. Each value must be a UTF-8 encoded string with a length limit of 256
1555
- # characters. Otherwise, an INVALID_ARGUMENT error is returned. Exactly one of
1556
- # text or numbers should be set. Otherwise, an INVALID_ARGUMENT error is
1557
- # returned.
1552
+ # when the key is "color". Exactly one of text or numbers should be set.
1553
+ # Otherwise, an INVALID_ARGUMENT error is returned.
1558
1554
  # Corresponds to the JSON property `text`
1559
1555
  # @return [Array<String>]
1560
1556
  attr_accessor :text
@@ -1721,6 +1717,8 @@ module Google
1721
1717
  # recommendations-ai/docs/upload-catalog#mc). Supported values for user events
1722
1718
  # imports: * `user_event` (default): One JSON UserEvent per line. * `
1723
1719
  # user_event_ga360`: Using https://support.google.com/analytics/answer/3437719.
1720
+ # Supported values for control imports: * 'control' (default): One JSON Control
1721
+ # per line.
1724
1722
  # Corresponds to the JSON property `dataSchema`
1725
1723
  # @return [String]
1726
1724
  attr_accessor :data_schema
@@ -2374,8 +2372,8 @@ module Google
2374
2372
  attr_accessor :original_price
2375
2373
 
2376
2374
  # Price of the product. Google Merchant Center property [price](https://support.
2377
- # google.com/merchants/answer/6324371). Schema.org property [Offer.
2378
- # priceSpecification](https://schema.org/priceSpecification).
2375
+ # google.com/merchants/answer/6324371). Schema.org property [Offer.price](https:/
2376
+ # /schema.org/price).
2379
2377
  # Corresponds to the JSON property `price`
2380
2378
  # @return [Float]
2381
2379
  attr_accessor :price
@@ -2463,7 +2461,10 @@ module Google
2463
2461
  # INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must
2464
2462
  # be a UTF-8 encoded string with a length limit of 128 characters. * For
2465
2463
  # indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example,
2466
- # key0LikeThis or KEY_1_LIKE_THIS.
2464
+ # `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400
2465
+ # values are allowed. Empty values are not allowed. Each value must be a UTF-8
2466
+ # encoded string with a length limit of 256 characters. * For number attributes,
2467
+ # at most 400 values are allowed.
2467
2468
  # Corresponds to the JSON property `attributes`
2468
2469
  # @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute>]
2469
2470
  attr_accessor :attributes
@@ -2474,9 +2475,9 @@ module Google
2474
2475
  attr_accessor :audience
2475
2476
 
2476
2477
  # The online availability of the Product. Default to Availability.IN_STOCK.
2477
- # Google Merchant Center Property [availability](https://support.google.com/
2478
- # merchants/answer/6324448). Schema.org Property [Offer.availability](https://
2479
- # schema.org/availability).
2478
+ # Corresponding properties: Google Merchant Center property [availability](https:
2479
+ # //support.google.com/merchants/answer/6324448). Schema.org property [Offer.
2480
+ # availability](https://schema.org/availability).
2480
2481
  # Corresponds to the JSON property `availability`
2481
2482
  # @return [String]
2482
2483
  attr_accessor :availability
@@ -2493,9 +2494,9 @@ module Google
2493
2494
 
2494
2495
  # The brands of the product. A maximum of 30 brands are allowed. Each brand must
2495
2496
  # be a UTF-8 encoded string with a length limit of 1,000 characters. Otherwise,
2496
- # an INVALID_ARGUMENT error is returned. Google Merchant Center property [brand](
2497
- # https://support.google.com/merchants/answer/6324351). Schema.org property [
2498
- # Product.brand](https://schema.org/brand).
2497
+ # an INVALID_ARGUMENT error is returned. Corresponding properties: Google
2498
+ # Merchant Center property [brand](https://support.google.com/merchants/answer/
2499
+ # 6324351). Schema.org property [Product.brand](https://schema.org/brand).
2499
2500
  # Corresponds to the JSON property `brands`
2500
2501
  # @return [Array<String>]
2501
2502
  attr_accessor :brands
@@ -2512,10 +2513,10 @@ module Google
2512
2513
  # INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product.
2513
2514
  # Empty values are not allowed. Each value must be a UTF-8 encoded string with
2514
2515
  # a length limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is
2515
- # returned. Google Merchant Center property google_product_category. Schema.org
2516
- # property [Product.category] (https://schema.org/category). [
2517
- # mc_google_product_category]: https://support.google.com/merchants/answer/
2518
- # 6324436
2516
+ # returned. Corresponding properties: Google Merchant Center property
2517
+ # google_product_category. Schema.org property [Product.category] (https://
2518
+ # schema.org/category). [mc_google_product_category]: https://support.google.com/
2519
+ # merchants/answer/6324436
2519
2520
  # Corresponds to the JSON property `categories`
2520
2521
  # @return [Array<String>]
2521
2522
  attr_accessor :categories
@@ -2533,21 +2534,21 @@ module Google
2533
2534
  attr_accessor :color_info
2534
2535
 
2535
2536
  # The condition of the product. Strongly encouraged to use the standard values: "
2536
- # new", "refurbished", "used". A maximum of 5 values are allowed per Product.
2537
- # Each value must be a UTF-8 encoded string with a length limit of 128
2538
- # characters. Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant
2539
- # Center property [condition](https://support.google.com/merchants/answer/
2540
- # 6324469). Schema.org property [Offer.itemCondition](https://schema.org/
2541
- # itemCondition).
2537
+ # new", "refurbished", "used". A maximum of 1 value is allowed per Product. Each
2538
+ # value must be a UTF-8 encoded string with a length limit of 128 characters.
2539
+ # Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
2540
+ # Google Merchant Center property [condition](https://support.google.com/
2541
+ # merchants/answer/6324469). Schema.org property [Offer.itemCondition](https://
2542
+ # schema.org/itemCondition).
2542
2543
  # Corresponds to the JSON property `conditions`
2543
2544
  # @return [Array<String>]
2544
2545
  attr_accessor :conditions
2545
2546
 
2546
2547
  # Product description. This field must be a UTF-8 encoded string with a length
2547
2548
  # limit of 5,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
2548
- # Google Merchant Center property [description](https://support.google.com/
2549
- # merchants/answer/6324468). schema.org property [Product.description](https://
2550
- # schema.org/description).
2549
+ # Corresponding properties: Google Merchant Center property [description](https:/
2550
+ # /support.google.com/merchants/answer/6324468). Schema.org property [Product.
2551
+ # description](https://schema.org/description).
2551
2552
  # Corresponds to the JSON property `description`
2552
2553
  # @return [String]
2553
2554
  attr_accessor :description
@@ -2557,8 +2558,8 @@ module Google
2557
2558
  # expire_time. However, the product can still be retrieved by ProductService.
2558
2559
  # GetProduct and ProductService.ListProducts. expire_time must be later than
2559
2560
  # available_time and publish_time, otherwise an INVALID_ARGUMENT error is thrown.
2560
- # Google Merchant Center property [expiration_date](https://support.google.com/
2561
- # merchants/answer/6324499).
2561
+ # Corresponding properties: Google Merchant Center property [expiration_date](
2562
+ # https://support.google.com/merchants/answer/6324499).
2562
2563
  # Corresponds to the JSON property `expireTime`
2563
2564
  # @return [String]
2564
2565
  attr_accessor :expire_time
@@ -2573,12 +2574,13 @@ module Google
2573
2574
  # The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8
2574
2575
  # encoded string with a length limit of 128 characters. Otherwise, an
2575
2576
  # INVALID_ARGUMENT error is returned. This field must be a Unigram. Otherwise,
2576
- # an INVALID_ARGUMENT error is returned. Google Merchant Center property [gtin](
2577
- # https://support.google.com/merchants/answer/6324461). Schema.org property [
2578
- # Product.isbn](https://schema.org/isbn) or [Product.gtin8](https://schema.org/
2579
- # gtin8) or [Product.gtin12](https://schema.org/gtin12) or [Product.gtin13](
2580
- # https://schema.org/gtin13) or [Product.gtin14](https://schema.org/gtin14). If
2581
- # the value is not a valid GTIN, an INVALID_ARGUMENT error is returned.
2577
+ # an INVALID_ARGUMENT error is returned. Corresponding properties: Google
2578
+ # Merchant Center property [gtin](https://support.google.com/merchants/answer/
2579
+ # 6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [
2580
+ # Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/
2581
+ # gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](
2582
+ # https://schema.org/gtin14). If the value is not a valid GTIN, an
2583
+ # INVALID_ARGUMENT error is returned.
2582
2584
  # Corresponds to the JSON property `gtin`
2583
2585
  # @return [String]
2584
2586
  attr_accessor :gtin
@@ -2587,27 +2589,28 @@ module Google
2587
2589
  # example, this field is "id_1", if name is `projects/*/locations/global/
2588
2590
  # catalogs/default_catalog/branches/default_branch/products/id_1`. This field
2589
2591
  # must be a UTF-8 encoded string with a length limit of 128 characters.
2590
- # Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center
2591
- # property [id](https://support.google.com/merchants/answer/6324405). Schema.org
2592
- # Property [Product.sku](https://schema.org/sku).
2592
+ # Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
2593
+ # Google Merchant Center property [id](https://support.google.com/merchants/
2594
+ # answer/6324405). Schema.org property [Product.sku](https://schema.org/sku).
2593
2595
  # Corresponds to the JSON property `id`
2594
2596
  # @return [String]
2595
2597
  attr_accessor :id
2596
2598
 
2597
2599
  # Product images for the product.Highly recommended to put the main image to the
2598
- # first. A maximum of 300 images are allowed. Google Merchant Center property [
2599
- # image_link](https://support.google.com/merchants/answer/6324350). Schema.org
2600
- # property [Product.image](https://schema.org/image).
2600
+ # first. A maximum of 300 images are allowed. Corresponding properties: Google
2601
+ # Merchant Center property [image_link](https://support.google.com/merchants/
2602
+ # answer/6324350). Schema.org property [Product.image](https://schema.org/image).
2601
2603
  # Corresponds to the JSON property `images`
2602
2604
  # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaImage>]
2603
2605
  attr_accessor :images
2604
2606
 
2605
2607
  # Language of the title/description and other string attributes. Use language
2606
- # tags defined by BCP 47. For product prediction, this field is ignored and the
2607
- # model automatically detects the text language. The Product can include text in
2608
- # different languages, but duplicating Products to provide text in multiple
2609
- # languages can result in degraded model performance. For product search this
2610
- # field is in use. It defaults to "en-US" if unset.
2608
+ # tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For
2609
+ # product prediction, this field is ignored and the model automatically detects
2610
+ # the text language. The Product can include text in different languages, but
2611
+ # duplicating Products to provide text in multiple languages can result in
2612
+ # degraded model performance. For product search this field is in use. It
2613
+ # defaults to "en-US" if unset.
2611
2614
  # Corresponds to the JSON property `languageCode`
2612
2615
  # @return [String]
2613
2616
  attr_accessor :language_code
@@ -2615,9 +2618,9 @@ module Google
2615
2618
  # The material of the product. For example, "leather", "wooden". A maximum of 20
2616
2619
  # values are allowed. Each value must be a UTF-8 encoded string with a length
2617
2620
  # limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
2618
- # Google Merchant Center property [material](https://support.google.com/
2619
- # merchants/answer/6324410). Schema.org property [Product.material](https://
2620
- # schema.org/material).
2621
+ # Corresponding properties: Google Merchant Center property [material](https://
2622
+ # support.google.com/merchants/answer/6324410). Schema.org property [Product.
2623
+ # material](https://schema.org/material).
2621
2624
  # Corresponds to the JSON property `materials`
2622
2625
  # @return [Array<String>]
2623
2626
  attr_accessor :materials
@@ -2631,9 +2634,10 @@ module Google
2631
2634
  # The pattern or graphic print of the product. For example, "striped", "polka
2632
2635
  # dot", "paisley". A maximum of 20 values are allowed per Product. Each value
2633
2636
  # must be a UTF-8 encoded string with a length limit of 128 characters.
2634
- # Otherwise, an INVALID_ARGUMENT error is returned. Google Merchant Center
2635
- # property [pattern](https://support.google.com/merchants/answer/6324483).
2636
- # Schema.org property [Product.pattern](https://schema.org/pattern).
2637
+ # Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
2638
+ # Google Merchant Center property [pattern](https://support.google.com/merchants/
2639
+ # answer/6324483). Schema.org property [Product.pattern](https://schema.org/
2640
+ # pattern).
2637
2641
  # Corresponds to the JSON property `patterns`
2638
2642
  # @return [Array<String>]
2639
2643
  attr_accessor :patterns
@@ -2648,10 +2652,9 @@ module Google
2648
2652
  # can only be empty or set to the same value as id. For VARIANT Products, this
2649
2653
  # field cannot be empty. A maximum of 2,000 products are allowed to share the
2650
2654
  # same Type.PRIMARY Product. Otherwise, an INVALID_ARGUMENT error is returned.
2651
- # Google Merchant Center Property [item_group_id](https://support.google.com/
2652
- # merchants/answer/6324507). Schema.org Property [Product.inProductGroupWithID](
2653
- # https://schema.org/inProductGroupWithID). This field must be enabled before it
2654
- # can be used. [Learn more](/recommendations-ai/docs/catalog#item-group-id).
2655
+ # Corresponding properties: Google Merchant Center property [item_group_id](
2656
+ # https://support.google.com/merchants/answer/6324507). Schema.org property [
2657
+ # Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
2655
2658
  # Corresponds to the JSON property `primaryProductId`
2656
2659
  # @return [String]
2657
2660
  attr_accessor :primary_product_id
@@ -2700,10 +2703,11 @@ module Google
2700
2703
  # system and size type are empty, while size value is "32 inches". A maximum of
2701
2704
  # 20 values are allowed per Product. Each value must be a UTF-8 encoded string
2702
2705
  # with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is
2703
- # returned. Google Merchant Center property [size](https://support.google.com/
2704
- # merchants/answer/6324492), [size_type](https://support.google.com/merchants/
2705
- # answer/6324497) and [size_system](https://support.google.com/merchants/answer/
2706
- # 6324502). Schema.org property [Product.size](https://schema.org/size).
2706
+ # returned. Corresponding properties: Google Merchant Center property [size](
2707
+ # https://support.google.com/merchants/answer/6324492), [size_type](https://
2708
+ # support.google.com/merchants/answer/6324497), and [size_system](https://
2709
+ # support.google.com/merchants/answer/6324502). Schema.org property [Product.
2710
+ # size](https://schema.org/size).
2707
2711
  # Corresponds to the JSON property `sizes`
2708
2712
  # @return [Array<String>]
2709
2713
  attr_accessor :sizes
@@ -2712,17 +2716,18 @@ module Google
2712
2716
  # Product. This value must be a UTF-8 encoded string with a length limit of 1,
2713
2717
  # 000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can
2714
2718
  # be used for filtering recommendation results by passing the tag as part of the
2715
- # PredictRequest.filter. Google Merchant Center property [custom_label_0–4](
2716
- # https://support.google.com/merchants/answer/6324473).
2719
+ # PredictRequest.filter. Corresponding properties: Google Merchant Center
2720
+ # property [custom_label_0–4](https://support.google.com/merchants/answer/
2721
+ # 6324473).
2717
2722
  # Corresponds to the JSON property `tags`
2718
2723
  # @return [Array<String>]
2719
2724
  attr_accessor :tags
2720
2725
 
2721
2726
  # Required. Product title. This field must be a UTF-8 encoded string with a
2722
2727
  # length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is
2723
- # returned. Google Merchant Center property [title](https://support.google.com/
2724
- # merchants/answer/6324415). Schema.org property [Product.name](https://schema.
2725
- # org/name).
2728
+ # returned. Corresponding properties: Google Merchant Center property [title](
2729
+ # https://support.google.com/merchants/answer/6324415). Schema.org property [
2730
+ # Product.name](https://schema.org/name).
2726
2731
  # Corresponds to the JSON property `title`
2727
2732
  # @return [String]
2728
2733
  attr_accessor :title
@@ -2748,9 +2753,9 @@ module Google
2748
2753
  # recommended to provide a valid uri for the product, otherwise the service
2749
2754
  # performance could be significantly degraded. This field must be a UTF-8
2750
2755
  # encoded string with a length limit of 5,000 characters. Otherwise, an
2751
- # INVALID_ARGUMENT error is returned. Google Merchant Center property [link](
2752
- # https://support.google.com/merchants/answer/6324416). Schema.org property [
2753
- # Offer.url](https://schema.org/url).
2756
+ # INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant
2757
+ # Center property [link](https://support.google.com/merchants/answer/6324416).
2758
+ # Schema.org property [Offer.url](https://schema.org/url).
2754
2759
  # Corresponds to the JSON property `uri`
2755
2760
  # @return [String]
2756
2761
  attr_accessor :uri
@@ -3360,24 +3365,26 @@ module Google
3360
3365
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserInfo]
3361
3366
  attr_accessor :user_info
3362
3367
 
3363
- # The keys to fetch and rollup the matching variant Products attributes. The
3364
- # attributes from all the matching variant Products are merged and de-duplicated.
3365
- # Notice that rollup variant Products attributes will lead to extra query
3366
- # latency. Maximum number of keys is 10. For FulfillmentInfo, a fulfillment type
3367
- # and a fulfillment ID must be provided in the format of "fulfillmentType.
3368
- # fulfillmentId". E.g., in "pickupInStore.store123", "pickupInStore" is
3369
- # fulfillment type and "store123" is the store ID. Supported keys are: *
3370
- # colorFamilies * price * originalPrice * discount * inventory(place_id,price) *
3371
- # attributes.key, where key is any key in the Product.attributes map. *
3372
- # pickupInStore.id, where id is any FulfillmentInfo.place_ids for
3373
- # FulfillmentInfo.type "pickup-in-store". * shipToStore.id, where id is any
3374
- # FulfillmentInfo.place_ids for FulfillmentInfo.type "ship-to-store". *
3375
- # sameDayDelivery.id, where id is any FulfillmentInfo.place_ids for
3376
- # FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id, where id is
3377
- # any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-delivery". *
3378
- # customFulfillment1.id, where id is any FulfillmentInfo.place_ids for
3379
- # FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is any
3380
- # FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-2". *
3368
+ # The keys to fetch and rollup the matching variant Products attributes,
3369
+ # FulfillmentInfo or LocalInventorys attributes. The attributes from all the
3370
+ # matching variant Products or LocalInventorys are merged and de-duplicated.
3371
+ # Notice that rollup attributes will lead to extra query latency. Maximum number
3372
+ # of keys is 30. For FulfillmentInfo, a fulfillment type and a fulfillment ID
3373
+ # must be provided in the format of "fulfillmentType.fulfillmentId". E.g., in "
3374
+ # pickupInStore.store123", "pickupInStore" is fulfillment type and "store123" is
3375
+ # the store ID. Supported keys are: * colorFamilies * price * originalPrice *
3376
+ # discount * variantId * inventory(place_id,price) * inventory(place_id,
3377
+ # original_price) * inventory(place_id,attributes.key), where key is any key in
3378
+ # the Product.inventories.attributes map. * attributes.key, where key is any key
3379
+ # in the Product.attributes map. * pickupInStore.id, where id is any
3380
+ # FulfillmentInfo.place_ids for FulfillmentInfo.type "pickup-in-store". *
3381
+ # shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.
3382
+ # type "ship-to-store". * sameDayDelivery.id, where id is any FulfillmentInfo.
3383
+ # place_ids for FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id,
3384
+ # where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-
3385
+ # delivery". * customFulfillment1.id, where id is any FulfillmentInfo.place_ids
3386
+ # for FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is
3387
+ # any FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-2". *
3381
3388
  # customFulfillment3.id, where id is any FulfillmentInfo.place_ids for
3382
3389
  # FulfillmentInfo.type "custom-type-3". * customFulfillment4.id, where id is any
3383
3390
  # FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-4". *
@@ -3391,9 +3398,9 @@ module Google
3391
3398
  # Required. A unique identifier for tracking visitors. For example, this could
3392
3399
  # be implemented with an HTTP cookie, which should be able to uniquely identify
3393
3400
  # a visitor on a single device. This unique identifier should not change if the
3394
- # visitor logs in or out of the website. The field must be a UTF-8 encoded
3395
- # string with a length limit of 128 characters. Otherwise, an INVALID_ARGUMENT
3396
- # error is returned.
3401
+ # visitor logs in or out of the website. This should be the same identifier as
3402
+ # UserEvent.visitor_id. The field must be a UTF-8 encoded string with a length
3403
+ # limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
3397
3404
  # Corresponds to the JSON property `visitorId`
3398
3405
  # @return [String]
3399
3406
  attr_accessor :visitor_id
@@ -3595,9 +3602,10 @@ module Google
3595
3602
  # colors" * "sizes" * "materials" * "patterns" * "conditions" * "attributes.key"
3596
3603
  # * "pickupInStore" * "shipToStore" * "sameDayDelivery" * "nextDayDelivery" * "
3597
3604
  # customFulfillment1" * "customFulfillment2" * "customFulfillment3" * "
3598
- # customFulfillment4" * "customFulfillment5" * numerical_field = * "price" * "
3599
- # discount" * "rating" * "ratingCount" * "attributes.key" * "inventory(place_id,
3600
- # price)"
3605
+ # customFulfillment4" * "customFulfillment5" * "inventory(place_id,attributes.
3606
+ # key)" * numerical_field = * "price" * "discount" * "rating" * "ratingCount" * "
3607
+ # attributes.key" * "inventory(place_id,price)" * "inventory(place_id,
3608
+ # original_price)" * "inventory(place_id,attributes.key)"
3601
3609
  # Corresponds to the JSON property `key`
3602
3610
  # @return [String]
3603
3611
  attr_accessor :key
@@ -3696,6 +3704,12 @@ module Google
3696
3704
  class GoogleCloudRetailV2betaSearchResponse
3697
3705
  include Google::Apis::Core::Hashable
3698
3706
 
3707
+ # The fully qualified resource name of applied [controls](https://cloud.google.
3708
+ # com/retail/docs/serving-control-rules).
3709
+ # Corresponds to the JSON property `appliedControls`
3710
+ # @return [Array<String>]
3711
+ attr_accessor :applied_controls
3712
+
3699
3713
  # A unique search token. This should be included in the UserEvent logs resulting
3700
3714
  # from this search, which enables accurate attribution of search model
3701
3715
  # performance.
@@ -3750,6 +3764,7 @@ module Google
3750
3764
 
3751
3765
  # Update properties of this object
3752
3766
  def update!(**args)
3767
+ @applied_controls = args[:applied_controls] if args.key?(:applied_controls)
3753
3768
  @attribution_token = args[:attribution_token] if args.key?(:attribution_token)
3754
3769
  @corrected_query = args[:corrected_query] if args.key?(:corrected_query)
3755
3770
  @facets = args[:facets] if args.key?(:facets)
@@ -3975,10 +3990,9 @@ module Google
3975
3990
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProduct]
3976
3991
  attr_accessor :inventory
3977
3992
 
3978
- # Indicates which inventory fields in the provided Product to update. If not set
3979
- # or set with empty paths, all inventory fields will be updated. If an
3980
- # unsupported or unknown field is provided, an INVALID_ARGUMENT error is
3981
- # returned and the entire update will be ignored.
3993
+ # Indicates which inventory fields in the provided Product to update. At least
3994
+ # one field must be provided. If an unsupported or unknown field is provided, an
3995
+ # INVALID_ARGUMENT error is returned and the entire update will be ignored.
3982
3996
  # Corresponds to the JSON property `setMask`
3983
3997
  # @return [String]
3984
3998
  attr_accessor :set_mask
@@ -4022,12 +4036,15 @@ module Google
4022
4036
  class GoogleCloudRetailV2betaUserEvent
4023
4037
  include Google::Apis::Core::Hashable
4024
4038
 
4025
- # Extra user event features to include in the recommendation model. The key must
4026
- # be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
4027
- # an INVALID_ARGUMENT error is returned. For product recommendation, an example
4028
- # of extra user information is traffic_channel, i.e. how user arrives at the
4029
- # site. Users can arrive at the site by coming to the site directly, or coming
4030
- # through Google search, and etc.
4039
+ # Extra user event features to include in the recommendation model. This field
4040
+ # needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is
4041
+ # returned: * The key must be a UTF-8 encoded string with a length limit of 5,
4042
+ # 000 characters. * For text attributes, at most 400 values are allowed. Empty
4043
+ # values are not allowed. Each value must be a UTF-8 encoded string with a
4044
+ # length limit of 256 characters. * For number attributes, at most 400 values
4045
+ # are allowed. For product recommendation, an example of extra user information
4046
+ # is traffic_channel, i.e. how user arrives at the site. Users can arrive at the
4047
+ # site by coming to the site directly, or coming through Google search, and etc.
4031
4048
  # Corresponds to the JSON property `attributes`
4032
4049
  # @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute>]
4033
4050
  attr_accessor :attributes
@@ -4069,12 +4086,11 @@ module Google
4069
4086
 
4070
4087
  # Required. User event type. Allowed values are: * `add-to-cart`: Products being
4071
4088
  # added to cart. * `category-page-view`: Special pages such as sale or promotion
4072
- # pages viewed. * `completion`: Completion query result showed/clicked. * `
4073
- # detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage
4074
- # viewed. * `promotion-offered`: Promotion is offered to a user. * `promotion-
4075
- # not-offered`: Promotion is not offered to a user. * `purchase-complete`: User
4076
- # finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`:
4077
- # User viewing a shopping cart.
4089
+ # pages viewed. * `detail-page-view`: Products detail page viewed. * `home-page-
4090
+ # view`: Homepage viewed. * `promotion-offered`: Promotion is offered to a user.
4091
+ # * `promotion-not-offered`: Promotion is not offered to a user. * `purchase-
4092
+ # complete`: User finishing a purchase. * `search`: Product search. * `shopping-
4093
+ # cart-page-view`: User viewing a shopping cart.
4078
4094
  # Corresponds to the JSON property `eventType`
4079
4095
  # @return [String]
4080
4096
  attr_accessor :event_type
@@ -4141,12 +4157,12 @@ module Google
4141
4157
 
4142
4158
  # The main product details related to the event. This field is required for the
4143
4159
  # following event types: * `add-to-cart` * `detail-page-view` * `purchase-
4144
- # complete` In a `search` event, this field represents the products returned to
4145
- # the end user on the current page (the end user may have not finished browsing
4146
- # the whole page yet). When a new page is returned to the end user, after
4147
- # pagination/filtering/ordering even for the same query, a new `search` event
4148
- # with different product_details is desired. The end user may have not finished
4149
- # browsing the whole page yet.
4160
+ # complete` * `search` In a `search` event, this field represents the products
4161
+ # returned to the end user on the current page (the end user may have not
4162
+ # finished browsing the whole page yet). When a new page is returned to the end
4163
+ # user, after pagination/filtering/ordering even for the same query, a new `
4164
+ # search` event with different product_details is desired. The end user may have
4165
+ # not finished browsing the whole page yet.
4150
4166
  # Corresponds to the JSON property `productDetails`
4151
4167
  # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaProductDetail>]
4152
4168
  attr_accessor :product_details
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2beta
18
18
  # Version of the google-apis-retail_v2beta 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
@@ -1763,6 +1763,7 @@ module Google
1763
1763
  class GoogleCloudRetailV2betaSearchResponse
1764
1764
  # @private
1765
1765
  class Representation < Google::Apis::Core::JsonRepresentation
1766
+ collection :applied_controls, as: 'appliedControls'
1766
1767
  property :attribution_token, as: 'attributionToken'
1767
1768
  property :corrected_query, as: 'correctedQuery'
1768
1769
  collection :facets, as: 'facets', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacet, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchResponseFacet::Representation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2beta
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_v2beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.25.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2beta
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 V2beta