public static interface AgentsGrpc.AsyncService
Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent].
| Modifier and Type | Method and Description |
|---|---|
default void |
createAgent(CreateAgentRequest request,
io.grpc.stub.StreamObserver<Agent> responseObserver)
Creates an agent in the specified location.
|
default void |
deleteAgent(DeleteAgentRequest request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the specified agent.
|
default void |
exportAgent(ExportAgentRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Exports the specified agent to a binary file.
|
default void |
getAgent(GetAgentRequest request,
io.grpc.stub.StreamObserver<Agent> responseObserver)
Retrieves the specified agent.
|
default void |
getAgentValidationResult(GetAgentValidationResultRequest request,
io.grpc.stub.StreamObserver<AgentValidationResult> responseObserver)
Gets the latest agent validation result.
|
default void |
listAgents(ListAgentsRequest request,
io.grpc.stub.StreamObserver<ListAgentsResponse> responseObserver)
Returns the list of all agents in the specified location.
|
default void |
restoreAgent(RestoreAgentRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
Restores the specified agent from a binary file.
|
default void |
updateAgent(UpdateAgentRequest request,
io.grpc.stub.StreamObserver<Agent> responseObserver)
Updates the specified agent.
|
default void |
validateAgent(ValidateAgentRequest request,
io.grpc.stub.StreamObserver<AgentValidationResult> responseObserver)
Validates the specified agent and creates or updates validation results.
|
default void listAgents(ListAgentsRequest request, io.grpc.stub.StreamObserver<ListAgentsResponse> responseObserver)
Returns the list of all agents in the specified location.
default void getAgent(GetAgentRequest request, io.grpc.stub.StreamObserver<Agent> responseObserver)
Retrieves the specified agent.
default void createAgent(CreateAgentRequest request, io.grpc.stub.StreamObserver<Agent> responseObserver)
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).
default void updateAgent(UpdateAgentRequest request, io.grpc.stub.StreamObserver<Agent> responseObserver)
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).
default void deleteAgent(DeleteAgentRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the specified agent.
default void exportAgent(ExportAgentRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
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]
default void restoreAgent(RestoreAgentRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)
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).
default void validateAgent(ValidateAgentRequest request, io.grpc.stub.StreamObserver<AgentValidationResult> responseObserver)
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.
default void getAgentValidationResult(GetAgentValidationResultRequest request, io.grpc.stub.StreamObserver<AgentValidationResult> responseObserver)
Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.
Copyright © 2023 Google LLC. All rights reserved.