public static final class AgentsGrpc.AgentsBlockingStub extends io.grpc.stub.AbstractStub<AgentsGrpc.AgentsBlockingStub>
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.v2beta1.Intents], [Contexts][google.cloud.dialogflow.v2beta1.Contexts], [Entity Types][google.cloud.dialogflow.v2beta1.EntityTypes], [Webhooks][google.cloud.dialogflow.v2beta1.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.v2beta1.Agents.ExportAgent] method. You can import a saved agent by using the [ImportAgent][google.cloud.dialogflow.v2beta1.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.AgentsBlockingStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
Operation |
exportAgent(ExportAgentRequest request)
Exports the specified agent to a ZIP file.
|
Agent |
getAgent(GetAgentRequest request)
Retrieves the specified agent.
|
Operation |
importAgent(ImportAgentRequest request)
Imports the specified agent from a ZIP file.
|
Operation |
restoreAgent(RestoreAgentRequest request)
Restores the specified agent from a ZIP file.
|
SearchAgentsResponse |
searchAgents(SearchAgentsRequest request)
Returns the list of agents.
|
Operation |
trainAgent(TrainAgentRequest request)
Trains the specified agent.
|
protected AgentsGrpc.AgentsBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build
in class io.grpc.stub.AbstractStub<AgentsGrpc.AgentsBlockingStub>
public Agent getAgent(GetAgentRequest request)
Retrieves the specified agent.
public 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 Operation trainAgent(TrainAgentRequest request)
Trains the specified agent. Operation <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: [google.protobuf.Struct][google.protobuf.Struct]>
public Operation exportAgent(ExportAgentRequest request)
Exports the specified agent to a ZIP file. Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2beta1.ExportAgentResponse], metadata: [google.protobuf.Struct][google.protobuf.Struct]>
public 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 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]>