Class AgentsGrpc.AgentsStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<AgentsGrpc.AgentsStub>
-
- com.google.cloud.dialogflow.cx.v3beta1.AgentsGrpc.AgentsStub
-
- Enclosing class:
- AgentsGrpc
public static final class AgentsGrpc.AgentsStub extends io.grpc.stub.AbstractAsyncStub<AgentsGrpc.AgentsStub>
A stub to allow clients to do asynchronous rpc calls to service Agents.Service for managing [Agents][google.cloud.dialogflow.cx.v3beta1.Agent].
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AgentsGrpc.AgentsStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)voidcreateAgent(CreateAgentRequest request, io.grpc.stub.StreamObserver<Agent> responseObserver)Creates an agent in the specified location.voiddeleteAgent(DeleteAgentRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)Deletes the specified agent.voidexportAgent(ExportAgentRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Exports the specified agent to a binary file.voidgetAgent(GetAgentRequest request, io.grpc.stub.StreamObserver<Agent> responseObserver)Retrieves the specified agent.voidgetAgentValidationResult(GetAgentValidationResultRequest request, io.grpc.stub.StreamObserver<AgentValidationResult> responseObserver)Gets the latest agent validation result.voidgetGenerativeSettings(GetGenerativeSettingsRequest request, io.grpc.stub.StreamObserver<GenerativeSettings> responseObserver)Gets the generative settings for the agent.voidlistAgents(ListAgentsRequest request, io.grpc.stub.StreamObserver<ListAgentsResponse> responseObserver)Returns the list of all agents in the specified location.voidrestoreAgent(RestoreAgentRequest request, io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver)Restores the specified agent from a binary file.voidupdateAgent(UpdateAgentRequest request, io.grpc.stub.StreamObserver<Agent> responseObserver)Updates the specified agent.voidupdateGenerativeSettings(UpdateGenerativeSettingsRequest request, io.grpc.stub.StreamObserver<GenerativeSettings> responseObserver)Updates the generative settings for the agent.voidvalidateAgent(ValidateAgentRequest request, io.grpc.stub.StreamObserver<AgentValidationResult> responseObserver)Validates the specified agent and creates or updates validation results.
-
-
-
Method Detail
-
build
protected AgentsGrpc.AgentsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<AgentsGrpc.AgentsStub>
-
listAgents
public void listAgents(ListAgentsRequest request, io.grpc.stub.StreamObserver<ListAgentsResponse> responseObserver)
Returns the list of all agents in the specified location.
-
getAgent
public void getAgent(GetAgentRequest request, io.grpc.stub.StreamObserver<Agent> responseObserver)
Retrieves the specified agent.
-
createAgent
public void createAgent(CreateAgentRequest request, io.grpc.stub.StreamObserver<Agent> responseObserver)
Creates an agent in the specified location. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
-
updateAgent
public void updateAgent(UpdateAgentRequest request, io.grpc.stub.StreamObserver<Agent> responseObserver)
Updates the specified agent. Note: You should always train a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
-
deleteAgent
public void deleteAgent(DeleteAgentRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
Deletes the specified agent.
-
exportAgent
public 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.v3beta1.ExportAgentResponse]
-
restoreAgent
public 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 a flow prior to sending it queries. See the [training documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
-
validateAgent
public 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
public 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
public void getGenerativeSettings(GetGenerativeSettingsRequest request, io.grpc.stub.StreamObserver<GenerativeSettings> responseObserver)
Gets the generative settings for the agent.
-
updateGenerativeSettings
public void updateGenerativeSettings(UpdateGenerativeSettingsRequest request, io.grpc.stub.StreamObserver<GenerativeSettings> responseObserver)
Updates the generative settings for the agent.
-
-