Skip to content

Commit bf0b90d

Browse files
feat: Automated regeneration of retail v2alpha client (googleapis#21884)
Auto-created at 2025-02-26 21:30:57 +0000 using the toys pull request generator.
1 parent 5d063e0 commit bf0b90d

File tree

5 files changed

+35
-10
lines changed

5 files changed

+35
-10
lines changed

api_names_out.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303438,6 +303438,7 @@
303438303438
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/filter": filter
303439303439
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/labels": labels
303440303440
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/labels/label": label
303441+
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/languageCode": language_code
303441303442
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/offset": offset
303442303443
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/orderBy": order_by
303443303444
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/pageCategories": page_categories
@@ -303447,6 +303448,7 @@
303447303448
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/personalizationSpec": personalization_spec
303448303449
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/query": query
303449303450
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/queryExpansionSpec": query_expansion_spec
303451+
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/regionCode": region_code
303450303452
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/relevanceThreshold": relevance_threshold
303451303453
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/searchMode": search_mode
303452303454
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/spellCorrectionSpec": spell_correction_spec

generated/google-apis-retail_v2alpha/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Release history for google-apis-retail_v2alpha
22

3-
### v0.109.0 (2025-01-26)
3+
### v0.109.0 (2025-02-26)
44

5-
* Regenerated from discovery document revision 20250116
5+
* Regenerated from discovery document revision 20250221
66

77
### v0.108.0 (2025-01-12)
88

generated/google-apis-retail_v2alpha/lib/google/apis/retail_v2alpha/classes.rb

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6967,6 +6967,15 @@ class GoogleCloudRetailV2alphaSearchRequest
69676967
# @return [Hash<String,String>]
69686968
attr_accessor :labels
69696969

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+
69706979
# A 0-indexed integer that specifies the current offset (that is, starting
69716980
# result location, amongst the Products deemed by the API as relevant) in search
69726981
# results. This field is only considered if page_token is unset. If this field
@@ -7027,6 +7036,15 @@ class GoogleCloudRetailV2alphaSearchRequest
70277036
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec]
70287037
attr_accessor :query_expansion_spec
70297038

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+
70307048
# The relevance threshold of the search results. Defaults to RelevanceThreshold.
70317049
# HIGH, which means only the most relevant results are shown, and the least
70327050
# number of results are returned. For more information, see [Adjust result size](
@@ -7111,6 +7129,7 @@ def update!(**args)
71117129
@facet_specs = args[:facet_specs] if args.key?(:facet_specs)
71127130
@filter = args[:filter] if args.key?(:filter)
71137131
@labels = args[:labels] if args.key?(:labels)
7132+
@language_code = args[:language_code] if args.key?(:language_code)
71147133
@offset = args[:offset] if args.key?(:offset)
71157134
@order_by = args[:order_by] if args.key?(:order_by)
71167135
@page_categories = args[:page_categories] if args.key?(:page_categories)
@@ -7119,6 +7138,7 @@ def update!(**args)
71197138
@personalization_spec = args[:personalization_spec] if args.key?(:personalization_spec)
71207139
@query = args[:query] if args.key?(:query)
71217140
@query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
7141+
@region_code = args[:region_code] if args.key?(:region_code)
71227142
@relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold)
71237143
@search_mode = args[:search_mode] if args.key?(:search_mode)
71247144
@spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
@@ -7576,9 +7596,12 @@ def update!(**args)
75767596
class GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec
75777597
include Google::Apis::Core::Hashable
75787598

7579-
# This field specifies the tiles which are already clicked in client side. NOTE:
7580-
# This field is not being used for filtering search products. Client side should
7581-
# 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.
75827605
# Corresponds to the JSON property `appliedTiles`
75837606
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaTile>]
75847607
attr_accessor :applied_tiles
@@ -8528,10 +8551,8 @@ class GoogleCloudRetailV2alphaUserEvent
85288551
# added to cart. * `remove-from-cart`: Products being removed from cart. * `
85298552
# category-page-view`: Special pages such as sale or promotion pages viewed. * `
85308553
# detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage
8531-
# viewed. * `promotion-offered`: Promotion is offered to a user. * `promotion-
8532-
# not-offered`: Promotion is not offered to a user. * `purchase-complete`: User
8533-
# finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`:
8534-
# 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.
85358556
# Corresponds to the JSON property `eventType`
85368557
# @return [String]
85378558
attr_accessor :event_type

generated/google-apis-retail_v2alpha/lib/google/apis/retail_v2alpha/gem_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module RetailV2alpha
2222
GENERATOR_VERSION = "0.16.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250116"
25+
REVISION = "20250221"
2626
end
2727
end
2828
end

generated/google-apis-retail_v2alpha/lib/google/apis/retail_v2alpha/representations.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3519,6 +3519,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
35193519

35203520
property :filter, as: 'filter'
35213521
hash :labels, as: 'labels'
3522+
property :language_code, as: 'languageCode'
35223523
property :offset, as: 'offset'
35233524
property :order_by, as: 'orderBy'
35243525
collection :page_categories, as: 'pageCategories'
@@ -3529,6 +3530,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
35293530
property :query, as: 'query'
35303531
property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestQueryExpansionSpec::Representation
35313532

3533+
property :region_code, as: 'regionCode'
35323534
property :relevance_threshold, as: 'relevanceThreshold'
35333535
property :search_mode, as: 'searchMode'
35343536
property :spell_correction_spec, as: 'spellCorrectionSpec', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestSpellCorrectionSpec::Representation

0 commit comments

Comments
 (0)