3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    [BindServiceMethod(typeof(Versions), "BindService")]
    public abstract class Versions.VersionsBase

Reference documentation and code samples for the Dialogflow v3 API class Versions.VersionsBase.

Base class for server-side implementations of Versions

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> Versions.VersionsBase

## 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.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Methods

### CompareVersions(CompareVersionsRequest, ServerCallContext)

    public virtual Task<CompareVersionsResponse> CompareVersions(CompareVersionsRequest request, ServerCallContext context)

Compares the specified base version with target version.

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

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

### CreateVersion(CreateVersionRequest, ServerCallContext)

    public virtual Task<Operation> CreateVersion(CreateVersionRequest request, ServerCallContext context)

Creates a \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] in the specified
\[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\].

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: \[CreateVersionOperationMetadata\]\[google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata\]
- `response`: \[Version\]\[google.cloud.dialogflow.cx.v3.Version\]

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `CreateVersionRequest` 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). |

### DeleteVersion(DeleteVersionRequest, ServerCallContext)

    public virtual Task<Empty> DeleteVersion(DeleteVersionRequest request, ServerCallContext context)

Deletes the specified \[Version\]\[google.cloud.dialogflow.cx.v3.Version\].

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

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

### GetVersion(GetVersionRequest, ServerCallContext)

    public virtual Task<Version> GetVersion(GetVersionRequest request, ServerCallContext context)

Retrieves the specified \[Version\]\[google.cloud.dialogflow.cx.v3.Version\].

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

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

### ListVersions(ListVersionsRequest, ServerCallContext)

    public virtual Task<ListVersionsResponse> ListVersions(ListVersionsRequest request, ServerCallContext context)

Returns the list of all versions in the specified
\[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\].

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

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

### LoadVersion(LoadVersionRequest, ServerCallContext)

    public virtual Task<Operation> LoadVersion(LoadVersionRequest request, ServerCallContext context)

Loads resources in the specified version to the draft flow.

This method is a [long-running
operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
The returned `Operation` type has the following method-specific fields:

- `metadata`: An empty [Struct
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
- `response`: An [Empty
  message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `LoadVersionRequest` 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). |

### UpdateVersion(UpdateVersionRequest, ServerCallContext)

    public virtual Task<Version> UpdateVersion(UpdateVersionRequest request, ServerCallContext context)

Updates the specified \[Version\]\[google.cloud.dialogflow.cx.v3.Version\].

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

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