Class AgentsGrpc.AgentsFutureStub

  • Enclosing class:
    AgentsGrpc

    public static final class AgentsGrpc.AgentsFutureStub
    extends io.grpc.stub.AbstractFutureStub<AgentsGrpc.AgentsFutureStub>
    A stub to allow clients to do ListenableFuture-style rpc calls to service Agents.
     Service for managing [Agents][google.cloud.dialogflow.cx.v3beta1.Agent].
     
    • Method Detail

      • listAgents

        public com.google.common.util.concurrent.ListenableFuture<ListAgentsResponse> listAgents​(ListAgentsRequest request)
         Returns the list of all agents in the specified location.
         
      • getAgent

        public com.google.common.util.concurrent.ListenableFuture<Agent> getAgent​(GetAgentRequest request)
         Retrieves the specified agent.
         
      • createAgent

        public com.google.common.util.concurrent.ListenableFuture<Agent> createAgent​(CreateAgentRequest request)
         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 com.google.common.util.concurrent.ListenableFuture<Agent> updateAgent​(UpdateAgentRequest request)
         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 com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteAgent​(DeleteAgentRequest request)
         Deletes the specified agent.
         
      • exportAgent

        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.v3beta1.ExportAgentResponse]
         
      • restoreAgent

        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 a flow prior to sending it queries. See the
         [training
         documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
         
      • validateAgent

        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.
         
      • getAgentValidationResult

        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.