Skip to content

Commit c087214

Browse files
feat: Automated regeneration of retail v2alpha client (googleapis#23618)
Auto-created at 2025-07-06 10:09:23 +0000 using the toys pull request generator.
1 parent 950d425 commit c087214

File tree

5 files changed

+112
-2
lines changed

5 files changed

+112
-2
lines changed

api_names_out.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317280,11 +317280,20 @@
317280317280
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfig/disabledIntentTypes/disabled_intent_type": disabled_intent_type
317281317281
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfig/example": example
317282317282
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfig/example/example": example
317283+
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfig/inlineSource": inline_source
317283317284
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfig/modelPreamble": model_preamble
317284317285
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfigExample": google_cloud_retail_v2alpha_intent_classification_config_example
317286+
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfigExample/classifiedPositive": classified_positive
317285317287
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfigExample/intentType": intent_type
317286317288
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfigExample/query": query
317287317289
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfigExample/reason": reason
317290+
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent": google_cloud_retail_v2alpha_intent_classification_config_inline_force_intent
317291+
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent/intentType": intent_type
317292+
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent/operation": operation
317293+
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent/query": query
317294+
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource": google_cloud_retail_v2alpha_intent_classification_config_inline_source
317295+
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource/inlineForceIntents": inline_force_intents
317296+
"/retail:v2alpha/GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource/inlineForceIntents/inline_force_intent": inline_force_intent
317288317297
"/retail:v2alpha/GoogleCloudRetailV2alphaInterval": google_cloud_retail_v2alpha_interval
317289317298
"/retail:v2alpha/GoogleCloudRetailV2alphaInterval/exclusiveMaximum": exclusive_maximum
317290317299
"/retail:v2alpha/GoogleCloudRetailV2alphaInterval/exclusiveMinimum": exclusive_minimum

generated/google-apis-retail_v2alpha/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_v2alpha
22

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

59
* Regenerated from discovery document revision 20250613

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

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4265,6 +4265,11 @@ class GoogleCloudRetailV2alphaIntentClassificationConfig
42654265
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigExample>]
42664266
attr_accessor :example
42674267

4268+
# Inline source for intent classifications.
4269+
# Corresponds to the JSON property `inlineSource`
4270+
# @return [Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource]
4271+
attr_accessor :inline_source
4272+
42684273
# Optional. Customers can use the preamble to specify any requirements for
42694274
# blocklisting intent classification. This preamble will be added to the
42704275
# blocklisting intent classification model prompt.
@@ -4281,6 +4286,7 @@ def update!(**args)
42814286
@blocklist_keywords = args[:blocklist_keywords] if args.key?(:blocklist_keywords)
42824287
@disabled_intent_types = args[:disabled_intent_types] if args.key?(:disabled_intent_types)
42834288
@example = args[:example] if args.key?(:example)
4289+
@inline_source = args[:inline_source] if args.key?(:inline_source)
42844290
@model_preamble = args[:model_preamble] if args.key?(:model_preamble)
42854291
end
42864292
end
@@ -4289,6 +4295,12 @@ def update!(**args)
42894295
class GoogleCloudRetailV2alphaIntentClassificationConfigExample
42904296
include Google::Apis::Core::Hashable
42914297

4298+
# Required. Whether the example is classified positively.
4299+
# Corresponds to the JSON property `classifiedPositive`
4300+
# @return [Boolean]
4301+
attr_accessor :classified_positive
4302+
alias_method :classified_positive?, :classified_positive
4303+
42924304
# Optional. The intent_type must match one of the predefined intent types
42934305
# defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
42944306
# retail.v2alpha#querytype
@@ -4313,12 +4325,65 @@ def initialize(**args)
43134325

43144326
# Update properties of this object
43154327
def update!(**args)
4328+
@classified_positive = args[:classified_positive] if args.key?(:classified_positive)
43164329
@intent_type = args[:intent_type] if args.key?(:intent_type)
43174330
@query = args[:query] if args.key?(:query)
43184331
@reason = args[:reason] if args.key?(:reason)
43194332
end
43204333
end
43214334

4335+
# An inline force intent classification configuration.
4336+
class GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent
4337+
include Google::Apis::Core::Hashable
4338+
4339+
# Optional. The intent_type must match one of the predefined intent types
4340+
# defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
4341+
# retail.v2alpha#querytype
4342+
# Corresponds to the JSON property `intentType`
4343+
# @return [String]
4344+
attr_accessor :intent_type
4345+
4346+
# Optional. The operation to perform for the query.
4347+
# Corresponds to the JSON property `operation`
4348+
# @return [String]
4349+
attr_accessor :operation
4350+
4351+
# Optional. A example query.
4352+
# Corresponds to the JSON property `query`
4353+
# @return [String]
4354+
attr_accessor :query
4355+
4356+
def initialize(**args)
4357+
update!(**args)
4358+
end
4359+
4360+
# Update properties of this object
4361+
def update!(**args)
4362+
@intent_type = args[:intent_type] if args.key?(:intent_type)
4363+
@operation = args[:operation] if args.key?(:operation)
4364+
@query = args[:query] if args.key?(:query)
4365+
end
4366+
end
4367+
4368+
# Inline source for intent classifications.
4369+
class GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource
4370+
include Google::Apis::Core::Hashable
4371+
4372+
# Optional. A list of inline force intent classifications.
4373+
# Corresponds to the JSON property `inlineForceIntents`
4374+
# @return [Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent>]
4375+
attr_accessor :inline_force_intents
4376+
4377+
def initialize(**args)
4378+
update!(**args)
4379+
end
4380+
4381+
# Update properties of this object
4382+
def update!(**args)
4383+
@inline_force_intents = args[:inline_force_intents] if args.key?(:inline_force_intents)
4384+
end
4385+
end
4386+
43224387
# A floating point interval.
43234388
class GoogleCloudRetailV2alphaInterval
43244389
include Google::Apis::Core::Hashable

generated/google-apis-retail_v2alpha/lib/google/apis/retail_v2alpha/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 RetailV2alpha
1818
# Version of the google-apis-retail_v2alpha gem
19-
GEM_VERSION = "0.120.0"
19+
GEM_VERSION = "0.121.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_v2alpha/lib/google/apis/retail_v2alpha/representations.rb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
808808
include Google::Apis::Core::JsonObjectSupport
809809
end
810810

811+
class GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent
812+
class Representation < Google::Apis::Core::JsonRepresentation; end
813+
814+
include Google::Apis::Core::JsonObjectSupport
815+
end
816+
817+
class GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource
818+
class Representation < Google::Apis::Core::JsonRepresentation; end
819+
820+
include Google::Apis::Core::JsonObjectSupport
821+
end
822+
811823
class GoogleCloudRetailV2alphaInterval
812824
class Representation < Google::Apis::Core::JsonRepresentation; end
813825

@@ -2958,19 +2970,39 @@ class Representation < Google::Apis::Core::JsonRepresentation
29582970
collection :disabled_intent_types, as: 'disabledIntentTypes'
29592971
collection :example, as: 'example', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigExample, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigExample::Representation
29602972

2973+
property :inline_source, as: 'inlineSource', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource::Representation
2974+
29612975
property :model_preamble, as: 'modelPreamble'
29622976
end
29632977
end
29642978

29652979
class GoogleCloudRetailV2alphaIntentClassificationConfigExample
29662980
# @private
29672981
class Representation < Google::Apis::Core::JsonRepresentation
2982+
property :classified_positive, as: 'classifiedPositive'
29682983
property :intent_type, as: 'intentType'
29692984
property :query, as: 'query'
29702985
property :reason, as: 'reason'
29712986
end
29722987
end
29732988

2989+
class GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent
2990+
# @private
2991+
class Representation < Google::Apis::Core::JsonRepresentation
2992+
property :intent_type, as: 'intentType'
2993+
property :operation, as: 'operation'
2994+
property :query, as: 'query'
2995+
end
2996+
end
2997+
2998+
class GoogleCloudRetailV2alphaIntentClassificationConfigInlineSource
2999+
# @private
3000+
class Representation < Google::Apis::Core::JsonRepresentation
3001+
collection :inline_force_intents, as: 'inlineForceIntents', class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent, decorator: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent::Representation
3002+
3003+
end
3004+
end
3005+
29743006
class GoogleCloudRetailV2alphaInterval
29753007
# @private
29763008
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)