Interface AgentsGrpc.AsyncService
-
- All Known Implementing Classes:
AgentsGrpc.AgentsImplBase
- Enclosing class:
- AgentsGrpc
public static interface AgentsGrpc.AsyncService
Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent].
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method 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
getGenerativeSettings(GetGenerativeSettingsRequest request, io.grpc.stub.StreamObserver<GenerativeSettings> responseObserver)
Gets the generative settings for the agent.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
updateGenerativeSettings(UpdateGenerativeSettingsRequest request, io.grpc.stub.StreamObserver<GenerativeSettings> responseObserver)
Updates the generative settings for the agent.default void
validateAgent(ValidateAgentRequest request, io.grpc.stub.StreamObserver<AgentValidationResult> responseObserver)
Validates the specified agent and creates or updates validation results.
-
-
-
Method Detail
-
listAgents
default void listAgents(ListAgentsRequest request, io.grpc.stub.StreamObserver<ListAgentsResponse> responseObserver)
Returns the list of all agents in the specified location.
-
getAgent
default void getAgent(GetAgentRequest request, io.grpc.stub.StreamObserver<Agent> responseObserver)
Retrieves the specified agent.
-
createAgent
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).
-
updateAgent
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).
-
deleteAgent
default void deleteAgent(DeleteAgentRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the specified agent.
-
exportAgent
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]
-
restoreAgent
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).
-
validateAgent
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.
-
getAgentValidationResult
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.
-
getGenerativeSettings
default void getGenerativeSettings(GetGenerativeSettingsRequest request, io.grpc.stub.StreamObserver<GenerativeSettings> responseObserver)
Gets the generative settings for the agent.
-
updateGenerativeSettings
default void updateGenerativeSettings(UpdateGenerativeSettingsRequest request, io.grpc.stub.StreamObserver<GenerativeSettings> responseObserver)
Updates the generative settings for the agent.
-
-