Skip to content

Commit

Permalink
feat: Automated regeneration of retail v2 client
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation committed Sep 29, 2024
1 parent 6fd6998 commit fd21141
Show file tree
Hide file tree
Showing 6 changed files with 487 additions and 2 deletions.
37 changes: 37 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281245,6 +281245,12 @@
"/retail:v2/GoogleCloudRetailV2Audience/ageGroups/age_group": age_group
"/retail:v2/GoogleCloudRetailV2Audience/genders": genders
"/retail:v2/GoogleCloudRetailV2Audience/genders/gender": gender
"/retail:v2/GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest": google_cloud_retail_v2_batch_update_generative_question_configs_request
"/retail:v2/GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest/requests": requests
"/retail:v2/GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest/requests/request": request
"/retail:v2/GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse": google_cloud_retail_v2_batch_update_generative_question_configs_response
"/retail:v2/GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse/generativeQuestionConfigs": generative_question_configs
"/retail:v2/GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse/generativeQuestionConfigs/generative_question_config": generative_question_config
"/retail:v2/GoogleCloudRetailV2BigQueryOutputResult": google_cloud_retail_v2_big_query_output_result
"/retail:v2/GoogleCloudRetailV2BigQueryOutputResult/datasetId": dataset_id
"/retail:v2/GoogleCloudRetailV2BigQueryOutputResult/tableId": table_id
Expand Down Expand Up @@ -281397,6 +281403,19 @@
"/retail:v2/GoogleCloudRetailV2GcsSource/dataSchema": data_schema
"/retail:v2/GoogleCloudRetailV2GcsSource/inputUris": input_uris
"/retail:v2/GoogleCloudRetailV2GcsSource/inputUris/input_uri": input_uri
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig": google_cloud_retail_v2_generative_question_config
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/allowedInConversation": allowed_in_conversation
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/catalog": catalog
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/exampleValues": example_values
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/exampleValues/example_value": example_value
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/facet": facet
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/finalQuestion": final_question
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/frequency": frequency
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionConfig/generatedQuestion": generated_question
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionsFeatureConfig": google_cloud_retail_v2_generative_questions_feature_config
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionsFeatureConfig/catalog": catalog
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionsFeatureConfig/featureEnabled": feature_enabled
"/retail:v2/GoogleCloudRetailV2GenerativeQuestionsFeatureConfig/minimumProducts": minimum_products
"/retail:v2/GoogleCloudRetailV2GetDefaultBranchResponse": google_cloud_retail_v2_get_default_branch_response
"/retail:v2/GoogleCloudRetailV2GetDefaultBranchResponse/branch": branch
"/retail:v2/GoogleCloudRetailV2GetDefaultBranchResponse/note": note
Expand Down Expand Up @@ -281452,6 +281471,9 @@
"/retail:v2/GoogleCloudRetailV2ListControlsResponse/controls": controls
"/retail:v2/GoogleCloudRetailV2ListControlsResponse/controls/control": control
"/retail:v2/GoogleCloudRetailV2ListControlsResponse/nextPageToken": next_page_token
"/retail:v2/GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse": google_cloud_retail_v2_list_generative_question_configs_response
"/retail:v2/GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse/generativeQuestionConfigs": generative_question_configs
"/retail:v2/GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse/generativeQuestionConfigs/generative_question_config": generative_question_config
"/retail:v2/GoogleCloudRetailV2ListModelsResponse": google_cloud_retail_v2_list_models_response
"/retail:v2/GoogleCloudRetailV2ListModelsResponse/models": models
"/retail:v2/GoogleCloudRetailV2ListModelsResponse/models/model": model
Expand Down Expand Up @@ -281912,6 +281934,9 @@
"/retail:v2/GoogleCloudRetailV2TuneModelMetadata/model": model
"/retail:v2/GoogleCloudRetailV2TuneModelRequest": google_cloud_retail_v2_tune_model_request
"/retail:v2/GoogleCloudRetailV2TuneModelResponse": google_cloud_retail_v2_tune_model_response
"/retail:v2/GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest": google_cloud_retail_v2_update_generative_question_config_request
"/retail:v2/GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest/generativeQuestionConfig": generative_question_config
"/retail:v2/GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest/updateMask": update_mask
"/retail:v2/GoogleCloudRetailV2UserEvent": google_cloud_retail_v2_user_event
"/retail:v2/GoogleCloudRetailV2UserEvent/attributes": attributes
"/retail:v2/GoogleCloudRetailV2UserEvent/attributes/attribute": attribute
Expand Down Expand Up @@ -282363,12 +282388,18 @@
"/retail:v2/retail.projects.locations.catalogs.controls.patch/updateMask": update_mask
"/retail:v2/retail.projects.locations.catalogs.exportAnalyticsMetrics": export_project_location_catalog_analytics_metrics
"/retail:v2/retail.projects.locations.catalogs.exportAnalyticsMetrics/catalog": catalog
"/retail:v2/retail.projects.locations.catalogs.generativeQuestion.batchUpdate": batch_project_location_catalog_generative_question_update
"/retail:v2/retail.projects.locations.catalogs.generativeQuestion.batchUpdate/parent": parent
"/retail:v2/retail.projects.locations.catalogs.generativeQuestions.list": list_project_location_catalog_generative_questions
"/retail:v2/retail.projects.locations.catalogs.generativeQuestions.list/parent": parent
"/retail:v2/retail.projects.locations.catalogs.getAttributesConfig": get_project_location_catalog_attributes_config
"/retail:v2/retail.projects.locations.catalogs.getAttributesConfig/name": name
"/retail:v2/retail.projects.locations.catalogs.getCompletionConfig": get_project_location_catalog_completion_config
"/retail:v2/retail.projects.locations.catalogs.getCompletionConfig/name": name
"/retail:v2/retail.projects.locations.catalogs.getDefaultBranch": get_project_location_catalog_default_branch
"/retail:v2/retail.projects.locations.catalogs.getDefaultBranch/catalog": catalog
"/retail:v2/retail.projects.locations.catalogs.getGenerativeQuestionFeature": get_project_location_catalog_generative_question_feature
"/retail:v2/retail.projects.locations.catalogs.getGenerativeQuestionFeature/catalog": catalog
"/retail:v2/retail.projects.locations.catalogs.list": list_project_location_catalogs
"/retail:v2/retail.projects.locations.catalogs.list/pageSize": page_size
"/retail:v2/retail.projects.locations.catalogs.list/pageToken": page_token
Expand Down Expand Up @@ -282437,6 +282468,12 @@
"/retail:v2/retail.projects.locations.catalogs.updateCompletionConfig": update_project_location_catalog_completion_config
"/retail:v2/retail.projects.locations.catalogs.updateCompletionConfig/name": name
"/retail:v2/retail.projects.locations.catalogs.updateCompletionConfig/updateMask": update_mask
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestion": update_project_location_catalog_generative_question
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestion/catalog": catalog
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestion/updateMask": update_mask
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestionFeature": update_project_location_catalog_generative_question_feature
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestionFeature/catalog": catalog
"/retail:v2/retail.projects.locations.catalogs.updateGenerativeQuestionFeature/updateMask": update_mask
"/retail:v2/retail.projects.locations.catalogs.userEvents.collect": collect_project_location_catalog_user_event
"/retail:v2/retail.projects.locations.catalogs.userEvents.collect/ets": ets
"/retail:v2/retail.projects.locations.catalogs.userEvents.collect/parent": parent
Expand Down
4 changes: 4 additions & 0 deletions generated/google-apis-retail_v2/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release history for google-apis-retail_v2

### v0.102.0 (2024-09-29)

* Regenerated from discovery document revision 20240920

### v0.101.0 (2024-09-22)

* Regenerated from discovery document revision 20240912
Expand Down
177 changes: 177 additions & 0 deletions generated/google-apis-retail_v2/lib/google/apis/retail_v2/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -560,6 +560,44 @@ def update!(**args)
end
end

# Request for BatchUpdateGenerativeQuestionConfig method.
class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsRequest
include Google::Apis::Core::Hashable

# Required. The updates question configs.
# Corresponds to the JSON property `requests`
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest>]
attr_accessor :requests

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@requests = args[:requests] if args.key?(:requests)
end
end

# Aggregated response for UpdateGenerativeQuestionConfig method.
class GoogleCloudRetailV2BatchUpdateGenerativeQuestionConfigsResponse
include Google::Apis::Core::Hashable

# Optional. The updates question configs.
# Corresponds to the JSON property `generativeQuestionConfigs`
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig>]
attr_accessor :generative_question_configs

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@generative_question_configs = args[:generative_question_configs] if args.key?(:generative_question_configs)
end
end

# A BigQuery output result.
class GoogleCloudRetailV2BigQueryOutputResult
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -1805,6 +1843,99 @@ def update!(**args)
end
end

# Configuration for a single generated question.
class GoogleCloudRetailV2GenerativeQuestionConfig
include Google::Apis::Core::Hashable

# Optional. Whether the question is asked at serving time.
# Corresponds to the JSON property `allowedInConversation`
# @return [Boolean]
attr_accessor :allowed_in_conversation
alias_method :allowed_in_conversation?, :allowed_in_conversation

# Required. Resource name of the catalog. Format: projects/`project`/locations/`
# location`/catalogs/`catalog`
# Corresponds to the JSON property `catalog`
# @return [String]
attr_accessor :catalog

# Output only. Values that can be used to answer the question.
# Corresponds to the JSON property `exampleValues`
# @return [Array<String>]
attr_accessor :example_values

# Required. The facet to which the question is associated.
# Corresponds to the JSON property `facet`
# @return [String]
attr_accessor :facet

# Optional. The question that will be used at serving time. Question can have a
# max length of 300 bytes. When not populated, generated_question should be used.
# Corresponds to the JSON property `finalQuestion`
# @return [String]
attr_accessor :final_question

# Output only. The ratio of how often a question was asked.
# Corresponds to the JSON property `frequency`
# @return [Float]
attr_accessor :frequency

# Output only. The LLM generated question.
# Corresponds to the JSON property `generatedQuestion`
# @return [String]
attr_accessor :generated_question

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@allowed_in_conversation = args[:allowed_in_conversation] if args.key?(:allowed_in_conversation)
@catalog = args[:catalog] if args.key?(:catalog)
@example_values = args[:example_values] if args.key?(:example_values)
@facet = args[:facet] if args.key?(:facet)
@final_question = args[:final_question] if args.key?(:final_question)
@frequency = args[:frequency] if args.key?(:frequency)
@generated_question = args[:generated_question] if args.key?(:generated_question)
end
end

# Configuration for overall generative question feature state.
class GoogleCloudRetailV2GenerativeQuestionsFeatureConfig
include Google::Apis::Core::Hashable

# Required. Resource name of the affected catalog. Format: projects/`project`/
# locations/`location`/catalogs/`catalog`
# Corresponds to the JSON property `catalog`
# @return [String]
attr_accessor :catalog

# Optional. Determines whether questions will be used at serving time. Note:
# This feature cannot be enabled until initial data requirements are satisfied.
# Corresponds to the JSON property `featureEnabled`
# @return [Boolean]
attr_accessor :feature_enabled
alias_method :feature_enabled?, :feature_enabled

# Optional. Minimum number of products in the response to trigger follow-up
# questions. Value must be 0 or positive.
# Corresponds to the JSON property `minimumProducts`
# @return [Fixnum]
attr_accessor :minimum_products

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@catalog = args[:catalog] if args.key?(:catalog)
@feature_enabled = args[:feature_enabled] if args.key?(:feature_enabled)
@minimum_products = args[:minimum_products] if args.key?(:minimum_products)
end
end

# Response message of CatalogService.GetDefaultBranch.
class GoogleCloudRetailV2GetDefaultBranchResponse
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -2235,6 +2366,25 @@ def update!(**args)
end
end

# Response for ListQuestions method.
class GoogleCloudRetailV2ListGenerativeQuestionConfigsResponse
include Google::Apis::Core::Hashable

# All the questions for a given catalog.
# Corresponds to the JSON property `generativeQuestionConfigs`
# @return [Array<Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig>]
attr_accessor :generative_question_configs

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@generative_question_configs = args[:generative_question_configs] if args.key?(:generative_question_configs)
end
end

# Response to a ListModelRequest.
class GoogleCloudRetailV2ListModelsResponse
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -6062,6 +6212,33 @@ def update!(**args)
end
end

# Request for UpdateGenerativeQuestionConfig method.
class GoogleCloudRetailV2UpdateGenerativeQuestionConfigRequest
include Google::Apis::Core::Hashable

# Configuration for a single generated question.
# Corresponds to the JSON property `generativeQuestionConfig`
# @return [Google::Apis::RetailV2::GoogleCloudRetailV2GenerativeQuestionConfig]
attr_accessor :generative_question_config

# Optional. Indicates which fields in the provided GenerativeQuestionConfig to
# update. The following are NOT supported: * GenerativeQuestionConfig.frequency
# If not set or empty, all supported fields are updated.
# Corresponds to the JSON property `updateMask`
# @return [String]
attr_accessor :update_mask

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@generative_question_config = args[:generative_question_config] if args.key?(:generative_question_config)
@update_mask = args[:update_mask] if args.key?(:update_mask)
end
end

# UserEvent captures all metadata information Retail API needs to know about how
# end users interact with customers' website.
class GoogleCloudRetailV2UserEvent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ module Google
module Apis
module RetailV2
# Version of the google-apis-retail_v2 gem
GEM_VERSION = "0.101.0"
GEM_VERSION = "0.102.0"

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

# Revision of the discovery document this client was generated from
REVISION = "20240912"
REVISION = "20240920"
end
end
end
Loading

0 comments on commit fd21141

Please sign in to comment.