Skip to content

Commit 8a52019

Browse files
feat: Automated regeneration of retail v2 client (googleapis#23499)
Auto-created at 2025-06-22 10:10:45 +0000 using the toys pull request generator.
1 parent fa49481 commit 8a52019

File tree

6 files changed

+266
-9
lines changed

6 files changed

+266
-9
lines changed

api_names_out.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314858,6 +314858,10 @@
314858314858
"/retail:v2/GoogleCloudRetailV2Control/searchSolutionUseCase/search_solution_use_case": search_solution_use_case
314859314859
"/retail:v2/GoogleCloudRetailV2Control/solutionTypes": solution_types
314860314860
"/retail:v2/GoogleCloudRetailV2Control/solutionTypes/solution_type": solution_type
314861+
"/retail:v2/GoogleCloudRetailV2ConversationalSearchCustomizationConfig": google_cloud_retail_v2_conversational_search_customization_config
314862+
"/retail:v2/GoogleCloudRetailV2ConversationalSearchCustomizationConfig/catalog": catalog
314863+
"/retail:v2/GoogleCloudRetailV2ConversationalSearchCustomizationConfig/intentClassificationConfig": intent_classification_config
314864+
"/retail:v2/GoogleCloudRetailV2ConversationalSearchCustomizationConfig/retailerDisplayName": retailer_display_name
314861314865
"/retail:v2/GoogleCloudRetailV2CreateModelMetadata": google_cloud_retail_v2_create_model_metadata
314862314866
"/retail:v2/GoogleCloudRetailV2CreateModelMetadata/model": model
314863314867
"/retail:v2/GoogleCloudRetailV2CustomAttribute": google_cloud_retail_v2_custom_attribute
@@ -314955,6 +314959,18 @@
314955314959
"/retail:v2/GoogleCloudRetailV2ImportUserEventsResponse/errorSamples/error_sample": error_sample
314956314960
"/retail:v2/GoogleCloudRetailV2ImportUserEventsResponse/errorsConfig": errors_config
314957314961
"/retail:v2/GoogleCloudRetailV2ImportUserEventsResponse/importSummary": import_summary
314962+
"/retail:v2/GoogleCloudRetailV2IntentClassificationConfig": google_cloud_retail_v2_intent_classification_config
314963+
"/retail:v2/GoogleCloudRetailV2IntentClassificationConfig/blocklistKeywords": blocklist_keywords
314964+
"/retail:v2/GoogleCloudRetailV2IntentClassificationConfig/blocklistKeywords/blocklist_keyword": blocklist_keyword
314965+
"/retail:v2/GoogleCloudRetailV2IntentClassificationConfig/disabledIntentTypes": disabled_intent_types
314966+
"/retail:v2/GoogleCloudRetailV2IntentClassificationConfig/disabledIntentTypes/disabled_intent_type": disabled_intent_type
314967+
"/retail:v2/GoogleCloudRetailV2IntentClassificationConfig/example": example
314968+
"/retail:v2/GoogleCloudRetailV2IntentClassificationConfig/example/example": example
314969+
"/retail:v2/GoogleCloudRetailV2IntentClassificationConfig/modelPreamble": model_preamble
314970+
"/retail:v2/GoogleCloudRetailV2IntentClassificationConfigExample": google_cloud_retail_v2_intent_classification_config_example
314971+
"/retail:v2/GoogleCloudRetailV2IntentClassificationConfigExample/intentType": intent_type
314972+
"/retail:v2/GoogleCloudRetailV2IntentClassificationConfigExample/query": query
314973+
"/retail:v2/GoogleCloudRetailV2IntentClassificationConfigExample/reason": reason
314958314974
"/retail:v2/GoogleCloudRetailV2Interval": google_cloud_retail_v2_interval
314959314975
"/retail:v2/GoogleCloudRetailV2Interval/exclusiveMaximum": exclusive_maximum
314960314976
"/retail:v2/GoogleCloudRetailV2Interval/exclusiveMinimum": exclusive_minimum
@@ -315916,6 +315932,8 @@
315916315932
"/retail:v2/retail.projects.locations.catalogs.getAttributesConfig/name": name
315917315933
"/retail:v2/retail.projects.locations.catalogs.getCompletionConfig": get_project_location_catalog_completion_config
315918315934
"/retail:v2/retail.projects.locations.catalogs.getCompletionConfig/name": name
315935+
"/retail:v2/retail.projects.locations.catalogs.getConversationalSearchCustomizationConfig": get_project_location_catalog_conversational_search_customization_config
315936+
"/retail:v2/retail.projects.locations.catalogs.getConversationalSearchCustomizationConfig/name": name
315919315937
"/retail:v2/retail.projects.locations.catalogs.getDefaultBranch": get_project_location_catalog_default_branch
315920315938
"/retail:v2/retail.projects.locations.catalogs.getDefaultBranch/catalog": catalog
315921315939
"/retail:v2/retail.projects.locations.catalogs.getGenerativeQuestionFeature": get_project_location_catalog_generative_question_feature
@@ -315988,6 +316006,9 @@
315988316006
"/retail:v2/retail.projects.locations.catalogs.updateCompletionConfig": update_project_location_catalog_completion_config
315989316007
"/retail:v2/retail.projects.locations.catalogs.updateCompletionConfig/name": name
315990316008
"/retail:v2/retail.projects.locations.catalogs.updateCompletionConfig/updateMask": update_mask
316009+
"/retail:v2/retail.projects.locations.catalogs.updateConversationalSearchCustomizationConfig": update_project_location_catalog_conversational_search_customization_config
316010+
"/retail:v2/retail.projects.locations.catalogs.updateConversationalSearchCustomizationConfig/catalog": catalog
316011+
"/retail:v2/retail.projects.locations.catalogs.updateConversationalSearchCustomizationConfig/updateMask": update_mask
315991316012
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestion": update_project_location_catalog_generative_question
315992316013
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestion/catalog": catalog
315993316014
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestion/updateMask": update_mask

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

3+
### v0.118.0 (2025-06-22)
4+
5+
* Regenerated from discovery document revision 20250613
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_v2/lib/google/apis/retail_v2/classes.rb

Lines changed: 119 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,6 +1552,41 @@ def update!(**args)
15521552
end
15531553
end
15541554

1555+
# The public proto to represent the conversational search customization config.
1556+
# It will be converted to the internal proto in the backend.
1557+
class GoogleCloudRetailV2ConversationalSearchCustomizationConfig
1558+
include Google::Apis::Core::Hashable
1559+
1560+
# Required. Resource name of the catalog. Format: projects/`project`/locations/`
1561+
# location`/catalogs/`catalog`
1562+
# Corresponds to the JSON property `catalog`
1563+
# @return [String]
1564+
attr_accessor :catalog
1565+
1566+
# The public proto to represent the intent classification config. It will be
1567+
# converted to the internal proto in the backend.
1568+
# Corresponds to the JSON property `intentClassificationConfig`
1569+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfig]
1570+
attr_accessor :intent_classification_config
1571+
1572+
# Optional. The retailer's display name that could be used in our LLM answers.
1573+
# Example - "Google"
1574+
# Corresponds to the JSON property `retailerDisplayName`
1575+
# @return [String]
1576+
attr_accessor :retailer_display_name
1577+
1578+
def initialize(**args)
1579+
update!(**args)
1580+
end
1581+
1582+
# Update properties of this object
1583+
def update!(**args)
1584+
@catalog = args[:catalog] if args.key?(:catalog)
1585+
@intent_classification_config = args[:intent_classification_config] if args.key?(:intent_classification_config)
1586+
@retailer_display_name = args[:retailer_display_name] if args.key?(:retailer_display_name)
1587+
end
1588+
end
1589+
15551590
# Metadata associated with a create operation.
15561591
class GoogleCloudRetailV2CreateModelMetadata
15571592
include Google::Apis::Core::Hashable
@@ -2351,6 +2386,84 @@ def update!(**args)
23512386
end
23522387
end
23532388

2389+
# The public proto to represent the intent classification config. It will be
2390+
# converted to the internal proto in the backend.
2391+
class GoogleCloudRetailV2IntentClassificationConfig
2392+
include Google::Apis::Core::Hashable
2393+
2394+
# Optional. A list of keywords that will be used to classify the query to the "
2395+
# BLOCKLISTED" intent type. The keywords are case insensitive.
2396+
# Corresponds to the JSON property `blocklistKeywords`
2397+
# @return [Array<String>]
2398+
attr_accessor :blocklist_keywords
2399+
2400+
# Optional. A list of intent types that will be disabled for this customer. The
2401+
# intent types must match one of the predefined intent types defined at https://
2402+
# cloud.google.com/retail/docs/reference/rpc/google.cloud.retail.v2alpha#
2403+
# querytype
2404+
# Corresponds to the JSON property `disabledIntentTypes`
2405+
# @return [Array<String>]
2406+
attr_accessor :disabled_intent_types
2407+
2408+
# Optional. A list of examples for intent classification.
2409+
# Corresponds to the JSON property `example`
2410+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigExample>]
2411+
attr_accessor :example
2412+
2413+
# Optional. Customers can use the preamble to specify any requirements for
2414+
# blocklisting intent classification. This preamble will be added to the
2415+
# blocklisting intent classification model prompt.
2416+
# Corresponds to the JSON property `modelPreamble`
2417+
# @return [String]
2418+
attr_accessor :model_preamble
2419+
2420+
def initialize(**args)
2421+
update!(**args)
2422+
end
2423+
2424+
# Update properties of this object
2425+
def update!(**args)
2426+
@blocklist_keywords = args[:blocklist_keywords] if args.key?(:blocklist_keywords)
2427+
@disabled_intent_types = args[:disabled_intent_types] if args.key?(:disabled_intent_types)
2428+
@example = args[:example] if args.key?(:example)
2429+
@model_preamble = args[:model_preamble] if args.key?(:model_preamble)
2430+
end
2431+
end
2432+
2433+
# An example for intent classification.
2434+
class GoogleCloudRetailV2IntentClassificationConfigExample
2435+
include Google::Apis::Core::Hashable
2436+
2437+
# Optional. The intent_type must match one of the predefined intent types
2438+
# defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
2439+
# retail.v2alpha#querytype
2440+
# Corresponds to the JSON property `intentType`
2441+
# @return [String]
2442+
attr_accessor :intent_type
2443+
2444+
# Required. Example query.
2445+
# Corresponds to the JSON property `query`
2446+
# @return [String]
2447+
attr_accessor :query
2448+
2449+
# Optional. The reason for the intent classification. This is used to explain
2450+
# the intent classification decision.
2451+
# Corresponds to the JSON property `reason`
2452+
# @return [String]
2453+
attr_accessor :reason
2454+
2455+
def initialize(**args)
2456+
update!(**args)
2457+
end
2458+
2459+
# Update properties of this object
2460+
def update!(**args)
2461+
@intent_type = args[:intent_type] if args.key?(:intent_type)
2462+
@query = args[:query] if args.key?(:query)
2463+
@reason = args[:reason] if args.key?(:reason)
2464+
end
2465+
end
2466+
23542467
# A floating point interval.
23552468
class GoogleCloudRetailV2Interval
23562469
include Google::Apis::Core::Hashable
@@ -5547,9 +5660,9 @@ class GoogleCloudRetailV2SearchRequestQueryExpansionSpec
55475660
# @return [String]
55485661
attr_accessor :condition
55495662

5550-
# Whether to pin unexpanded results. If this field is set to true, unexpanded
5551-
# products are always at the top of the search results, followed by the expanded
5552-
# results.
5663+
# Whether to pin unexpanded results. The default value is false. If this field
5664+
# is set to true, unexpanded products are always at the top of the search
5665+
# results, followed by the expanded results.
55535666
# Corresponds to the JSON property `pinUnexpandedResults`
55545667
# @return [Boolean]
55555668
attr_accessor :pin_unexpanded_results
@@ -6626,9 +6739,9 @@ class GoogleCloudRetailV2UserEvent
66266739

66276740
# A unique identifier for tracking a visitor session with a length limit of 128
66286741
# bytes. A session is an aggregation of an end user behavior in a time span. A
6629-
# general guideline to populate the sesion_id: 1. If user has no activity for 30
6630-
# min, a new session_id should be assigned. 2. The session_id should be unique
6631-
# across users, suggest use uuid or add visitor_id as prefix.
6742+
# general guideline to populate the session_id: 1. If user has no activity for
6743+
# 30 min, a new session_id should be assigned. 2. The session_id should be
6744+
# unique across users, suggest use uuid or add visitor_id as prefix.
66326745
# Corresponds to the JSON property `sessionId`
66336746
# @return [String]
66346747
attr_accessor :session_id

generated/google-apis-retail_v2/lib/google/apis/retail_v2/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 RetailV2
1818
# Version of the google-apis-retail_v2 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 = "20250613"
2626
end
2727
end
2828
end

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

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
268268
include Google::Apis::Core::JsonObjectSupport
269269
end
270270

271+
class GoogleCloudRetailV2ConversationalSearchCustomizationConfig
272+
class Representation < Google::Apis::Core::JsonRepresentation; end
273+
274+
include Google::Apis::Core::JsonObjectSupport
275+
end
276+
271277
class GoogleCloudRetailV2CreateModelMetadata
272278
class Representation < Google::Apis::Core::JsonRepresentation; end
273279

@@ -412,6 +418,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
412418
include Google::Apis::Core::JsonObjectSupport
413419
end
414420

421+
class GoogleCloudRetailV2IntentClassificationConfig
422+
class Representation < Google::Apis::Core::JsonRepresentation; end
423+
424+
include Google::Apis::Core::JsonObjectSupport
425+
end
426+
427+
class GoogleCloudRetailV2IntentClassificationConfigExample
428+
class Representation < Google::Apis::Core::JsonRepresentation; end
429+
430+
include Google::Apis::Core::JsonObjectSupport
431+
end
432+
415433
class GoogleCloudRetailV2Interval
416434
class Representation < Google::Apis::Core::JsonRepresentation; end
417435

@@ -1948,6 +1966,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
19481966
end
19491967
end
19501968

1969+
class GoogleCloudRetailV2ConversationalSearchCustomizationConfig
1970+
# @private
1971+
class Representation < Google::Apis::Core::JsonRepresentation
1972+
property :catalog, as: 'catalog'
1973+
property :intent_classification_config, as: 'intentClassificationConfig', class: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfig, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfig::Representation
1974+
1975+
property :retailer_display_name, as: 'retailerDisplayName'
1976+
end
1977+
end
1978+
19511979
class GoogleCloudRetailV2CreateModelMetadata
19521980
# @private
19531981
class Representation < Google::Apis::Core::JsonRepresentation
@@ -2170,6 +2198,26 @@ class Representation < Google::Apis::Core::JsonRepresentation
21702198
end
21712199
end
21722200

2201+
class GoogleCloudRetailV2IntentClassificationConfig
2202+
# @private
2203+
class Representation < Google::Apis::Core::JsonRepresentation
2204+
collection :blocklist_keywords, as: 'blocklistKeywords'
2205+
collection :disabled_intent_types, as: 'disabledIntentTypes'
2206+
collection :example, as: 'example', class: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigExample, decorator: Google::Apis::RetailV2::GoogleCloudRetailV2IntentClassificationConfigExample::Representation
2207+
2208+
property :model_preamble, as: 'modelPreamble'
2209+
end
2210+
end
2211+
2212+
class GoogleCloudRetailV2IntentClassificationConfigExample
2213+
# @private
2214+
class Representation < Google::Apis::Core::JsonRepresentation
2215+
property :intent_type, as: 'intentType'
2216+
property :query, as: 'query'
2217+
property :reason, as: 'reason'
2218+
end
2219+
end
2220+
21732221
class GoogleCloudRetailV2Interval
21742222
# @private
21752223
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)