Google Cloud Dialogflow v2 API - Class ConversationModelsClientImpl (4.4.0)

public sealed class ConversationModelsClientImpl : ConversationModelsClient

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

ConversationModels client wrapper implementation, for convenient use.

Inheritance

Object > ConversationModelsClient > ConversationModelsClientImpl

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Remarks

Manages a collection of models for human agent assistant.

Constructors

ConversationModelsClientImpl(ConversationModels.ConversationModelsClient, ConversationModelsSettings, ILogger)

public ConversationModelsClientImpl(ConversationModels.ConversationModelsClient grpcClient, ConversationModelsSettings settings, ILogger logger)

Constructs a client wrapper for the ConversationModels service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientConversationModels.ConversationModelsClient

The underlying gRPC client.

settingsConversationModelsSettings

The base ConversationModelsSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

CreateConversationModelEvaluationOperationsClient

public override OperationsClient CreateConversationModelEvaluationOperationsClient { get; }

The long-running operations client for CreateConversationModelEvaluation.

Property Value
TypeDescription
OperationsClient
Overrides

CreateConversationModelOperationsClient

public override OperationsClient CreateConversationModelOperationsClient { get; }

The long-running operations client for CreateConversationModel.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteConversationModelOperationsClient

public override OperationsClient DeleteConversationModelOperationsClient { get; }

The long-running operations client for DeleteConversationModel.

Property Value
TypeDescription
OperationsClient
Overrides

DeployConversationModelOperationsClient

public override OperationsClient DeployConversationModelOperationsClient { get; }

The long-running operations client for DeployConversationModel.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override ConversationModels.ConversationModelsClient GrpcClient { get; }

The underlying gRPC ConversationModels client

Property Value
TypeDescription
ConversationModels.ConversationModelsClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

UndeployConversationModelOperationsClient

public override OperationsClient UndeployConversationModelOperationsClient { get; }

The long-running operations client for UndeployConversationModel.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

CreateConversationModel(CreateConversationModelRequest, CallSettings)

public override Operation<ConversationModel, CreateConversationModelOperationMetadata> CreateConversationModel(CreateConversationModelRequest request, CallSettings callSettings = null)

Creates a model.

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

  • metadata: [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata]
  • response: [ConversationModel][google.cloud.dialogflow.v2.ConversationModel]
Parameters
NameDescription
requestCreateConversationModelRequest

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<ConversationModel, CreateConversationModelOperationMetadata>

The RPC response.

Overrides

CreateConversationModelAsync(CreateConversationModelRequest, CallSettings)

public override async Task<Operation<ConversationModel, CreateConversationModelOperationMetadata>> CreateConversationModelAsync(CreateConversationModelRequest request, CallSettings callSettings = null)

Creates a model.

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

  • metadata: [CreateConversationModelOperationMetadata][google.cloud.dialogflow.v2.CreateConversationModelOperationMetadata]
  • response: [ConversationModel][google.cloud.dialogflow.v2.ConversationModel]
Parameters
NameDescription
requestCreateConversationModelRequest

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<ConversationModel, CreateConversationModelOperationMetadata>>

A Task containing the RPC response.

Overrides

CreateConversationModelEvaluation(CreateConversationModelEvaluationRequest, CallSettings)

public override Operation<ConversationModelEvaluation, CreateConversationModelEvaluationOperationMetadata> CreateConversationModelEvaluation(CreateConversationModelEvaluationRequest request, CallSettings callSettings = null)

Creates evaluation of a conversation model.

Parameters
NameDescription
requestCreateConversationModelEvaluationRequest

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<ConversationModelEvaluation, CreateConversationModelEvaluationOperationMetadata>

The RPC response.

Overrides

CreateConversationModelEvaluationAsync(CreateConversationModelEvaluationRequest, CallSettings)

public override async Task<Operation<ConversationModelEvaluation, CreateConversationModelEvaluationOperationMetadata>> CreateConversationModelEvaluationAsync(CreateConversationModelEvaluationRequest request, CallSettings callSettings = null)

Creates evaluation of a conversation model.

Parameters
NameDescription
requestCreateConversationModelEvaluationRequest

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<ConversationModelEvaluation, CreateConversationModelEvaluationOperationMetadata>>

A Task containing the RPC response.

Overrides

DeleteConversationModel(DeleteConversationModelRequest, CallSettings)

public override Operation<Empty, DeleteConversationModelOperationMetadata> DeleteConversationModel(DeleteConversationModelRequest request, CallSettings callSettings = null)

Deletes a model.

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

  • metadata: [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata]
  • response: An Empty message
Parameters
NameDescription
requestDeleteConversationModelRequest

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, DeleteConversationModelOperationMetadata>

The RPC response.

Overrides

DeleteConversationModelAsync(DeleteConversationModelRequest, CallSettings)

public override async Task<Operation<Empty, DeleteConversationModelOperationMetadata>> DeleteConversationModelAsync(DeleteConversationModelRequest request, CallSettings callSettings = null)

Deletes a model.

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

  • metadata: [DeleteConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata]
  • response: An Empty message
Parameters
NameDescription
requestDeleteConversationModelRequest

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, DeleteConversationModelOperationMetadata>>

A Task containing the RPC response.

Overrides

DeployConversationModel(DeployConversationModelRequest, CallSettings)

public override Operation<Empty, DeployConversationModelOperationMetadata> DeployConversationModel(DeployConversationModelRequest request, CallSettings callSettings = null)

Deploys a model. If a model is already deployed, deploying it has no effect. A model can only serve prediction requests after it gets deployed. For article suggestion, custom model will not be used unless it is deployed.

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

  • metadata: [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata]
  • response: An Empty message
Parameters
NameDescription
requestDeployConversationModelRequest

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, DeployConversationModelOperationMetadata>

The RPC response.

Overrides

DeployConversationModelAsync(DeployConversationModelRequest, CallSettings)

public override async Task<Operation<Empty, DeployConversationModelOperationMetadata>> DeployConversationModelAsync(DeployConversationModelRequest request, CallSettings callSettings = null)

Deploys a model. If a model is already deployed, deploying it has no effect. A model can only serve prediction requests after it gets deployed. For article suggestion, custom model will not be used unless it is deployed.

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

  • metadata: [DeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata]
  • response: An Empty message
Parameters
NameDescription
requestDeployConversationModelRequest

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, DeployConversationModelOperationMetadata>>

A Task containing the RPC response.

Overrides

GetConversationModel(GetConversationModelRequest, CallSettings)

public override ConversationModel GetConversationModel(GetConversationModelRequest request, CallSettings callSettings = null)

Gets conversation model.

Parameters
NameDescription
requestGetConversationModelRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConversationModel

The RPC response.

Overrides

GetConversationModelAsync(GetConversationModelRequest, CallSettings)

public override Task<ConversationModel> GetConversationModelAsync(GetConversationModelRequest request, CallSettings callSettings = null)

Gets conversation model.

Parameters
NameDescription
requestGetConversationModelRequest

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<ConversationModel>

A Task containing the RPC response.

Overrides

GetConversationModelEvaluation(GetConversationModelEvaluationRequest, CallSettings)

public override ConversationModelEvaluation GetConversationModelEvaluation(GetConversationModelEvaluationRequest request, CallSettings callSettings = null)

Gets an evaluation of conversation model.

Parameters
NameDescription
requestGetConversationModelEvaluationRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ConversationModelEvaluation

The RPC response.

Overrides

GetConversationModelEvaluationAsync(GetConversationModelEvaluationRequest, CallSettings)

public override Task<ConversationModelEvaluation> GetConversationModelEvaluationAsync(GetConversationModelEvaluationRequest request, CallSettings callSettings = null)

Gets an evaluation of conversation model.

Parameters
NameDescription
requestGetConversationModelEvaluationRequest

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<ConversationModelEvaluation>

A Task containing the RPC response.

Overrides

ListConversationModelEvaluations(ListConversationModelEvaluationsRequest, CallSettings)

public override PagedEnumerable<ListConversationModelEvaluationsResponse, ConversationModelEvaluation> ListConversationModelEvaluations(ListConversationModelEvaluationsRequest request, CallSettings callSettings = null)

Lists evaluations of a conversation model.

Parameters
NameDescription
requestListConversationModelEvaluationsRequest

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<ListConversationModelEvaluationsResponse, ConversationModelEvaluation>

A pageable sequence of ConversationModelEvaluation resources.

Overrides

ListConversationModelEvaluationsAsync(ListConversationModelEvaluationsRequest, CallSettings)

public override PagedAsyncEnumerable<ListConversationModelEvaluationsResponse, ConversationModelEvaluation> ListConversationModelEvaluationsAsync(ListConversationModelEvaluationsRequest request, CallSettings callSettings = null)

Lists evaluations of a conversation model.

Parameters
NameDescription
requestListConversationModelEvaluationsRequest

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<ListConversationModelEvaluationsResponse, ConversationModelEvaluation>

A pageable asynchronous sequence of ConversationModelEvaluation resources.

Overrides

ListConversationModels(ListConversationModelsRequest, CallSettings)

public override PagedEnumerable<ListConversationModelsResponse, ConversationModel> ListConversationModels(ListConversationModelsRequest request, CallSettings callSettings = null)

Lists conversation models.

Parameters
NameDescription
requestListConversationModelsRequest

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<ListConversationModelsResponse, ConversationModel>

A pageable sequence of ConversationModel resources.

Overrides

ListConversationModelsAsync(ListConversationModelsRequest, CallSettings)

public override PagedAsyncEnumerable<ListConversationModelsResponse, ConversationModel> ListConversationModelsAsync(ListConversationModelsRequest request, CallSettings callSettings = null)

Lists conversation models.

Parameters
NameDescription
requestListConversationModelsRequest

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<ListConversationModelsResponse, ConversationModel>

A pageable asynchronous sequence of ConversationModel resources.

Overrides

UndeployConversationModel(UndeployConversationModelRequest, CallSettings)

public override Operation<Empty, UndeployConversationModelOperationMetadata> UndeployConversationModel(UndeployConversationModelRequest request, CallSettings callSettings = null)

Undeploys a model. If the model is not deployed this method has no effect. If the model is currently being used:

  • For article suggestion, article suggestion will fallback to the default model if model is undeployed.

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

  • metadata: [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata]
  • response: An Empty message
Parameters
NameDescription
requestUndeployConversationModelRequest

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, UndeployConversationModelOperationMetadata>

The RPC response.

Overrides

UndeployConversationModelAsync(UndeployConversationModelRequest, CallSettings)

public override async Task<Operation<Empty, UndeployConversationModelOperationMetadata>> UndeployConversationModelAsync(UndeployConversationModelRequest request, CallSettings callSettings = null)

Undeploys a model. If the model is not deployed this method has no effect. If the model is currently being used:

  • For article suggestion, article suggestion will fallback to the default model if model is undeployed.

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

  • metadata: [UndeployConversationModelOperationMetadata][google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata]
  • response: An Empty message
Parameters
NameDescription
requestUndeployConversationModelRequest

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, UndeployConversationModelOperationMetadata>>

A Task containing the RPC response.

Overrides