Skip to content

Commit fb5ecf1

Browse files
feat: Automated regeneration of retail v2 client (googleapis#21837)
Auto-created at 2025-02-26 20:54:18 +0000 using the toys pull request generator.
1 parent dc67c6f commit fb5ecf1

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
@@ -301068,6 +301068,7 @@
301068301068
"/retail:v2/GoogleCloudRetailV2SearchRequest/filter": filter
301069301069
"/retail:v2/GoogleCloudRetailV2SearchRequest/labels": labels
301070301070
"/retail:v2/GoogleCloudRetailV2SearchRequest/labels/label": label
301071+
"/retail:v2/GoogleCloudRetailV2SearchRequest/languageCode": language_code
301071301072
"/retail:v2/GoogleCloudRetailV2SearchRequest/offset": offset
301072301073
"/retail:v2/GoogleCloudRetailV2SearchRequest/orderBy": order_by
301073301074
"/retail:v2/GoogleCloudRetailV2SearchRequest/pageCategories": page_categories
@@ -301077,6 +301078,7 @@
301077301078
"/retail:v2/GoogleCloudRetailV2SearchRequest/personalizationSpec": personalization_spec
301078301079
"/retail:v2/GoogleCloudRetailV2SearchRequest/query": query
301079301080
"/retail:v2/GoogleCloudRetailV2SearchRequest/queryExpansionSpec": query_expansion_spec
301081+
"/retail:v2/GoogleCloudRetailV2SearchRequest/regionCode": region_code
301080301082
"/retail:v2/GoogleCloudRetailV2SearchRequest/searchMode": search_mode
301081301083
"/retail:v2/GoogleCloudRetailV2SearchRequest/spellCorrectionSpec": spell_correction_spec
301082301084
"/retail:v2/GoogleCloudRetailV2SearchRequest/tileNavigationSpec": tile_navigation_spec

generated/google-apis-retail_v2/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_v2
22

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

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

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

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

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4957,6 +4957,15 @@ class GoogleCloudRetailV2SearchRequest
49574957
# @return [Hash<String,String>]
49584958
attr_accessor :labels
49594959

4960+
# Optional. The BCP-47 language code, such as "en-US" or "sr-Latn" [list](https:/
4961+
# /www.unicode.org/cldr/charts/46/summary/root.html). For more information, see [
4962+
# Standardized codes](https://google.aip.dev/143). This field helps to better
4963+
# interpret the query. If a value isn't specified, the query language code is
4964+
# automatically detected, which may not be accurate.
4965+
# Corresponds to the JSON property `languageCode`
4966+
# @return [String]
4967+
attr_accessor :language_code
4968+
49604969
# A 0-indexed integer that specifies the current offset (that is, starting
49614970
# result location, amongst the Products deemed by the API as relevant) in search
49624971
# results. This field is only considered if page_token is unset. If this field
@@ -5017,6 +5026,15 @@ class GoogleCloudRetailV2SearchRequest
50175026
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec]
50185027
attr_accessor :query_expansion_spec
50195028

5029+
# Optional. The Unicode country/region code (CLDR) of a location, such as "US"
5030+
# and "419" [list](https://www.unicode.org/cldr/charts/46/supplemental/
5031+
# territory_information.html). For more information, see [Standardized codes](
5032+
# https://google.aip.dev/143). If set, then results will be boosted based on the
5033+
# region_code provided.
5034+
# Corresponds to the JSON property `regionCode`
5035+
# @return [String]
5036+
attr_accessor :region_code
5037+
50205038
# The search mode of the search request. If not specified, a single search
50215039
# request triggers both product search and faceted search.
50225040
# Corresponds to the JSON property `searchMode`
@@ -5093,6 +5111,7 @@ def update!(**args)
50935111
@facet_specs = args[:facet_specs] if args.key?(:facet_specs)
50945112
@filter = args[:filter] if args.key?(:filter)
50955113
@labels = args[:labels] if args.key?(:labels)
5114+
@language_code = args[:language_code] if args.key?(:language_code)
50965115
@offset = args[:offset] if args.key?(:offset)
50975116
@order_by = args[:order_by] if args.key?(:order_by)
50985117
@page_categories = args[:page_categories] if args.key?(:page_categories)
@@ -5101,6 +5120,7 @@ def update!(**args)
51015120
@personalization_spec = args[:personalization_spec] if args.key?(:personalization_spec)
51025121
@query = args[:query] if args.key?(:query)
51035122
@query_expansion_spec = args[:query_expansion_spec] if args.key?(:query_expansion_spec)
5123+
@region_code = args[:region_code] if args.key?(:region_code)
51045124
@search_mode = args[:search_mode] if args.key?(:search_mode)
51055125
@spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
51065126
@tile_navigation_spec = args[:tile_navigation_spec] if args.key?(:tile_navigation_spec)
@@ -5557,9 +5577,12 @@ def update!(**args)
55575577
class GoogleCloudRetailV2SearchRequestTileNavigationSpec
55585578
include Google::Apis::Core::Hashable
55595579

5560-
# This field specifies the tiles which are already clicked in client side. NOTE:
5561-
# This field is not being used for filtering search products. Client side should
5562-
# also put all the applied tiles in SearchRequest.filter.
5580+
# This optional field specifies the tiles which are already clicked in client
5581+
# side. While the feature works without this field set, particularly for an
5582+
# initial query, it is highly recommended to set this field because it can
5583+
# improve the quality of the search response and removes possible duplicate
5584+
# tiles. NOTE: This field is not being used for filtering search products.
5585+
# Client side should also put all the applied tiles in SearchRequest.filter.
55635586
# Corresponds to the JSON property `appliedTiles`
55645587
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2Tile>]
55655588
attr_accessor :applied_tiles
@@ -6483,10 +6506,8 @@ class GoogleCloudRetailV2UserEvent
64836506
# added to cart. * `remove-from-cart`: Products being removed from cart. * `
64846507
# category-page-view`: Special pages such as sale or promotion pages viewed. * `
64856508
# detail-page-view`: Products detail page viewed. * `home-page-view`: Homepage
6486-
# viewed. * `promotion-offered`: Promotion is offered to a user. * `promotion-
6487-
# not-offered`: Promotion is not offered to a user. * `purchase-complete`: User
6488-
# finishing a purchase. * `search`: Product search. * `shopping-cart-page-view`:
6489-
# User viewing a shopping cart.
6509+
# viewed. * `purchase-complete`: User finishing a purchase. * `search`: Product
6510+
# search. * `shopping-cart-page-view`: User viewing a shopping cart.
64906511
# Corresponds to the JSON property `eventType`
64916512
# @return [String]
64926513
attr_accessor :event_type

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module RetailV2
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_v2/lib/google/apis/retail_v2/representations.rb

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

28042804
property :filter, as: 'filter'
28052805
hash :labels, as: 'labels'
2806+
property :language_code, as: 'languageCode'
28062807
property :offset, as: 'offset'
28072808
property :order_by, as: 'orderBy'
28082809
collection :page_categories, as: 'pageCategories'
@@ -2813,6 +2814,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
28132814
property :query, as: 'query'
28142815
property :query_expansion_spec, as: 'queryExpansionSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestQueryExpansionSpec::Representation
28152816

2817+
property :region_code, as: 'regionCode'
28162818
property :search_mode, as: 'searchMode'
28172819
property :spell_correction_spec, as: 'spellCorrectionSpec', class: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestSpellCorrectionSpec, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2SearchRequestSpellCorrectionSpec::Representation
28182820

0 commit comments

Comments
 (0)