public abstract static class AgentsGrpc.AgentsImplBase
extends java.lang.Object
implements io.grpc.BindableService
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).
Constructor and Description |
---|
AgentsImplBase() |
Modifier and Type | Method and Description |
---|---|
io.grpc.ServerServiceDefinition |
bindService() |
void |
exportAgent(ExportAgentRequest request,
io.grpc.stub.StreamObserver<Operation> responseObserver)
Exports the specified agent to a ZIP file.
|
void |
getAgent(GetAgentRequest request,
io.grpc.stub.StreamObserver<Agent> responseObserver)
Retrieves the specified agent.
|
void |
importAgent(ImportAgentRequest request,
io.grpc.stub.StreamObserver<Operation> responseObserver)
Imports the specified agent from a ZIP file.
|
void |
restoreAgent(RestoreAgentRequest request,
io.grpc.stub.StreamObserver<Operation> responseObserver)
Restores the specified agent from a ZIP file.
|
void |
searchAgents(SearchAgentsRequest request,
io.grpc.stub.StreamObserver<SearchAgentsResponse> responseObserver)
Returns the list of agents.
|
void |
trainAgent(TrainAgentRequest request,
io.grpc.stub.StreamObserver<Operation> responseObserver)
Trains the specified agent.
|
public void getAgent(GetAgentRequest request, io.grpc.stub.StreamObserver<Agent> responseObserver)
Retrieves the specified agent.
public void searchAgents(SearchAgentsRequest request, io.grpc.stub.StreamObserver<SearchAgentsResponse> responseObserver)
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 void trainAgent(TrainAgentRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
Trains the specified agent. Operation <response: [google.protobuf.Empty][google.protobuf.Empty], metadata: [google.protobuf.Struct][google.protobuf.Struct]>
public void exportAgent(ExportAgentRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
Exports the specified agent to a ZIP file. Operation <response: [ExportAgentResponse][google.cloud.dialogflow.v2.ExportAgentResponse], metadata: [google.protobuf.Struct][google.protobuf.Struct]>
public void importAgent(ImportAgentRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
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 void restoreAgent(RestoreAgentRequest request, io.grpc.stub.StreamObserver<Operation> responseObserver)
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]>
public final io.grpc.ServerServiceDefinition bindService()
bindService
in interface io.grpc.BindableService