Skip to content

Commit b42d138

Browse files
feat: Automated regeneration of retail v2beta client (googleapis#23614)
Auto-created at 2025-07-06 10:00:45 +0000 using the toys pull request generator.
1 parent 289ef4c commit b42d138

File tree

5 files changed

+161
-2
lines changed

5 files changed

+161
-2
lines changed

api_names_out.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318922,11 +318922,20 @@
318922318922
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfig/disabledIntentTypes/disabled_intent_type": disabled_intent_type
318923318923
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfig/example": example
318924318924
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfig/example/example": example
318925+
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfig/inlineSource": inline_source
318925318926
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfig/modelPreamble": model_preamble
318926318927
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfigExample": google_cloud_retail_v2beta_intent_classification_config_example
318928+
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfigExample/classifiedPositive": classified_positive
318927318929
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfigExample/intentType": intent_type
318928318930
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfigExample/query": query
318929318931
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfigExample/reason": reason
318932+
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent": google_cloud_retail_v2beta_intent_classification_config_inline_force_intent
318933+
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent/intentType": intent_type
318934+
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent/operation": operation
318935+
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent/query": query
318936+
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfigInlineSource": google_cloud_retail_v2beta_intent_classification_config_inline_source
318937+
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfigInlineSource/inlineForceIntents": inline_force_intents
318938+
"/retail:v2beta/GoogleCloudRetailV2betaIntentClassificationConfigInlineSource/inlineForceIntents/inline_force_intent": inline_force_intent
318930318939
"/retail:v2beta/GoogleCloudRetailV2betaInterval": google_cloud_retail_v2beta_interval
318931318940
"/retail:v2beta/GoogleCloudRetailV2betaInterval/exclusiveMaximum": exclusive_maximum
318932318941
"/retail:v2beta/GoogleCloudRetailV2betaInterval/exclusiveMinimum": exclusive_minimum
@@ -319285,6 +319294,8 @@
319285319294
"/retail:v2beta/GoogleCloudRetailV2betaSearchRequest/searchMode": search_mode
319286319295
"/retail:v2beta/GoogleCloudRetailV2betaSearchRequest/spellCorrectionSpec": spell_correction_spec
319287319296
"/retail:v2beta/GoogleCloudRetailV2betaSearchRequest/tileNavigationSpec": tile_navigation_spec
319297+
"/retail:v2beta/GoogleCloudRetailV2betaSearchRequest/userAttributes": user_attributes
319298+
"/retail:v2beta/GoogleCloudRetailV2betaSearchRequest/userAttributes/user_attribute": user_attribute
319288319299
"/retail:v2beta/GoogleCloudRetailV2betaSearchRequest/userInfo": user_info
319289319300
"/retail:v2beta/GoogleCloudRetailV2betaSearchRequest/variantRollupKeys": variant_rollup_keys
319290319301
"/retail:v2beta/GoogleCloudRetailV2betaSearchRequest/variantRollupKeys/variant_rollup_key": variant_rollup_key
@@ -319445,6 +319456,9 @@
319445319456
"/retail:v2beta/GoogleCloudRetailV2betaSetInventoryRequest/setMask": set_mask
319446319457
"/retail:v2beta/GoogleCloudRetailV2betaSetInventoryRequest/setTime": set_time
319447319458
"/retail:v2beta/GoogleCloudRetailV2betaSetInventoryResponse": google_cloud_retail_v2beta_set_inventory_response
319459+
"/retail:v2beta/GoogleCloudRetailV2betaStringList": google_cloud_retail_v2beta_string_list
319460+
"/retail:v2beta/GoogleCloudRetailV2betaStringList/values": values
319461+
"/retail:v2beta/GoogleCloudRetailV2betaStringList/values/value": value
319448319462
"/retail:v2beta/GoogleCloudRetailV2betaTile": google_cloud_retail_v2beta_tile
319449319463
"/retail:v2beta/GoogleCloudRetailV2betaTile/productAttributeInterval": product_attribute_interval
319450319464
"/retail:v2beta/GoogleCloudRetailV2betaTile/productAttributeValue": product_attribute_value

generated/google-apis-retail_v2beta/CHANGELOG.md

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

3+
### v0.114.0 (2025-07-06)
4+
5+
* Regenerated from discovery document revision 20250626
6+
37
### v0.113.0 (2025-06-22)
48

59
* Regenerated from discovery document revision 20250613

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

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4879,6 +4879,11 @@ class GoogleCloudRetailV2betaIntentClassificationConfig
48794879
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigExample>]
48804880
attr_accessor :example
48814881

4882+
# Inline source for intent classifications.
4883+
# Corresponds to the JSON property `inlineSource`
4884+
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigInlineSource]
4885+
attr_accessor :inline_source
4886+
48824887
# Optional. Customers can use the preamble to specify any requirements for
48834888
# blocklisting intent classification. This preamble will be added to the
48844889
# blocklisting intent classification model prompt.
@@ -4895,6 +4900,7 @@ def update!(**args)
48954900
@blocklist_keywords = args[:blocklist_keywords] if args.key?(:blocklist_keywords)
48964901
@disabled_intent_types = args[:disabled_intent_types] if args.key?(:disabled_intent_types)
48974902
@example = args[:example] if args.key?(:example)
4903+
@inline_source = args[:inline_source] if args.key?(:inline_source)
48984904
@model_preamble = args[:model_preamble] if args.key?(:model_preamble)
48994905
end
49004906
end
@@ -4903,6 +4909,12 @@ def update!(**args)
49034909
class GoogleCloudRetailV2betaIntentClassificationConfigExample
49044910
include Google::Apis::Core::Hashable
49054911

4912+
# Required. Whether the example is classified positively.
4913+
# Corresponds to the JSON property `classifiedPositive`
4914+
# @return [Boolean]
4915+
attr_accessor :classified_positive
4916+
alias_method :classified_positive?, :classified_positive
4917+
49064918
# Optional. The intent_type must match one of the predefined intent types
49074919
# defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
49084920
# retail.v2alpha#querytype
@@ -4927,12 +4939,65 @@ def initialize(**args)
49274939

49284940
# Update properties of this object
49294941
def update!(**args)
4942+
@classified_positive = args[:classified_positive] if args.key?(:classified_positive)
49304943
@intent_type = args[:intent_type] if args.key?(:intent_type)
49314944
@query = args[:query] if args.key?(:query)
49324945
@reason = args[:reason] if args.key?(:reason)
49334946
end
49344947
end
49354948

4949+
# An inline force intent classification configuration.
4950+
class GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent
4951+
include Google::Apis::Core::Hashable
4952+
4953+
# Optional. The intent_type must match one of the predefined intent types
4954+
# defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
4955+
# retail.v2alpha#querytype
4956+
# Corresponds to the JSON property `intentType`
4957+
# @return [String]
4958+
attr_accessor :intent_type
4959+
4960+
# Optional. The operation to perform for the query.
4961+
# Corresponds to the JSON property `operation`
4962+
# @return [String]
4963+
attr_accessor :operation
4964+
4965+
# Optional. A example query.
4966+
# Corresponds to the JSON property `query`
4967+
# @return [String]
4968+
attr_accessor :query
4969+
4970+
def initialize(**args)
4971+
update!(**args)
4972+
end
4973+
4974+
# Update properties of this object
4975+
def update!(**args)
4976+
@intent_type = args[:intent_type] if args.key?(:intent_type)
4977+
@operation = args[:operation] if args.key?(:operation)
4978+
@query = args[:query] if args.key?(:query)
4979+
end
4980+
end
4981+
4982+
# Inline source for intent classifications.
4983+
class GoogleCloudRetailV2betaIntentClassificationConfigInlineSource
4984+
include Google::Apis::Core::Hashable
4985+
4986+
# Optional. A list of inline force intent classifications.
4987+
# Corresponds to the JSON property `inlineForceIntents`
4988+
# @return [Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent>]
4989+
attr_accessor :inline_force_intents
4990+
4991+
def initialize(**args)
4992+
update!(**args)
4993+
end
4994+
4995+
# Update properties of this object
4996+
def update!(**args)
4997+
@inline_force_intents = args[:inline_force_intents] if args.key?(:inline_force_intents)
4998+
end
4999+
end
5000+
49365001
# A floating point interval.
49375002
class GoogleCloudRetailV2betaInterval
49385003
include Google::Apis::Core::Hashable
@@ -7767,6 +7832,15 @@ class GoogleCloudRetailV2betaSearchRequest
77677832
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestTileNavigationSpec]
77687833
attr_accessor :tile_navigation_spec
77697834

7835+
# Optional. The user attributes that could be used for personalization of search
7836+
# results. * Populate at most 100 key-value pairs per query. * Only supports
7837+
# string keys and repeated string values. * Duplcate keys are not allowed within
7838+
# a single query. Example: user_attributes: [ ` key: "pets" value ` values: "dog"
7839+
# values: "cat" ` `, ` key: "state" value ` values: "CA" ` ` ]
7840+
# Corresponds to the JSON property `userAttributes`
7841+
# @return [Hash<String,Google::Apis::RetailV2beta::GoogleCloudRetailV2betaStringList>]
7842+
attr_accessor :user_attributes
7843+
77707844
# Information of an end user.
77717845
# Corresponds to the JSON property `userInfo`
77727846
# @return [Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserInfo]
@@ -7841,6 +7915,7 @@ def update!(**args)
78417915
@search_mode = args[:search_mode] if args.key?(:search_mode)
78427916
@spell_correction_spec = args[:spell_correction_spec] if args.key?(:spell_correction_spec)
78437917
@tile_navigation_spec = args[:tile_navigation_spec] if args.key?(:tile_navigation_spec)
7918+
@user_attributes = args[:user_attributes] if args.key?(:user_attributes)
78447919
@user_info = args[:user_info] if args.key?(:user_info)
78457920
@variant_rollup_keys = args[:variant_rollup_keys] if args.key?(:variant_rollup_keys)
78467921
@visitor_id = args[:visitor_id] if args.key?(:visitor_id)
@@ -9048,6 +9123,25 @@ def update!(**args)
90489123
end
90499124
end
90509125

9126+
# A list of string values.
9127+
class GoogleCloudRetailV2betaStringList
9128+
include Google::Apis::Core::Hashable
9129+
9130+
# String values.
9131+
# Corresponds to the JSON property `values`
9132+
# @return [Array<String>]
9133+
attr_accessor :values
9134+
9135+
def initialize(**args)
9136+
update!(**args)
9137+
end
9138+
9139+
# Update properties of this object
9140+
def update!(**args)
9141+
@values = args[:values] if args.key?(:values)
9142+
end
9143+
end
9144+
90519145
# This field specifies the tile information including an attribute key,
90529146
# attribute value. More fields will be added in the future, eg: product id or
90539147
# product counts, etc.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module RetailV2beta
1818
# Version of the google-apis-retail_v2beta gem
19-
GEM_VERSION = "0.113.0"
19+
GEM_VERSION = "0.114.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
970970
include Google::Apis::Core::JsonObjectSupport
971971
end
972972

973+
class GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent
974+
class Representation < Google::Apis::Core::JsonRepresentation; end
975+
976+
include Google::Apis::Core::JsonObjectSupport
977+
end
978+
979+
class GoogleCloudRetailV2betaIntentClassificationConfigInlineSource
980+
class Representation < Google::Apis::Core::JsonRepresentation; end
981+
982+
include Google::Apis::Core::JsonObjectSupport
983+
end
984+
973985
class GoogleCloudRetailV2betaInterval
974986
class Representation < Google::Apis::Core::JsonRepresentation; end
975987

@@ -1546,6 +1558,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
15461558
include Google::Apis::Core::JsonObjectSupport
15471559
end
15481560

1561+
class GoogleCloudRetailV2betaStringList
1562+
class Representation < Google::Apis::Core::JsonRepresentation; end
1563+
1564+
include Google::Apis::Core::JsonObjectSupport
1565+
end
1566+
15491567
class GoogleCloudRetailV2betaTile
15501568
class Representation < Google::Apis::Core::JsonRepresentation; end
15511569

@@ -3020,19 +3038,39 @@ class Representation < Google::Apis::Core::JsonRepresentation
30203038
collection :disabled_intent_types, as: 'disabledIntentTypes'
30213039
collection :example, as: 'example', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigExample, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigExample::Representation
30223040

3041+
property :inline_source, as: 'inlineSource', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigInlineSource, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigInlineSource::Representation
3042+
30233043
property :model_preamble, as: 'modelPreamble'
30243044
end
30253045
end
30263046

30273047
class GoogleCloudRetailV2betaIntentClassificationConfigExample
30283048
# @private
30293049
class Representation < Google::Apis::Core::JsonRepresentation
3050+
property :classified_positive, as: 'classifiedPositive'
30303051
property :intent_type, as: 'intentType'
30313052
property :query, as: 'query'
30323053
property :reason, as: 'reason'
30333054
end
30343055
end
30353056

3057+
class GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent
3058+
# @private
3059+
class Representation < Google::Apis::Core::JsonRepresentation
3060+
property :intent_type, as: 'intentType'
3061+
property :operation, as: 'operation'
3062+
property :query, as: 'query'
3063+
end
3064+
end
3065+
3066+
class GoogleCloudRetailV2betaIntentClassificationConfigInlineSource
3067+
# @private
3068+
class Representation < Google::Apis::Core::JsonRepresentation
3069+
collection :inline_force_intents, as: 'inlineForceIntents', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent::Representation
3070+
3071+
end
3072+
end
3073+
30363074
class GoogleCloudRetailV2betaInterval
30373075
# @private
30383076
class Representation < Google::Apis::Core::JsonRepresentation
@@ -3726,6 +3764,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
37263764

37273765
property :tile_navigation_spec, as: 'tileNavigationSpec', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestTileNavigationSpec, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaSearchRequestTileNavigationSpec::Representation
37283766

3767+
hash :user_attributes, as: 'userAttributes', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaStringList, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaStringList::Representation
3768+
37293769
property :user_info, as: 'userInfo', class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserInfo, decorator: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaUserInfo::Representation
37303770

37313771
collection :variant_rollup_keys, as: 'variantRollupKeys'
@@ -4016,6 +4056,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
40164056
end
40174057
end
40184058

4059+
class GoogleCloudRetailV2betaStringList
4060+
# @private
4061+
class Representation < Google::Apis::Core::JsonRepresentation
4062+
collection :values, as: 'values'
4063+
end
4064+
end
4065+
40194066
class GoogleCloudRetailV2betaTile
40204067
# @private
40214068
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)