Class Intents.IntentsClient (3.11.0)

public class IntentsClient : ClientBase<Intents.IntentsClient>

Client for Intents

Inheritance

Object > ClientBase > ClientBase<Intents.IntentsClient> > Intents.IntentsClient

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Constructors

IntentsClient()

protected IntentsClient()

Protected parameterless constructor to allow creation of test doubles.

IntentsClient(CallInvoker)

public IntentsClient(CallInvoker callInvoker)

Creates a new client for Intents that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

IntentsClient(Channel)

[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public IntentsClient(Channel channel)

Creates a new client using a channel.

Parameter
NameDescription
channelGrpc.Core.Channel

The channel to use to make remote calls.

IntentsClient(ChannelBase)

public IntentsClient(ChannelBase channel)

Creates a new client for Intents

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

IntentsClient(ClientBase.ClientBaseConfiguration)

protected IntentsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

BatchDeleteIntents(BatchDeleteIntentsRequest, CallOptions)

public virtual Operation BatchDeleteIntents(BatchDeleteIntentsRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

BatchDeleteIntents(BatchDeleteIntentsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation BatchDeleteIntents(BatchDeleteIntentsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

BatchDeleteIntentsAsync(BatchDeleteIntentsRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> BatchDeleteIntentsAsync(BatchDeleteIntentsRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

BatchDeleteIntentsAsync(BatchDeleteIntentsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> BatchDeleteIntentsAsync(BatchDeleteIntentsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

BatchUpdateIntents(BatchUpdateIntentsRequest, CallOptions)

public virtual Operation BatchUpdateIntents(BatchUpdateIntentsRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

BatchUpdateIntents(BatchUpdateIntentsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Operation BatchUpdateIntents(BatchUpdateIntentsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

BatchUpdateIntentsAsync(BatchUpdateIntentsRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> BatchUpdateIntentsAsync(BatchUpdateIntentsRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

BatchUpdateIntentsAsync(BatchUpdateIntentsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Operation> BatchUpdateIntentsAsync(BatchUpdateIntentsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Operation>

The call object.

CreateIntent(CreateIntentRequest, CallOptions)

public virtual Intent CreateIntent(CreateIntentRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Intent

The response received from the server.

CreateIntent(CreateIntentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Intent CreateIntent(CreateIntentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Intent

The response received from the server.

CreateIntentAsync(CreateIntentRequest, CallOptions)

public virtual AsyncUnaryCall<Intent> CreateIntentAsync(CreateIntentRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Intent>

The call object.

CreateIntentAsync(CreateIntentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Intent> CreateIntentAsync(CreateIntentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Intent>

The call object.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client.

Returns
TypeDescription
Operations.OperationsClient

A new Operations client for the same target as this client.

DeleteIntent(DeleteIntentRequest, CallOptions)

public virtual Empty DeleteIntent(DeleteIntentRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteIntent(DeleteIntentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Empty DeleteIntent(DeleteIntentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

DeleteIntentAsync(DeleteIntentRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> DeleteIntentAsync(DeleteIntentRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

DeleteIntentAsync(DeleteIntentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Empty> DeleteIntentAsync(DeleteIntentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Empty>

The call object.

GetIntent(GetIntentRequest, CallOptions)

public virtual Intent GetIntent(GetIntentRequest request, CallOptions options)

Retrieves the specified intent.

Parameters
NameDescription
requestGetIntentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Intent

The response received from the server.

GetIntent(GetIntentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Intent GetIntent(GetIntentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Retrieves the specified intent.

Parameters
NameDescription
requestGetIntentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Intent

The response received from the server.

GetIntentAsync(GetIntentRequest, CallOptions)

public virtual AsyncUnaryCall<Intent> GetIntentAsync(GetIntentRequest request, CallOptions options)

Retrieves the specified intent.

Parameters
NameDescription
requestGetIntentRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Intent>

The call object.

GetIntentAsync(GetIntentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Intent> GetIntentAsync(GetIntentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Retrieves the specified intent.

Parameters
NameDescription
requestGetIntentRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Intent>

The call object.

ListIntents(ListIntentsRequest, CallOptions)

public virtual ListIntentsResponse ListIntents(ListIntentsRequest request, CallOptions options)

Returns the list of all intents in the specified agent.

Parameters
NameDescription
requestListIntentsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListIntentsResponse

The response received from the server.

ListIntents(ListIntentsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual ListIntentsResponse ListIntents(ListIntentsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Returns the list of all intents in the specified agent.

Parameters
NameDescription
requestListIntentsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListIntentsResponse

The response received from the server.

ListIntentsAsync(ListIntentsRequest, CallOptions)

public virtual AsyncUnaryCall<ListIntentsResponse> ListIntentsAsync(ListIntentsRequest request, CallOptions options)

Returns the list of all intents in the specified agent.

Parameters
NameDescription
requestListIntentsRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ListIntentsResponse>

The call object.

ListIntentsAsync(ListIntentsRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<ListIntentsResponse> ListIntentsAsync(ListIntentsRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

Returns the list of all intents in the specified agent.

Parameters
NameDescription
requestListIntentsRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<ListIntentsResponse>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override Intents.IntentsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
Intents.IntentsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Dialogflow.V2.Intents.IntentsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateIntent(UpdateIntentRequest, CallOptions)

public virtual Intent UpdateIntent(UpdateIntentRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Intent

The response received from the server.

UpdateIntent(UpdateIntentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Intent UpdateIntent(UpdateIntentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Intent

The response received from the server.

UpdateIntentAsync(UpdateIntentRequest, CallOptions)

public virtual AsyncUnaryCall<Intent> UpdateIntentAsync(UpdateIntentRequest request, CallOptions options)

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 to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Intent>

The call object.

UpdateIntentAsync(UpdateIntentRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Intent> UpdateIntentAsync(UpdateIntentRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))

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 to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Intent>

The call object.