public static final class AgentsGrpc.AgentsFutureStub extends io.grpc.stub.AbstractFutureStub<AgentsGrpc.AgentsFutureStub>
Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent].
| Modifier and Type | Method and Description |
|---|---|
protected AgentsGrpc.AgentsFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<Agent> |
createAgent(CreateAgentRequest request)
Creates an agent in the specified location.
|
com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> |
deleteAgent(DeleteAgentRequest request)
Deletes the specified agent.
|
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
exportAgent(ExportAgentRequest request)
Exports the specified agent to a binary file.
|
com.google.common.util.concurrent.ListenableFuture<Agent> |
getAgent(GetAgentRequest request)
Retrieves the specified agent.
|
com.google.common.util.concurrent.ListenableFuture<AgentValidationResult> |
getAgentValidationResult(GetAgentValidationResultRequest request)
Gets the latest agent validation result.
|
com.google.common.util.concurrent.ListenableFuture<ListAgentsResponse> |
listAgents(ListAgentsRequest request)
Returns the list of all agents in the specified location.
|
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
restoreAgent(RestoreAgentRequest request)
Restores the specified agent from a binary file.
|
com.google.common.util.concurrent.ListenableFuture<Agent> |
updateAgent(UpdateAgentRequest request)
Updates the specified agent.
|
com.google.common.util.concurrent.ListenableFuture<AgentValidationResult> |
validateAgent(ValidateAgentRequest request)
Validates the specified agent and creates or updates validation results.
|
protected AgentsGrpc.AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<AgentsGrpc.AgentsFutureStub>public com.google.common.util.concurrent.ListenableFuture<ListAgentsResponse> listAgents(ListAgentsRequest request)
Returns the list of all agents in the specified location.
public com.google.common.util.concurrent.ListenableFuture<Agent> getAgent(GetAgentRequest request)
Retrieves the specified agent.
public com.google.common.util.concurrent.ListenableFuture<Agent> createAgent(CreateAgentRequest request)
Creates an agent in the specified location. Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
public com.google.common.util.concurrent.ListenableFuture<Agent> updateAgent(UpdateAgentRequest request)
Updates the specified agent. Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteAgent(DeleteAgentRequest request)
Deletes the specified agent.
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> exportAgent(ExportAgentRequest request)
Exports the specified agent to a binary file. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: [ExportAgentResponse][google.cloud.dialogflow.cx.v3.ExportAgentResponse]
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> restoreAgent(RestoreAgentRequest request)
Restores the specified agent from a binary file. Replaces the current agent with a new one. Note that all existing resources in agent (e.g. intents, entity types, flows) will be removed. This method is a [long-running operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation). The returned `Operation` type has the following method-specific fields: - `metadata`: An empty [Struct message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct) - `response`: An [Empty message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty) Note: You should always train flows prior to sending them queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
public com.google.common.util.concurrent.ListenableFuture<AgentValidationResult> validateAgent(ValidateAgentRequest request)
Validates the specified agent and creates or updates validation results. The agent in draft version is validated. Please call this API after the training is completed to get the complete validation results.
public com.google.common.util.concurrent.ListenableFuture<AgentValidationResult> getAgentValidationResult(GetAgentValidationResultRequest request)
Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.
Copyright © 2023 Google LLC. All rights reserved.