Class IntentsClientImpl (4.0.0)

public sealed class IntentsClientImpl : IntentsClient

Intents client wrapper implementation, for convenient use.

Inheritance

System.Object > IntentsClient > IntentsClientImpl

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Remarks

Service for managing [Intents][google.cloud.dialogflow.v2.Intent].

Constructors

IntentsClientImpl(Intents.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
NameDescription
grpcClientIntents.IntentsClient

The underlying gRPC client.

settingsIntentsSettings

The base IntentsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

BatchDeleteIntentsOperationsClient

public override OperationsClient BatchDeleteIntentsOperationsClient { get; }

The long-running operations client for BatchDeleteIntents.

Property Value
TypeDescription
OperationsClient
Overrides

BatchUpdateIntentsOperationsClient

public override OperationsClient BatchUpdateIntentsOperationsClient { get; }

The long-running operations client for BatchUpdateIntents.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override Intents.IntentsClient GrpcClient { get; }

The underlying gRPC Intents client

Property Value
TypeDescription
Intents.IntentsClient
Overrides

Methods

BatchDeleteIntents(BatchDeleteIntentsRequest, CallSettings)

public override Operation<Empty, Struct> BatchDeleteIntents(BatchDeleteIntentsRequest request, CallSettings callSettings = null)

Deletes intents in the specified agent.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestBatchDeleteIntentsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, Struct>

The RPC response.

Overrides

BatchDeleteIntentsAsync(BatchDeleteIntentsRequest, CallSettings)

public override async Task<Operation<Empty, Struct>> BatchDeleteIntentsAsync(BatchDeleteIntentsRequest request, CallSettings callSettings = null)

Deletes intents in the specified agent.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestBatchDeleteIntentsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, Struct>>

A Task containing the RPC response.

Overrides

BatchUpdateIntents(BatchUpdateIntentsRequest, CallSettings)

public override Operation<BatchUpdateIntentsResponse, Struct> BatchUpdateIntents(BatchUpdateIntentsRequest request, CallSettings callSettings = null)

Updates/Creates multiple intents in the specified agent.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: An empty Struct message
  • response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestBatchUpdateIntentsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchUpdateIntentsResponse, Struct>

The RPC response.

Overrides

BatchUpdateIntentsAsync(BatchUpdateIntentsRequest, CallSettings)

public override async Task<Operation<BatchUpdateIntentsResponse, Struct>> BatchUpdateIntentsAsync(BatchUpdateIntentsRequest request, CallSettings callSettings = null)

Updates/Creates multiple intents in the specified agent.

This method is a long-running operation. The returned Operation type has the following method-specific fields:

  • metadata: An empty Struct message
  • response: [BatchUpdateIntentsResponse][google.cloud.dialogflow.v2.BatchUpdateIntentsResponse]

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestBatchUpdateIntentsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchUpdateIntentsResponse, Struct>>

A Task containing the RPC response.

Overrides

CreateIntent(CreateIntentRequest, CallSettings)

public override Intent CreateIntent(CreateIntentRequest request, CallSettings callSettings = null)

Creates an intent in the specified agent.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestCreateIntentRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Intent

The RPC response.

Overrides

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 an agent prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestCreateIntentRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Intent>

A Task containing the RPC response.

Overrides

DeleteIntent(DeleteIntentRequest, CallSettings)

public override void DeleteIntent(DeleteIntentRequest request, CallSettings callSettings = null)

Deletes the specified intent and its direct or indirect followup intents.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestDeleteIntentRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Overrides

DeleteIntentAsync(DeleteIntentRequest, CallSettings)

public override Task DeleteIntentAsync(DeleteIntentRequest request, CallSettings callSettings = null)

Deletes the specified intent and its direct or indirect followup intents.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestDeleteIntentRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Overrides

GetIntent(GetIntentRequest, CallSettings)

public override Intent GetIntent(GetIntentRequest request, CallSettings callSettings = null)

Retrieves the specified intent.

Parameters
NameDescription
requestGetIntentRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Intent

The RPC response.

Overrides

GetIntentAsync(GetIntentRequest, CallSettings)

public override Task<Intent> GetIntentAsync(GetIntentRequest request, CallSettings callSettings = null)

Retrieves the specified intent.

Parameters
NameDescription
requestGetIntentRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Intent>

A Task containing the RPC response.

Overrides

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
NameDescription
requestListIntentsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListIntentsResponse, Intent>

A pageable sequence of Intent resources.

Overrides

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
NameDescription
requestListIntentsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListIntentsResponse, Intent>

A pageable asynchronous sequence of Intent resources.

Overrides

UpdateIntent(UpdateIntentRequest, CallSettings)

public override Intent UpdateIntent(UpdateIntentRequest request, CallSettings callSettings = null)

Updates the specified intent.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestUpdateIntentRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Intent

The RPC response.

Overrides

UpdateIntentAsync(UpdateIntentRequest, CallSettings)

public override Task<Intent> UpdateIntentAsync(UpdateIntentRequest request, CallSettings callSettings = null)

Updates the specified intent.

Note: You should always train an agent prior to sending it queries. See the training documentation.

Parameters
NameDescription
requestUpdateIntentRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Intent>

A Task containing the RPC response.

Overrides