From d32e00f64f7e5b2b7598f70cac515fb83fb8763c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 21 Dec 2025 10:29:46 +0000 Subject: [PATCH] feat: Automated regeneration of discoveryengine v1beta client --- api_names_out.yaml | 27 ++++ .../CHANGELOG.md | 4 + .../apis/discoveryengine_v1beta/classes.rb | 132 ++++++++++++++++-- .../discoveryengine_v1beta/gem_version.rb | 4 +- .../discoveryengine_v1beta/representations.rb | 64 +++++++++ .../apis/discoveryengine_v1beta/service.rb | 126 +++++++++++++++++ 6 files changed, 347 insertions(+), 10 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index a0423db1883..a6c4883698a 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -227218,6 +227218,7 @@ "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequest/rankingExpression": ranking_expression "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequest/rankingExpressionBackend": ranking_expression_backend "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequest/regionCode": region_code +"/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequest/relevanceFilterSpec": relevance_filter_spec "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequest/relevanceScoreSpec": relevance_score_spec "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequest/relevanceThreshold": relevance_threshold "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequest/safeSearch": safe_search @@ -227347,6 +227348,14 @@ "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec": google_cloud_discoveryengine_v1alpha_search_request_query_expansion_spec "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec/condition": condition "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec/pinUnexpandedResults": pin_unexpanded_results +"/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec": google_cloud_discoveryengine_v1alpha_search_request_relevance_filter_spec +"/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec/keywordSearchThreshold": keyword_search_threshold +"/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec/semanticSearchThreshold": semantic_search_threshold +"/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec": google_cloud_discoveryengine_v1alpha_search_request_relevance_filter_spec_relevance_threshold_spec +? "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec/relevanceThreshold" +: relevance_threshold +? "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec/semanticRelevanceThreshold" +: semantic_relevance_threshold "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec": google_cloud_discoveryengine_v1alpha_search_request_relevance_score_spec "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec/returnRelevanceScore": return_relevance_score "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAddonSpec": google_cloud_discoveryengine_v1alpha_search_request_search_addon_spec @@ -229153,6 +229162,7 @@ "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequest/rankingExpression": ranking_expression "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequest/rankingExpressionBackend": ranking_expression_backend "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequest/regionCode": region_code +"/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequest/relevanceFilterSpec": relevance_filter_spec "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequest/relevanceScoreSpec": relevance_score_spec "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequest/relevanceThreshold": relevance_threshold "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequest/safeSearch": safe_search @@ -229281,6 +229291,14 @@ "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec": google_cloud_discoveryengine_v1beta_search_request_query_expansion_spec "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec/condition": condition "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec/pinUnexpandedResults": pin_unexpanded_results +"/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec": google_cloud_discoveryengine_v1beta_search_request_relevance_filter_spec +"/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec/keywordSearchThreshold": keyword_search_threshold +"/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec/semanticSearchThreshold": semantic_search_threshold +"/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec": google_cloud_discoveryengine_v1beta_search_request_relevance_filter_spec_relevance_threshold_spec +? "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec/relevanceThreshold" +: relevance_threshold +? "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec/semanticRelevanceThreshold" +: semantic_relevance_threshold "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec": google_cloud_discoveryengine_v1beta_search_request_relevance_score_spec "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec/returnRelevanceScore": return_relevance_score "/discoveryengine:v1beta/GoogleCloudDiscoveryengineV1betaSearchRequestSearchAddonSpec": google_cloud_discoveryengine_v1beta_search_request_search_addon_spec @@ -229946,6 +229964,9 @@ "/discoveryengine:v1beta/discoveryengine.projects.locations.collections.dataStores.schemas.patch/name": name "/discoveryengine:v1beta/discoveryengine.projects.locations.collections.dataStores.servingConfigs.answer": answer_project_location_collection_data_store_serving_config "/discoveryengine:v1beta/discoveryengine.projects.locations.collections.dataStores.servingConfigs.answer/servingConfig": serving_config +"/discoveryengine:v1beta/discoveryengine.projects.locations.collections.dataStores.servingConfigs.create": create_project_location_collection_data_store_serving_config +"/discoveryengine:v1beta/discoveryengine.projects.locations.collections.dataStores.servingConfigs.create/parent": parent +"/discoveryengine:v1beta/discoveryengine.projects.locations.collections.dataStores.servingConfigs.create/servingConfigId": serving_config_id "/discoveryengine:v1beta/discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete": delete_project_location_collection_data_store_serving_config "/discoveryengine:v1beta/discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete/name": name "/discoveryengine:v1beta/discoveryengine.projects.locations.collections.dataStores.servingConfigs.get": get_project_location_collection_data_store_serving_config @@ -230148,6 +230169,9 @@ "/discoveryengine:v1beta/discoveryengine.projects.locations.collections.engines.resume/name": name "/discoveryengine:v1beta/discoveryengine.projects.locations.collections.engines.servingConfigs.answer": answer_project_location_collection_engine_serving_config "/discoveryengine:v1beta/discoveryengine.projects.locations.collections.engines.servingConfigs.answer/servingConfig": serving_config +"/discoveryengine:v1beta/discoveryengine.projects.locations.collections.engines.servingConfigs.create": create_project_location_collection_engine_serving_config +"/discoveryengine:v1beta/discoveryengine.projects.locations.collections.engines.servingConfigs.create/parent": parent +"/discoveryengine:v1beta/discoveryengine.projects.locations.collections.engines.servingConfigs.create/servingConfigId": serving_config_id "/discoveryengine:v1beta/discoveryengine.projects.locations.collections.engines.servingConfigs.delete": delete_project_location_collection_engine_serving_config "/discoveryengine:v1beta/discoveryengine.projects.locations.collections.engines.servingConfigs.delete/name": name "/discoveryengine:v1beta/discoveryengine.projects.locations.collections.engines.servingConfigs.get": get_project_location_collection_engine_serving_config @@ -230327,6 +230351,9 @@ "/discoveryengine:v1beta/discoveryengine.projects.locations.dataStores.schemas.patch/name": name "/discoveryengine:v1beta/discoveryengine.projects.locations.dataStores.servingConfigs.answer": answer_project_location_data_store_serving_config "/discoveryengine:v1beta/discoveryengine.projects.locations.dataStores.servingConfigs.answer/servingConfig": serving_config +"/discoveryengine:v1beta/discoveryengine.projects.locations.dataStores.servingConfigs.create": create_project_location_data_store_serving_config +"/discoveryengine:v1beta/discoveryengine.projects.locations.dataStores.servingConfigs.create/parent": parent +"/discoveryengine:v1beta/discoveryengine.projects.locations.dataStores.servingConfigs.create/servingConfigId": serving_config_id "/discoveryengine:v1beta/discoveryengine.projects.locations.dataStores.servingConfigs.delete": delete_project_location_data_store_serving_config "/discoveryengine:v1beta/discoveryengine.projects.locations.dataStores.servingConfigs.delete/name": name "/discoveryengine:v1beta/discoveryengine.projects.locations.dataStores.servingConfigs.get": get_project_location_data_store_serving_config diff --git a/generated/google-apis-discoveryengine_v1beta/CHANGELOG.md b/generated/google-apis-discoveryengine_v1beta/CHANGELOG.md index f822b2805f9..33b19555edc 100644 --- a/generated/google-apis-discoveryengine_v1beta/CHANGELOG.md +++ b/generated/google-apis-discoveryengine_v1beta/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-discoveryengine_v1beta +### v0.93.0 (2025-12-21) + +* Regenerated from discovery document revision 20251217 + ### v0.92.0 (2025-12-14) * Regenerated from discovery document revision 20251209 diff --git a/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/classes.rb b/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/classes.rb index a27d4ff739f..c95c7207e1d 100644 --- a/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/classes.rb +++ b/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/classes.rb @@ -13345,15 +13345,22 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequest # @return [String] attr_accessor :region_code + # Relevance filtering specification. + # Corresponds to the JSON property `relevanceFilterSpec` + # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec] + attr_accessor :relevance_filter_spec + # The specification for returning the document relevance score. # Corresponds to the JSON property `relevanceScoreSpec` # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec] attr_accessor :relevance_score_spec - # The relevance threshold of the search results. Default to Google defined - # threshold, leveraging a balance of precision and recall to deliver both highly - # accurate results and comprehensive coverage of relevant information. This - # feature is not supported for healthcare search. + # The global relevance threshold of the search results. Defaults to Google + # defined threshold, leveraging a balance of precision and recall to deliver + # both highly accurate results and comprehensive coverage of relevant + # information. If more granular relevance filtering is required, use the ` + # relevance_filter_spec` instead. This feature is not supported for healthcare + # search. # Corresponds to the JSON property `relevanceThreshold` # @return [String] attr_accessor :relevance_threshold @@ -13489,6 +13496,7 @@ def update!(**args) @ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression) @ranking_expression_backend = args[:ranking_expression_backend] if args.key?(:ranking_expression_backend) @region_code = args[:region_code] if args.key?(:region_code) + @relevance_filter_spec = args[:relevance_filter_spec] if args.key?(:relevance_filter_spec) @relevance_score_spec = args[:relevance_score_spec] if args.key?(:relevance_score_spec) @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold) @safe_search = args[:safe_search] if args.key?(:safe_search) @@ -14442,6 +14450,56 @@ def update!(**args) end end + # Relevance filtering specification. + class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec + include Google::Apis::Core::Hashable + + # Specification for relevance filtering on a specific sub-search. + # Corresponds to the JSON property `keywordSearchThreshold` + # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec] + attr_accessor :keyword_search_threshold + + # Specification for relevance filtering on a specific sub-search. + # Corresponds to the JSON property `semanticSearchThreshold` + # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec] + attr_accessor :semantic_search_threshold + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @keyword_search_threshold = args[:keyword_search_threshold] if args.key?(:keyword_search_threshold) + @semantic_search_threshold = args[:semantic_search_threshold] if args.key?(:semantic_search_threshold) + end + end + + # Specification for relevance filtering on a specific sub-search. + class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec + include Google::Apis::Core::Hashable + + # Pre-defined relevance threshold for the sub-search. + # Corresponds to the JSON property `relevanceThreshold` + # @return [String] + attr_accessor :relevance_threshold + + # Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0]. + # Corresponds to the JSON property `semanticRelevanceThreshold` + # @return [Float] + attr_accessor :semantic_relevance_threshold + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold) + @semantic_relevance_threshold = args[:semantic_relevance_threshold] if args.key?(:semantic_relevance_threshold) + end + end + # The specification for returning the document relevance score. class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec include Google::Apis::Core::Hashable @@ -26650,15 +26708,22 @@ class GoogleCloudDiscoveryengineV1betaSearchRequest # @return [String] attr_accessor :region_code + # Relevance filtering specification. + # Corresponds to the JSON property `relevanceFilterSpec` + # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec] + attr_accessor :relevance_filter_spec + # The specification for returning the document relevance score. # Corresponds to the JSON property `relevanceScoreSpec` # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec] attr_accessor :relevance_score_spec - # The relevance threshold of the search results. Default to Google defined - # threshold, leveraging a balance of precision and recall to deliver both highly - # accurate results and comprehensive coverage of relevant information. This - # feature is not supported for healthcare search. + # The global relevance threshold of the search results. Defaults to Google + # defined threshold, leveraging a balance of precision and recall to deliver + # both highly accurate results and comprehensive coverage of relevant + # information. If more granular relevance filtering is required, use the ` + # relevance_filter_spec` instead. This feature is not supported for healthcare + # search. # Corresponds to the JSON property `relevanceThreshold` # @return [String] attr_accessor :relevance_threshold @@ -26784,6 +26849,7 @@ def update!(**args) @ranking_expression = args[:ranking_expression] if args.key?(:ranking_expression) @ranking_expression_backend = args[:ranking_expression_backend] if args.key?(:ranking_expression_backend) @region_code = args[:region_code] if args.key?(:region_code) + @relevance_filter_spec = args[:relevance_filter_spec] if args.key?(:relevance_filter_spec) @relevance_score_spec = args[:relevance_score_spec] if args.key?(:relevance_score_spec) @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold) @safe_search = args[:safe_search] if args.key?(:safe_search) @@ -27736,6 +27802,56 @@ def update!(**args) end end + # Relevance filtering specification. + class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec + include Google::Apis::Core::Hashable + + # Specification for relevance filtering on a specific sub-search. + # Corresponds to the JSON property `keywordSearchThreshold` + # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec] + attr_accessor :keyword_search_threshold + + # Specification for relevance filtering on a specific sub-search. + # Corresponds to the JSON property `semanticSearchThreshold` + # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec] + attr_accessor :semantic_search_threshold + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @keyword_search_threshold = args[:keyword_search_threshold] if args.key?(:keyword_search_threshold) + @semantic_search_threshold = args[:semantic_search_threshold] if args.key?(:semantic_search_threshold) + end + end + + # Specification for relevance filtering on a specific sub-search. + class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec + include Google::Apis::Core::Hashable + + # Pre-defined relevance threshold for the sub-search. + # Corresponds to the JSON property `relevanceThreshold` + # @return [String] + attr_accessor :relevance_threshold + + # Custom relevance threshold for the sub-search. The value must be in [0.0, 1.0]. + # Corresponds to the JSON property `semanticRelevanceThreshold` + # @return [Float] + attr_accessor :semantic_relevance_threshold + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @relevance_threshold = args[:relevance_threshold] if args.key?(:relevance_threshold) + @semantic_relevance_threshold = args[:semantic_relevance_threshold] if args.key?(:semantic_relevance_threshold) + end + end + # The specification for returning the document relevance score. class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec include Google::Apis::Core::Hashable diff --git a/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/gem_version.rb b/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/gem_version.rb index 73511928066..e195f351f87 100644 --- a/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/gem_version.rb +++ b/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module DiscoveryengineV1beta # Version of the google-apis-discoveryengine_v1beta gem - GEM_VERSION = "0.92.0" + GEM_VERSION = "0.93.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20251209" + REVISION = "20251217" end end end diff --git a/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/representations.rb b/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/representations.rb index 8785aacc327..76b9c7dfb90 100644 --- a/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/representations.rb +++ b/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/representations.rb @@ -2206,6 +2206,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec class Representation < Google::Apis::Core::JsonRepresentation; end @@ -4414,6 +4426,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec class Representation < Google::Apis::Core::JsonRepresentation; end @@ -8478,6 +8502,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :ranking_expression, as: 'rankingExpression' property :ranking_expression_backend, as: 'rankingExpressionBackend' property :region_code, as: 'regionCode' + property :relevance_filter_spec, as: 'relevanceFilterSpec', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec::Representation + property :relevance_score_spec, as: 'relevanceScoreSpec', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec::Representation property :relevance_threshold, as: 'relevanceThreshold' @@ -8721,6 +8747,24 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :keyword_search_threshold, as: 'keywordSearchThreshold', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec::Representation + + property :semantic_search_threshold, as: 'semanticSearchThreshold', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec::Representation + + end + end + + class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :relevance_threshold, as: 'relevanceThreshold' + property :semantic_relevance_threshold, as: 'semanticRelevanceThreshold' + end + end + class GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -12158,6 +12202,8 @@ class Representation < Google::Apis::Core::JsonRepresentation property :ranking_expression, as: 'rankingExpression' property :ranking_expression_backend, as: 'rankingExpressionBackend' property :region_code, as: 'regionCode' + property :relevance_filter_spec, as: 'relevanceFilterSpec', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec::Representation + property :relevance_score_spec, as: 'relevanceScoreSpec', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec::Representation property :relevance_threshold, as: 'relevanceThreshold' @@ -12400,6 +12446,24 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :keyword_search_threshold, as: 'keywordSearchThreshold', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec::Representation + + property :semantic_search_threshold, as: 'semanticSearchThreshold', class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec, decorator: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec::Representation + + end + end + + class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :relevance_threshold, as: 'relevanceThreshold' + property :semantic_relevance_threshold, as: 'semanticRelevanceThreshold' + end + end + class GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/service.rb b/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/service.rb index cdd4abc1c66..3ade3fd1286 100644 --- a/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/service.rb +++ b/generated/google-apis-discoveryengine_v1beta/lib/google/apis/discoveryengine_v1beta/service.rb @@ -2377,6 +2377,48 @@ def answer_project_location_collection_data_store_serving_config(serving_config, execute_or_queue_command(command, &block) end + # Creates a ServingConfig. Note: The Google Cloud console works only with the + # default serving config. Additional ServingConfigs can be created and managed + # only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, + # otherwise a RESOURCE_EXHAUSTED error is returned. + # @param [String] parent + # Required. Full resource name of parent. Format: `projects/`project`/locations/` + # location`/collections/`collection`/engines/`engine`` + # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] google_cloud_discoveryengine_v1beta_serving_config_object + # @param [String] serving_config_id + # Required. The ID to use for the ServingConfig, which will become the final + # component of the ServingConfig's resource name. This value should be 4-63 + # characters, and valid characters are /a-zA-Z0-9+/. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_collection_data_store_serving_config(parent, google_cloud_discoveryengine_v1beta_serving_config_object = nil, serving_config_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta/{+parent}/servingConfigs', options) + command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation + command.request_object = google_cloud_discoveryengine_v1beta_serving_config_object + command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation + command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig + command.params['parent'] = parent unless parent.nil? + command.query['servingConfigId'] = serving_config_id unless serving_config_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does # not exist. # @param [String] name @@ -4979,6 +5021,48 @@ def answer_project_location_collection_engine_serving_config(serving_config, goo execute_or_queue_command(command, &block) end + # Creates a ServingConfig. Note: The Google Cloud console works only with the + # default serving config. Additional ServingConfigs can be created and managed + # only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, + # otherwise a RESOURCE_EXHAUSTED error is returned. + # @param [String] parent + # Required. Full resource name of parent. Format: `projects/`project`/locations/` + # location`/collections/`collection`/engines/`engine`` + # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] google_cloud_discoveryengine_v1beta_serving_config_object + # @param [String] serving_config_id + # Required. The ID to use for the ServingConfig, which will become the final + # component of the ServingConfig's resource name. This value should be 4-63 + # characters, and valid characters are /a-zA-Z0-9+/. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_collection_engine_serving_config(parent, google_cloud_discoveryengine_v1beta_serving_config_object = nil, serving_config_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta/{+parent}/servingConfigs', options) + command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation + command.request_object = google_cloud_discoveryengine_v1beta_serving_config_object + command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation + command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig + command.params['parent'] = parent unless parent.nil? + command.query['servingConfigId'] = serving_config_id unless serving_config_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does # not exist. # @param [String] name @@ -7264,6 +7348,48 @@ def answer_project_location_data_store_serving_config(serving_config, google_clo execute_or_queue_command(command, &block) end + # Creates a ServingConfig. Note: The Google Cloud console works only with the + # default serving config. Additional ServingConfigs can be created and managed + # only via the API. A maximum of 100 ServingConfigs are allowed in an Engine, + # otherwise a RESOURCE_EXHAUSTED error is returned. + # @param [String] parent + # Required. Full resource name of parent. Format: `projects/`project`/locations/` + # location`/collections/`collection`/engines/`engine`` + # @param [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] google_cloud_discoveryengine_v1beta_serving_config_object + # @param [String] serving_config_id + # Required. The ID to use for the ServingConfig, which will become the final + # component of the ServingConfig's resource name. This value should be 4-63 + # characters, and valid characters are /a-zA-Z0-9+/. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_project_location_data_store_serving_config(parent, google_cloud_discoveryengine_v1beta_serving_config_object = nil, serving_config_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta/{+parent}/servingConfigs', options) + command.request_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation + command.request_object = google_cloud_discoveryengine_v1beta_serving_config_object + command.response_representation = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig::Representation + command.response_class = Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaServingConfig + command.params['parent'] = parent unless parent.nil? + command.query['servingConfigId'] = serving_config_id unless serving_config_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Deletes a ServingConfig. Returns a NOT_FOUND error if the ServingConfig does # not exist. # @param [String] name