# Dialogflow v3 API - Class VersionsClient (3.1.0)

3.1.0 (latest) 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

    public abstract class VersionsClient

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

Versions client wrapper, for convenient use.

## Inheritance

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

## 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)

## Derived Types

[VersionsClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClientImpl)

## 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)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Remarks

Service for managing \[Versions\]\[google.cloud.dialogflow.cx.v3.Version\].

## Properties

### CreateVersionOperationsClient

    public virtual OperationsClient CreateVersionOperationsClient { get; }

The long-running operations client for `CreateVersion`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the Versions service, which is a host of "dialogflow.googleapis.com" and a port of
443.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### DefaultScopes

    public static IReadOnlyList<string> DefaultScopes { get; }

The default Versions scopes.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1https://learn.microsoft.com/dotnet/api/system.string` |   |

**Remarks** The default Versions scopes are:

- <https://www.googleapis.com/auth/cloud-platform>
- <https://www.googleapis.com/auth/dialogflow>

### GrpcClient

    public virtual Versions.VersionsClient GrpcClient { get; }

The underlying gRPC Versions client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versionshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versions.VersionsClient` |   |

### LoadVersionOperationsClient

    public virtual OperationsClient LoadVersionOperationsClient { get; }

The long-running operations client for `LoadVersion`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.OperationsClient.html` |   |

### LocationsClient

    public virtual LocationsClient LocationsClient { get; }

The [LocationsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html) associated with this client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Location/latest/Google.Cloud.Location.LocationsClient.html` |   |

### ServiceMetadata

    public static ServiceMetadata ServiceMetadata { get; }

The service metadata associated with this client type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceMetadata.html` |   |

## Methods

### CompareVersions(CompareVersionsRequest, CallSettings)

    public virtual CompareVersionsResponse CompareVersions(CompareVersionsRequest request, CallSettings callSettings = null)

Compares the specified base version with target version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CompareVersionsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CompareVersionsResponse` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::CompareVersionsRequest request = new gcdcv::CompareVersionsRequest
    {
        BaseVersionAsVersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
        TargetVersionAsVersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
        LanguageCode = "",
    };
    // Make the request
    gcdcv::CompareVersionsResponse response = versionsClient.CompareVersions(request);

### CompareVersions(VersionName, CallSettings)

    public virtual CompareVersionsResponse CompareVersions(VersionName baseVersion, CallSettings callSettings = null)

Compares the specified base version with target version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `baseVersion` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionName` Required. Name of the base flow version to compare with the target version. Use version ID `0` to indicate the draft version of the specified flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CompareVersionsResponse` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::VersionName baseVersion = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
    // Make the request
    gcdcv::CompareVersionsResponse response = versionsClient.CompareVersions(baseVersion);

### CompareVersions(string, CallSettings)

    public virtual CompareVersionsResponse CompareVersions(string baseVersion, CallSettings callSettings = null)

Compares the specified base version with target version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `baseVersion` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the base flow version to compare with the target version. Use version ID `0` to indicate the draft version of the specified flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CompareVersionsResponse` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    string baseVersion = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
    // Make the request
    gcdcv::CompareVersionsResponse response = versionsClient.CompareVersions(baseVersion);

### CompareVersionsAsync(CompareVersionsRequest, CallSettings)

    public virtual Task<CompareVersionsResponse> CompareVersionsAsync(CompareVersionsRequest request, CallSettings callSettings = null)

Compares the specified base version with target version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CompareVersionsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CompareVersionsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::CompareVersionsRequest request = new gcdcv::CompareVersionsRequest
    {
        BaseVersionAsVersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
        TargetVersionAsVersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
        LanguageCode = "",
    };
    // Make the request
    gcdcv::CompareVersionsResponse response = await versionsClient.CompareVersionsAsync(request);

### CompareVersionsAsync(CompareVersionsRequest, CancellationToken)

    public virtual Task<CompareVersionsResponse> CompareVersionsAsync(CompareVersionsRequest request, CancellationToken cancellationToken)

Compares the specified base version with target version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CompareVersionsRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CompareVersionsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::CompareVersionsRequest request = new gcdcv::CompareVersionsRequest
    {
        BaseVersionAsVersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
        TargetVersionAsVersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
        LanguageCode = "",
    };
    // Make the request
    gcdcv::CompareVersionsResponse response = await versionsClient.CompareVersionsAsync(request);

### CompareVersionsAsync(VersionName, CallSettings)

    public virtual Task<CompareVersionsResponse> CompareVersionsAsync(VersionName baseVersion, CallSettings callSettings = null)

Compares the specified base version with target version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `baseVersion` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionName` Required. Name of the base flow version to compare with the target version. Use version ID `0` to indicate the draft version of the specified flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CompareVersionsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::VersionName baseVersion = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
    // Make the request
    gcdcv::CompareVersionsResponse response = await versionsClient.CompareVersionsAsync(baseVersion);

### CompareVersionsAsync(VersionName, CancellationToken)

    public virtual Task<CompareVersionsResponse> CompareVersionsAsync(VersionName baseVersion, CancellationToken cancellationToken)

Compares the specified base version with target version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `baseVersion` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionName` Required. Name of the base flow version to compare with the target version. Use version ID `0` to indicate the draft version of the specified flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CompareVersionsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::VersionName baseVersion = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
    // Make the request
    gcdcv::CompareVersionsResponse response = await versionsClient.CompareVersionsAsync(baseVersion);

### CompareVersionsAsync(string, CallSettings)

    public virtual Task<CompareVersionsResponse> CompareVersionsAsync(string baseVersion, CallSettings callSettings = null)

Compares the specified base version with target version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `baseVersion` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the base flow version to compare with the target version. Use version ID `0` to indicate the draft version of the specified flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CompareVersionsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string baseVersion = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
    // Make the request
    gcdcv::CompareVersionsResponse response = await versionsClient.CompareVersionsAsync(baseVersion);

### CompareVersionsAsync(string, CancellationToken)

    public virtual Task<CompareVersionsResponse> CompareVersionsAsync(string baseVersion, CancellationToken cancellationToken)

Compares the specified base version with target version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `baseVersion` | `https://learn.microsoft.com/dotnet/api/system.string` Required. Name of the base flow version to compare with the target version. Use version ID `0` to indicate the draft version of the specified flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CompareVersionsResponse` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string baseVersion = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
    // Make the request
    gcdcv::CompareVersionsResponse response = await versionsClient.CompareVersionsAsync(baseVersion);

### Create()

    public static VersionsClient Create()

Synchronously creates a [VersionsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClient) using the default credentials, endpoint and settings.
To specify custom credentials or other settings, use [VersionsClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClient` | The created [VersionsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClient). |

### CreateAsync(CancellationToken)

    public static Task<VersionsClient> CreateAsync(CancellationToken cancellationToken = default)

Asynchronously creates a [VersionsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClient) using the default credentials, endpoint and settings.
To specify custom credentials or other settings, use [VersionsClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClientBuilder).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` The [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use while creating the client. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClient` | The task representing the created [VersionsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClient). |

### CreateVersion(CreateVersionRequest, CallSettings)

    public virtual Operation<Version, CreateVersionOperationMetadata> CreateVersion(CreateVersionRequest request, CallSettings callSettings = null)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionOperationMetadata` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::CreateVersionRequest request = new gcdcv::CreateVersionRequest
    {
        ParentAsFlowName = gcdcv::FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
        Version = new gcdcv::Version(),
    };
    // Make the request
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> response = versionsClient.CreateVersion(request);

    // Poll until the returned long-running operation is complete
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    gcdcv::Version result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> retrievedResponse = versionsClient.PollOnceCreateVersion(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        gcdcv::Version retrievedResult = retrievedResponse.Result;
    }

### CreateVersion(FlowName, Version, CallSettings)

    public virtual Operation<Version, CreateVersionOperationMetadata> CreateVersion(FlowName parent, Version version, CallSettings callSettings = null)

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** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.FlowName` Required. The \[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\] to create an \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` Required. The version to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionOperationMetadata` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::FlowName parent = gcdcv::FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
    gcdcv::Version version = new gcdcv::Version();
    // Make the request
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> response = versionsClient.CreateVersion(parent, version);

    // Poll until the returned long-running operation is complete
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    gcdcv::Version result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> retrievedResponse = versionsClient.PollOnceCreateVersion(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        gcdcv::Version retrievedResult = retrievedResponse.Result;
    }

### CreateVersion(string, Version, CallSettings)

    public virtual Operation<Version, CreateVersionOperationMetadata> CreateVersion(string parent, Version version, CallSettings callSettings = null)

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** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\] to create an \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` Required. The version to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionOperationMetadata` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";
    gcdcv::Version version = new gcdcv::Version();
    // Make the request
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> response = versionsClient.CreateVersion(parent, version);

    // Poll until the returned long-running operation is complete
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    gcdcv::Version result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> retrievedResponse = versionsClient.PollOnceCreateVersion(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        gcdcv::Version retrievedResult = retrievedResponse.Result;
    }

### CreateVersionAsync(CreateVersionRequest, CallSettings)

    public virtual Task<Operation<Version, CreateVersionOperationMetadata>> CreateVersionAsync(CreateVersionRequest request, CallSettings callSettings = null)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::CreateVersionRequest request = new gcdcv::CreateVersionRequest
    {
        ParentAsFlowName = gcdcv::FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
        Version = new gcdcv::Version(),
    };
    // Make the request
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> response = await versionsClient.CreateVersionAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    gcdcv::Version result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> retrievedResponse = await versionsClient.PollOnceCreateVersionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        gcdcv::Version retrievedResult = retrievedResponse.Result;
    }

### CreateVersionAsync(CreateVersionRequest, CancellationToken)

    public virtual Task<Operation<Version, CreateVersionOperationMetadata>> CreateVersionAsync(CreateVersionRequest request, CancellationToken cancellationToken)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::CreateVersionRequest request = new gcdcv::CreateVersionRequest
    {
        ParentAsFlowName = gcdcv::FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
        Version = new gcdcv::Version(),
    };
    // Make the request
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> response = await versionsClient.CreateVersionAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    gcdcv::Version result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> retrievedResponse = await versionsClient.PollOnceCreateVersionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        gcdcv::Version retrievedResult = retrievedResponse.Result;
    }

### CreateVersionAsync(FlowName, Version, CallSettings)

    public virtual Task<Operation<Version, CreateVersionOperationMetadata>> CreateVersionAsync(FlowName parent, Version version, CallSettings callSettings = null)

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** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.FlowName` Required. The \[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\] to create an \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` Required. The version to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::FlowName parent = gcdcv::FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
    gcdcv::Version version = new gcdcv::Version();
    // Make the request
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> response = await versionsClient.CreateVersionAsync(parent, version);

    // Poll until the returned long-running operation is complete
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    gcdcv::Version result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> retrievedResponse = await versionsClient.PollOnceCreateVersionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        gcdcv::Version retrievedResult = retrievedResponse.Result;
    }

### CreateVersionAsync(FlowName, Version, CancellationToken)

    public virtual Task<Operation<Version, CreateVersionOperationMetadata>> CreateVersionAsync(FlowName parent, Version version, CancellationToken cancellationToken)

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** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.FlowName` Required. The \[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\] to create an \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` Required. The version to create. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::FlowName parent = gcdcv::FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
    gcdcv::Version version = new gcdcv::Version();
    // Make the request
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> response = await versionsClient.CreateVersionAsync(parent, version);

    // Poll until the returned long-running operation is complete
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    gcdcv::Version result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> retrievedResponse = await versionsClient.PollOnceCreateVersionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        gcdcv::Version retrievedResult = retrievedResponse.Result;
    }

### CreateVersionAsync(string, Version, CallSettings)

    public virtual Task<Operation<Version, CreateVersionOperationMetadata>> CreateVersionAsync(string parent, Version version, CallSettings callSettings = null)

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** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\] to create an \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` Required. The version to create. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";
    gcdcv::Version version = new gcdcv::Version();
    // Make the request
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> response = await versionsClient.CreateVersionAsync(parent, version);

    // Poll until the returned long-running operation is complete
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    gcdcv::Version result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> retrievedResponse = await versionsClient.PollOnceCreateVersionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        gcdcv::Version retrievedResult = retrievedResponse.Result;
    }

### CreateVersionAsync(string, Version, CancellationToken)

    public virtual Task<Operation<Version, CreateVersionOperationMetadata>> CreateVersionAsync(string parent, Version version, CancellationToken cancellationToken)

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** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\] to create an \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` Required. The version to create. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionOperationMetadata` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";
    gcdcv::Version version = new gcdcv::Version();
    // Make the request
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> response = await versionsClient.CreateVersionAsync(parent, version);

    // Poll until the returned long-running operation is complete
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    gcdcv::Version result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<gcdcv::Version, gcdcv::CreateVersionOperationMetadata> retrievedResponse = await versionsClient.PollOnceCreateVersionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        gcdcv::Version retrievedResult = retrievedResponse.Result;
    }

### DeleteVersion(DeleteVersionRequest, CallSettings)

    public virtual void DeleteVersion(DeleteVersionRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.DeleteVersionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::DeleteVersionRequest request = new gcdcv::DeleteVersionRequest
    {
        VersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
    };
    // Make the request
    versionsClient.DeleteVersion(request);

### DeleteVersion(VersionName, CallSettings)

    public virtual void DeleteVersion(VersionName name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionName` Required. The name of the \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::VersionName name = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
    // Make the request
    versionsClient.DeleteVersion(name);

### DeleteVersion(string, CallSettings)

    public virtual void DeleteVersion(string name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
    // Make the request
    versionsClient.DeleteVersion(name);

### DeleteVersionAsync(DeleteVersionRequest, CallSettings)

    public virtual Task DeleteVersionAsync(DeleteVersionRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.DeleteVersionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::DeleteVersionRequest request = new gcdcv::DeleteVersionRequest
    {
        VersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
    };
    // Make the request
    await versionsClient.DeleteVersionAsync(request);

### DeleteVersionAsync(DeleteVersionRequest, CancellationToken)

    public virtual Task DeleteVersionAsync(DeleteVersionRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.DeleteVersionRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::DeleteVersionRequest request = new gcdcv::DeleteVersionRequest
    {
        VersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
    };
    // Make the request
    await versionsClient.DeleteVersionAsync(request);

### DeleteVersionAsync(VersionName, CallSettings)

    public virtual Task DeleteVersionAsync(VersionName name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionName` Required. The name of the \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::VersionName name = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
    // Make the request
    await versionsClient.DeleteVersionAsync(name);

### DeleteVersionAsync(VersionName, CancellationToken)

    public virtual Task DeleteVersionAsync(VersionName name, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionName` Required. The name of the \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::VersionName name = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
    // Make the request
    await versionsClient.DeleteVersionAsync(name);

### DeleteVersionAsync(string, CallSettings)

    public virtual Task DeleteVersionAsync(string name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
    // Make the request
    await versionsClient.DeleteVersionAsync(name);

### DeleteVersionAsync(string, CancellationToken)

    public virtual Task DeleteVersionAsync(string name, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] to delete. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
    // Make the request
    await versionsClient.DeleteVersionAsync(name);

### GetVersion(GetVersionRequest, CallSettings)

    public virtual Version GetVersion(GetVersionRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.GetVersionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::GetVersionRequest request = new gcdcv::GetVersionRequest
    {
        VersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
    };
    // Make the request
    gcdcv::Version response = versionsClient.GetVersion(request);

### GetVersion(VersionName, CallSettings)

    public virtual Version GetVersion(VersionName name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionName` Required. The name of the \[Version\]\[google.cloud.dialogflow.cx.v3.Version\]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::VersionName name = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
    // Make the request
    gcdcv::Version response = versionsClient.GetVersion(name);

### GetVersion(string, CallSettings)

    public virtual Version GetVersion(string name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the \[Version\]\[google.cloud.dialogflow.cx.v3.Version\]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
    // Make the request
    gcdcv::Version response = versionsClient.GetVersion(name);

### GetVersionAsync(GetVersionRequest, CallSettings)

    public virtual Task<Version> GetVersionAsync(GetVersionRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.GetVersionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::GetVersionRequest request = new gcdcv::GetVersionRequest
    {
        VersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
    };
    // Make the request
    gcdcv::Version response = await versionsClient.GetVersionAsync(request);

### GetVersionAsync(GetVersionRequest, CancellationToken)

    public virtual Task<Version> GetVersionAsync(GetVersionRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.GetVersionRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::GetVersionRequest request = new gcdcv::GetVersionRequest
    {
        VersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
    };
    // Make the request
    gcdcv::Version response = await versionsClient.GetVersionAsync(request);

### GetVersionAsync(VersionName, CallSettings)

    public virtual Task<Version> GetVersionAsync(VersionName name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionName` Required. The name of the \[Version\]\[google.cloud.dialogflow.cx.v3.Version\]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::VersionName name = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
    // Make the request
    gcdcv::Version response = await versionsClient.GetVersionAsync(name);

### GetVersionAsync(VersionName, CancellationToken)

    public virtual Task<Version> GetVersionAsync(VersionName name, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionName` Required. The name of the \[Version\]\[google.cloud.dialogflow.cx.v3.Version\]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::VersionName name = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
    // Make the request
    gcdcv::Version response = await versionsClient.GetVersionAsync(name);

### GetVersionAsync(string, CallSettings)

    public virtual Task<Version> GetVersionAsync(string name, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the \[Version\]\[google.cloud.dialogflow.cx.v3.Version\]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
    // Make the request
    gcdcv::Version response = await versionsClient.GetVersionAsync(name);

### GetVersionAsync(string, CancellationToken)

    public virtual Task<Version> GetVersionAsync(string name, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the \[Version\]\[google.cloud.dialogflow.cx.v3.Version\]. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
    // Make the request
    gcdcv::Version response = await versionsClient.GetVersionAsync(name);

### ListVersions(FlowName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListVersionsResponse, Version> ListVersions(FlowName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.FlowName` Required. The \[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\] to list all versions for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.ListVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A pageable sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version) resources. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::FlowName parent = gcdcv::FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
    // Make the request
    PagedEnumerable<gcdcv::ListVersionsResponse, gcdcv::Version> response = versionsClient.ListVersions(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (gcdcv::Version item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (gcdcv::ListVersionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (gcdcv::Version item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<gcdcv::Version> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (gcdcv::Version item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListVersions(ListVersionsRequest, CallSettings)

    public virtual PagedEnumerable<ListVersionsResponse, Version> ListVersions(ListVersionsRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.ListVersionsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.ListVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A pageable sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version) resources. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::ListVersionsRequest request = new gcdcv::ListVersionsRequest
    {
        ParentAsFlowName = gcdcv::FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
    };
    // Make the request
    PagedEnumerable<gcdcv::ListVersionsResponse, gcdcv::Version> response = versionsClient.ListVersions(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (gcdcv::Version item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (gcdcv::ListVersionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (gcdcv::Version item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<gcdcv::Version> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (gcdcv::Version item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListVersions(string, string, int?, CallSettings)

    public virtual PagedEnumerable<ListVersionsResponse, Version> ListVersions(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\] to list all versions for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.ListVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A pageable sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version) resources. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";
    // Make the request
    PagedEnumerable<gcdcv::ListVersionsResponse, gcdcv::Version> response = versionsClient.ListVersions(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (gcdcv::Version item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    foreach (gcdcv::ListVersionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (gcdcv::Version item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<gcdcv::Version> singlePage = response.ReadPage(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (gcdcv::Version item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListVersionsAsync(FlowName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListVersionsResponse, Version> ListVersionsAsync(FlowName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.FlowName` Required. The \[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\] to list all versions for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.ListVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A pageable asynchronous sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version) resources. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::FlowName parent = gcdcv::FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
    // Make the request
    PagedAsyncEnumerable<gcdcv::ListVersionsResponse, gcdcv::Version> response = versionsClient.ListVersionsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (gcdcv::Version item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (gcdcv::ListVersionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (gcdcv::Version item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<gcdcv::Version> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (gcdcv::Version item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListVersionsAsync(ListVersionsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListVersionsResponse, Version> ListVersionsAsync(ListVersionsRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.ListVersionsRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.ListVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A pageable asynchronous sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version) resources. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::ListVersionsRequest request = new gcdcv::ListVersionsRequest
    {
        ParentAsFlowName = gcdcv::FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
    };
    // Make the request
    PagedAsyncEnumerable<gcdcv::ListVersionsResponse, gcdcv::Version> response = versionsClient.ListVersionsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (gcdcv::Version item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (gcdcv::ListVersionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (gcdcv::Version item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<gcdcv::Version> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (gcdcv::Version item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### ListVersionsAsync(string, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListVersionsResponse, Version> ListVersionsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[Flow\]\[google.cloud.dialogflow.cx.v3.Flow\] to list all versions for. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |
| `pageToken` | `https://learn.microsoft.com/dotnet/api/system.string` The token returned from the previous request. A value of `null` or an empty string retrieves the first page. |
| `pageSize` | `https://learn.microsoft.com/dotnet/api/system.int32` The size of page to request. The response will not be larger than this, but may be smaller. A value of `null` or `0` uses a server-defined page size. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.PagedAsyncEnumerable-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.ListVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A pageable asynchronous sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version) resources. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";
    // Make the request
    PagedAsyncEnumerable<gcdcv::ListVersionsResponse, gcdcv::Version> response = versionsClient.ListVersionsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (gcdcv::Version item in response)
    {
        // Do something with each item
        Console.WriteLine(item);
    }

    // Or iterate over pages (of server-defined size), performing one RPC per page
    await foreach (gcdcv::ListVersionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (gcdcv::Version item in page)
        {
            // Do something with each item
            Console.WriteLine(item);
        }
    }

    // Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
    int pageSize = 10;
    Page<gcdcv::Version> singlePage = await response.ReadPageAsync(pageSize);
    // Do something with the page of items
    Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
    foreach (gcdcv::Version item in singlePage)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
    // Store the pageToken, for when the next page is required.
    string nextPageToken = singlePage.NextPageToken;

### LoadVersion(LoadVersionRequest, CallSettings)

    public virtual Operation<Empty, Struct> LoadVersion(LoadVersionRequest request, CallSettings callSettings = null)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.LoadVersionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::LoadVersionRequest request = new gcdcv::LoadVersionRequest
    {
        VersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
        AllowOverrideAgentResources = false,
    };
    // Make the request
    Operation<Empty, Struct> response = versionsClient.LoadVersion(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, Struct> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, Struct> retrievedResponse = versionsClient.PollOnceLoadVersion(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### LoadVersion(VersionName, CallSettings)

    public virtual Operation<Empty, Struct> LoadVersion(VersionName name, CallSettings callSettings = null)

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** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionName` Required. The \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] to be loaded to draft flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::VersionName name = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
    // Make the request
    Operation<Empty, Struct> response = versionsClient.LoadVersion(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, Struct> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, Struct> retrievedResponse = versionsClient.PollOnceLoadVersion(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### LoadVersion(string, CallSettings)

    public virtual Operation<Empty, Struct> LoadVersion(string name, CallSettings callSettings = null)

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** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] to be loaded to draft flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
    // Make the request
    Operation<Empty, Struct> response = versionsClient.LoadVersion(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, Struct> completedResponse = response.PollUntilCompleted();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, Struct> retrievedResponse = versionsClient.PollOnceLoadVersion(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### LoadVersionAsync(LoadVersionRequest, CallSettings)

    public virtual Task<Operation<Empty, Struct>> LoadVersionAsync(LoadVersionRequest request, CallSettings callSettings = null)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.LoadVersionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::LoadVersionRequest request = new gcdcv::LoadVersionRequest
    {
        VersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
        AllowOverrideAgentResources = false,
    };
    // Make the request
    Operation<Empty, Struct> response = await versionsClient.LoadVersionAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, Struct> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, Struct> retrievedResponse = await versionsClient.PollOnceLoadVersionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### LoadVersionAsync(LoadVersionRequest, CancellationToken)

    public virtual Task<Operation<Empty, Struct>> LoadVersionAsync(LoadVersionRequest request, CancellationToken cancellationToken)

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` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.LoadVersionRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::LoadVersionRequest request = new gcdcv::LoadVersionRequest
    {
        VersionName = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]"),
        AllowOverrideAgentResources = false,
    };
    // Make the request
    Operation<Empty, Struct> response = await versionsClient.LoadVersionAsync(request);

    // Poll until the returned long-running operation is complete
    Operation<Empty, Struct> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, Struct> retrievedResponse = await versionsClient.PollOnceLoadVersionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### LoadVersionAsync(VersionName, CallSettings)

    public virtual Task<Operation<Empty, Struct>> LoadVersionAsync(VersionName name, CallSettings callSettings = null)

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** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionName` Required. The \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] to be loaded to draft flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::VersionName name = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
    // Make the request
    Operation<Empty, Struct> response = await versionsClient.LoadVersionAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, Struct> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, Struct> retrievedResponse = await versionsClient.PollOnceLoadVersionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### LoadVersionAsync(VersionName, CancellationToken)

    public virtual Task<Operation<Empty, Struct>> LoadVersionAsync(VersionName name, CancellationToken cancellationToken)

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** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionName` Required. The \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] to be loaded to draft flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::VersionName name = gcdcv::VersionName.FromProjectLocationAgentFlowVersion("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]", "[VERSION]");
    // Make the request
    Operation<Empty, Struct> response = await versionsClient.LoadVersionAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, Struct> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, Struct> retrievedResponse = await versionsClient.PollOnceLoadVersionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### LoadVersionAsync(string, CallSettings)

    public virtual Task<Operation<Empty, Struct>> LoadVersionAsync(string name, CallSettings callSettings = null)

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** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] to be loaded to draft flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
    // Make the request
    Operation<Empty, Struct> response = await versionsClient.LoadVersionAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, Struct> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, Struct> retrievedResponse = await versionsClient.PollOnceLoadVersionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### LoadVersionAsync(string, CancellationToken)

    public virtual Task<Operation<Empty, Struct>> LoadVersionAsync(string name, CancellationToken cancellationToken)

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** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The \[Version\]\[google.cloud.dialogflow.cx.v3.Version\] to be loaded to draft flow. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>`. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]/versions/[VERSION]";
    // Make the request
    Operation<Empty, Struct> response = await versionsClient.LoadVersionAsync(name);

    // Poll until the returned long-running operation is complete
    Operation<Empty, Struct> completedResponse = await response.PollUntilCompletedAsync();
    // Retrieve the operation result
    Empty result = completedResponse.Result;

    // Or get the name of the operation
    string operationName = response.Name;
    // This name can be stored, then the long-running operation retrieved later by name
    Operation<Empty, Struct> retrievedResponse = await versionsClient.PollOnceLoadVersionAsync(operationName);
    // Check if the retrieved long-running operation has completed
    if (retrievedResponse.IsCompleted)
    {
        // If it has completed, then access the result
        Empty retrievedResult = retrievedResponse.Result;
    }

### PollOnceCreateVersion(string, CallSettings)

    public virtual Operation<Version, CreateVersionOperationMetadata> PollOnceCreateVersion(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `CreateVersion`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionOperationMetadata` | The result of polling the operation. |

### PollOnceCreateVersionAsync(string, CallSettings)

    public virtual Task<Operation<Version, CreateVersionOperationMetadata>> PollOnceCreateVersionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`CreateVersion`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Versionhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.CreateVersionOperationMetadata` | A task representing the result of polling the operation. |

### PollOnceLoadVersion(string, CallSettings)

    public virtual Operation<Empty, Struct> PollOnceLoadVersion(string operationName, CallSettings callSettings = null)

Poll an operation once, using an `operationName` from a previous invocation of `LoadVersion`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | The result of polling the operation. |

### PollOnceLoadVersionAsync(string, CallSettings)

    public virtual Task<Operation<Empty, Struct>> PollOnceLoadVersionAsync(string operationName, CallSettings callSettings = null)

Asynchronously poll an operation once, using an `operationName` from a previous invocation of
`LoadVersion`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `operationName` | `https://learn.microsoft.com/dotnet/api/system.string` The name of a previously invoked operation. Must not be `null` or empty. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.LongRunning/latest/Google.LongRunning.Operation-2.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Empty.htmlhttps://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` | A task representing the result of polling the operation. |

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClient#Google_Cloud_Dialogflow_Cx_V3_VersionsClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClient#Google_Cloud_Dialogflow_Cx_V3_VersionsClient_CreateAsync_System_Threading_CancellationToken_). Channels which weren't automatically created are not
affected.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task` | A task representing the asynchronous shutdown operation. |

**Remarks** After calling this method, further calls to [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClient#Google_Cloud_Dialogflow_Cx_V3_VersionsClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.VersionsClient#Google_Cloud_Dialogflow_Cx_V3_VersionsClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### UpdateVersion(UpdateVersionRequest, CallSettings)

    public virtual Version UpdateVersion(UpdateVersionRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.UpdateVersionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::UpdateVersionRequest request = new gcdcv::UpdateVersionRequest
    {
        Version = new gcdcv::Version(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    gcdcv::Version response = versionsClient.UpdateVersion(request);

### UpdateVersion(Version, FieldMask, CallSettings)

    public virtual Version UpdateVersion(Version version, FieldMask updateMask, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` Required. The version to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. The mask to control which fields get updated. Currently only `description` and `display_name` can be updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | The RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = gcdcv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdcv::Version version = new gcdcv::Version();
    FieldMask updateMask = new FieldMask();
    // Make the request
    gcdcv::Version response = versionsClient.UpdateVersion(version, updateMask);

### UpdateVersionAsync(UpdateVersionRequest, CallSettings)

    public virtual Task<Version> UpdateVersionAsync(UpdateVersionRequest request, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.UpdateVersionRequest` The request object containing all of the parameters for the API call. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::UpdateVersionRequest request = new gcdcv::UpdateVersionRequest
    {
        Version = new gcdcv::Version(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    gcdcv::Version response = await versionsClient.UpdateVersionAsync(request);

### UpdateVersionAsync(UpdateVersionRequest, CancellationToken)

    public virtual Task<Version> UpdateVersionAsync(UpdateVersionRequest request, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.UpdateVersionRequest` The request object containing all of the parameters for the API call. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::UpdateVersionRequest request = new gcdcv::UpdateVersionRequest
    {
        Version = new gcdcv::Version(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    gcdcv::Version response = await versionsClient.UpdateVersionAsync(request);

### UpdateVersionAsync(Version, FieldMask, CallSettings)

    public virtual Task<Version> UpdateVersionAsync(Version version, FieldMask updateMask, CallSettings callSettings = null)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` Required. The version to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. The mask to control which fields get updated. Currently only `description` and `display_name` can be updated. |
| `callSettings` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.html` If not null, applies overrides to this RPC call. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::Version version = new gcdcv::Version();
    FieldMask updateMask = new FieldMask();
    // Make the request
    gcdcv::Version response = await versionsClient.UpdateVersionAsync(version, updateMask);

### UpdateVersionAsync(Version, FieldMask, CancellationToken)

    public virtual Task<Version> UpdateVersionAsync(Version version, FieldMask updateMask, CancellationToken cancellationToken)

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

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` Required. The version to update. |
| `updateMask` | `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` Required. The mask to control which fields get updated. Currently only `description` and `display_name` can be updated. |
| `cancellationToken` | `https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken` A [CancellationToken](https://learn.microsoft.com/dotnet/api/system.threading.cancellationtoken) to use for this RPC. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdcv::VersionsClient versionsClient = await gcdcv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdcv::Version version = new gcdcv::Version();
    FieldMask updateMask = new FieldMask();
    // Make the request
    gcdcv::Version response = await versionsClient.UpdateVersionAsync(version, updateMask);