public static final class AgentsGrpc.AgentsBlockingStub extends io.grpc.stub.AbstractBlockingStub<AgentsGrpc.AgentsBlockingStub>
Service for managing [Agents][google.cloud.dialogflow.cx.v3.Agent].
| Modifier and Type | Method and 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.
|
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.
|
AgentValidationResult |
validateAgent(ValidateAgentRequest request)
Validates the specified agent and creates or updates validation results.
|
protected AgentsGrpc.AgentsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<AgentsGrpc.AgentsBlockingStub>public ListAgentsResponse listAgents(ListAgentsRequest request)
Returns the list of all agents in the specified location.
public Agent getAgent(GetAgentRequest request)
Retrieves the specified agent.
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).
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).
public com.google.protobuf.Empty deleteAgent(DeleteAgentRequest request)
Deletes the specified agent.
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]
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).
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.
public AgentValidationResult getAgentValidationResult(GetAgentValidationResultRequest request)
Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called.
Copyright © 2023 Google LLC. All rights reserved.