Class VersionsClient (1.4.0)

public abstract class VersionsClient

Versions client wrapper, for convenient use.

Inheritance

Object > VersionsClient

Derived Types

Namespace

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
TypeDescription
OperationsClient

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
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default Versions scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

GrpcClient

public virtual Versions.VersionsClient GrpcClient { get; }

The underlying gRPC Versions client

Property Value
TypeDescription
Versions.VersionsClient

LoadVersionOperationsClient

public virtual OperationsClient LoadVersionOperationsClient { get; }

The long-running operations client for LoadVersion.

Property Value
TypeDescription
OperationsClient

Methods

Create()

public static VersionsClient Create()

Synchronously creates a VersionsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use VersionsClientBuilder.

Returns
TypeDescription
VersionsClient

The created VersionsClient.

CreateAsync(CancellationToken)

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

Asynchronously creates a VersionsClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use VersionsClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<VersionsClient>

The task representing the created 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].

Parameters
NameDescription
requestCreateVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Version, CreateVersionOperationMetadata>

The RPC response.

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

// Poll until the returned long-running operation is complete
Operation<gcdcv::Version, 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, 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].

Parameters
NameDescription
parentFlowName

Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

versionVersion

Required. The version to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Version, CreateVersionOperationMetadata>

The RPC response.

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

// Poll until the returned long-running operation is complete
Operation<gcdcv::Version, 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, 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].

Parameters
NameDescription
parentString

Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

versionVersion

Required. The version to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Version, CreateVersionOperationMetadata>

The RPC response.

Example
// Create client
VersionsClient versionsClient = 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, CreateVersionOperationMetadata> response = versionsClient.CreateVersion(parent, version);

// Poll until the returned long-running operation is complete
Operation<gcdcv::Version, 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, 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].

Parameters
NameDescription
requestCreateVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Version, CreateVersionOperationMetadata>>

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<gcdcv::Version, 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, 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].

Parameters
NameDescription
requestCreateVersionRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Version, CreateVersionOperationMetadata>>

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<gcdcv::Version, 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, 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].

Parameters
NameDescription
parentFlowName

Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

versionVersion

Required. The version to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Version, CreateVersionOperationMetadata>>

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<gcdcv::Version, 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, 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].

Parameters
NameDescription
parentFlowName

Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

versionVersion

Required. The version to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Version, CreateVersionOperationMetadata>>

A Task containing the RPC response.

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

// Poll until the returned long-running operation is complete
Operation<gcdcv::Version, 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, 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].

Parameters
NameDescription
parentString

Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

versionVersion

Required. The version to create.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Version, CreateVersionOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await 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, CreateVersionOperationMetadata> response = await versionsClient.CreateVersionAsync(parent, version);

// Poll until the returned long-running operation is complete
Operation<gcdcv::Version, 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, 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].

Parameters
NameDescription
parentString

Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to create an [Version][google.cloud.dialogflow.cx.v3.Version] for. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

versionVersion

Required. The version to create.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Version, CreateVersionOperationMetadata>>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await 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, CreateVersionOperationMetadata> response = await versionsClient.CreateVersionAsync(parent, version);

// Poll until the returned long-running operation is complete
Operation<gcdcv::Version, 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, 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
NameDescription
requestDeleteVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
VersionsClient versionsClient = VersionsClient.Create();
// Initialize request argument(s)
DeleteVersionRequest request = new DeleteVersionRequest
{
    VersionName = 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
NameDescription
nameVersionName

Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
VersionsClient versionsClient = VersionsClient.Create();
// Initialize request argument(s)
VersionName name = 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
NameDescription
nameString

Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
VersionsClient versionsClient = 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
NameDescription
requestDeleteVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
DeleteVersionRequest request = new DeleteVersionRequest
{
    VersionName = 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
NameDescription
requestDeleteVersionRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
DeleteVersionRequest request = new DeleteVersionRequest
{
    VersionName = 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
NameDescription
nameVersionName

Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
VersionName name = 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
NameDescription
nameVersionName

Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
VersionName name = 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
NameDescription
nameString

Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await 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
NameDescription
nameString

Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version] to delete. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await 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
NameDescription
requestGetVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Version

The RPC response.

Example
// Create client
VersionsClient versionsClient = VersionsClient.Create();
// Initialize request argument(s)
GetVersionRequest request = new GetVersionRequest
{
    VersionName = 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
NameDescription
nameVersionName

Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Version

The RPC response.

Example
// Create client
VersionsClient versionsClient = VersionsClient.Create();
// Initialize request argument(s)
VersionName name = 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
NameDescription
nameString

Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Version

The RPC response.

Example
// Create client
VersionsClient versionsClient = 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
NameDescription
requestGetVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Version>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
GetVersionRequest request = new GetVersionRequest
{
    VersionName = 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
NameDescription
requestGetVersionRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Version>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
GetVersionRequest request = new GetVersionRequest
{
    VersionName = 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
NameDescription
nameVersionName

Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Version>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
VersionName name = 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
NameDescription
nameVersionName

Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Version>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
VersionName name = 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
NameDescription
nameString

Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Version>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await 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
NameDescription
nameString

Required. The name of the [Version][google.cloud.dialogflow.cx.v3.Version]. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Version>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await 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, Nullable<Int32>, CallSettings)

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

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

Parameters
NameDescription
parentFlowName

Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListVersionsResponse, Version>

A pageable sequence of Version resources.

Example
// Create client
VersionsClient versionsClient = VersionsClient.Create();
// Initialize request argument(s)
FlowName parent = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]");
// Make the request
PagedEnumerable<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 (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
NameDescription
requestListVersionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListVersionsResponse, Version>

A pageable sequence of Version resources.

Example
// Create client
VersionsClient versionsClient = VersionsClient.Create();
// Initialize request argument(s)
ListVersionsRequest request = new ListVersionsRequest
{
    ParentAsFlowName = FlowName.FromProjectLocationAgentFlow("[PROJECT]", "[LOCATION]", "[AGENT]", "[FLOW]"),
};
// Make the request
PagedEnumerable<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 (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, Nullable<Int32>, CallSettings)

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

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

Parameters
NameDescription
parentString

Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListVersionsResponse, Version>

A pageable sequence of Version resources.

Example
// Create client
VersionsClient versionsClient = VersionsClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/flows/[FLOW]";
// Make the request
PagedEnumerable<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 (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, Nullable<Int32>, CallSettings)

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

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

Parameters
NameDescription
parentFlowName

Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListVersionsResponse, Version>

A pageable asynchronous sequence of Version resources.

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

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVersionsResponse page) =>
{
    // 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
NameDescription
requestListVersionsRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListVersionsResponse, Version>

A pageable asynchronous sequence of Version resources.

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

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVersionsResponse page) =>
{
    // 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, Nullable<Int32>, CallSettings)

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

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

Parameters
NameDescription
parentString

Required. The [Flow][google.cloud.dialogflow.cx.v3.Flow] to list all versions for. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;.

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<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.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListVersionsResponse, Version>

A pageable asynchronous sequence of Version resources.

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

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

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListVersionsResponse page) =>
{
    // 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.

Parameters
NameDescription
requestLoadVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, Struct>

The RPC response.

Example
// Create client
VersionsClient versionsClient = VersionsClient.Create();
// Initialize request argument(s)
LoadVersionRequest request = new LoadVersionRequest
{
    VersionName = 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.

Parameters
NameDescription
nameVersionName

Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, Struct>

The RPC response.

Example
// Create client
VersionsClient versionsClient = VersionsClient.Create();
// Initialize request argument(s)
VersionName name = 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.

Parameters
NameDescription
nameString

Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, Struct>

The RPC response.

Example
// Create client
VersionsClient versionsClient = 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.

Parameters
NameDescription
requestLoadVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, Struct>>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
LoadVersionRequest request = new LoadVersionRequest
{
    VersionName = 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.

Parameters
NameDescription
requestLoadVersionRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, Struct>>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
LoadVersionRequest request = new LoadVersionRequest
{
    VersionName = 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.

Parameters
NameDescription
nameVersionName

Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, Struct>>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
VersionName name = 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.

Parameters
NameDescription
nameVersionName

Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, Struct>>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
VersionName name = 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.

Parameters
NameDescription
nameString

Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, Struct>>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await 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.

Parameters
NameDescription
nameString

Required. The [Version][google.cloud.dialogflow.cx.v3.Version] to be loaded to draft flow. Format: projects/&amp;lt;Project ID&amp;gt;/locations/&amp;lt;Location ID&amp;gt;/agents/&amp;lt;Agent ID&amp;gt;/flows/&amp;lt;Flow ID&amp;gt;/versions/&amp;lt;Version ID&amp;gt;.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Operation<Empty, Struct>>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Version, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Version, 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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, Struct>

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
NameDescription
operationNameString

The name of a previously invoked operation. Must not be null or empty.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, Struct>>

A task representing the result of polling the operation.

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(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
NameDescription
requestUpdateVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Version

The RPC response.

Example
// Create client
VersionsClient versionsClient = VersionsClient.Create();
// Initialize request argument(s)
UpdateVersionRequest request = new 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
NameDescription
versionVersion

Required. The version to update.

updateMaskFieldMask

Required. The mask to control which fields get updated. Currently only description and display_name can be updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Version

The RPC response.

Example
// Create client
VersionsClient versionsClient = 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
NameDescription
requestUpdateVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Version>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
UpdateVersionRequest request = new 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
NameDescription
requestUpdateVersionRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Version>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await VersionsClient.CreateAsync();
// Initialize request argument(s)
UpdateVersionRequest request = new 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
NameDescription
versionVersion

Required. The version to update.

updateMaskFieldMask

Required. The mask to control which fields get updated. Currently only description and display_name can be updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Version>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await 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
NameDescription
versionVersion

Required. The version to update.

updateMaskFieldMask

Required. The mask to control which fields get updated. Currently only description and display_name can be updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Version>

A Task containing the RPC response.

Example
// Create client
VersionsClient versionsClient = await 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);