google-apis-retail_v2alpha 0.107.0 → 0.109.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: 11482a9ec2b7cb4edd6a49f9ae06a70c127cc74fa1ed84101c3ac0f639a0469e
4
- data.tar.gz: 649c03ea1873891b701fe37d5b6d983a766a9fc33f4a350517969056e9f74279
3
+ metadata.gz: a91bfce9cdf26560c957342a6c0e4d4e56aa9f9c921a6663f923cec0cfe2ef40
4
+ data.tar.gz: 786a77aa5f8359e960d2accfc1b724c97125bf731a530c1a9175ab22f49849be
5
5
  SHA512:
6
- metadata.gz: 21dc4de817cd26c8275deea96166864cf6e3c72348e21513c83f2b1ddc2a483511328c987cf9c59c6b25e9876a73c18f90e12da427f44e3dc2ca1e80348a9c0d
7
- data.tar.gz: 055a8dcdf7e2997e32a454c9a7258292c58b36c5a710fe2fb4ba3fa1b6c2b836355f621ab6009b7f6f3d79afa145eba3cd9a61da34df565720a344dc4ec1844a
6
+ metadata.gz: 3f971d6a5ac40dd9f22c3922b9af1b6ddd122cc602d0ecfedbd2ee7df3df96fc020cbeb3b56bb2fe603af4c8adda7c2dcf80b2a756f6c27d03ef4ea6bc3bdec8
7
+ data.tar.gz: 5fd5f0426c8e1cfe7794ca498240127c5da31b8f2888a1232b63336336790ebc26610fd397f387d1672d8b1c49ced392360f56a3c886095d3c9338bd9ad16c75
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-retail_v2alpha
2
2
 
3
+ ### v0.109.0 (2025-02-26)
4
+
5
+ * Regenerated from discovery document revision 20250221
6
+
7
+ ### v0.108.0 (2025-01-12)
8
+
9
+ * Regenerated from discovery document revision 20250107
10
+ * Regenerated using generator version 0.16.0
11
+
3
12
  ### v0.107.0 (2025-01-05)
4
13
 
5
14
  * Regenerated from discovery document revision 20241231
data/OVERVIEW.md CHANGED
@@ -1,6 +1,6 @@
1
- # Simple REST client for version V2alpha of the Vertex AI Search for Retail API
1
+ # Simple REST client for version V2alpha of the Vertex AI Search for commerce API
2
2
 
3
- This is a simple client library for version V2alpha of the Vertex AI Search for Retail API. It provides:
3
+ This is a simple client library for version V2alpha of the Vertex AI Search for commerce API. It provides:
4
4
 
5
5
  * A client object that connects to the HTTP/JSON REST endpoint for the service.
6
6
  * Ruby objects for data structures related to the service.
@@ -65,7 +65,7 @@ More detailed descriptions of the Google simple REST clients are available in tw
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Retail service in particular.)
67
67
 
68
- For reference information on specific calls in the Vertex AI Search for Retail API, see the {Google::Apis::RetailV2alpha::CloudRetailService class reference docs}.
68
+ For reference information on specific calls in the Vertex AI Search for commerce API, see the {Google::Apis::RetailV2alpha::CloudRetailService class reference docs}.
69
69
 
70
70
  ## Which client should I use?
71
71
 
@@ -2376,12 +2376,11 @@ module Google
2376
2376
  end
2377
2377
  end
2378
2378
 
2379
- # Resource that represents attribute results. The list of suggestions for the
2380
- # attribute.
2379
+ # Resource that represents attribute results.
2381
2380
  class GoogleCloudRetailV2alphaCompleteQueryResponseAttributeResult
2382
2381
  include Google::Apis::Core::Hashable
2383
2382
 
2384
- #
2383
+ # The list of suggestions for the attribute.
2385
2384
  # Corresponds to the JSON property `suggestions`
2386
2385
  # @return [Array<String>]
2387
2386
  attr_accessor :suggestions
@@ -6461,6 +6460,21 @@ module Google
6461
6460
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleOnewaySynonymsAction]
6462
6461
  attr_accessor :oneway_synonyms_action
6463
6462
 
6463
+ # Pins one or more specified products to a specific position in the results. *
6464
+ # Rule Condition: Must specify non-empty Condition.query_terms (for search only)
6465
+ # or Condition.page_categories (for browse only), but can't specify both. *
6466
+ # Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
6467
+ # 1-based indexing). * Action Result: Will pin products with matching ids to the
6468
+ # position specified in the final result order. Example: Suppose the query is `
6469
+ # shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
6470
+ # then product with `pid1` will be pinned to the top position in the final
6471
+ # results. If multiple PinActions are matched to a single request the actions
6472
+ # will be processed from most to least recently updated. Pins to positions
6473
+ # larger than the max allowed page size of 120 are not allowed.
6474
+ # Corresponds to the JSON property `pinAction`
6475
+ # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRulePinAction]
6476
+ attr_accessor :pin_action
6477
+
6464
6478
  # Redirects a shopper to a specific page. * Rule Condition: Must specify
6465
6479
  # Condition.query_terms. * Action Input: Request Query * Action Result:
6466
6480
  # Redirects shopper to provided uri.
@@ -6506,6 +6520,7 @@ module Google
6506
6520
  @force_return_facet_action = args[:force_return_facet_action] if args.key?(:force_return_facet_action)
6507
6521
  @ignore_action = args[:ignore_action] if args.key?(:ignore_action)
6508
6522
  @oneway_synonyms_action = args[:oneway_synonyms_action] if args.key?(:oneway_synonyms_action)
6523
+ @pin_action = args[:pin_action] if args.key?(:pin_action)
6509
6524
  @redirect_action = args[:redirect_action] if args.key?(:redirect_action)
6510
6525
  @remove_facet_action = args[:remove_facet_action] if args.key?(:remove_facet_action)
6511
6526
  @replacement_action = args[:replacement_action] if args.key?(:replacement_action)
@@ -6731,6 +6746,43 @@ module Google
6731
6746
  end
6732
6747
  end
6733
6748
 
6749
+ # Pins one or more specified products to a specific position in the results. *
6750
+ # Rule Condition: Must specify non-empty Condition.query_terms (for search only)
6751
+ # or Condition.page_categories (for browse only), but can't specify both. *
6752
+ # Action Input: mapping of `[pin_position, product_id]` pairs (pin position uses
6753
+ # 1-based indexing). * Action Result: Will pin products with matching ids to the
6754
+ # position specified in the final result order. Example: Suppose the query is `
6755
+ # shoes`, the Condition.query_terms is `shoes` and the pin_map has ``1, "pid1"``,
6756
+ # then product with `pid1` will be pinned to the top position in the final
6757
+ # results. If multiple PinActions are matched to a single request the actions
6758
+ # will be processed from most to least recently updated. Pins to positions
6759
+ # larger than the max allowed page size of 120 are not allowed.
6760
+ class GoogleCloudRetailV2alphaRulePinAction
6761
+ include Google::Apis::Core::Hashable
6762
+
6763
+ # Required. A map of positions to product_ids. Partial matches per action are
6764
+ # allowed, if a certain position in the map is already filled that `[position,
6765
+ # product_id]` pair will be ignored but the rest may still be applied. This case
6766
+ # will only occur if multiple pin actions are matched to a single request, as
6767
+ # the map guarantees that pin positions are unique within the same action.
6768
+ # Duplicate product_ids are not permitted within a single pin map. The max size
6769
+ # of this map is 120, equivalent to the max [request page size](https://cloud.
6770
+ # google.com/retail/docs/reference/rest/v2/projects.locations.catalogs.
6771
+ # placements/search#request-body).
6772
+ # Corresponds to the JSON property `pinMap`
6773
+ # @return [Hash<String,String>]
6774
+ attr_accessor :pin_map
6775
+
6776
+ def initialize(**args)
6777
+ update!(**args)
6778
+ end
6779
+
6780
+ # Update properties of this object
6781
+ def update!(**args)
6782
+ @pin_map = args[:pin_map] if args.key?(:pin_map)
6783
+ end
6784
+ end
6785
+
6734
6786
  # Redirects a shopper to a specific page. * Rule Condition: Must specify
6735
6787
  # Condition.query_terms. * Action Input: Request Query * Action Result:
6736
6788
  # Redirects shopper to provided uri.
@@ -6915,6 +6967,15 @@ module Google
6915
6967
  # @return [Hash<String,String>]
6916
6968
  attr_accessor :labels
6917
6969
 
6970
+ # Optional. The BCP-47 language code, such as "en-US" or "sr-Latn" [list](https:/
6971
+ # /www.unicode.org/cldr/charts/46/summary/root.html). For more information, see [
6972
+ # Standardized codes](https://google.aip.dev/143). This field helps to better
6973
+ # interpret the query. If a value isn't specified, the query language code is
6974
+ # automatically detected, which may not be accurate.
6975
+ # Corresponds to the JSON property `languageCode`
6976
+ # @return [String]
6977
+ attr_accessor :language_code
6978
+
6918
6979
  # A 0-indexed integer that specifies the current offset (that is, starting
6919
6980
  # result location, amongst the Products deemed by the API as relevant) in search
6920
6981
  # results. This field is only considered if page_token is unset. If this field
@@ -6975,6 +7036,15 @@ module Google
6975
7036
  # @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec]
6976
7037
  attr_accessor :query_expansion_spec
6977
7038
 
7039
+ # Optional. The Unicode country/region code (CLDR) of a location, such as "US"
7040
+ # and "419" [list](https://www.unicode.org/cldr/charts/46/supplemental/
7041
+ # territory_information.html). For more information, see [Standardized codes](
7042
+ # https://google.aip.dev/143). If set, then results will be boosted based on the
7043
+ # region_code provided.
7044
+ # Corresponds to the JSON property `regionCode`
7045
+ # @return [String]
7046
+ attr_accessor :region_code
7047
+
6978
7048
  # The relevance threshold of the search results. Defaults to RelevanceThreshold.
6979
7049
  # HIGH, which means only the most relevant results are shown, and the least
6980
7050
  # number of results are returned. For more information, see [Adjust result size](
@@ -7059,6 +7129,7 @@ module Google
7059
7129
  @facet_specs = args[:facet_specs] if args.key?(:facet_specs)
7060
7130
  @filter = args[:filter] if args.key?(:filter)
7061
7131
  @labels = args[:labels] if args.key?(:labels)
7132
+ @language_code = args[:language_code] if args.key?(:language_code)
7062
7133
  @offset = args[:offset] if args.key?(:offset)
7063
7134
  @order_by = args[:order_by] if args.key?(:order_by)
7064
7135
  @page_categories = args[:page_categories] if args.key?(:page_categories)
@@ -7067,6 +7138,7 @@ module Google
7067
7138
  @personalization_spec = args[:personalization_spec] if args.key?(:personalization_spec)
7068
7139
  @query = args[:query] if args.key?(:query)
7069
7140
  @query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
7141
+ @region_code = args[:region_code] if args.key?(:region_code)
7070
7142
  @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
7071
7143
  @search_mode = args[:search_mode] if args.key?(:search_mode)
7072
7144
  @spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
@@ -7524,9 +7596,12 @@ module Google
7524
7596
  class GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec
7525
7597
  include Google::Apis::Core::Hashable
7526
7598
 
7527
- # This field specifies the tiles which are already clicked in client side. NOTE:
7528
- # This field is not being used for filtering search products. Client side should
7529
- # also put all the applied tiles in SearchRequest.filter.
7599
+ # This optional field specifies the tiles which are already clicked in client
7600
+ # side. While the feature works without this field set, particularly for an
7601
+ # initial query, it is highly recommended to set this field because it can
7602
+ # improve the quality of the search response and removes possible duplicate
7603
+ # tiles. NOTE: This field is not being used for filtering search products.
7604
+ # Client side should also put all the applied tiles in SearchRequest.filter.
7530
7605
  # Corresponds to the JSON property `appliedTiles`
7531
7606
  # @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaTile>]
7532
7607
  attr_accessor :applied_tiles
@@ -8476,10 +8551,8 @@ module Google
8476
8551
  # added to cart. * `remove-from-cart`: Products being removed from cart. * `
8477
8552
  # category-page-view`: Special pages such as sale or promotion pages viewed. * `
8478
8553
  # detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage
8479
- # viewed. * `promotion-offered`: Promotion is offered to a user. * `promotion-
8480
- # not-offered`: Promotion is not offered to a user. * `purchase-complete`: User
8481
- # finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`:
8482
- # User viewing a shopping cart.
8554
+ # viewed. * `purchase-complete`: User finishing a purchase. * `search`: Product
8555
+ # search. * `shopping-cart-page-view`: User viewing a shopping cart.
8483
8556
  # Corresponds to the JSON property `eventType`
8484
8557
  # @return [String]
8485
8558
  attr_accessor :event_type
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module RetailV2alpha
18
18
  # Version of the google-apis-retail_v2alpha gem
19
- GEM_VERSION = "0.107.0"
19
+ GEM_VERSION = "0.109.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241231"
25
+ REVISION = "20250221"
26
26
  end
27
27
  end
28
28
  end
@@ -1174,6 +1174,12 @@ module Google
1174
1174
  include Google::Apis::Core::JsonObjectSupport
1175
1175
  end
1176
1176
 
1177
+ class GoogleCloudRetailV2alphaRulePinAction
1178
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1179
+
1180
+ include Google::Apis::Core::JsonObjectSupport
1181
+ end
1182
+
1177
1183
  class GoogleCloudRetailV2alphaRuleRedirectAction
1178
1184
  class Representation < Google::Apis::Core::JsonRepresentation; end
1179
1185
 
@@ -3391,6 +3397,8 @@ module Google
3391
3397
 
3392
3398
  property :oneway_synonyms_action, as: 'onewaySynonymsAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleOnewaySynonymsAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleOnewaySynonymsAction::Representation
3393
3399
 
3400
+ property :pin_action, as: 'pinAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRulePinAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRulePinAction::Representation
3401
+
3394
3402
  property :redirect_action, as: 'redirectAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRedirectAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRedirectAction::Representation
3395
3403
 
3396
3404
  property :remove_facet_action, as: 'removeFacetAction', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRemoveFacetAction, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleRemoveFacetAction::Representation
@@ -3458,6 +3466,13 @@ module Google
3458
3466
  end
3459
3467
  end
3460
3468
 
3469
+ class GoogleCloudRetailV2alphaRulePinAction
3470
+ # @private
3471
+ class Representation < Google::Apis::Core::JsonRepresentation
3472
+ hash :pin_map, as: 'pinMap'
3473
+ end
3474
+ end
3475
+
3461
3476
  class GoogleCloudRetailV2alphaRuleRedirectAction
3462
3477
  # @private
3463
3478
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3504,6 +3519,7 @@ module Google
3504
3519
 
3505
3520
  property :filter, as: 'filter'
3506
3521
  hash :labels, as: 'labels'
3522
+ property :language_code, as: 'languageCode'
3507
3523
  property :offset, as: 'offset'
3508
3524
  property :order_by, as: 'orderBy'
3509
3525
  collection :page_categories, as: 'pageCategories'
@@ -3514,6 +3530,7 @@ module Google
3514
3530
  property :query, as: 'query'
3515
3531
  property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec::Representation
3516
3532
 
3533
+ property :region_code, as: 'regionCode'
3517
3534
  property :relevance_threshold, as: 'relevanceThreshold'
3518
3535
  property :search_mode, as: 'searchMode'
3519
3536
  property :spell_correction_spec, as: 'spellCorrectionSpec', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec::Representation
@@ -20,9 +20,9 @@ require 'google/apis/errors'
20
20
  module Google
21
21
  module Apis
22
22
  module RetailV2alpha
23
- # Vertex AI Search for Retail API
23
+ # Vertex AI Search for commerce API
24
24
  #
25
- # Vertex AI Search for Retail API is made up of Retail Search, Browse and
25
+ # Vertex AI Search for commerce API is made up of Retail Search, Browse and
26
26
  # Recommendations. These discovery AI solutions help you implement personalized
27
27
  # search, browse and recommendations, based on machine learning models, across
28
28
  # your websites and mobile applications.
@@ -19,16 +19,16 @@ require 'google/apis/retail_v2alpha/gem_version.rb'
19
19
 
20
20
  module Google
21
21
  module Apis
22
- # Vertex AI Search for Retail API
22
+ # Vertex AI Search for commerce API
23
23
  #
24
- # Vertex AI Search for Retail API is made up of Retail Search, Browse and
24
+ # Vertex AI Search for commerce API is made up of Retail Search, Browse and
25
25
  # Recommendations. These discovery AI solutions help you implement personalized
26
26
  # search, browse and recommendations, based on machine learning models, across
27
27
  # your websites and mobile applications.
28
28
  #
29
29
  # @see https://cloud.google.com/recommendations
30
30
  module RetailV2alpha
31
- # Version of the Vertex AI Search for Retail API this client connects to.
31
+ # Version of the Vertex AI Search for commerce API this client connects to.
32
32
  # This is NOT the gem version.
33
33
  VERSION = 'V2alpha'
34
34
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-retail_v2alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.107.0
4
+ version: 0.109.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-01-05 00:00:00.000000000 Z
10
+ date: 2025-03-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -30,13 +29,13 @@ dependencies:
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
33
- description: This is the simple REST client for Vertex AI Search for Retail API V2alpha.
34
- Simple REST clients are Ruby client libraries that provide access to Google services
35
- via their HTTP REST API endpoints. These libraries are generated and updated automatically
36
- based on the discovery documents published by the service, and they handle most
37
- concerns such as authentication, pagination, retry, timeouts, and logging. You can
38
- use this client to access the Vertex AI Search for Retail API, but note that some
39
- services may provide a separate modern client that is easier to use.
32
+ description: This is the simple REST client for Vertex AI Search for commerce API
33
+ V2alpha. Simple REST clients are Ruby client libraries that provide access to Google
34
+ services via their HTTP REST API endpoints. These libraries are generated and updated
35
+ automatically based on the discovery documents published by the service, and they
36
+ handle most concerns such as authentication, pagination, retry, timeouts, and logging.
37
+ You can use this client to access the Vertex AI Search for commerce API, but note
38
+ that some services may provide a separate modern client that is easier to use.
40
39
  email: googleapis-packages@google.com
41
40
  executables: []
42
41
  extensions: []
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  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.107.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-retail_v2alpha/v0.109.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-retail_v2alpha
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
- summary: Simple REST client for Vertex AI Search for Retail API V2alpha
78
+ summary: Simple REST client for Vertex AI Search for commerce API V2alpha
82
79
  test_files: []