Google Cloud Dialogflow v2 API - Class ConversationDatasets.ConversationDatasetsClient (4.22.0)

public class ConversationDatasets.ConversationDatasetsClient : ClientBase<ConversationDatasets.ConversationDatasetsClient>

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class ConversationDatasets.ConversationDatasetsClient.

Client for ConversationDatasets

Inheritance

object > ClientBase > ClientBaseConversationDatasetsConversationDatasetsClient > ConversationDatasets.ConversationDatasetsClient

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Constructors

ConversationDatasetsClient()

protected ConversationDatasetsClient()

Protected parameterless constructor to allow creation of test doubles.

ConversationDatasetsClient(CallInvoker)

public ConversationDatasetsClient(CallInvoker callInvoker)

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

Parameter
Name Description
callInvoker CallInvoker

The callInvoker to use to make remote calls.

ConversationDatasetsClient(ChannelBase)

public ConversationDatasetsClient(ChannelBase channel)

Creates a new client for ConversationDatasets

Parameter
Name Description
channel ChannelBase

The channel to use to make remote calls.

ConversationDatasetsClient(ClientBaseConfiguration)

protected ConversationDatasetsClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration

The client configuration.

Methods

CreateConversationDataset(CreateConversationDatasetRequest, CallOptions)

public virtual Operation CreateConversationDataset(CreateConversationDatasetRequest request, CallOptions options)

Creates a new conversation dataset.

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

  • metadata: [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata]
  • response: [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset]
Parameters
Name Description
request CreateConversationDatasetRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

CreateConversationDataset(CreateConversationDatasetRequest, Metadata, DateTime?, CancellationToken)

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

Creates a new conversation dataset.

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

  • metadata: [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata]
  • response: [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset]
Parameters
Name Description
request CreateConversationDatasetRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

CreateConversationDatasetAsync(CreateConversationDatasetRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> CreateConversationDatasetAsync(CreateConversationDatasetRequest request, CallOptions options)

Creates a new conversation dataset.

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

  • metadata: [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata]
  • response: [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset]
Parameters
Name Description
request CreateConversationDatasetRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateConversationDatasetAsync(CreateConversationDatasetRequest, Metadata, DateTime?, CancellationToken)

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

Creates a new conversation dataset.

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

  • metadata: [CreateConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.CreateConversationDatasetOperationMetadata]
  • response: [ConversationDataset][google.cloud.dialogflow.v2.ConversationDataset]
Parameters
Name Description
request CreateConversationDatasetRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

CreateLocationsClient()

public virtual Locations.LocationsClient CreateLocationsClient()

Creates a new instance of Locations.LocationsClient using the same call invoker as this client.

Returns
Type Description
LocationsLocationsClient

A new Locations.LocationsClient for the same target as this client.

CreateOperationsClient()

public virtual Operations.OperationsClient CreateOperationsClient()

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

Returns
Type Description
OperationsOperationsClient

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

DeleteConversationDataset(DeleteConversationDatasetRequest, CallOptions)

public virtual Operation DeleteConversationDataset(DeleteConversationDatasetRequest request, CallOptions options)

Deletes the specified conversation dataset.

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

  • metadata: [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata]
  • response: An Empty message
Parameters
Name Description
request DeleteConversationDatasetRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

DeleteConversationDataset(DeleteConversationDatasetRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified conversation dataset.

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

  • metadata: [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata]
  • response: An Empty message
Parameters
Name Description
request DeleteConversationDatasetRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

DeleteConversationDatasetAsync(DeleteConversationDatasetRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteConversationDatasetAsync(DeleteConversationDatasetRequest request, CallOptions options)

Deletes the specified conversation dataset.

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

  • metadata: [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata]
  • response: An Empty message
Parameters
Name Description
request DeleteConversationDatasetRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

DeleteConversationDatasetAsync(DeleteConversationDatasetRequest, Metadata, DateTime?, CancellationToken)

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

Deletes the specified conversation dataset.

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

  • metadata: [DeleteConversationDatasetOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationDatasetOperationMetadata]
  • response: An Empty message
Parameters
Name Description
request DeleteConversationDatasetRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

GetConversationDataset(GetConversationDatasetRequest, CallOptions)

public virtual ConversationDataset GetConversationDataset(GetConversationDatasetRequest request, CallOptions options)

Retrieves the specified conversation dataset.

Parameters
Name Description
request GetConversationDatasetRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ConversationDataset

The response received from the server.

GetConversationDataset(GetConversationDatasetRequest, Metadata, DateTime?, CancellationToken)

public virtual ConversationDataset GetConversationDataset(GetConversationDatasetRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified conversation dataset.

Parameters
Name Description
request GetConversationDatasetRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ConversationDataset

The response received from the server.

GetConversationDatasetAsync(GetConversationDatasetRequest, CallOptions)

public virtual AsyncUnaryCall<ConversationDataset> GetConversationDatasetAsync(GetConversationDatasetRequest request, CallOptions options)

Retrieves the specified conversation dataset.

Parameters
Name Description
request GetConversationDatasetRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallConversationDataset

The call object.

GetConversationDatasetAsync(GetConversationDatasetRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ConversationDataset> GetConversationDatasetAsync(GetConversationDatasetRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves the specified conversation dataset.

Parameters
Name Description
request GetConversationDatasetRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallConversationDataset

The call object.

ImportConversationData(ImportConversationDataRequest, CallOptions)

public virtual Operation ImportConversationData(ImportConversationDataRequest request, CallOptions options)

Import data into the specified conversation dataset. Note that it is not allowed to import data to a conversation dataset that already has data in it.

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

  • metadata: [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata]
  • response: [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse]
Parameters
Name Description
request ImportConversationDataRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
Operation

The response received from the server.

ImportConversationData(ImportConversationDataRequest, Metadata, DateTime?, CancellationToken)

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

Import data into the specified conversation dataset. Note that it is not allowed to import data to a conversation dataset that already has data in it.

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

  • metadata: [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata]
  • response: [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse]
Parameters
Name Description
request ImportConversationDataRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
Operation

The response received from the server.

ImportConversationDataAsync(ImportConversationDataRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> ImportConversationDataAsync(ImportConversationDataRequest request, CallOptions options)

Import data into the specified conversation dataset. Note that it is not allowed to import data to a conversation dataset that already has data in it.

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

  • metadata: [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata]
  • response: [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse]
Parameters
Name Description
request ImportConversationDataRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

ImportConversationDataAsync(ImportConversationDataRequest, Metadata, DateTime?, CancellationToken)

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

Import data into the specified conversation dataset. Note that it is not allowed to import data to a conversation dataset that already has data in it.

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

  • metadata: [ImportConversationDataOperationMetadata][google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata]
  • response: [ImportConversationDataOperationResponse][google.cloud.dialogflow.v2.ImportConversationDataOperationResponse]
Parameters
Name Description
request ImportConversationDataRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallOperation

The call object.

ListConversationDatasets(ListConversationDatasetsRequest, CallOptions)

public virtual ListConversationDatasetsResponse ListConversationDatasets(ListConversationDatasetsRequest request, CallOptions options)

Returns the list of all conversation datasets in the specified project and location.

Parameters
Name Description
request ListConversationDatasetsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
ListConversationDatasetsResponse

The response received from the server.

ListConversationDatasets(ListConversationDatasetsRequest, Metadata, DateTime?, CancellationToken)

public virtual ListConversationDatasetsResponse ListConversationDatasets(ListConversationDatasetsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the list of all conversation datasets in the specified project and location.

Parameters
Name Description
request ListConversationDatasetsRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
ListConversationDatasetsResponse

The response received from the server.

ListConversationDatasetsAsync(ListConversationDatasetsRequest, CallOptions)

public virtual AsyncUnaryCall<ListConversationDatasetsResponse> ListConversationDatasetsAsync(ListConversationDatasetsRequest request, CallOptions options)

Returns the list of all conversation datasets in the specified project and location.

Parameters
Name Description
request ListConversationDatasetsRequest

The request to send to the server.

options CallOptions

The options for the call.

Returns
Type Description
AsyncUnaryCallListConversationDatasetsResponse

The call object.

ListConversationDatasetsAsync(ListConversationDatasetsRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListConversationDatasetsResponse> ListConversationDatasetsAsync(ListConversationDatasetsRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the list of all conversation datasets in the specified project and location.

Parameters
Name Description
request ListConversationDatasetsRequest

The request to send to the server.

headers Metadata

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

deadline System.DateTime

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

cancellationToken CancellationToken

An optional token for canceling the call.

Returns
Type Description
AsyncUnaryCallListConversationDatasetsResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override ConversationDatasets.ConversationDatasetsClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
Name Description
configuration ClientBaseClientBaseConfiguration
Returns
Type Description
ConversationDatasetsConversationDatasetsClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Dialogflow.V2.ConversationDatasets.ConversationDatasetsClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)