public static final class AgentsGrpc.AgentsFutureStub extends io.grpc.stub.AbstractStub<AgentsGrpc.AgentsFutureStub>
Agents are best described as Natural Language Understanding (NLU) modules that transform user requests into actionable data. You can include agents in your app, product, or service to determine user intent and respond to the user in a natural way. After you create an agent, you can add [Intents][google.cloud.dialogflow.v2.Intents], [Contexts][google.cloud.dialogflow.v2.Contexts], [Entity Types][google.cloud.dialogflow.v2.EntityTypes], [Webhooks][google.cloud.dialogflow.v2.WebhookRequest], and so on to manage the flow of a conversation and match user input to predefined intents and actions. You can create an agent using both Dialogflow Standard Edition and Dialogflow Enterprise Edition. For details, see [Dialogflow Editions](/dialogflow-enterprise/docs/editions). You can save your agent for backup or versioning by exporting the agent by using the [ExportAgent][google.cloud.dialogflow.v2.Agents.ExportAgent] method. You can import a saved agent by using the [ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent] method. Dialogflow provides several [prebuilt agents](https://dialogflow.com/docs/prebuilt-agents) for common conversation scenarios such as determining a date and time, converting currency, and so on. For more information about agents, see the [Dialogflow documentation](https://dialogflow.com/docs/agents).
Modifier and Type | Method and Description |
---|---|
protected AgentsGrpc.AgentsFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<Operation> |
exportAgent(ExportAgentRequest request)
Exports the specified agent to a ZIP file.
|
com.google.common.util.concurrent.ListenableFuture<Agent> |
getAgent(GetAgentRequest request)
Retrieves the specified agent.
|
com.google.common.util.concurrent.ListenableFuture<Operation> |
importAgent(ImportAgentRequest request)
Imports the specified agent from a ZIP file.
|
com.google.common.util.concurrent.ListenableFuture<Operation> |
restoreAgent(RestoreAgentRequest request)
Restores the specified agent from a ZIP file.
|
com.google.common.util.concurrent.ListenableFuture<SearchAgentsResponse> |
searchAgents(SearchAgentsRequest request)
Returns the list of agents.
|
com.google.common.util.concurrent.ListenableFuture<Operation> |
trainAgent(TrainAgentRequest request)
Trains the specified agent.
|
protected AgentsGrpc.AgentsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<AgentsGrpc.AgentsFutureStub>
public com.google.common.util.concurrent.ListenableFuture<Agent> getAgent(GetAgentRequest request)
Retrieves the specified agent.
public com.google.common.util.concurrent.ListenableFuture<SearchAgentsResponse> searchAgents(SearchAgentsRequest request)
Returns the list of agents. Since there is at most one conversational agent per project, this method is useful primarily for listing all agents across projects the caller has access to. One can achieve that with a wildcard project collection id "-". Refer to [List Sub-Collections](https://cloud.google.com/apis/design/design_patterns#list_sub-collections).
public com.google.common.util.concurrent.ListenableFuture<Operation> trainAgent(TrainAgentRequest request)
Trains the specified agent. Operation <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: [google.protobuf.Struct][google.protobuf.Struct]>
public com.google.common.util.concurrent.ListenableFuture<Operation> exportAgent(ExportAgentRequest request)
Exports the specified agent to a ZIP file. Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], metadata: [google.protobuf.Struct][google.protobuf.Struct]>
public com.google.common.util.concurrent.ListenableFuture<Operation> importAgent(ImportAgentRequest request)
Imports the specified agent from a ZIP file. Uploads new intents and entity types without deleting the existing ones. Intents and entity types with the same name are replaced with the new versions from ImportAgentRequest. Operation <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: [google.protobuf.Struct][google.protobuf.Struct]>
public com.google.common.util.concurrent.ListenableFuture<Operation> restoreAgent(RestoreAgentRequest request)
Restores the specified agent from a ZIP file. Replaces the current agent version with a new one. All the intents and entity types in the older version are deleted. Operation <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: [google.protobuf.Struct][google.protobuf.Struct]>