Google Cloud Dialogflow v2 API - Class ConversationModels.ConversationModelsBase (4.8.0)

[BindServiceMethod(typeof(ConversationModels), "BindService")]
public abstract class ConversationModelsBase

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

Base class for server-side implementations of ConversationModels

Inheritance

Object > ConversationModels.ConversationModelsBase

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Methods

CreateConversationModel(CreateConversationModelRequest, ServerCallContext)

public virtual Task<Operation> CreateConversationModel(CreateConversationModelRequest request, ServerCallContext context)

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 received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

CreateConversationModelEvaluation(CreateConversationModelEvaluationRequest, ServerCallContext)

public virtual Task<Operation> CreateConversationModelEvaluation(CreateConversationModelEvaluationRequest request, ServerCallContext context)

Creates evaluation of a conversation model.

Parameters
NameDescription
requestCreateConversationModelEvaluationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeleteConversationModel(DeleteConversationModelRequest, ServerCallContext)

public virtual Task<Operation> DeleteConversationModel(DeleteConversationModelRequest request, ServerCallContext context)

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 received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

DeployConversationModel(DeployConversationModelRequest, ServerCallContext)

public virtual Task<Operation> DeployConversationModel(DeployConversationModelRequest request, ServerCallContext context)

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 received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

GetConversationModel(GetConversationModelRequest, ServerCallContext)

public virtual Task<ConversationModel> GetConversationModel(GetConversationModelRequest request, ServerCallContext context)

Gets conversation model.

Parameters
NameDescription
requestGetConversationModelRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ConversationModel>

The response to send back to the client (wrapped by a task).

GetConversationModelEvaluation(GetConversationModelEvaluationRequest, ServerCallContext)

public virtual Task<ConversationModelEvaluation> GetConversationModelEvaluation(GetConversationModelEvaluationRequest request, ServerCallContext context)

Gets an evaluation of conversation model.

Parameters
NameDescription
requestGetConversationModelEvaluationRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ConversationModelEvaluation>

The response to send back to the client (wrapped by a task).

ListConversationModelEvaluations(ListConversationModelEvaluationsRequest, ServerCallContext)

public virtual Task<ListConversationModelEvaluationsResponse> ListConversationModelEvaluations(ListConversationModelEvaluationsRequest request, ServerCallContext context)

Lists evaluations of a conversation model.

Parameters
NameDescription
requestListConversationModelEvaluationsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListConversationModelEvaluationsResponse>

The response to send back to the client (wrapped by a task).

ListConversationModels(ListConversationModelsRequest, ServerCallContext)

public virtual Task<ListConversationModelsResponse> ListConversationModels(ListConversationModelsRequest request, ServerCallContext context)

Lists conversation models.

Parameters
NameDescription
requestListConversationModelsRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ListConversationModelsResponse>

The response to send back to the client (wrapped by a task).

UndeployConversationModel(UndeployConversationModelRequest, ServerCallContext)

public virtual Task<Operation> UndeployConversationModel(UndeployConversationModelRequest request, ServerCallContext context)

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 received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).