public class DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Answer |
class |
DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Recommend |
class |
DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Search |
| Constructor and Description |
|---|
ServingConfigs() |
| Modifier and Type | Method and Description |
|---|---|
DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Answer |
answer(String servingConfig,
GoogleCloudDiscoveryengineV1AnswerQueryRequest content)
Answer query method.
|
DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Recommend |
recommend(String servingConfig,
GoogleCloudDiscoveryengineV1RecommendRequest content)
Makes a recommendation, which requires a contextual user event.
|
DiscoveryEngine.Projects.Locations.Collections.Engines.ServingConfigs.Search |
search(String servingConfig,
GoogleCloudDiscoveryengineV1SearchRequest content)
Performs a search.
|
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`. 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.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 GoogleCloudDiscoveryengineV1SearchRequestIOExceptionCopyright © 2011–2024 Google. All rights reserved.