public class DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs extends Object
| Constructor and Description |
|---|
ServingConfigs() |
public DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Answer answer(String servingConfig, GoogleCloudDiscoveryengineV1AnswerQueryRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.servingConfig - Required. The resource name of the Search serving config, such as `projects/locations/global/collect
ions/default_collection/engines/servingConfigs/default_serving_config`, or `projects/locat
ions/global/collections/default_collection/dataStores/servingConfigs/default_serving_confi
g`. Or the resource name of the agent engine serving config, such as: `projects/locations/
global/collections/default_collection/engines/servingConfigs/default_agent_answer`. (use
when `enable_agent_invocation` set to true, and you have custom `AI_MODE` agent engine
configured) This field is used to identify the serving configuration name, set of models
used to make the search.content - the GoogleCloudDiscoveryengineV1AnswerQueryRequestIOExceptionpublic DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Create create(String parent, GoogleCloudDiscoveryengineV1ServingConfig content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. Full resource name of parent. Format:
`projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`content - the GoogleCloudDiscoveryengineV1ServingConfigIOExceptionpublic DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the ServingConfig to delete. Format: `projects/{project}/locations/{l
ocation}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`IOExceptionpublic DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the ServingConfig to get. Format: `projects/{project}/locations/{loca
tion}/collections/{collection}/engines/{engine}/servingConfigs/{serving_config_id}`IOExceptionpublic DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. Full resource name of the parent resource. Format:
`projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`IOExceptionpublic DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Patch patch(String name, GoogleCloudDiscoveryengineV1ServingConfig content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Immutable. Fully qualified name `projects/{project}/locations/{location}/collections/{collection_id}
/engines/{engine_id}/servingConfigs/{serving_config_id}`content - the GoogleCloudDiscoveryengineV1ServingConfigIOExceptionpublic DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Recommend recommend(String servingConfig, GoogleCloudDiscoveryengineV1RecommendRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.servingConfig - Required. Full resource name of a ServingConfig:
`projects/locations/global/collections/engines/servingConfigs`, or
`projects/locations/global/collections/dataStores/servingConfigs` One default serving
config is created along with your recommendation engine creation. The engine ID is used as
the ID of the default serving config. For example, for Engine
`projects/locations/global/collections/engines/my-engine`, you can use
`projects/locations/global/collections/engines/my-engine/servingConfigs/my-engine` for
your RecommendationService.Recommend requests.content - the GoogleCloudDiscoveryengineV1RecommendRequestIOExceptionpublic DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Search search(String servingConfig, GoogleCloudDiscoveryengineV1SearchRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.servingConfig - Required. The resource name of the Search serving config, such as `projects/locations/global/collect
ions/default_collection/engines/servingConfigs/default_serving_config`, or `projects/locat
ions/global/collections/default_collection/dataStores/default_data_store/servingConfigs/de
fault_serving_config`. This field is used to identify the serving configuration name, set
of models used to make the search.content - the GoogleCloudDiscoveryengineV1SearchRequestIOExceptionpublic DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.SearchLite searchLite(String servingConfig, GoogleCloudDiscoveryengineV1SearchRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.servingConfig - Required. The resource name of the Search serving config, such as `projects/locations/global/collect
ions/default_collection/engines/servingConfigs/default_serving_config`, or `projects/locat
ions/global/collections/default_collection/dataStores/default_data_store/servingConfigs/de
fault_serving_config`. This field is used to identify the serving configuration name, set
of models used to make the search.content - the GoogleCloudDiscoveryengineV1SearchRequestIOExceptionpublic DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.StreamAnswer streamAnswer(String servingConfig, GoogleCloudDiscoveryengineV1AnswerQueryRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.servingConfig - Required. The resource name of the Search serving config, such as `projects/locations/global/collect
ions/default_collection/engines/servingConfigs/default_serving_config`, or `projects/locat
ions/global/collections/default_collection/dataStores/servingConfigs/default_serving_confi
g`. Or the resource name of the agent engine serving config, such as: `projects/locations/
global/collections/default_collection/engines/servingConfigs/default_agent_answer`. (use
when `enable_agent_invocation` set to true, and you have custom `AI_MODE` agent engine
configured) This field is used to identify the serving configuration name, set of models
used to make the search.content - the GoogleCloudDiscoveryengineV1AnswerQueryRequestIOExceptionCopyright © 2011–2026 Google. All rights reserved.