4.34.0 (latest) 4.33.0 4.32.0 4.31.0 4.30.0 4.29.0 4.28.0 4.27.0 4.26.0 4.25.0 4.24.0 4.23.0 4.22.0 4.21.0 4.20.0 4.19.0 4.18.0 4.17.0 4.16.0 4.15.0 4.14.0 4.13.0 4.12.0 4.11.0 4.10.0 4.9.0 4.8.0 4.7.0 4.6.0 4.5.0 4.4.0 4.3.0 4.2.0 4.1.0 4.0.0 3.11.0 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0

    [BindServiceMethod(typeof(ConversationModels), "BindService")]
    public abstract class ConversationModels.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](https://learn.microsoft.com/dotnet/api/system.object) \> ConversationModels.ConversationModelsBase

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2/latest/Google.Cloud.Dialogflow.V2.md.txt)

## 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](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
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** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateConversationModelRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | 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** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateConversationModelEvaluationRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | 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](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[DeleteConversationModelOperationMetadata\]\[google.cloud.dialogflow.v2.DeleteConversationModelOperationMetadata\]
- `response`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeleteConversationModelRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | 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](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[DeployConversationModelOperationMetadata\]\[google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata\]
- `response`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `DeployConversationModelRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | 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** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetConversationModelRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskConversationModel` | 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** ||
|---|---|
| **Name** | **Description** |
| `request` | `GetConversationModelEvaluationRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskConversationModelEvaluation` | 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** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListConversationModelEvaluationsRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListConversationModelEvaluationsResponse` | 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** ||
|---|---|
| **Name** | **Description** |
| `request` | `ListConversationModelsRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskListConversationModelsResponse` | 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](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[UndeployConversationModelOperationMetadata\]\[google.cloud.dialogflow.v2.UndeployConversationModelOperationMetadata\]
- `response`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `UndeployConversationModelRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskOperation` | The response to send back to the client (wrapped by a task). |