public sealed class IntentsClientImpl : IntentsClientReference documentation and code samples for the Dialogflow v3 API class IntentsClientImpl.
Intents client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Dialogflow.Cx.V3Assembly
Google.Cloud.Dialogflow.Cx.V3.dll
Remarks
Service for managing [Intents][google.cloud.dialogflow.cx.v3.Intent].
Constructors
IntentsClientImpl(IntentsClient, IntentsSettings, ILogger)
public IntentsClientImpl(Intents.IntentsClient grpcClient, IntentsSettings settings, ILogger logger)Constructs a client wrapper for the Intents service, with the specified gRPC client and settings.
| Parameters | |
|---|---|
| Name | Description |
grpcClient |
IntentsIntentsClientThe underlying gRPC client. |
settings |
IntentsSettingsThe base IntentsSettings used within this client. |
logger |
ILoggerOptional ILogger to use within this client. |
Properties
ExportIntentsOperationsClient
public override OperationsClient ExportIntentsOperationsClient { get; }The long-running operations client for ExportIntents.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
GrpcClient
public override Intents.IntentsClient GrpcClient { get; }The underlying gRPC Intents client
| Property Value | |
|---|---|
| Type | Description |
IntentsIntentsClient |
|
ImportIntentsOperationsClient
public override OperationsClient ImportIntentsOperationsClient { get; }The long-running operations client for ImportIntents.
| Property Value | |
|---|---|
| Type | Description |
OperationsClient |
|
LocationsClient
public override LocationsClient LocationsClient { get; }The LocationsClient associated with this client.
| Property Value | |
|---|---|
| Type | Description |
LocationsClient |
|
Methods
CreateIntent(CreateIntentRequest, CallSettings)
public override Intent CreateIntent(CreateIntentRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Intent |
The RPC response. |
CreateIntentAsync(CreateIntentRequest, CallSettings)
public override Task<Intent> CreateIntentAsync(CreateIntentRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskIntent |
A Task containing the RPC response. |
DeleteIntent(DeleteIntentRequest, CallSettings)
public override void DeleteIntent(DeleteIntentRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
DeleteIntentAsync(DeleteIntentRequest, CallSettings)
public override Task DeleteIntentAsync(DeleteIntentRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Task |
A Task containing the RPC response. |
ExportIntents(ExportIntentsRequest, CallSettings)
public override Operation<ExportIntentsResponse, ExportIntentsMetadata> ExportIntents(ExportIntentsRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationExportIntentsResponseExportIntentsMetadata |
The RPC response. |
ExportIntentsAsync(ExportIntentsRequest, CallSettings)
public override Task<Operation<ExportIntentsResponse, ExportIntentsMetadata>> ExportIntentsAsync(ExportIntentsRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationExportIntentsResponseExportIntentsMetadata |
A Task containing the RPC response. |
GetIntent(GetIntentRequest, CallSettings)
public override Intent GetIntent(GetIntentRequest request, CallSettings callSettings = null)Retrieves the specified intent.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIntentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Intent |
The RPC response. |
GetIntentAsync(GetIntentRequest, CallSettings)
public override Task<Intent> GetIntentAsync(GetIntentRequest request, CallSettings callSettings = null)Retrieves the specified intent.
| Parameters | |
|---|---|
| Name | Description |
request |
GetIntentRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskIntent |
A Task containing the RPC response. |
ImportIntents(ImportIntentsRequest, CallSettings)
public override Operation<ImportIntentsResponse, ImportIntentsMetadata> ImportIntents(ImportIntentsRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
OperationImportIntentsResponseImportIntentsMetadata |
The RPC response. |
ImportIntentsAsync(ImportIntentsRequest, CallSettings)
public override Task<Operation<ImportIntentsResponse, ImportIntentsMetadata>> ImportIntentsAsync(ImportIntentsRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskOperationImportIntentsResponseImportIntentsMetadata |
A Task containing the RPC response. |
ListIntents(ListIntentsRequest, CallSettings)
public override PagedEnumerable<ListIntentsResponse, Intent> ListIntents(ListIntentsRequest request, CallSettings callSettings = null)Returns the list of all intents in the specified agent.
| Parameters | |
|---|---|
| Name | Description |
request |
ListIntentsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedEnumerableListIntentsResponseIntent |
A pageable sequence of Intent resources. |
ListIntentsAsync(ListIntentsRequest, CallSettings)
public override PagedAsyncEnumerable<ListIntentsResponse, Intent> ListIntentsAsync(ListIntentsRequest request, CallSettings callSettings = null)Returns the list of all intents in the specified agent.
| Parameters | |
|---|---|
| Name | Description |
request |
ListIntentsRequestThe request object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
PagedAsyncEnumerableListIntentsResponseIntent |
A pageable asynchronous sequence of Intent resources. |
UpdateIntent(UpdateIntentRequest, CallSettings)
public override Intent UpdateIntent(UpdateIntentRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
Intent |
The RPC response. |
UpdateIntentAsync(UpdateIntentRequest, CallSettings)
public override Task<Intent> UpdateIntentAsync(UpdateIntentRequest request, CallSettings callSettings = null)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 object containing all of the parameters for the API call. |
callSettings |
CallSettingsIf not null, applies overrides to this RPC call. |
| Returns | |
|---|---|
| Type | Description |
TaskIntent |
A Task containing the RPC response. |