Class AgentsGrpc.AgentsBlockingStub

  • Enclosing class:
    AgentsGrpc

    public static final class AgentsGrpc.AgentsBlockingStub
    extends io.grpc.stub.AbstractBlockingStub<AgentsGrpc.AgentsBlockingStub>
    A stub to allow clients to do synchronous rpc calls to service Agents.
     Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent].
     
    • Method Detail

      • createAgent

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

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

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

        public 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.