# Google Cloud Dialogflow v2beta1 API - Class VersionsClient (1.0.0-beta30)

1.0.0-beta30 (latest) 1.0.0-beta29

    public abstract class VersionsClient

Reference documentation and code samples for the Google Cloud Dialogflow v2beta1 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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionsClientImpl)

## Namespace

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

## Assembly

Google.Cloud.Dialogflow.V2Beta1.dll

## Remarks

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

## Properties

### 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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Versionshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Versions.VersionsClient` |   |

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

### Create()

    public static VersionsClient Create()

Synchronously creates a [VersionsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionsClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionsClient` | The created [VersionsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionsClient` | The task representing the created [VersionsClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionsClient). |

### CreateVersion(AgentName, Version, CallSettings)

    public virtual Version CreateVersion(AgentName parent, Version version, CallSettings callSettings = null)

Creates an agent version.

The new version points to the agent instance in the "default" environment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentName` Required. The agent to create a version for. Supported formats: - `projects/<Project ID>/agent` - `projects/<Project ID>/locations/<Location ID>/agent` |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | The RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = gcdv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdv::AgentName parent = gcdv::AgentName.FromProject("[PROJECT]");
    gcdv::Version version = new gcdv::Version();
    // Make the request
    gcdv::Version response = versionsClient.CreateVersion(parent, version);

### CreateVersion(CreateVersionRequest, CallSettings)

    public virtual Version CreateVersion(CreateVersionRequest request, CallSettings callSettings = null)

Creates an agent version.

The new version points to the agent instance in the "default" environment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | The RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = gcdv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdv::CreateVersionRequest request = new gcdv::CreateVersionRequest
    {
        ParentAsAgentName = gcdv::AgentName.FromProject("[PROJECT]"),
        Version = new gcdv::Version(),
    };
    // Make the request
    gcdv::Version response = versionsClient.CreateVersion(request);

### CreateVersion(string, Version, CallSettings)

    public virtual Version CreateVersion(string parent, Version version, CallSettings callSettings = null)

Creates an agent version.

The new version points to the agent instance in the "default" environment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The agent to create a version for. Supported formats: - `projects/<Project ID>/agent` - `projects/<Project ID>/locations/<Location ID>/agent` |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | The RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = gcdv::VersionsClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/agent";
    gcdv::Version version = new gcdv::Version();
    // Make the request
    gcdv::Version response = versionsClient.CreateVersion(parent, version);

### CreateVersionAsync(AgentName, Version, CallSettings)

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

Creates an agent version.

The new version points to the agent instance in the "default" environment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentName` Required. The agent to create a version for. Supported formats: - `projects/<Project ID>/agent` - `projects/<Project ID>/locations/<Location ID>/agent` |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdv::AgentName parent = gcdv::AgentName.FromProject("[PROJECT]");
    gcdv::Version version = new gcdv::Version();
    // Make the request
    gcdv::Version response = await versionsClient.CreateVersionAsync(parent, version);

### CreateVersionAsync(AgentName, Version, CancellationToken)

    public virtual Task<Version> CreateVersionAsync(AgentName parent, Version version, CancellationToken cancellationToken)

Creates an agent version.

The new version points to the agent instance in the "default" environment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentName` Required. The agent to create a version for. Supported formats: - `projects/<Project ID>/agent` - `projects/<Project ID>/locations/<Location ID>/agent` |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdv::AgentName parent = gcdv::AgentName.FromProject("[PROJECT]");
    gcdv::Version version = new gcdv::Version();
    // Make the request
    gcdv::Version response = await versionsClient.CreateVersionAsync(parent, version);

### CreateVersionAsync(CreateVersionRequest, CallSettings)

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

Creates an agent version.

The new version points to the agent instance in the "default" environment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdv::CreateVersionRequest request = new gcdv::CreateVersionRequest
    {
        ParentAsAgentName = gcdv::AgentName.FromProject("[PROJECT]"),
        Version = new gcdv::Version(),
    };
    // Make the request
    gcdv::Version response = await versionsClient.CreateVersionAsync(request);

### CreateVersionAsync(CreateVersionRequest, CancellationToken)

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

Creates an agent version.

The new version points to the agent instance in the "default" environment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdv::CreateVersionRequest request = new gcdv::CreateVersionRequest
    {
        ParentAsAgentName = gcdv::AgentName.FromProject("[PROJECT]"),
        Version = new gcdv::Version(),
    };
    // Make the request
    gcdv::Version response = await versionsClient.CreateVersionAsync(request);

### CreateVersionAsync(string, Version, CallSettings)

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

Creates an agent version.

The new version points to the agent instance in the "default" environment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The agent to create a version for. Supported formats: - `projects/<Project ID>/agent` - `projects/<Project ID>/locations/<Location ID>/agent` |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/agent";
    gcdv::Version version = new gcdv::Version();
    // Make the request
    gcdv::Version response = await versionsClient.CreateVersionAsync(parent, version);

### CreateVersionAsync(string, Version, CancellationToken)

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

Creates an agent version.

The new version points to the agent instance in the "default" environment.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The agent to create a version for. Supported formats: - `projects/<Project ID>/agent` - `projects/<Project ID>/locations/<Location ID>/agent` |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/agent";
    gcdv::Version version = new gcdv::Version();
    // Make the request
    gcdv::Version response = await versionsClient.CreateVersionAsync(parent, version);

### DeleteVersion(DeleteVersionRequest, CallSettings)

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

Delete the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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
    gcdv::VersionsClient versionsClient = gcdv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdv::DeleteVersionRequest request = new gcdv::DeleteVersionRequest
    {
        VersionName = gcdv::VersionName.FromProjectVersion("[PROJECT]", "[VERSION]"),
    };
    // Make the request
    versionsClient.DeleteVersion(request);

### DeleteVersion(VersionName, CallSettings)

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

Delete the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionName` Required. The name of the version to delete. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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
    gcdv::VersionsClient versionsClient = gcdv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdv::VersionName name = gcdv::VersionName.FromProjectVersion("[PROJECT]", "[VERSION]");
    // Make the request
    versionsClient.DeleteVersion(name);

### DeleteVersion(string, CallSettings)

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

Delete the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the version to delete. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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
    gcdv::VersionsClient versionsClient = gcdv::VersionsClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/agent/versions/[VERSION]";
    // Make the request
    versionsClient.DeleteVersion(name);

### DeleteVersionAsync(DeleteVersionRequest, CallSettings)

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

Delete the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdv::DeleteVersionRequest request = new gcdv::DeleteVersionRequest
    {
        VersionName = gcdv::VersionName.FromProjectVersion("[PROJECT]", "[VERSION]"),
    };
    // Make the request
    await versionsClient.DeleteVersionAsync(request);

### DeleteVersionAsync(DeleteVersionRequest, CancellationToken)

    public virtual Task DeleteVersionAsync(DeleteVersionRequest request, CancellationToken cancellationToken)

Delete the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdv::DeleteVersionRequest request = new gcdv::DeleteVersionRequest
    {
        VersionName = gcdv::VersionName.FromProjectVersion("[PROJECT]", "[VERSION]"),
    };
    // Make the request
    await versionsClient.DeleteVersionAsync(request);

### DeleteVersionAsync(VersionName, CallSettings)

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

Delete the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionName` Required. The name of the version to delete. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdv::VersionName name = gcdv::VersionName.FromProjectVersion("[PROJECT]", "[VERSION]");
    // Make the request
    await versionsClient.DeleteVersionAsync(name);

### DeleteVersionAsync(VersionName, CancellationToken)

    public virtual Task DeleteVersionAsync(VersionName name, CancellationToken cancellationToken)

Delete the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionName` Required. The name of the version to delete. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdv::VersionName name = gcdv::VersionName.FromProjectVersion("[PROJECT]", "[VERSION]");
    // Make the request
    await versionsClient.DeleteVersionAsync(name);

### DeleteVersionAsync(string, CallSettings)

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

Delete the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the version to delete. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/agent/versions/[VERSION]";
    // Make the request
    await versionsClient.DeleteVersionAsync(name);

### DeleteVersionAsync(string, CancellationToken)

    public virtual Task DeleteVersionAsync(string name, CancellationToken cancellationToken)

Delete the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the version to delete. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/agent/versions/[VERSION]";
    // Make the request
    await versionsClient.DeleteVersionAsync(name);

### GetVersion(GetVersionRequest, CallSettings)

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

Retrieves the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | The RPC response. |

**Example**

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

### GetVersion(VersionName, CallSettings)

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

Retrieves the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionName` Required. The name of the version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | The RPC response. |

**Example**

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

### GetVersion(string, CallSettings)

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

Retrieves the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | The RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = gcdv::VersionsClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/agent/versions/[VERSION]";
    // Make the request
    gcdv::Version response = versionsClient.GetVersion(name);

### GetVersionAsync(GetVersionRequest, CallSettings)

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

Retrieves the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

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

### GetVersionAsync(GetVersionRequest, CancellationToken)

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

Retrieves the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

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

### GetVersionAsync(VersionName, CallSettings)

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

Retrieves the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionName` Required. The name of the version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

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

### GetVersionAsync(VersionName, CancellationToken)

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

Retrieves the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionName` Required. The name of the version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

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

### GetVersionAsync(string, CallSettings)

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

Retrieves the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/agent/versions/[VERSION]";
    // Make the request
    gcdv::Version response = await versionsClient.GetVersionAsync(name);

### GetVersionAsync(string, CancellationToken)

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

Retrieves the specified agent version.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the version. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/agent/versions/[VERSION]";
    // Make the request
    gcdv::Version response = await versionsClient.GetVersionAsync(name);

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

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

Returns the list of all versions of the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentName` Required. The agent to list all versions from. Supported formats: - `projects/<Project ID>/agent` - `projects/<Project ID>/locations/<Location ID>/agent` |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A pageable sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version) resources. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = gcdv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdv::AgentName parent = gcdv::AgentName.FromProject("[PROJECT]");
    // Make the request
    PagedEnumerable<gcdv::ListVersionsResponse, gcdv::Version> response = versionsClient.ListVersions(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (gcdv::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 (gcdv::ListVersionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (gcdv::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<gcdv::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 (gcdv::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 of the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A pageable sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version) resources. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = gcdv::VersionsClient.Create();
    // Initialize request argument(s)
    gcdv::ListVersionsRequest request = new gcdv::ListVersionsRequest
    {
        ParentAsAgentName = gcdv::AgentName.FromProject("[PROJECT]"),
    };
    // Make the request
    PagedEnumerable<gcdv::ListVersionsResponse, gcdv::Version> response = versionsClient.ListVersions(request);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (gcdv::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 (gcdv::ListVersionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (gcdv::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<gcdv::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 (gcdv::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 of the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The agent to list all versions from. Supported formats: - `projects/<Project ID>/agent` - `projects/<Project ID>/locations/<Location ID>/agent` |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A pageable sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version) resources. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = gcdv::VersionsClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/agent";
    // Make the request
    PagedEnumerable<gcdv::ListVersionsResponse, gcdv::Version> response = versionsClient.ListVersions(parent);

    // Iterate over all response items, lazily performing RPCs as required
    foreach (gcdv::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 (gcdv::ListVersionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (gcdv::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<gcdv::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 (gcdv::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(AgentName, string, int?, CallSettings)

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

Returns the list of all versions of the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.AgentName` Required. The agent to list all versions from. Supported formats: - `projects/<Project ID>/agent` - `projects/<Project ID>/locations/<Location ID>/agent` |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A pageable asynchronous sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version) resources. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdv::AgentName parent = gcdv::AgentName.FromProject("[PROJECT]");
    // Make the request
    PagedAsyncEnumerable<gcdv::ListVersionsResponse, gcdv::Version> response = versionsClient.ListVersionsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (gcdv::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 (gcdv::ListVersionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (gcdv::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<gcdv::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 (gcdv::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 of the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A pageable asynchronous sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version) resources. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdv::ListVersionsRequest request = new gcdv::ListVersionsRequest
    {
        ParentAsAgentName = gcdv::AgentName.FromProject("[PROJECT]"),
    };
    // Make the request
    PagedAsyncEnumerable<gcdv::ListVersionsResponse, gcdv::Version> response = versionsClient.ListVersionsAsync(request);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (gcdv::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 (gcdv::ListVersionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (gcdv::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<gcdv::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 (gcdv::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 of the specified agent.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The agent to list all versions from. Supported formats: - `projects/<Project ID>/agent` - `projects/<Project ID>/locations/<Location ID>/agent` |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.ListVersionsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A pageable asynchronous sequence of [Version](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version) resources. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/agent";
    // Make the request
    PagedAsyncEnumerable<gcdv::ListVersionsResponse, gcdv::Version> response = versionsClient.ListVersionsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (gcdv::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 (gcdv::ListVersionsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (gcdv::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<gcdv::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 (gcdv::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;

### ShutdownDefaultChannelsAsync()

    public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by [Create()](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionsClient#Google_Cloud_Dialogflow_V2Beta1_VersionsClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionsClient#Google_Cloud_Dialogflow_V2Beta1_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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionsClient#Google_Cloud_Dialogflow_V2Beta1_VersionsClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.VersionsClient#Google_Cloud_Dialogflow_V2Beta1_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 agent version.

Note that this method does not allow you to update the state of the agent
the given version points to. It allows you to update only mutable
properties of the version resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | The RPC response. |

**Example**

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

### UpdateVersion(Version, FieldMask, CallSettings)

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

Updates the specified agent version.

Note that this method does not allow you to update the state of the agent
the given version points to. It allows you to update only mutable
properties of the version resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` Required. The version to update. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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. |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | The RPC response. |

**Example**

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

### UpdateVersionAsync(UpdateVersionRequest, CallSettings)

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

Updates the specified agent version.

Note that this method does not allow you to update the state of the agent
the given version points to. It allows you to update only mutable
properties of the version resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

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

### UpdateVersionAsync(UpdateVersionRequest, CancellationToken)

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

Updates the specified agent version.

Note that this method does not allow you to update the state of the agent
the given version points to. It allows you to update only mutable
properties of the version resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdv::UpdateVersionRequest request = new gcdv::UpdateVersionRequest
    {
        Version = new gcdv::Version(),
        UpdateMask = new FieldMask(),
    };
    // Make the request
    gcdv::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 agent version.

Note that this method does not allow you to update the state of the agent
the given version points to. It allows you to update only mutable
properties of the version resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` Required. The version to update. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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. |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

    // Create client
    gcdv::VersionsClient versionsClient = await gcdv::VersionsClient.CreateAsync();
    // Initialize request argument(s)
    gcdv::Version version = new gcdv::Version();
    FieldMask updateMask = new FieldMask();
    // Make the request
    gcdv::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 agent version.

Note that this method does not allow you to update the state of the agent
the given version points to. It allows you to update only mutable
properties of the version resource.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `version` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` Required. The version to update. Supported formats: - `projects/<Project ID>/agent/versions/<Version ID>` - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version ID>` |
| `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. |
| `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.V2Beta1/latest/Google.Cloud.Dialogflow.V2Beta1.Version` | A Task containing the RPC response. |

**Example**

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