Class 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.v3.Agent].
     
    • Method Detail

      • 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 flows prior to sending them 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 flows prior to sending them 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.v3.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 flows prior to sending them 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.