Class AgentsGrpc.AgentsBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<AgentsGrpc.AgentsBlockingStub>
-
- com.google.cloud.dialogflow.cx.v3.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AgentsGrpc.AgentsBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
Agent
createAgent(CreateAgentRequest request)
Creates an agent in the specified location.com.google.protobuf.Empty
deleteAgent(DeleteAgentRequest request)
Deletes the specified agent.com.google.longrunning.Operation
exportAgent(ExportAgentRequest request)
Exports the specified agent to a binary file.Agent
getAgent(GetAgentRequest request)
Retrieves the specified agent.AgentValidationResult
getAgentValidationResult(GetAgentValidationResultRequest request)
Gets the latest agent validation result.GenerativeSettings
getGenerativeSettings(GetGenerativeSettingsRequest request)
Gets the generative settings for the agent.ListAgentsResponse
listAgents(ListAgentsRequest request)
Returns the list of all agents in the specified location.com.google.longrunning.Operation
restoreAgent(RestoreAgentRequest request)
Restores the specified agent from a binary file.Agent
updateAgent(UpdateAgentRequest request)
Updates the specified agent.GenerativeSettings
updateGenerativeSettings(UpdateGenerativeSettingsRequest request)
Updates the generative settings for the agent.AgentValidationResult
validateAgent(ValidateAgentRequest request)
Validates the specified agent and creates or updates validation results.
-
-
-
Method Detail
-
build
protected AgentsGrpc.AgentsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<AgentsGrpc.AgentsBlockingStub>
-
listAgents
public ListAgentsResponse listAgents(ListAgentsRequest request)
Returns the list of all agents in the specified location.
-
getAgent
public Agent getAgent(GetAgentRequest request)
Retrieves the specified agent.
-
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.
-
getAgentValidationResult
public AgentValidationResult getAgentValidationResult(GetAgentValidationResultRequest request)
Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.
-
getGenerativeSettings
public GenerativeSettings getGenerativeSettings(GetGenerativeSettingsRequest request)
Gets the generative settings for the agent.
-
updateGenerativeSettings
public GenerativeSettings updateGenerativeSettings(UpdateGenerativeSettingsRequest request)
Updates the generative settings for the agent.
-
-