Skip to content

Commit 9daf784

Browse files
feat: Automated regeneration of retail v2 client (googleapis#20290)
Auto-created at 2024-09-29 09:29:07 +0000 using the toys pull request generator.
1 parent 928e710 commit 9daf784

File tree

6 files changed

+487
-2
lines changed

6 files changed

+487
-2
lines changed

api_names_out.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281964,6 +281964,12 @@
281964281964
"/retail:v2/GoogleCloudRetailV2Audience/ageGroups/age_group": age_group
281965281965
"/retail:v2/GoogleCloudRetailV2Audience/genders": genders
281966281966
"/retail:v2/GoogleCloudRetailV2Audience/genders/gender": gender
281967+
"/retail:v2/GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest": google_cloud_retail_v2_batch_update_generative_question_configs_request
281968+
"/retail:v2/GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest/requests": requests
281969+
"/retail:v2/GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest/requests/request": request
281970+
"/retail:v2/GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse": google_cloud_retail_v2_batch_update_generative_question_configs_response
281971+
"/retail:v2/GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse/generativeQuestionConfigs": generative_question_configs
281972+
"/retail:v2/GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse/generativeQuestionConfigs/generative_question_config": generative_question_config
281967281973
"/retail:v2/GoogleCloudRetailV2BigQueryOutputResult": google_cloud_retail_v2_big_query_output_result
281968281974
"/retail:v2/GoogleCloudRetailV2BigQueryOutputResult/datasetId": dataset_id
281969281975
"/retail:v2/GoogleCloudRetailV2BigQueryOutputResult/tableId": table_id
@@ -282116,6 +282122,19 @@
282116282122
"/retail:v2/GoogleCloudRetailV2GcsSource/dataSchema": data_schema
282117282123
"/retail:v2/GoogleCloudRetailV2GcsSource/inputUris": input_uris
282118282124
"/retail:v2/GoogleCloudRetailV2GcsSource/inputUris/input_uri": input_uri
282125+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig": google_cloud_retail_v2_generative_question_config
282126+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/allowedInConversation": allowed_in_conversation
282127+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/catalog": catalog
282128+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/exampleValues": example_values
282129+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/exampleValues/example_value": example_value
282130+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/facet": facet
282131+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/finalQuestion": final_question
282132+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/frequency": frequency
282133+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/generatedQuestion": generated_question
282134+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionsFeatureConfig": google_cloud_retail_v2_generative_questions_feature_config
282135+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionsFeatureConfig/catalog": catalog
282136+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionsFeatureConfig/featureEnabled": feature_enabled
282137+
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionsFeatureConfig/minimumProducts": minimum_products
282119282138
"/retail:v2/GoogleCloudRetailV2GetDefaultBranchResponse": google_cloud_retail_v2_get_default_branch_response
282120282139
"/retail:v2/GoogleCloudRetailV2GetDefaultBranchResponse/branch": branch
282121282140
"/retail:v2/GoogleCloudRetailV2GetDefaultBranchResponse/note": note
@@ -282171,6 +282190,9 @@
282171282190
"/retail:v2/GoogleCloudRetailV2ListControlsResponse/controls": controls
282172282191
"/retail:v2/GoogleCloudRetailV2ListControlsResponse/controls/control": control
282173282192
"/retail:v2/GoogleCloudRetailV2ListControlsResponse/nextPageToken": next_page_token
282193+
"/retail:v2/GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse": google_cloud_retail_v2_list_generative_question_configs_response
282194+
"/retail:v2/GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse/generativeQuestionConfigs": generative_question_configs
282195+
"/retail:v2/GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse/generativeQuestionConfigs/generative_question_config": generative_question_config
282174282196
"/retail:v2/GoogleCloudRetailV2ListModelsResponse": google_cloud_retail_v2_list_models_response
282175282197
"/retail:v2/GoogleCloudRetailV2ListModelsResponse/models": models
282176282198
"/retail:v2/GoogleCloudRetailV2ListModelsResponse/models/model": model
@@ -282631,6 +282653,9 @@
282631282653
"/retail:v2/GoogleCloudRetailV2TuneModelMetadata/model": model
282632282654
"/retail:v2/GoogleCloudRetailV2TuneModelRequest": google_cloud_retail_v2_tune_model_request
282633282655
"/retail:v2/GoogleCloudRetailV2TuneModelResponse": google_cloud_retail_v2_tune_model_response
282656+
"/retail:v2/GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest": google_cloud_retail_v2_update_generative_question_config_request
282657+
"/retail:v2/GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest/generativeQuestionConfig": generative_question_config
282658+
"/retail:v2/GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest/updateMask": update_mask
282634282659
"/retail:v2/GoogleCloudRetailV2UserEvent": google_cloud_retail_v2_user_event
282635282660
"/retail:v2/GoogleCloudRetailV2UserEvent/attributes": attributes
282636282661
"/retail:v2/GoogleCloudRetailV2UserEvent/attributes/attribute": attribute
@@ -283082,12 +283107,18 @@
283082283107
"/retail:v2/retail.projects.locations.catalogs.controls.patch/updateMask": update_mask
283083283108
"/retail:v2/retail.projects.locations.catalogs.exportAnalyticsMetrics": export_project_location_catalog_analytics_metrics
283084283109
"/retail:v2/retail.projects.locations.catalogs.exportAnalyticsMetrics/catalog": catalog
283110+
"/retail:v2/retail.projects.locations.catalogs.generativeQuestion.batchUpdate": batch_project_location_catalog_generative_question_update
283111+
"/retail:v2/retail.projects.locations.catalogs.generativeQuestion.batchUpdate/parent": parent
283112+
"/retail:v2/retail.projects.locations.catalogs.generativeQuestions.list": list_project_location_catalog_generative_questions
283113+
"/retail:v2/retail.projects.locations.catalogs.generativeQuestions.list/parent": parent
283085283114
"/retail:v2/retail.projects.locations.catalogs.getAttributesConfig": get_project_location_catalog_attributes_config
283086283115
"/retail:v2/retail.projects.locations.catalogs.getAttributesConfig/name": name
283087283116
"/retail:v2/retail.projects.locations.catalogs.getCompletionConfig": get_project_location_catalog_completion_config
283088283117
"/retail:v2/retail.projects.locations.catalogs.getCompletionConfig/name": name
283089283118
"/retail:v2/retail.projects.locations.catalogs.getDefaultBranch": get_project_location_catalog_default_branch
283090283119
"/retail:v2/retail.projects.locations.catalogs.getDefaultBranch/catalog": catalog
283120+
"/retail:v2/retail.projects.locations.catalogs.getGenerativeQuestionFeature": get_project_location_catalog_generative_question_feature
283121+
"/retail:v2/retail.projects.locations.catalogs.getGenerativeQuestionFeature/catalog": catalog
283091283122
"/retail:v2/retail.projects.locations.catalogs.list": list_project_location_catalogs
283092283123
"/retail:v2/retail.projects.locations.catalogs.list/pageSize": page_size
283093283124
"/retail:v2/retail.projects.locations.catalogs.list/pageToken": page_token
@@ -283156,6 +283187,12 @@
283156283187
"/retail:v2/retail.projects.locations.catalogs.updateCompletionConfig": update_project_location_catalog_completion_config
283157283188
"/retail:v2/retail.projects.locations.catalogs.updateCompletionConfig/name": name
283158283189
"/retail:v2/retail.projects.locations.catalogs.updateCompletionConfig/updateMask": update_mask
283190+
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestion": update_project_location_catalog_generative_question
283191+
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestion/catalog": catalog
283192+
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestion/updateMask": update_mask
283193+
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestionFeature": update_project_location_catalog_generative_question_feature
283194+
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestionFeature/catalog": catalog
283195+
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestionFeature/updateMask": update_mask
283159283196
"/retail:v2/retail.projects.locations.catalogs.userEvents.collect": collect_project_location_catalog_user_event
283160283197
"/retail:v2/retail.projects.locations.catalogs.userEvents.collect/ets": ets
283161283198
"/retail:v2/retail.projects.locations.catalogs.userEvents.collect/parent": parent

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

3+
### v0.102.0 (2024-09-29)
4+
5+
* Regenerated from discovery document revision 20240920
6+
37
### v0.101.0 (2024-09-22)
48

59
* Regenerated from discovery document revision 20240912

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

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,44 @@ def update!(**args)
560560
end
561561
end
562562

563+
# Request for BatchUpdateGenerativeQuestionConfig method.
564+
class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest
565+
include Google::Apis::Core::Hashable
566+
567+
# Required. The updates question configs.
568+
# Corresponds to the JSON property `requests`
569+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest>]
570+
attr_accessor :requests
571+
572+
def initialize(**args)
573+
update!(**args)
574+
end
575+
576+
# Update properties of this object
577+
def update!(**args)
578+
@requests = args[:requests] if args.key?(:requests)
579+
end
580+
end
581+
582+
# Aggregated response for UpdateGenerativeQuestionConfig method.
583+
class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse
584+
include Google::Apis::Core::Hashable
585+
586+
# Optional. The updates question configs.
587+
# Corresponds to the JSON property `generativeQuestionConfigs`
588+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig>]
589+
attr_accessor :generative_question_configs
590+
591+
def initialize(**args)
592+
update!(**args)
593+
end
594+
595+
# Update properties of this object
596+
def update!(**args)
597+
@generative_question_configs = args[:generative_question_configs] if args.key?(:generative_question_configs)
598+
end
599+
end
600+
563601
# A BigQuery output result.
564602
class GoogleCloudRetailV2BigQueryOutputResult
565603
include Google::Apis::Core::Hashable
@@ -1805,6 +1843,99 @@ def update!(**args)
18051843
end
18061844
end
18071845

1846+
# Configuration for a single generated question.
1847+
class GoogleCloudRetailV2GenerativeQuestionConfig
1848+
include Google::Apis::Core::Hashable
1849+
1850+
# Optional. Whether the question is asked at serving time.
1851+
# Corresponds to the JSON property `allowedInConversation`
1852+
# @return [Boolean]
1853+
attr_accessor :allowed_in_conversation
1854+
alias_method :allowed_in_conversation?, :allowed_in_conversation
1855+
1856+
# Required. Resource name of the catalog. Format: projects/`project`/locations/`
1857+
# location`/catalogs/`catalog`
1858+
# Corresponds to the JSON property `catalog`
1859+
# @return [String]
1860+
attr_accessor :catalog
1861+
1862+
# Output only. Values that can be used to answer the question.
1863+
# Corresponds to the JSON property `exampleValues`
1864+
# @return [Array<String>]
1865+
attr_accessor :example_values
1866+
1867+
# Required. The facet to which the question is associated.
1868+
# Corresponds to the JSON property `facet`
1869+
# @return [String]
1870+
attr_accessor :facet
1871+
1872+
# Optional. The question that will be used at serving time. Question can have a
1873+
# max length of 300 bytes. When not populated, generated_question should be used.
1874+
# Corresponds to the JSON property `finalQuestion`
1875+
# @return [String]
1876+
attr_accessor :final_question
1877+
1878+
# Output only. The ratio of how often a question was asked.
1879+
# Corresponds to the JSON property `frequency`
1880+
# @return [Float]
1881+
attr_accessor :frequency
1882+
1883+
# Output only. The LLM generated question.
1884+
# Corresponds to the JSON property `generatedQuestion`
1885+
# @return [String]
1886+
attr_accessor :generated_question
1887+
1888+
def initialize(**args)
1889+
update!(**args)
1890+
end
1891+
1892+
# Update properties of this object
1893+
def update!(**args)
1894+
@allowed_in_conversation = args[:allowed_in_conversation] if args.key?(:allowed_in_conversation)
1895+
@catalog = args[:catalog] if args.key?(:catalog)
1896+
@example_values = args[:example_values] if args.key?(:example_values)
1897+
@facet = args[:facet] if args.key?(:facet)
1898+
@final_question = args[:final_question] if args.key?(:final_question)
1899+
@frequency = args[:frequency] if args.key?(:frequency)
1900+
@generated_question = args[:generated_question] if args.key?(:generated_question)
1901+
end
1902+
end
1903+
1904+
# Configuration for overall generative question feature state.
1905+
class GoogleCloudRetailV2GenerativeQuestionsFeatureConfig
1906+
include Google::Apis::Core::Hashable
1907+
1908+
# Required. Resource name of the affected catalog. Format: projects/`project`/
1909+
# locations/`location`/catalogs/`catalog`
1910+
# Corresponds to the JSON property `catalog`
1911+
# @return [String]
1912+
attr_accessor :catalog
1913+
1914+
# Optional. Determines whether questions will be used at serving time. Note:
1915+
# This feature cannot be enabled until initial data requirements are satisfied.
1916+
# Corresponds to the JSON property `featureEnabled`
1917+
# @return [Boolean]
1918+
attr_accessor :feature_enabled
1919+
alias_method :feature_enabled?, :feature_enabled
1920+
1921+
# Optional. Minimum number of products in the response to trigger follow-up
1922+
# questions. Value must be 0 or positive.
1923+
# Corresponds to the JSON property `minimumProducts`
1924+
# @return [Fixnum]
1925+
attr_accessor :minimum_products
1926+
1927+
def initialize(**args)
1928+
update!(**args)
1929+
end
1930+
1931+
# Update properties of this object
1932+
def update!(**args)
1933+
@catalog = args[:catalog] if args.key?(:catalog)
1934+
@feature_enabled = args[:feature_enabled] if args.key?(:feature_enabled)
1935+
@minimum_products = args[:minimum_products] if args.key?(:minimum_products)
1936+
end
1937+
end
1938+
18081939
# Response message of CatalogService.GetDefaultBranch.
18091940
class GoogleCloudRetailV2GetDefaultBranchResponse
18101941
include Google::Apis::Core::Hashable
@@ -2235,6 +2366,25 @@ def update!(**args)
22352366
end
22362367
end
22372368

2369+
# Response for ListQuestions method.
2370+
class GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse
2371+
include Google::Apis::Core::Hashable
2372+
2373+
# All the questions for a given catalog.
2374+
# Corresponds to the JSON property `generativeQuestionConfigs`
2375+
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig>]
2376+
attr_accessor :generative_question_configs
2377+
2378+
def initialize(**args)
2379+
update!(**args)
2380+
end
2381+
2382+
# Update properties of this object
2383+
def update!(**args)
2384+
@generative_question_configs = args[:generative_question_configs] if args.key?(:generative_question_configs)
2385+
end
2386+
end
2387+
22382388
# Response to a ListModelRequest.
22392389
class GoogleCloudRetailV2ListModelsResponse
22402390
include Google::Apis::Core::Hashable
@@ -6062,6 +6212,33 @@ def update!(**args)
60626212
end
60636213
end
60646214

6215+
# Request for UpdateGenerativeQuestionConfig method.
6216+
class GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest
6217+
include Google::Apis::Core::Hashable
6218+
6219+
# Configuration for a single generated question.
6220+
# Corresponds to the JSON property `generativeQuestionConfig`
6221+
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig]
6222+
attr_accessor :generative_question_config
6223+
6224+
# Optional. Indicates which fields in the provided GenerativeQuestionConfig to
6225+
# update. The following are NOT supported: * GenerativeQuestionConfig.frequency
6226+
# If not set or empty, all supported fields are updated.
6227+
# Corresponds to the JSON property `updateMask`
6228+
# @return [String]
6229+
attr_accessor :update_mask
6230+
6231+
def initialize(**args)
6232+
update!(**args)
6233+
end
6234+
6235+
# Update properties of this object
6236+
def update!(**args)
6237+
@generative_question_config = args[:generative_question_config] if args.key?(:generative_question_config)
6238+
@update_mask = args[:update_mask] if args.key?(:update_mask)
6239+
end
6240+
end
6241+
60656242
# UserEvent captures all metadata information Retail API needs to know about how
60666243
# end users interact with customers' website.
60676244
class GoogleCloudRetailV2UserEvent

generated/google-apis-retail_v2/lib/google/apis/retail_v2/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 RetailV2
1818
# Version of the google-apis-retail_v2 gem
19-
GEM_VERSION = "0.101.0"
19+
GEM_VERSION = "0.102.0"
2020

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

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

0 commit comments

Comments
 (0)