public static final class AgentsGrpc.AgentsStub extends AbstractAsyncStub<AgentsGrpc.AgentsStub>
Service for managing Agents.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractAsyncStub >
AgentsGrpc.AgentsStub
Inherited Members
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractAsyncStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
build(Channel channel, CallOptions callOptions)
protected AgentsGrpc.AgentsStub build(Channel channel, CallOptions callOptions)
Parameters
Name |
Description |
channel |
io.grpc.Channel
|
callOptions |
io.grpc.CallOptions
|
Returns
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
createAgent(CreateAgentRequest request, StreamObserver<Agent> responseObserver)
public void createAgent(CreateAgentRequest request, 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.
Parameters
deleteAgent(DeleteAgentRequest request, StreamObserver<Empty> responseObserver)
public void deleteAgent(DeleteAgentRequest request, StreamObserver<Empty> responseObserver)
Deletes the specified agent.
Parameters
exportAgent(ExportAgentRequest request, StreamObserver<Operation> responseObserver)
public void exportAgent(ExportAgentRequest request, StreamObserver<Operation> responseObserver)
Exports the specified agent to a binary file.
This method is a long-running
operation.
The returned Operation
type has the following method-specific fields:
Parameters
getAgent(GetAgentRequest request, StreamObserver<Agent> responseObserver)
public void getAgent(GetAgentRequest request, StreamObserver<Agent> responseObserver)
Retrieves the specified agent.
Parameters
getAgentValidationResult(GetAgentValidationResultRequest request, StreamObserver<AgentValidationResult> responseObserver)
public void getAgentValidationResult(GetAgentValidationResultRequest request, StreamObserver<AgentValidationResult> responseObserver)
Gets the latest agent validation result. Agent validation is performed
when ValidateAgent is called.
Parameters
listAgents(ListAgentsRequest request, StreamObserver<ListAgentsResponse> responseObserver)
public void listAgents(ListAgentsRequest request, StreamObserver<ListAgentsResponse> responseObserver)
Returns the list of all agents in the specified location.
Parameters
restoreAgent(RestoreAgentRequest request, StreamObserver<Operation> responseObserver)
public void restoreAgent(RestoreAgentRequest request, StreamObserver<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.
The returned Operation
type has the following method-specific fields:
Parameters
updateAgent(UpdateAgentRequest request, StreamObserver<Agent> responseObserver)
public void updateAgent(UpdateAgentRequest request, StreamObserver<Agent> responseObserver)
Updates the specified agent.
Note: You should always train a flow prior to sending it queries. See the
training
documentation.
Parameters
validateAgent(ValidateAgentRequest request, StreamObserver<AgentValidationResult> responseObserver)
public void validateAgent(ValidateAgentRequest request, 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.
Parameters