From 80fa8495cc402f6d11fca56ec5a37845ba2ed2a0 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Sun, 21 Dec 2025 09:27:22 +0000 Subject: [PATCH] feat: Automated regeneration of discoveryengine v1 client --- api_names_out.yaml | 25 +++ .../CHANGELOG.md | 4 + .../google/apis/discoveryengine_v1/classes.rb | 142 ++++++++++++++++-- .../apis/discoveryengine_v1/gem_version.rb | 4 +- .../discoveryengine_v1/representations.rb | 64 ++++++++ .../google/apis/discoveryengine_v1/service.rb | 126 ++++++++++++++++ 6 files changed, 351 insertions(+), 14 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index a0423db1883..20526a93c06 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -217339,6 +217339,7 @@ "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequest/rankingExpression": ranking_expression "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequest/rankingExpressionBackend": ranking_expression_backend "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequest/regionCode": region_code +"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequest/relevanceFilterSpec": relevance_filter_spec "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequest/relevanceScoreSpec": relevance_score_spec "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequest/relevanceThreshold": relevance_threshold "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequest/safeSearch": safe_search @@ -217466,6 +217467,13 @@ "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec": google_cloud_discoveryengine_v1alpha_search_request_query_expansion_spec "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec/condition": condition "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec/pinUnexpandedResults": pin_unexpanded_results +"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec": google_cloud_discoveryengine_v1alpha_search_request_relevance_filter_spec +"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec/keywordSearchThreshold": keyword_search_threshold +"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec/semanticSearchThreshold": semantic_search_threshold +"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec": google_cloud_discoveryengine_v1alpha_search_request_relevance_filter_spec_relevance_threshold_spec +"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec/relevanceThreshold": relevance_threshold +? "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec/semanticRelevanceThreshold" +: semantic_relevance_threshold "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec": google_cloud_discoveryengine_v1alpha_search_request_relevance_score_spec "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec/returnRelevanceScore": return_relevance_score "/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaSearchRequestSearchAddonSpec": google_cloud_discoveryengine_v1alpha_search_request_search_addon_spec @@ -218112,6 +218120,7 @@ "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequest/rankingExpression": ranking_expression "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequest/rankingExpressionBackend": ranking_expression_backend "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequest/regionCode": region_code +"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequest/relevanceFilterSpec": relevance_filter_spec "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequest/relevanceScoreSpec": relevance_score_spec "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequest/relevanceThreshold": relevance_threshold "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequest/safeSearch": safe_search @@ -218236,6 +218245,13 @@ "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec": google_cloud_discoveryengine_v1beta_search_request_query_expansion_spec "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec/condition": condition "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec/pinUnexpandedResults": pin_unexpanded_results +"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec": google_cloud_discoveryengine_v1beta_search_request_relevance_filter_spec +"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec/keywordSearchThreshold": keyword_search_threshold +"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec/semanticSearchThreshold": semantic_search_threshold +"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec": google_cloud_discoveryengine_v1beta_search_request_relevance_filter_spec_relevance_threshold_spec +"/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec/relevanceThreshold": relevance_threshold +? "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec/semanticRelevanceThreshold" +: semantic_relevance_threshold "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec": google_cloud_discoveryengine_v1beta_search_request_relevance_score_spec "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec/returnRelevanceScore": return_relevance_score "/discoveryengine:v1/GoogleCloudDiscoveryengineV1betaSearchRequestSearchAddonSpec": google_cloud_discoveryengine_v1beta_search_request_search_addon_spec @@ -218548,6 +218564,9 @@ "/discoveryengine:v1/discoveryengine.projects.locations.collections.dataStores.schemas.patch/name": name "/discoveryengine:v1/discoveryengine.projects.locations.collections.dataStores.servingConfigs.answer": answer_project_location_collection_data_store_serving_config "/discoveryengine:v1/discoveryengine.projects.locations.collections.dataStores.servingConfigs.answer/servingConfig": serving_config +"/discoveryengine:v1/discoveryengine.projects.locations.collections.dataStores.servingConfigs.create": create_project_location_collection_data_store_serving_config +"/discoveryengine:v1/discoveryengine.projects.locations.collections.dataStores.servingConfigs.create/parent": parent +"/discoveryengine:v1/discoveryengine.projects.locations.collections.dataStores.servingConfigs.create/servingConfigId": serving_config_id "/discoveryengine:v1/discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete": delete_project_location_collection_data_store_serving_config "/discoveryengine:v1/discoveryengine.projects.locations.collections.dataStores.servingConfigs.delete/name": name "/discoveryengine:v1/discoveryengine.projects.locations.collections.dataStores.servingConfigs.get": get_project_location_collection_data_store_serving_config @@ -218752,6 +218771,9 @@ "/discoveryengine:v1/discoveryengine.projects.locations.collections.engines.patch/updateMask": update_mask "/discoveryengine:v1/discoveryengine.projects.locations.collections.engines.servingConfigs.answer": answer_project_location_collection_engine_serving_config "/discoveryengine:v1/discoveryengine.projects.locations.collections.engines.servingConfigs.answer/servingConfig": serving_config +"/discoveryengine:v1/discoveryengine.projects.locations.collections.engines.servingConfigs.create": create_project_location_collection_engine_serving_config +"/discoveryengine:v1/discoveryengine.projects.locations.collections.engines.servingConfigs.create/parent": parent +"/discoveryengine:v1/discoveryengine.projects.locations.collections.engines.servingConfigs.create/servingConfigId": serving_config_id "/discoveryengine:v1/discoveryengine.projects.locations.collections.engines.servingConfigs.delete": delete_project_location_collection_engine_serving_config "/discoveryengine:v1/discoveryengine.projects.locations.collections.engines.servingConfigs.delete/name": name "/discoveryengine:v1/discoveryengine.projects.locations.collections.engines.servingConfigs.get": get_project_location_collection_engine_serving_config @@ -218941,6 +218963,9 @@ "/discoveryengine:v1/discoveryengine.projects.locations.dataStores.schemas.patch/name": name "/discoveryengine:v1/discoveryengine.projects.locations.dataStores.servingConfigs.answer": answer_project_location_data_store_serving_config "/discoveryengine:v1/discoveryengine.projects.locations.dataStores.servingConfigs.answer/servingConfig": serving_config +"/discoveryengine:v1/discoveryengine.projects.locations.dataStores.servingConfigs.create": create_project_location_data_store_serving_config +"/discoveryengine:v1/discoveryengine.projects.locations.dataStores.servingConfigs.create/parent": parent +"/discoveryengine:v1/discoveryengine.projects.locations.dataStores.servingConfigs.create/servingConfigId": serving_config_id "/discoveryengine:v1/discoveryengine.projects.locations.dataStores.servingConfigs.delete": delete_project_location_data_store_serving_config "/discoveryengine:v1/discoveryengine.projects.locations.dataStores.servingConfigs.delete/name": name "/discoveryengine:v1/discoveryengine.projects.locations.dataStores.servingConfigs.get": get_project_location_data_store_serving_config diff --git a/generated/google-apis-discoveryengine_v1/CHANGELOG.md b/generated/google-apis-discoveryengine_v1/CHANGELOG.md index de9fb07680c..4580c26866f 100644 --- a/generated/google-apis-discoveryengine_v1/CHANGELOG.md +++ b/generated/google-apis-discoveryengine_v1/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-discoveryengine_v1 +### v0.62.0 (2025-12-21) + +* Regenerated from discovery document revision 20251217 + ### v0.61.0 (2025-12-14) * Regenerated from discovery document revision 20251209 diff --git a/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/classes.rb b/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/classes.rb index 505569b56ff..8e626e3cdb8 100644 --- a/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/classes.rb +++ b/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/classes.rb @@ -11684,10 +11684,12 @@ class GoogleCloudDiscoveryengineV1SearchRequest # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1SearchRequestRelevanceScoreSpec] 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 @@ -23222,15 +23224,22 @@ class GoogleCloudDiscoveryengineV1alphaSearchRequest # @return [String] attr_accessor :region_code + # Relevance filtering specification. + # Corresponds to the JSON property `relevanceFilterSpec` + # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec] + attr_accessor :relevance_filter_spec + # The specification for returning the document relevance score. # Corresponds to the JSON property `relevanceScoreSpec` # @return [Google::Apis::DiscoveryengineV1::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 @@ -23366,6 +23375,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) @@ -24319,6 +24329,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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec] + attr_accessor :keyword_search_threshold + + # Specification for relevance filtering on a specific sub-search. + # Corresponds to the JSON property `semanticSearchThreshold` + # @return [Google::Apis::DiscoveryengineV1::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 @@ -29107,15 +29167,22 @@ class GoogleCloudDiscoveryengineV1betaSearchRequest # @return [String] attr_accessor :region_code + # Relevance filtering specification. + # Corresponds to the JSON property `relevanceFilterSpec` + # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec] + attr_accessor :relevance_filter_spec + # The specification for returning the document relevance score. # Corresponds to the JSON property `relevanceScoreSpec` # @return [Google::Apis::DiscoveryengineV1::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 @@ -29241,6 +29308,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) @@ -30193,6 +30261,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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec] + attr_accessor :keyword_search_threshold + + # Specification for relevance filtering on a specific sub-search. + # Corresponds to the JSON property `semanticSearchThreshold` + # @return [Google::Apis::DiscoveryengineV1::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_v1/lib/google/apis/discoveryengine_v1/gem_version.rb b/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/gem_version.rb index 87bdf7bacbb..52b0d1b04ad 100644 --- a/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/gem_version.rb +++ b/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module DiscoveryengineV1 # Version of the google-apis-discoveryengine_v1 gem - GEM_VERSION = "0.61.0" + GEM_VERSION = "0.62.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_v1/lib/google/apis/discoveryengine_v1/representations.rb b/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/representations.rb index eadbb5cff8b..7725f40b628 100644 --- a/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/representations.rb +++ b/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/representations.rb @@ -3718,6 +3718,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 @@ -4642,6 +4654,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 @@ -11035,6 +11059,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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpec::Representation + property :relevance_score_spec, as: 'relevanceScoreSpec', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceScoreSpec::Representation property :relevance_threshold, as: 'relevanceThreshold' @@ -11278,6 +11304,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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec::Representation + + property :semantic_search_threshold, as: 'semanticSearchThreshold', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec, decorator: Google::Apis::DiscoveryengineV1::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 @@ -12584,6 +12628,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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpec::Representation + property :relevance_score_spec, as: 'relevanceScoreSpec', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceScoreSpec::Representation property :relevance_threshold, as: 'relevanceThreshold' @@ -12826,6 +12872,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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec::Representation + + property :semantic_search_threshold, as: 'semanticSearchThreshold', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1betaSearchRequestRelevanceFilterSpecRelevanceThresholdSpec, decorator: Google::Apis::DiscoveryengineV1::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_v1/lib/google/apis/discoveryengine_v1/service.rb b/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/service.rb index d1ede79f386..d8e967e3a55 100644 --- a/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/service.rb +++ b/generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/service.rb @@ -2456,6 +2456,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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] google_cloud_discoveryengine_v1_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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] + # + # @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_v1_serving_config_object = nil, serving_config_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/servingConfigs', options) + command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig::Representation + command.request_object = google_cloud_discoveryengine_v1_serving_config_object + command.response_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig::Representation + command.response_class = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig + 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 @@ -5038,6 +5080,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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] google_cloud_discoveryengine_v1_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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] + # + # @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_v1_serving_config_object = nil, serving_config_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/servingConfigs', options) + command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig::Representation + command.request_object = google_cloud_discoveryengine_v1_serving_config_object + command.response_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig::Representation + command.response_class = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig + 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 @@ -7407,6 +7491,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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] google_cloud_discoveryengine_v1_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::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig] + # + # @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_v1_serving_config_object = nil, serving_config_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/{+parent}/servingConfigs', options) + command.request_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig::Representation + command.request_object = google_cloud_discoveryengine_v1_serving_config_object + command.response_representation = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig::Representation + command.response_class = Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ServingConfig + 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