[BindServiceMethod(typeof(Intents), "BindService")]
public abstract class Intents.IntentsBaseReference documentation and code samples for the Dialogflow v3 API class Intents.IntentsBase.
Base class for server-side implementations of Intents
Namespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Methods
CreateIntent(CreateIntentRequest, ServerCallContext)
public virtual Task<Intent> CreateIntent(CreateIntentRequest request, ServerCallContext context)Creates an intent in the specified agent.
Note: You should always train a flow prior to sending it queries. See the training documentation.
| Parameters | |
|---|---|
| Name | Description |
request |
CreateIntentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskIntent |
The response to send back to the client (wrapped by a task). |
DeleteIntent(DeleteIntentRequest, ServerCallContext)
public virtual Task<Empty> DeleteIntent(DeleteIntentRequest request, ServerCallContext context)Deletes the specified intent.
Note: You should always train a flow prior to sending it queries. See the training documentation.
| Parameters | |
|---|---|
| Name | Description |
request |
DeleteIntentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskEmpty |
The response to send back to the client (wrapped by a task). |
ExportIntents(ExportIntentsRequest, ServerCallContext)
public virtual Task<Operation> ExportIntents(ExportIntentsRequest request, ServerCallContext context)Exports the selected intents.
This method is a long-running
operation.
The returned Operation type has the following method-specific fields:
metadata: [ExportIntentsMetadata][google.cloud.dialogflow.cx.v3.ExportIntentsMetadata]response: [ExportIntentsResponse][google.cloud.dialogflow.cx.v3.ExportIntentsResponse]
| Parameters | |
|---|---|
| Name | Description |
request |
ExportIntentsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
GetIntent(GetIntentRequest, ServerCallContext)
public virtual Task<Intent> GetIntent(GetIntentRequest request, ServerCallContext context)Retrieves the specified intent.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIntentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskIntent |
The response to send back to the client (wrapped by a task). |
ImportIntents(ImportIntentsRequest, ServerCallContext)
public virtual Task<Operation> ImportIntents(ImportIntentsRequest request, ServerCallContext context)Imports the specified intents into the agent.
This method is a long-running
operation.
The returned Operation type has the following method-specific fields:
metadata: [ImportIntentsMetadata][google.cloud.dialogflow.cx.v3.ImportIntentsMetadata]response: [ImportIntentsResponse][google.cloud.dialogflow.cx.v3.ImportIntentsResponse]
| Parameters | |
|---|---|
| Name | Description |
request |
ImportIntentsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskOperation |
The response to send back to the client (wrapped by a task). |
ListIntents(ListIntentsRequest, ServerCallContext)
public virtual Task<ListIntentsResponse> ListIntents(ListIntentsRequest request, ServerCallContext context)Returns the list of all intents in the specified agent.
| Parameters | |
|---|---|
| Name | Description |
request |
ListIntentsRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskListIntentsResponse |
The response to send back to the client (wrapped by a task). |
UpdateIntent(UpdateIntentRequest, ServerCallContext)
public virtual Task<Intent> UpdateIntent(UpdateIntentRequest request, ServerCallContext context)Updates the specified intent.
Note: You should always train a flow prior to sending it queries. See the training documentation.
| Parameters | |
|---|---|
| Name | Description |
request |
UpdateIntentRequestThe request received from the client. |
context |
ServerCallContextThe context of the server-side call handler being invoked. |
| Returns | |
|---|---|
| Type | Description |
TaskIntent |
The response to send back to the client (wrapped by a task). |