google-apis-retail_v2beta 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2331caa3b915953f9f9f2d7907aa26a49499bf9b003f197f6dff4e6d0743ab9
4
- data.tar.gz: fc13f82eeabd0edda9d5266ec1881f74cc0d829ea8ad5f1f8701db3aa863975f
3
+ metadata.gz: 87730fa76b36bf2889a58f803f05b7c78a0edede1455859efea332c724311fbd
4
+ data.tar.gz: bf16a172bcdbdf5fafe42c93455c3f4c12e89b3e47d605526898b34da6b73461
5
5
  SHA512:
6
- metadata.gz: b6b8064fc809a5c5426ac61349feec960d40803cee94125670ebed98e0ebb0c489a80cca3a59103b747c6986139426001583303eebfeae28ae2791ae16aa4aab
7
- data.tar.gz: 5e55d9d8c44a36849240548f919d5b08cc6d8df114de591db67543b328edb7cb4f563b03be62e99230d57010c98b24098f64581d470cd70a52d2dcb8e3e618c9
6
+ metadata.gz: 24d8913a036480b3e605dbb38cf3f88fb88473fc2eb3a741320400262f64f2515cb4cb68064e2ed76c962429be68890bf7f783872ba9e6935a0c983676b2a336
7
+ data.tar.gz: 1ac41bbf1134c99d7bd7d9b0e83922b54d5974d832f8dd713d534762404083a739fbe63640e87d60c186c7bd1e97597f38db06393e45c63614c0e0fe5961cf98
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-retail_v2beta
2
2
 
3
+ ### v0.23.0 (2021-12-09)
4
+
5
+ * Regenerated from discovery document revision 20211203
6
+
3
7
  ### v0.22.0 (2021-11-17)
4
8
 
5
9
  * Regenerated from discovery document revision 20211116
@@ -1090,6 +1090,35 @@ module Google
1090
1090
  end
1091
1091
  end
1092
1092
 
1093
+ # Metadata related to the progress of the SetLocalInventories operation.
1094
+ # Currently empty because there is no meaningful metadata populated from the
1095
+ # SetLocalInventories method.
1096
+ class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
1097
+ include Google::Apis::Core::Hashable
1098
+
1099
+ def initialize(**args)
1100
+ update!(**args)
1101
+ end
1102
+
1103
+ # Update properties of this object
1104
+ def update!(**args)
1105
+ end
1106
+ end
1107
+
1108
+ # Response of the SetLocalInventories API. Currently empty because there is no
1109
+ # meaningful response populated from the SetLocalInventories method.
1110
+ class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
1111
+ include Google::Apis::Core::Hashable
1112
+
1113
+ def initialize(**args)
1114
+ update!(**args)
1115
+ end
1116
+
1117
+ # Update properties of this object
1118
+ def update!(**args)
1119
+ end
1120
+ end
1121
+
1093
1122
  # A summary of import result. The UserEventImportSummary summarizes the import
1094
1123
  # status for user events.
1095
1124
  class GoogleCloudRetailV2alphaUserEventImportSummary
@@ -1534,9 +1563,8 @@ module Google
1534
1563
  alias_method :indexable?, :indexable
1535
1564
 
1536
1565
  # 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.
1566
+ # the key is "lengths_cm". Exactly one of text or numbers should be set.
1567
+ # Otherwise, an INVALID_ARGUMENT error is returned.
1540
1568
  # Corresponds to the JSON property `numbers`
1541
1569
  # @return [Array<Float>]
1542
1570
  attr_accessor :numbers
@@ -1550,11 +1578,8 @@ module Google
1550
1578
  alias_method :searchable?, :searchable
1551
1579
 
1552
1580
  # 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.
1581
+ # when the key is "color". Exactly one of text or numbers should be set.
1582
+ # Otherwise, an INVALID_ARGUMENT error is returned.
1558
1583
  # Corresponds to the JSON property `text`
1559
1584
  # @return [Array<String>]
1560
1585
  attr_accessor :text
@@ -2463,7 +2488,10 @@ module Google
2463
2488
  # INVALID_ARGUMENT error is returned: * Max entries count: 200. * The key must
2464
2489
  # be a UTF-8 encoded string with a length limit of 128 characters. * For
2465
2490
  # indexable attribute, the key must match the pattern: `a-zA-Z0-9*`. For example,
2466
- # key0LikeThis or KEY_1_LIKE_THIS.
2491
+ # `key0LikeThis` or `KEY_1_LIKE_THIS`. * For text attributes, at most 400
2492
+ # values are allowed. Empty values are not allowed. Each value must be a UTF-8
2493
+ # encoded string with a length limit of 256 characters. * For number attributes,
2494
+ # at most 400 values are allowed.
2467
2495
  # Corresponds to the JSON property `attributes`
2468
2496
  # @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute>]
2469
2497
  attr_accessor :attributes
@@ -2474,9 +2502,9 @@ module Google
2474
2502
  attr_accessor :audience
2475
2503
 
2476
2504
  # 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).
2505
+ # Corresponding properties: Google Merchant Center property [availability](https:
2506
+ # //support.google.com/merchants/answer/6324448). Schema.org property [Offer.
2507
+ # availability](https://schema.org/availability).
2480
2508
  # Corresponds to the JSON property `availability`
2481
2509
  # @return [String]
2482
2510
  attr_accessor :availability
@@ -2493,9 +2521,9 @@ module Google
2493
2521
 
2494
2522
  # The brands of the product. A maximum of 30 brands are allowed. Each brand must
2495
2523
  # 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).
2524
+ # an INVALID_ARGUMENT error is returned. Corresponding properties: Google
2525
+ # Merchant Center property [brand](https://support.google.com/merchants/answer/
2526
+ # 6324351). Schema.org property [Product.brand](https://schema.org/brand).
2499
2527
  # Corresponds to the JSON property `brands`
2500
2528
  # @return [Array<String>]
2501
2529
  attr_accessor :brands
@@ -2512,10 +2540,10 @@ module Google
2512
2540
  # INVALID_ARGUMENT error is returned. At most 250 values are allowed per Product.
2513
2541
  # Empty values are not allowed. Each value must be a UTF-8 encoded string with
2514
2542
  # 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
2543
+ # returned. Corresponding properties: Google Merchant Center property
2544
+ # google_product_category. Schema.org property [Product.category] (https://
2545
+ # schema.org/category). [mc_google_product_category]: https://support.google.com/
2546
+ # merchants/answer/6324436
2519
2547
  # Corresponds to the JSON property `categories`
2520
2548
  # @return [Array<String>]
2521
2549
  attr_accessor :categories
@@ -2535,19 +2563,19 @@ module Google
2535
2563
  # The condition of the product. Strongly encouraged to use the standard values: "
2536
2564
  # new", "refurbished", "used". A maximum of 5 values are allowed per Product.
2537
2565
  # 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).
2566
+ # characters. Otherwise, an INVALID_ARGUMENT error is returned. Corresponding
2567
+ # properties: Google Merchant Center property [condition](https://support.google.
2568
+ # com/merchants/answer/6324469). Schema.org property [Offer.itemCondition](https:
2569
+ # //schema.org/itemCondition).
2542
2570
  # Corresponds to the JSON property `conditions`
2543
2571
  # @return [Array<String>]
2544
2572
  attr_accessor :conditions
2545
2573
 
2546
2574
  # Product description. This field must be a UTF-8 encoded string with a length
2547
2575
  # 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).
2576
+ # Corresponding properties: Google Merchant Center property [description](https:/
2577
+ # /support.google.com/merchants/answer/6324468). Schema.org property [Product.
2578
+ # description](https://schema.org/description).
2551
2579
  # Corresponds to the JSON property `description`
2552
2580
  # @return [String]
2553
2581
  attr_accessor :description
@@ -2557,8 +2585,8 @@ module Google
2557
2585
  # expire_time. However, the product can still be retrieved by ProductService.
2558
2586
  # GetProduct and ProductService.ListProducts. expire_time must be later than
2559
2587
  # 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).
2588
+ # Corresponding properties: Google Merchant Center property [expiration_date](
2589
+ # https://support.google.com/merchants/answer/6324499).
2562
2590
  # Corresponds to the JSON property `expireTime`
2563
2591
  # @return [String]
2564
2592
  attr_accessor :expire_time
@@ -2573,12 +2601,13 @@ module Google
2573
2601
  # The Global Trade Item Number (GTIN) of the product. This field must be a UTF-8
2574
2602
  # encoded string with a length limit of 128 characters. Otherwise, an
2575
2603
  # 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.
2604
+ # an INVALID_ARGUMENT error is returned. Corresponding properties: Google
2605
+ # Merchant Center property [gtin](https://support.google.com/merchants/answer/
2606
+ # 6324461). Schema.org property [Product.isbn](https://schema.org/isbn), [
2607
+ # Product.gtin8](https://schema.org/gtin8), [Product.gtin12](https://schema.org/
2608
+ # gtin12), [Product.gtin13](https://schema.org/gtin13), or [Product.gtin14](
2609
+ # https://schema.org/gtin14). If the value is not a valid GTIN, an
2610
+ # INVALID_ARGUMENT error is returned.
2582
2611
  # Corresponds to the JSON property `gtin`
2583
2612
  # @return [String]
2584
2613
  attr_accessor :gtin
@@ -2587,27 +2616,28 @@ module Google
2587
2616
  # example, this field is "id_1", if name is `projects/*/locations/global/
2588
2617
  # catalogs/default_catalog/branches/default_branch/products/id_1`. This field
2589
2618
  # 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).
2619
+ # Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
2620
+ # Google Merchant Center property [id](https://support.google.com/merchants/
2621
+ # answer/6324405). Schema.org property [Product.sku](https://schema.org/sku).
2593
2622
  # Corresponds to the JSON property `id`
2594
2623
  # @return [String]
2595
2624
  attr_accessor :id
2596
2625
 
2597
2626
  # 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).
2627
+ # first. A maximum of 300 images are allowed. Corresponding properties: Google
2628
+ # Merchant Center property [image_link](https://support.google.com/merchants/
2629
+ # answer/6324350). Schema.org property [Product.image](https://schema.org/image).
2601
2630
  # Corresponds to the JSON property `images`
2602
2631
  # @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaImage>]
2603
2632
  attr_accessor :images
2604
2633
 
2605
2634
  # 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.
2635
+ # tags defined by [BCP 47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt). For
2636
+ # product prediction, this field is ignored and the model automatically detects
2637
+ # the text language. The Product can include text in different languages, but
2638
+ # duplicating Products to provide text in multiple languages can result in
2639
+ # degraded model performance. For product search this field is in use. It
2640
+ # defaults to "en-US" if unset.
2611
2641
  # Corresponds to the JSON property `languageCode`
2612
2642
  # @return [String]
2613
2643
  attr_accessor :language_code
@@ -2615,9 +2645,9 @@ module Google
2615
2645
  # The material of the product. For example, "leather", "wooden". A maximum of 20
2616
2646
  # values are allowed. Each value must be a UTF-8 encoded string with a length
2617
2647
  # 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).
2648
+ # Corresponding properties: Google Merchant Center property [material](https://
2649
+ # support.google.com/merchants/answer/6324410). Schema.org property [Product.
2650
+ # material](https://schema.org/material).
2621
2651
  # Corresponds to the JSON property `materials`
2622
2652
  # @return [Array<String>]
2623
2653
  attr_accessor :materials
@@ -2631,9 +2661,10 @@ module Google
2631
2661
  # The pattern or graphic print of the product. For example, "striped", "polka
2632
2662
  # dot", "paisley". A maximum of 20 values are allowed per Product. Each value
2633
2663
  # 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).
2664
+ # Otherwise, an INVALID_ARGUMENT error is returned. Corresponding properties:
2665
+ # Google Merchant Center property [pattern](https://support.google.com/merchants/
2666
+ # answer/6324483). Schema.org property [Product.pattern](https://schema.org/
2667
+ # pattern).
2637
2668
  # Corresponds to the JSON property `patterns`
2638
2669
  # @return [Array<String>]
2639
2670
  attr_accessor :patterns
@@ -2648,10 +2679,9 @@ module Google
2648
2679
  # can only be empty or set to the same value as id. For VARIANT Products, this
2649
2680
  # field cannot be empty. A maximum of 2,000 products are allowed to share the
2650
2681
  # 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).
2682
+ # Corresponding properties: Google Merchant Center property [item_group_id](
2683
+ # https://support.google.com/merchants/answer/6324507). Schema.org property [
2684
+ # Product.inProductGroupWithID](https://schema.org/inProductGroupWithID).
2655
2685
  # Corresponds to the JSON property `primaryProductId`
2656
2686
  # @return [String]
2657
2687
  attr_accessor :primary_product_id
@@ -2700,10 +2730,11 @@ module Google
2700
2730
  # system and size type are empty, while size value is "32 inches". A maximum of
2701
2731
  # 20 values are allowed per Product. Each value must be a UTF-8 encoded string
2702
2732
  # 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).
2733
+ # returned. Corresponding properties: Google Merchant Center property [size](
2734
+ # https://support.google.com/merchants/answer/6324492), [size_type](https://
2735
+ # support.google.com/merchants/answer/6324497), and [size_system](https://
2736
+ # support.google.com/merchants/answer/6324502). Schema.org property [Product.
2737
+ # size](https://schema.org/size).
2707
2738
  # Corresponds to the JSON property `sizes`
2708
2739
  # @return [Array<String>]
2709
2740
  attr_accessor :sizes
@@ -2712,17 +2743,18 @@ module Google
2712
2743
  # Product. This value must be a UTF-8 encoded string with a length limit of 1,
2713
2744
  # 000 characters. Otherwise, an INVALID_ARGUMENT error is returned. This tag can
2714
2745
  # 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).
2746
+ # PredictRequest.filter. Corresponding properties: Google Merchant Center
2747
+ # property [custom_label_0–4](https://support.google.com/merchants/answer/
2748
+ # 6324473).
2717
2749
  # Corresponds to the JSON property `tags`
2718
2750
  # @return [Array<String>]
2719
2751
  attr_accessor :tags
2720
2752
 
2721
2753
  # Required. Product title. This field must be a UTF-8 encoded string with a
2722
2754
  # 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).
2755
+ # returned. Corresponding properties: Google Merchant Center property [title](
2756
+ # https://support.google.com/merchants/answer/6324415). Schema.org property [
2757
+ # Product.name](https://schema.org/name).
2726
2758
  # Corresponds to the JSON property `title`
2727
2759
  # @return [String]
2728
2760
  attr_accessor :title
@@ -2748,9 +2780,9 @@ module Google
2748
2780
  # recommended to provide a valid uri for the product, otherwise the service
2749
2781
  # performance could be significantly degraded. This field must be a UTF-8
2750
2782
  # 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).
2783
+ # INVALID_ARGUMENT error is returned. Corresponding properties: Google Merchant
2784
+ # Center property [link](https://support.google.com/merchants/answer/6324416).
2785
+ # Schema.org property [Offer.url](https://schema.org/url).
2754
2786
  # Corresponds to the JSON property `uri`
2755
2787
  # @return [String]
2756
2788
  attr_accessor :uri
@@ -3360,25 +3392,26 @@ module Google
3360
3392
  # @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserInfo]
3361
3393
  attr_accessor :user_info
3362
3394
 
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
- # inventory(place_id,attributes.key), where key is any key in the Product.
3372
- # inventories.attributes map. * attributes.key, where key is any key in the
3373
- # Product.attributes map. * pickupInStore.id, where id is any FulfillmentInfo.
3374
- # place_ids for FulfillmentInfo.type "pickup-in-store". * shipToStore.id, where
3375
- # id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "ship-to-store". *
3376
- # sameDayDelivery.id, where id is any FulfillmentInfo.place_ids for
3377
- # FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id, where id is
3378
- # any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-delivery". *
3379
- # customFulfillment1.id, where id is any FulfillmentInfo.place_ids for
3380
- # FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is any
3381
- # FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-2". *
3395
+ # The keys to fetch and rollup the matching variant Products attributes,
3396
+ # FulfillmentInfo or LocalInventorys attributes. The attributes from all the
3397
+ # matching variant Products or LocalInventorys are merged and de-duplicated.
3398
+ # Notice that rollup attributes will lead to extra query latency. Maximum number
3399
+ # of keys is 30. For FulfillmentInfo, a fulfillment type and a fulfillment ID
3400
+ # must be provided in the format of "fulfillmentType.fulfillmentId". E.g., in "
3401
+ # pickupInStore.store123", "pickupInStore" is fulfillment type and "store123" is
3402
+ # the store ID. Supported keys are: * colorFamilies * price * originalPrice *
3403
+ # discount * variantId * inventory(place_id,price) * inventory(place_id,
3404
+ # original_price) * inventory(place_id,attributes.key), where key is any key in
3405
+ # the Product.inventories.attributes map. * attributes.key, where key is any key
3406
+ # in the Product.attributes map. * pickupInStore.id, where id is any
3407
+ # FulfillmentInfo.place_ids for FulfillmentInfo.type "pickup-in-store". *
3408
+ # shipToStore.id, where id is any FulfillmentInfo.place_ids for FulfillmentInfo.
3409
+ # type "ship-to-store". * sameDayDelivery.id, where id is any FulfillmentInfo.
3410
+ # place_ids for FulfillmentInfo.type "same-day-delivery". * nextDayDelivery.id,
3411
+ # where id is any FulfillmentInfo.place_ids for FulfillmentInfo.type "next-day-
3412
+ # delivery". * customFulfillment1.id, where id is any FulfillmentInfo.place_ids
3413
+ # for FulfillmentInfo.type "custom-type-1". * customFulfillment2.id, where id is
3414
+ # any FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-2". *
3382
3415
  # customFulfillment3.id, where id is any FulfillmentInfo.place_ids for
3383
3416
  # FulfillmentInfo.type "custom-type-3". * customFulfillment4.id, where id is any
3384
3417
  # FulfillmentInfo.place_ids for FulfillmentInfo.type "custom-type-4". *
@@ -3598,8 +3631,8 @@ module Google
3598
3631
  # customFulfillment1" * "customFulfillment2" * "customFulfillment3" * "
3599
3632
  # customFulfillment4" * "customFulfillment5" * "inventory(place_id,attributes.
3600
3633
  # key)" * numerical_field = * "price" * "discount" * "rating" * "ratingCount" * "
3601
- # attributes.key" * "inventory(place_id,price)" * "inventory(place_id,attributes.
3602
- # key)"
3634
+ # attributes.key" * "inventory(place_id,price)" * "inventory(place_id,
3635
+ # original_price)" * "inventory(place_id,attributes.key)"
3603
3636
  # Corresponds to the JSON property `key`
3604
3637
  # @return [String]
3605
3638
  attr_accessor :key
@@ -3698,6 +3731,12 @@ module Google
3698
3731
  class GoogleCloudRetailV2betaSearchResponse
3699
3732
  include Google::Apis::Core::Hashable
3700
3733
 
3734
+ # The fully qualified resource name of applied [controls](https://cloud.google.
3735
+ # com/retail/docs/serving-control-rules).
3736
+ # Corresponds to the JSON property `appliedControls`
3737
+ # @return [Array<String>]
3738
+ attr_accessor :applied_controls
3739
+
3701
3740
  # A unique search token. This should be included in the UserEvent logs resulting
3702
3741
  # from this search, which enables accurate attribution of search model
3703
3742
  # performance.
@@ -3752,6 +3791,7 @@ module Google
3752
3791
 
3753
3792
  # Update properties of this object
3754
3793
  def update!(**args)
3794
+ @applied_controls = args[:applied_controls] if args.key?(:applied_controls)
3755
3795
  @attribution_token = args[:attribution_token] if args.key?(:attribution_token)
3756
3796
  @corrected_query = args[:corrected_query] if args.key?(:corrected_query)
3757
3797
  @facets = args[:facets] if args.key?(:facets)
@@ -4024,12 +4064,15 @@ module Google
4024
4064
  class GoogleCloudRetailV2betaUserEvent
4025
4065
  include Google::Apis::Core::Hashable
4026
4066
 
4027
- # Extra user event features to include in the recommendation model. The key must
4028
- # be a UTF-8 encoded string with a length limit of 5,000 characters. Otherwise,
4029
- # an INVALID_ARGUMENT error is returned. For product recommendation, an example
4030
- # of extra user information is traffic_channel, i.e. how user arrives at the
4031
- # site. Users can arrive at the site by coming to the site directly, or coming
4032
- # through Google search, and etc.
4067
+ # Extra user event features to include in the recommendation model. This field
4068
+ # needs to pass all below criteria, otherwise an INVALID_ARGUMENT error is
4069
+ # returned: * The key must be a UTF-8 encoded string with a length limit of 5,
4070
+ # 000 characters. * For text attributes, at most 400 values are allowed. Empty
4071
+ # values are not allowed. Each value must be a UTF-8 encoded string with a
4072
+ # length limit of 256 characters. * For number attributes, at most 400 values
4073
+ # are allowed. For product recommendation, an example of extra user information
4074
+ # is traffic_channel, i.e. how user arrives at the site. Users can arrive at the
4075
+ # site by coming to the site directly, or coming through Google search, and etc.
4033
4076
  # Corresponds to the JSON property `attributes`
4034
4077
  # @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCustomAttribute>]
4035
4078
  attr_accessor :attributes
@@ -4071,12 +4114,11 @@ module Google
4071
4114
 
4072
4115
  # Required. User event type. Allowed values are: * `add-to-cart`: Products being
4073
4116
  # added to cart. * `category-page-view`: Special pages such as sale or promotion
4074
- # pages viewed. * `completion`: Completion query result showed/clicked. * `
4075
- # detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage
4076
- # viewed. * `promotion-offered`: Promotion is offered to a user. * `promotion-
4077
- # not-offered`: Promotion is not offered to a user. * `purchase-complete`: User
4078
- # finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`:
4079
- # User viewing a shopping cart.
4117
+ # pages viewed. * `detail-page-view`: Products detail page viewed. * `home-page-
4118
+ # view`: Homepage viewed. * `promotion-offered`: Promotion is offered to a user.
4119
+ # * `promotion-not-offered`: Promotion is not offered to a user. * `purchase-
4120
+ # complete`: User finishing a purchase. * `search`: Product search. * `shopping-
4121
+ # cart-page-view`: User viewing a shopping cart.
4080
4122
  # Corresponds to the JSON property `eventType`
4081
4123
  # @return [String]
4082
4124
  attr_accessor :event_type
@@ -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.22.0"
19
+ GEM_VERSION = "0.23.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 = "20211116"
25
+ REVISION = "20211203"
26
26
  end
27
27
  end
28
28
  end
@@ -298,6 +298,18 @@ module Google
298
298
  include Google::Apis::Core::JsonObjectSupport
299
299
  end
300
300
 
301
+ class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
301
313
  class GoogleCloudRetailV2alphaUserEventImportSummary
302
314
  class Representation < Google::Apis::Core::JsonRepresentation; end
303
315
 
@@ -1142,6 +1154,18 @@ module Google
1142
1154
  end
1143
1155
  end
1144
1156
 
1157
+ class GoogleCloudRetailV2alphaSetLocalInventoriesMetadata
1158
+ # @private
1159
+ class Representation < Google::Apis::Core::JsonRepresentation
1160
+ end
1161
+ end
1162
+
1163
+ class GoogleCloudRetailV2alphaSetLocalInventoriesResponse
1164
+ # @private
1165
+ class Representation < Google::Apis::Core::JsonRepresentation
1166
+ end
1167
+ end
1168
+
1145
1169
  class GoogleCloudRetailV2alphaUserEventImportSummary
1146
1170
  # @private
1147
1171
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1763,6 +1787,7 @@ module Google
1763
1787
  class GoogleCloudRetailV2betaSearchResponse
1764
1788
  # @private
1765
1789
  class Representation < Google::Apis::Core::JsonRepresentation
1790
+ collection :applied_controls, as: 'appliedControls'
1766
1791
  property :attribution_token, as: 'attributionToken'
1767
1792
  property :corrected_query, as: 'correctedQuery'
1768
1793
  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.22.0
4
+ version: 0.23.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-12-06 00:00:00.000000000 Z
11
+ date: 2021-12-13 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.22.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2beta/v0.23.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: []