google-apis-retail_v2 0.104.0 → 0.106.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: 5e4e020269c2fd9334adafc8ccf6a5acb7a16619d499d3849f81e2e541b7810f
4
- data.tar.gz: e942faa1ecc147b8eb95feb629ca8e37a489c0ba58372c7c6c07fafd84363987
3
+ metadata.gz: bf0a4e16920e93322c8fc4f9b70dd31188f887482ba65a9f08fcb0c6278665e0
4
+ data.tar.gz: e6feffc94ad2da927cb4c6e1872c2839ec6a4132cb267be3f3518622967a32ac
5
5
  SHA512:
6
- metadata.gz: f943a4ec4bce7c1aa82de4a691cd9c8ffcbb13664e1908b79408e8816df91b7e1e31ea999550c683a314d47b12153629afe9f3d6c171d368447a32e41d3168fe
7
- data.tar.gz: 3ce303d8dc6ea42912f9cffaab9c14c0aa4c21a22e60760fe776731216b1975d99518946122e05f20a881d436a1fcf292f460f9d9535b05b2b1deeb6d9ed6ec7
6
+ metadata.gz: 3301fa6d84ee7635be9d846f72393fd97de2df27f5d031eb02778a3757acbb548d86b354f776a65d96ee5185da6bcb22add1e70fe600633b01a0b77b1cc0a98f
7
+ data.tar.gz: e9f0f3a4d00ada35399ae233c44c363a33c5913979863c3ff30048d5f320bc7703b07c903d1fedf765594e042527bcaf424275f398c34ae183065de62cf973cf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-retail_v2
2
2
 
3
+ ### v0.106.0 (2024-11-24)
4
+
5
+ * Regenerated from discovery document revision 20241114
6
+
7
+ ### v0.105.0 (2024-11-03)
8
+
9
+ * Regenerated from discovery document revision 20241024
10
+
3
11
  ### v0.104.0 (2024-10-27)
4
12
 
5
13
  * Regenerated from discovery document revision 20241017
@@ -760,14 +760,13 @@ module Google
760
760
  # Output only. Indicates whether this attribute has been used by any products. `
761
761
  # True` if at least one Product is using this attribute in Product.attributes.
762
762
  # Otherwise, this field is `False`. CatalogAttribute can be pre-loaded by using
763
- # CatalogService.AddCatalogAttribute, CatalogService.ImportCatalogAttributes, or
764
- # CatalogService.UpdateAttributesConfig APIs. This field is `False` for pre-
765
- # loaded CatalogAttributes. Only pre-loaded catalog attributes that are neither
766
- # in use by products nor predefined can be deleted. Catalog attributes that are
767
- # either in use by products or are predefined attributes cannot be deleted;
768
- # however, their configuration properties will reset to default values upon
769
- # removal request. After catalog changes, it takes about 10 minutes for this
770
- # field to update.
763
+ # CatalogService.AddCatalogAttribute or CatalogService.UpdateAttributesConfig
764
+ # APIs. This field is `False` for pre-loaded CatalogAttributes. Only pre-loaded
765
+ # catalog attributes that are neither in use by products nor predefined can be
766
+ # deleted. Catalog attributes that are either in use by products or are
767
+ # predefined attributes cannot be deleted; however, their configuration
768
+ # properties will reset to default values upon removal request. After catalog
769
+ # changes, it takes about 10 minutes for this field to update.
771
770
  # Corresponds to the JSON property `inUse`
772
771
  # @return [Boolean]
773
772
  attr_accessor :in_use
@@ -1577,7 +1576,7 @@ module Google
1577
1576
  end
1578
1577
  end
1579
1578
 
1580
- # Metadata for active A/B testing Experiment.
1579
+ # Metadata for active A/B testing experiment.
1581
1580
  class GoogleCloudRetailV2ExperimentInfo
1582
1581
  include Google::Apis::Core::Hashable
1583
1582
 
@@ -1608,8 +1607,8 @@ module Google
1608
1607
  class GoogleCloudRetailV2ExperimentInfoServingConfigExperiment
1609
1608
  include Google::Apis::Core::Hashable
1610
1609
 
1611
- # The fully qualified resource name of the serving config Experiment.VariantArm.
1612
- # serving_config_id responsible for generating the search response. For example:
1610
+ # The fully qualified resource name of the serving config `Experiment.VariantArm.
1611
+ # serving_config_id` responsible for generating the search response. For example:
1613
1612
  # `projects/*/locations/*/catalogs/*/servingConfigs/*`.
1614
1613
  # Corresponds to the JSON property `experimentServingConfig`
1615
1614
  # @return [String]
@@ -2465,8 +2464,8 @@ module Google
2465
2464
  class GoogleCloudRetailV2LocalInventory
2466
2465
  include Google::Apis::Core::Hashable
2467
2466
 
2468
- # Additional local inventory attributes, for example, store name, promotion tags,
2469
- # etc. This field needs to pass all below criteria, otherwise an
2467
+ # Optional. Additional local inventory attributes, for example, store name,
2468
+ # promotion tags, etc. This field needs to pass all below criteria, otherwise an
2470
2469
  # INVALID_ARGUMENT error is returned: * At most 30 attributes are allowed. * The
2471
2470
  # key must be a UTF-8 encoded string with a length limit of 32 characters. * The
2472
2471
  # key must match the pattern: `a-zA-Z0-9*`. For example, key0LikeThis or
@@ -2479,7 +2478,20 @@ module Google
2479
2478
  # @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute>]
2480
2479
  attr_accessor :attributes
2481
2480
 
2482
- # Input only. Supported fulfillment types. Valid fulfillment type values include
2481
+ # Optional. The availability of the Product at this place_id. Default to
2482
+ # Availability.IN_STOCK. For primary products with variants set the availability
2483
+ # of the primary as Availability.OUT_OF_STOCK and set the true availability at
2484
+ # the variant level. This way the primary product will be considered "in stock"
2485
+ # as long as it has at least one variant in stock. For primary products with no
2486
+ # variants set the true availability at the primary level. Corresponding
2487
+ # properties: Google Merchant Center property [availability](https://support.
2488
+ # google.com/merchants/answer/6324448). Schema.org property [Offer.availability](
2489
+ # https://schema.org/availability).
2490
+ # Corresponds to the JSON property `availability`
2491
+ # @return [String]
2492
+ attr_accessor :availability
2493
+
2494
+ # Optional. Supported fulfillment types. Valid fulfillment type values include
2483
2495
  # commonly used types (such as pickup in store and same day delivery), and
2484
2496
  # custom types. Customers have to map custom types to their display names before
2485
2497
  # rendering UI. Supported values: * "pickup-in-store" * "ship-to-store" * "same-
@@ -2491,7 +2503,7 @@ module Google
2491
2503
  # @return [Array<String>]
2492
2504
  attr_accessor :fulfillment_types
2493
2505
 
2494
- # The place ID for the current set of inventory information.
2506
+ # Required. The place ID for the current set of inventory information.
2495
2507
  # Corresponds to the JSON property `placeId`
2496
2508
  # @return [String]
2497
2509
  attr_accessor :place_id
@@ -2508,6 +2520,7 @@ module Google
2508
2520
  # Update properties of this object
2509
2521
  def update!(**args)
2510
2522
  @attributes = args[:attributes] if args.key?(:attributes)
2523
+ @availability = args[:availability] if args.key?(:availability)
2511
2524
  @fulfillment_types = args[:fulfillment_types] if args.key?(:fulfillment_types)
2512
2525
  @place_id = args[:place_id] if args.key?(:place_id)
2513
2526
  @price_info = args[:price_info] if args.key?(:price_info)
@@ -2840,6 +2853,52 @@ module Google
2840
2853
  end
2841
2854
  end
2842
2855
 
2856
+ # Metadata for pinning to be returned in the response. This is used for
2857
+ # distinguishing between applied vs dropped pins.
2858
+ class GoogleCloudRetailV2PinControlMetadata
2859
+ include Google::Apis::Core::Hashable
2860
+
2861
+ # Map of all matched pins, keyed by pin position.
2862
+ # Corresponds to the JSON property `allMatchedPins`
2863
+ # @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadataProductPins>]
2864
+ attr_accessor :all_matched_pins
2865
+
2866
+ # Map of pins that were dropped due to overlap with other matching pins, keyed
2867
+ # by pin position.
2868
+ # Corresponds to the JSON property `droppedPins`
2869
+ # @return [Hash<String,Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadataProductPins>]
2870
+ attr_accessor :dropped_pins
2871
+
2872
+ def initialize(**args)
2873
+ update!(**args)
2874
+ end
2875
+
2876
+ # Update properties of this object
2877
+ def update!(**args)
2878
+ @all_matched_pins = args[:all_matched_pins] if args.key?(:all_matched_pins)
2879
+ @dropped_pins = args[:dropped_pins] if args.key?(:dropped_pins)
2880
+ end
2881
+ end
2882
+
2883
+ # List of product ids which have associated pins.
2884
+ class GoogleCloudRetailV2PinControlMetadataProductPins
2885
+ include Google::Apis::Core::Hashable
2886
+
2887
+ # List of product ids which have associated pins.
2888
+ # Corresponds to the JSON property `productId`
2889
+ # @return [Array<String>]
2890
+ attr_accessor :product_id
2891
+
2892
+ def initialize(**args)
2893
+ update!(**args)
2894
+ end
2895
+
2896
+ # Update properties of this object
2897
+ def update!(**args)
2898
+ @product_id = args[:product_id] if args.key?(:product_id)
2899
+ end
2900
+ end
2901
+
2843
2902
  # Request message for Predict method.
2844
2903
  class GoogleCloudRetailV2PredictRequest
2845
2904
  include Google::Apis::Core::Hashable
@@ -5445,7 +5504,7 @@ module Google
5445
5504
  # @return [String]
5446
5505
  attr_accessor :corrected_query
5447
5506
 
5448
- # Metadata related to A/B testing Experiment associated with this response. Only
5507
+ # Metadata related to A/B testing experiment associated with this response. Only
5449
5508
  # exists when an experiment is triggered.
5450
5509
  # Corresponds to the JSON property `experimentInfo`
5451
5510
  # @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2ExperimentInfo>]
@@ -5468,6 +5527,12 @@ module Google
5468
5527
  # @return [String]
5469
5528
  attr_accessor :next_page_token
5470
5529
 
5530
+ # Metadata for pinning to be returned in the response. This is used for
5531
+ # distinguishing between applied vs dropped pins.
5532
+ # Corresponds to the JSON property `pinControlMetadata`
5533
+ # @return [Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadata]
5534
+ attr_accessor :pin_control_metadata
5535
+
5471
5536
  # Information describing query expansion including whether expansion has
5472
5537
  # occurred.
5473
5538
  # Corresponds to the JSON property `queryExpansionInfo`
@@ -5513,6 +5578,7 @@ module Google
5513
5578
  @facets = args[:facets] if args.key?(:facets)
5514
5579
  @invalid_condition_boost_specs = args[:invalid_condition_boost_specs] if args.key?(:invalid_condition_boost_specs)
5515
5580
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
5581
+ @pin_control_metadata = args[:pin_control_metadata] if args.key?(:pin_control_metadata)
5516
5582
  @query_expansion_info = args[:query_expansion_info] if args.key?(:query_expansion_info)
5517
5583
  @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri)
5518
5584
  @results = args[:results] if args.key?(:results)
@@ -6577,12 +6643,11 @@ module Google
6577
6643
  # @return [String]
6578
6644
  attr_accessor :ip_address
6579
6645
 
6580
- # User agent as included in the HTTP header. Required for getting SearchResponse.
6581
- # sponsored_results. The field must be a UTF-8 encoded string with a length
6582
- # limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT error is returned.
6583
- # This should not be set when using the client side event reporting with GTM or
6584
- # JavaScript tag in UserEventService.CollectUserEvent or if direct_user_request
6585
- # is set.
6646
+ # User agent as included in the HTTP header. The field must be a UTF-8 encoded
6647
+ # string with a length limit of 1,000 characters. Otherwise, an INVALID_ARGUMENT
6648
+ # error is returned. This should not be set when using the client side event
6649
+ # reporting with GTM or JavaScript tag in UserEventService.CollectUserEvent or
6650
+ # if direct_user_request is set.
6586
6651
  # Corresponds to the JSON property `userAgent`
6587
6652
  # @return [String]
6588
6653
  attr_accessor :user_agent
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2
18
18
  # Version of the google-apis-retail_v2 gem
19
- GEM_VERSION = "0.104.0"
19
+ GEM_VERSION = "0.106.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241017"
25
+ REVISION = "20241114"
26
26
  end
27
27
  end
28
28
  end
@@ -502,6 +502,18 @@ module Google
502
502
  include Google::Apis::Core::JsonObjectSupport
503
503
  end
504
504
 
505
+ class GoogleCloudRetailV2PinControlMetadata
506
+ class Representation < Google::Apis::Core::JsonRepresentation; end
507
+
508
+ include Google::Apis::Core::JsonObjectSupport
509
+ end
510
+
511
+ class GoogleCloudRetailV2PinControlMetadataProductPins
512
+ class Representation < Google::Apis::Core::JsonRepresentation; end
513
+
514
+ include Google::Apis::Core::JsonObjectSupport
515
+ end
516
+
505
517
  class GoogleCloudRetailV2PredictRequest
506
518
  class Representation < Google::Apis::Core::JsonRepresentation; end
507
519
 
@@ -2190,6 +2202,7 @@ module Google
2190
2202
  class Representation < Google::Apis::Core::JsonRepresentation
2191
2203
  hash :attributes, as: 'attributes', class: Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2CustomAttribute::Representation
2192
2204
 
2205
+ property :availability, as: 'availability'
2193
2206
  collection :fulfillment_types, as: 'fulfillmentTypes'
2194
2207
  property :place_id, as: 'placeId'
2195
2208
  property :price_info, as: 'priceInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2PriceInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2PriceInfo::Representation
@@ -2284,6 +2297,23 @@ module Google
2284
2297
  end
2285
2298
  end
2286
2299
 
2300
+ class GoogleCloudRetailV2PinControlMetadata
2301
+ # @private
2302
+ class Representation < Google::Apis::Core::JsonRepresentation
2303
+ hash :all_matched_pins, as: 'allMatchedPins', class: Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadataProductPins, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadataProductPins::Representation
2304
+
2305
+ hash :dropped_pins, as: 'droppedPins', class: Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadataProductPins, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadataProductPins::Representation
2306
+
2307
+ end
2308
+ end
2309
+
2310
+ class GoogleCloudRetailV2PinControlMetadataProductPins
2311
+ # @private
2312
+ class Representation < Google::Apis::Core::JsonRepresentation
2313
+ collection :product_id, as: 'productId'
2314
+ end
2315
+ end
2316
+
2287
2317
  class GoogleCloudRetailV2PredictRequest
2288
2318
  # @private
2289
2319
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2889,6 +2919,8 @@ module Google
2889
2919
  collection :invalid_condition_boost_specs, as: 'invalidConditionBoostSpecs', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestBoostSpecConditionBoostSpec::Representation
2890
2920
 
2891
2921
  property :next_page_token, as: 'nextPageToken'
2922
+ property :pin_control_metadata, as: 'pinControlMetadata', class: Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadata, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2PinControlMetadata::Representation
2923
+
2892
2924
  property :query_expansion_info, as: 'queryExpansionInfo', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchResponseQueryExpansionInfo::Representation
2893
2925
 
2894
2926
  property :redirect_uri, as: 'redirectUri'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.104.0
4
+ version: 0.106.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: 2024-10-27 00:00:00.000000000 Z
11
+ date: 2024-12-04 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_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.104.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2/v0.106.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2
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.5.21
78
+ rubygems_version: 3.5.22
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Vertex AI Search for Retail API V2