Skip to content

Commit 225093f

Browse files
feat: Automated regeneration of retail v2alpha client (googleapis#23286)
Auto-created at 2025-06-01 09:58:33 +0000 using the toys pull request generator.
1 parent acfe080 commit 225093f

File tree

5 files changed

+60
-4
lines changed

5 files changed

+60
-4
lines changed

api_names_out.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315297,6 +315297,8 @@
315297315297
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/searchMode": search_mode
315298315298
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/spellCorrectionSpec": spell_correction_spec
315299315299
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/tileNavigationSpec": tile_navigation_spec
315300+
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/userAttributes": user_attributes
315301+
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/userAttributes/user_attribute": user_attribute
315300315302
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/userInfo": user_info
315301315303
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/variantRollupKeys": variant_rollup_keys
315302315304
"/retail:v2alpha/GoogleCloudRetailV2alphaSearchRequest/variantRollupKeys/variant_rollup_key": variant_rollup_key
@@ -315464,6 +315466,9 @@
315464315466
"/retail:v2alpha/GoogleCloudRetailV2alphaSetLocalInventoriesRequest/localInventories/local_inventory": local_inventory
315465315467
"/retail:v2alpha/GoogleCloudRetailV2alphaSetLocalInventoriesRequest/setTime": set_time
315466315468
"/retail:v2alpha/GoogleCloudRetailV2alphaSetLocalInventoriesResponse": google_cloud_retail_v2alpha_set_local_inventories_response
315469+
"/retail:v2alpha/GoogleCloudRetailV2alphaStringList": google_cloud_retail_v2alpha_string_list
315470+
"/retail:v2alpha/GoogleCloudRetailV2alphaStringList/values": values
315471+
"/retail:v2alpha/GoogleCloudRetailV2alphaStringList/values/value": value
315467315472
"/retail:v2alpha/GoogleCloudRetailV2alphaTile": google_cloud_retail_v2alpha_tile
315468315473
"/retail:v2alpha/GoogleCloudRetailV2alphaTile/productAttributeInterval": product_attribute_interval
315469315474
"/retail:v2alpha/GoogleCloudRetailV2alphaTile/productAttributeValue": product_attribute_value

generated/google-apis-retail_v2alpha/CHANGELOG.md

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

3+
### v0.118.0 (2025-06-01)
4+
5+
* Regenerated from discovery document revision 20250522
6+
* Regenerated using generator version 0.18.0
7+
38
### v0.117.0 (2025-05-21)
49

510
* Regenerated from discovery document revision 20250515

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

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3088,7 +3088,9 @@ def update!(**args)
30883088
end
30893089
end
30903090

3091-
# Suggested answers to the follow-up question.
3091+
# Suggested answers to the follow-up question. If it's numerical attribute, only
3092+
# ProductAttributeInterval will be set. If it's textual attribute, only
3093+
# productAttributeValue will be set.
30923094
class GoogleCloudRetailV2alphaConversationalSearchResponseFollowupQuestionSuggestedAnswer
30933095
include Google::Apis::Core::Hashable
30943096

@@ -7467,6 +7469,15 @@ class GoogleCloudRetailV2alphaSearchRequest
74677469
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec]
74687470
attr_accessor :tile_navigation_spec
74697471

7472+
# Optional. The user attributes that could be used for personalization of search
7473+
# results. * Populate at most 100 key-value pairs per query. * Only supports
7474+
# string keys and repeated string values. * Duplcate keys are not allowed within
7475+
# a single query. Example: user_attributes: [ ` key: "pets" value ` values: "dog"
7476+
# values: "cat" ` `, ` key: "state" value ` values: "CA" ` ` ]
7477+
# Corresponds to the JSON property `userAttributes`
7478+
# @return [Hash<String,Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaStringList>]
7479+
attr_accessor :user_attributes
7480+
74707481
# Information of an end user.
74717482
# Corresponds to the JSON property `userInfo`
74727483
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo]
@@ -7542,6 +7553,7 @@ def update!(**args)
75427553
@search_mode = args[:search_mode] if args.key?(:search_mode)
75437554
@spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
75447555
@tile_navigation_spec = args[:tile_navigation_spec] if args.key?(:tile_navigation_spec)
7556+
@user_attributes = args[:user_attributes] if args.key?(:user_attributes)
75457557
@user_info = args[:user_info] if args.key?(:user_info)
75467558
@variant_rollup_keys = args[:variant_rollup_keys] if args.key?(:variant_rollup_keys)
75477559
@visitor_id = args[:visitor_id] if args.key?(:visitor_id)
@@ -8749,6 +8761,25 @@ def update!(**args)
87498761
end
87508762
end
87518763

8764+
# A list of string values.
8765+
class GoogleCloudRetailV2alphaStringList
8766+
include Google::Apis::Core::Hashable
8767+
8768+
# String values.
8769+
# Corresponds to the JSON property `values`
8770+
# @return [Array<String>]
8771+
attr_accessor :values
8772+
8773+
def initialize(**args)
8774+
update!(**args)
8775+
end
8776+
8777+
# Update properties of this object
8778+
def update!(**args)
8779+
@values = args[:values] if args.key?(:values)
8780+
end
8781+
end
8782+
87528783
# This field specifies the tile information including an attribute key,
87538784
# attribute value. More fields will be added in the future, eg: product id or
87548785
# product counts, etc.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module RetailV2alpha
1818
# Version of the google-apis-retail_v2alpha gem
19-
GEM_VERSION = "0.117.0"
19+
GEM_VERSION = "0.118.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.17.0"
22+
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,6 +1438,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
14381438
include Google::Apis::Core::JsonObjectSupport
14391439
end
14401440

1441+
class GoogleCloudRetailV2alphaStringList
1442+
class Representation < Google::Apis::Core::JsonRepresentation; end
1443+
1444+
include Google::Apis::Core::JsonObjectSupport
1445+
end
1446+
14411447
class GoogleCloudRetailV2alphaTile
14421448
class Representation < Google::Apis::Core::JsonRepresentation; end
14431449

@@ -3727,6 +3733,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
37273733

37283734
property :tile_navigation_spec, as: 'tileNavigationSpec', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaSearchRequestTileNavigationSpec::Representation
37293735

3736+
hash :user_attributes, as: 'userAttributes', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaStringList, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaStringList::Representation
3737+
37303738
property :user_info, as: 'userInfo', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserInfo::Representation
37313739

37323740
collection :variant_rollup_keys, as: 'variantRollupKeys'
@@ -4017,6 +4025,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
40174025
end
40184026
end
40194027

4028+
class GoogleCloudRetailV2alphaStringList
4029+
# @private
4030+
class Representation < Google::Apis::Core::JsonRepresentation
4031+
collection :values, as: 'values'
4032+
end
4033+
end
4034+
40204035
class GoogleCloudRetailV2alphaTile
40214036
# @private
40224037
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)