# BigQuery Migration v2 API - Class MigrationServiceClient (1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public abstract class MigrationServiceClient

Reference documentation and code samples for the BigQuery Migration v2 API class MigrationServiceClient.

MigrationService client wrapper, for convenient use.

## Inheritance

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

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

[MigrationServiceClientImpl](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClientImpl)

## Namespace

[Google.Cloud.BigQuery.Migration.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2)

## Assembly

Google.Cloud.BigQuery.Migration.V2.dll

## Remarks

Service to handle EDW migrations.

## Properties

### DefaultEndpoint

    public static string DefaultEndpoint { get; }

The default endpoint for the MigrationService service, which is a host of "bigquerymigration.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 MigrationService 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 MigrationService scopes are:

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

### GrpcClient

    public virtual MigrationService.MigrationServiceClient GrpcClient { get; }

The underlying gRPC MigrationService client

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServicehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationService.MigrationServiceClient` |   |

### 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 MigrationServiceClient Create()

Synchronously creates a [MigrationServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [MigrationServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClientBuilder).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClient` | The created [MigrationServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClient). |

### CreateAsync(CancellationToken)

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

Asynchronously creates a [MigrationServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClient) using the default credentials, endpoint and
settings. To specify custom credentials or other settings, use [MigrationServiceClientBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClientBuilder).

| **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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClient` | The task representing the created [MigrationServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClient). |

### CreateMigrationWorkflow(LocationName, MigrationWorkflow, CallSettings)

    public virtual MigrationWorkflow CreateMigrationWorkflow(LocationName parent, MigrationWorkflow migrationWorkflow, CallSettings callSettings = null)

Creates a migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The name of the project to which this migration workflow belongs. Example: `projects/foo/locations/bar` |
| `migrationWorkflow` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` Required. The migration workflow 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | The RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    MigrationWorkflow migrationWorkflow = new MigrationWorkflow();
    // Make the request
    MigrationWorkflow response = migrationServiceClient.CreateMigrationWorkflow(parent, migrationWorkflow);

### CreateMigrationWorkflow(CreateMigrationWorkflowRequest, CallSettings)

    public virtual MigrationWorkflow CreateMigrationWorkflow(CreateMigrationWorkflowRequest request, CallSettings callSettings = null)

Creates a migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.CreateMigrationWorkflowRequest` 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | The RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    CreateMigrationWorkflowRequest request = new CreateMigrationWorkflowRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        MigrationWorkflow = new MigrationWorkflow(),
    };
    // Make the request
    MigrationWorkflow response = migrationServiceClient.CreateMigrationWorkflow(request);

### CreateMigrationWorkflow(string, MigrationWorkflow, CallSettings)

    public virtual MigrationWorkflow CreateMigrationWorkflow(string parent, MigrationWorkflow migrationWorkflow, CallSettings callSettings = null)

Creates a migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project to which this migration workflow belongs. Example: `projects/foo/locations/bar` |
| `migrationWorkflow` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` Required. The migration workflow 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | The RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    MigrationWorkflow migrationWorkflow = new MigrationWorkflow();
    // Make the request
    MigrationWorkflow response = migrationServiceClient.CreateMigrationWorkflow(parent, migrationWorkflow);

### CreateMigrationWorkflowAsync(LocationName, MigrationWorkflow, CallSettings)

    public virtual Task<MigrationWorkflow> CreateMigrationWorkflowAsync(LocationName parent, MigrationWorkflow migrationWorkflow, CallSettings callSettings = null)

Creates a migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The name of the project to which this migration workflow belongs. Example: `projects/foo/locations/bar` |
| `migrationWorkflow` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` Required. The migration workflow 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A Task containing the RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    MigrationWorkflow migrationWorkflow = new MigrationWorkflow();
    // Make the request
    MigrationWorkflow response = await migrationServiceClient.CreateMigrationWorkflowAsync(parent, migrationWorkflow);

### CreateMigrationWorkflowAsync(LocationName, MigrationWorkflow, CancellationToken)

    public virtual Task<MigrationWorkflow> CreateMigrationWorkflowAsync(LocationName parent, MigrationWorkflow migrationWorkflow, CancellationToken cancellationToken)

Creates a migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The name of the project to which this migration workflow belongs. Example: `projects/foo/locations/bar` |
| `migrationWorkflow` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` Required. The migration workflow 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A Task containing the RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    MigrationWorkflow migrationWorkflow = new MigrationWorkflow();
    // Make the request
    MigrationWorkflow response = await migrationServiceClient.CreateMigrationWorkflowAsync(parent, migrationWorkflow);

### CreateMigrationWorkflowAsync(CreateMigrationWorkflowRequest, CallSettings)

    public virtual Task<MigrationWorkflow> CreateMigrationWorkflowAsync(CreateMigrationWorkflowRequest request, CallSettings callSettings = null)

Creates a migration workflow.

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

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateMigrationWorkflowRequest request = new CreateMigrationWorkflowRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        MigrationWorkflow = new MigrationWorkflow(),
    };
    // Make the request
    MigrationWorkflow response = await migrationServiceClient.CreateMigrationWorkflowAsync(request);

### CreateMigrationWorkflowAsync(CreateMigrationWorkflowRequest, CancellationToken)

    public virtual Task<MigrationWorkflow> CreateMigrationWorkflowAsync(CreateMigrationWorkflowRequest request, CancellationToken cancellationToken)

Creates a migration workflow.

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

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    CreateMigrationWorkflowRequest request = new CreateMigrationWorkflowRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        MigrationWorkflow = new MigrationWorkflow(),
    };
    // Make the request
    MigrationWorkflow response = await migrationServiceClient.CreateMigrationWorkflowAsync(request);

### CreateMigrationWorkflowAsync(string, MigrationWorkflow, CallSettings)

    public virtual Task<MigrationWorkflow> CreateMigrationWorkflowAsync(string parent, MigrationWorkflow migrationWorkflow, CallSettings callSettings = null)

Creates a migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project to which this migration workflow belongs. Example: `projects/foo/locations/bar` |
| `migrationWorkflow` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` Required. The migration workflow 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A Task containing the RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    MigrationWorkflow migrationWorkflow = new MigrationWorkflow();
    // Make the request
    MigrationWorkflow response = await migrationServiceClient.CreateMigrationWorkflowAsync(parent, migrationWorkflow);

### CreateMigrationWorkflowAsync(string, MigrationWorkflow, CancellationToken)

    public virtual Task<MigrationWorkflow> CreateMigrationWorkflowAsync(string parent, MigrationWorkflow migrationWorkflow, CancellationToken cancellationToken)

Creates a migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The name of the project to which this migration workflow belongs. Example: `projects/foo/locations/bar` |
| `migrationWorkflow` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` Required. The migration workflow 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A Task containing the RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    MigrationWorkflow migrationWorkflow = new MigrationWorkflow();
    // Make the request
    MigrationWorkflow response = await migrationServiceClient.CreateMigrationWorkflowAsync(parent, migrationWorkflow);

### DeleteMigrationWorkflow(DeleteMigrationWorkflowRequest, CallSettings)

    public virtual void DeleteMigrationWorkflow(DeleteMigrationWorkflowRequest request, CallSettings callSettings = null)

Deletes a migration workflow by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.DeleteMigrationWorkflowRequest` 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
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    DeleteMigrationWorkflowRequest request = new DeleteMigrationWorkflowRequest
    {
        MigrationWorkflowName = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"),
    };
    // Make the request
    migrationServiceClient.DeleteMigrationWorkflow(request);

### DeleteMigrationWorkflow(MigrationWorkflowName, CallSettings)

    public virtual void DeleteMigrationWorkflow(MigrationWorkflowName name, CallSettings callSettings = null)

Deletes a migration workflow by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflowName` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    MigrationWorkflowName name = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
    // Make the request
    migrationServiceClient.DeleteMigrationWorkflow(name);

### DeleteMigrationWorkflow(string, CallSettings)

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

Deletes a migration workflow by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]";
    // Make the request
    migrationServiceClient.DeleteMigrationWorkflow(name);

### DeleteMigrationWorkflowAsync(DeleteMigrationWorkflowRequest, CallSettings)

    public virtual Task DeleteMigrationWorkflowAsync(DeleteMigrationWorkflowRequest request, CallSettings callSettings = null)

Deletes a migration workflow by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.DeleteMigrationWorkflowRequest` 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
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteMigrationWorkflowRequest request = new DeleteMigrationWorkflowRequest
    {
        MigrationWorkflowName = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"),
    };
    // Make the request
    await migrationServiceClient.DeleteMigrationWorkflowAsync(request);

### DeleteMigrationWorkflowAsync(DeleteMigrationWorkflowRequest, CancellationToken)

    public virtual Task DeleteMigrationWorkflowAsync(DeleteMigrationWorkflowRequest request, CancellationToken cancellationToken)

Deletes a migration workflow by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.DeleteMigrationWorkflowRequest` 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
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    DeleteMigrationWorkflowRequest request = new DeleteMigrationWorkflowRequest
    {
        MigrationWorkflowName = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"),
    };
    // Make the request
    await migrationServiceClient.DeleteMigrationWorkflowAsync(request);

### DeleteMigrationWorkflowAsync(MigrationWorkflowName, CallSettings)

    public virtual Task DeleteMigrationWorkflowAsync(MigrationWorkflowName name, CallSettings callSettings = null)

Deletes a migration workflow by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflowName` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    MigrationWorkflowName name = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
    // Make the request
    await migrationServiceClient.DeleteMigrationWorkflowAsync(name);

### DeleteMigrationWorkflowAsync(MigrationWorkflowName, CancellationToken)

    public virtual Task DeleteMigrationWorkflowAsync(MigrationWorkflowName name, CancellationToken cancellationToken)

Deletes a migration workflow by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflowName` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    MigrationWorkflowName name = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
    // Make the request
    await migrationServiceClient.DeleteMigrationWorkflowAsync(name);

### DeleteMigrationWorkflowAsync(string, CallSettings)

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

Deletes a migration workflow by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]";
    // Make the request
    await migrationServiceClient.DeleteMigrationWorkflowAsync(name);

### DeleteMigrationWorkflowAsync(string, CancellationToken)

    public virtual Task DeleteMigrationWorkflowAsync(string name, CancellationToken cancellationToken)

Deletes a migration workflow by name.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]";
    // Make the request
    await migrationServiceClient.DeleteMigrationWorkflowAsync(name);

### GetMigrationSubtask(GetMigrationSubtaskRequest, CallSettings)

    public virtual MigrationSubtask GetMigrationSubtask(GetMigrationSubtaskRequest request, CallSettings callSettings = null)

Gets a previously created migration subtask.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.GetMigrationSubtaskRequest` 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | The RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    GetMigrationSubtaskRequest request = new GetMigrationSubtaskRequest
    {
        MigrationSubtaskName = MigrationSubtaskName.FromProjectLocationWorkflowSubtask("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]"),
        ReadMask = new FieldMask(),
    };
    // Make the request
    MigrationSubtask response = migrationServiceClient.GetMigrationSubtask(request);

### GetMigrationSubtask(MigrationSubtaskName, CallSettings)

    public virtual MigrationSubtask GetMigrationSubtask(MigrationSubtaskName name, CallSettings callSettings = null)

Gets a previously created migration subtask.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtaskName` Required. The unique identifier for the migration subtask. Example: `projects/123/locations/us/workflows/1234/subtasks/543` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | The RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    MigrationSubtaskName name = MigrationSubtaskName.FromProjectLocationWorkflowSubtask("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]");
    // Make the request
    MigrationSubtask response = migrationServiceClient.GetMigrationSubtask(name);

### GetMigrationSubtask(string, CallSettings)

    public virtual MigrationSubtask GetMigrationSubtask(string name, CallSettings callSettings = null)

Gets a previously created migration subtask.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The unique identifier for the migration subtask. Example: `projects/123/locations/us/workflows/1234/subtasks/543` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | The RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]/subtasks/[SUBTASK]";
    // Make the request
    MigrationSubtask response = migrationServiceClient.GetMigrationSubtask(name);

### GetMigrationSubtaskAsync(GetMigrationSubtaskRequest, CallSettings)

    public virtual Task<MigrationSubtask> GetMigrationSubtaskAsync(GetMigrationSubtaskRequest request, CallSettings callSettings = null)

Gets a previously created migration subtask.

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

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetMigrationSubtaskRequest request = new GetMigrationSubtaskRequest
    {
        MigrationSubtaskName = MigrationSubtaskName.FromProjectLocationWorkflowSubtask("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]"),
        ReadMask = new FieldMask(),
    };
    // Make the request
    MigrationSubtask response = await migrationServiceClient.GetMigrationSubtaskAsync(request);

### GetMigrationSubtaskAsync(GetMigrationSubtaskRequest, CancellationToken)

    public virtual Task<MigrationSubtask> GetMigrationSubtaskAsync(GetMigrationSubtaskRequest request, CancellationToken cancellationToken)

Gets a previously created migration subtask.

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

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetMigrationSubtaskRequest request = new GetMigrationSubtaskRequest
    {
        MigrationSubtaskName = MigrationSubtaskName.FromProjectLocationWorkflowSubtask("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]"),
        ReadMask = new FieldMask(),
    };
    // Make the request
    MigrationSubtask response = await migrationServiceClient.GetMigrationSubtaskAsync(request);

### GetMigrationSubtaskAsync(MigrationSubtaskName, CallSettings)

    public virtual Task<MigrationSubtask> GetMigrationSubtaskAsync(MigrationSubtaskName name, CallSettings callSettings = null)

Gets a previously created migration subtask.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtaskName` Required. The unique identifier for the migration subtask. Example: `projects/123/locations/us/workflows/1234/subtasks/543` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | A Task containing the RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    MigrationSubtaskName name = MigrationSubtaskName.FromProjectLocationWorkflowSubtask("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]");
    // Make the request
    MigrationSubtask response = await migrationServiceClient.GetMigrationSubtaskAsync(name);

### GetMigrationSubtaskAsync(MigrationSubtaskName, CancellationToken)

    public virtual Task<MigrationSubtask> GetMigrationSubtaskAsync(MigrationSubtaskName name, CancellationToken cancellationToken)

Gets a previously created migration subtask.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtaskName` Required. The unique identifier for the migration subtask. Example: `projects/123/locations/us/workflows/1234/subtasks/543` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | A Task containing the RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    MigrationSubtaskName name = MigrationSubtaskName.FromProjectLocationWorkflowSubtask("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]");
    // Make the request
    MigrationSubtask response = await migrationServiceClient.GetMigrationSubtaskAsync(name);

### GetMigrationSubtaskAsync(string, CallSettings)

    public virtual Task<MigrationSubtask> GetMigrationSubtaskAsync(string name, CallSettings callSettings = null)

Gets a previously created migration subtask.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The unique identifier for the migration subtask. Example: `projects/123/locations/us/workflows/1234/subtasks/543` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | A Task containing the RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]/subtasks/[SUBTASK]";
    // Make the request
    MigrationSubtask response = await migrationServiceClient.GetMigrationSubtaskAsync(name);

### GetMigrationSubtaskAsync(string, CancellationToken)

    public virtual Task<MigrationSubtask> GetMigrationSubtaskAsync(string name, CancellationToken cancellationToken)

Gets a previously created migration subtask.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The unique identifier for the migration subtask. Example: `projects/123/locations/us/workflows/1234/subtasks/543` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | A Task containing the RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]/subtasks/[SUBTASK]";
    // Make the request
    MigrationSubtask response = await migrationServiceClient.GetMigrationSubtaskAsync(name);

### GetMigrationWorkflow(GetMigrationWorkflowRequest, CallSettings)

    public virtual MigrationWorkflow GetMigrationWorkflow(GetMigrationWorkflowRequest request, CallSettings callSettings = null)

Gets a previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.GetMigrationWorkflowRequest` 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | The RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    GetMigrationWorkflowRequest request = new GetMigrationWorkflowRequest
    {
        MigrationWorkflowName = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"),
        ReadMask = new FieldMask(),
    };
    // Make the request
    MigrationWorkflow response = migrationServiceClient.GetMigrationWorkflow(request);

### GetMigrationWorkflow(MigrationWorkflowName, CallSettings)

    public virtual MigrationWorkflow GetMigrationWorkflow(MigrationWorkflowName name, CallSettings callSettings = null)

Gets a previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflowName` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | The RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    MigrationWorkflowName name = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
    // Make the request
    MigrationWorkflow response = migrationServiceClient.GetMigrationWorkflow(name);

### GetMigrationWorkflow(string, CallSettings)

    public virtual MigrationWorkflow GetMigrationWorkflow(string name, CallSettings callSettings = null)

Gets a previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | The RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]";
    // Make the request
    MigrationWorkflow response = migrationServiceClient.GetMigrationWorkflow(name);

### GetMigrationWorkflowAsync(GetMigrationWorkflowRequest, CallSettings)

    public virtual Task<MigrationWorkflow> GetMigrationWorkflowAsync(GetMigrationWorkflowRequest request, CallSettings callSettings = null)

Gets a previously created migration workflow.

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

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetMigrationWorkflowRequest request = new GetMigrationWorkflowRequest
    {
        MigrationWorkflowName = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"),
        ReadMask = new FieldMask(),
    };
    // Make the request
    MigrationWorkflow response = await migrationServiceClient.GetMigrationWorkflowAsync(request);

### GetMigrationWorkflowAsync(GetMigrationWorkflowRequest, CancellationToken)

    public virtual Task<MigrationWorkflow> GetMigrationWorkflowAsync(GetMigrationWorkflowRequest request, CancellationToken cancellationToken)

Gets a previously created migration workflow.

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

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    GetMigrationWorkflowRequest request = new GetMigrationWorkflowRequest
    {
        MigrationWorkflowName = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"),
        ReadMask = new FieldMask(),
    };
    // Make the request
    MigrationWorkflow response = await migrationServiceClient.GetMigrationWorkflowAsync(request);

### GetMigrationWorkflowAsync(MigrationWorkflowName, CallSettings)

    public virtual Task<MigrationWorkflow> GetMigrationWorkflowAsync(MigrationWorkflowName name, CallSettings callSettings = null)

Gets a previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflowName` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A Task containing the RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    MigrationWorkflowName name = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
    // Make the request
    MigrationWorkflow response = await migrationServiceClient.GetMigrationWorkflowAsync(name);

### GetMigrationWorkflowAsync(MigrationWorkflowName, CancellationToken)

    public virtual Task<MigrationWorkflow> GetMigrationWorkflowAsync(MigrationWorkflowName name, CancellationToken cancellationToken)

Gets a previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflowName` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A Task containing the RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    MigrationWorkflowName name = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
    // Make the request
    MigrationWorkflow response = await migrationServiceClient.GetMigrationWorkflowAsync(name);

### GetMigrationWorkflowAsync(string, CallSettings)

    public virtual Task<MigrationWorkflow> GetMigrationWorkflowAsync(string name, CallSettings callSettings = null)

Gets a previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A Task containing the RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]";
    // Make the request
    MigrationWorkflow response = await migrationServiceClient.GetMigrationWorkflowAsync(name);

### GetMigrationWorkflowAsync(string, CancellationToken)

    public virtual Task<MigrationWorkflow> GetMigrationWorkflowAsync(string name, CancellationToken cancellationToken)

Gets a previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A Task containing the RPC response. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]";
    // Make the request
    MigrationWorkflow response = await migrationServiceClient.GetMigrationWorkflowAsync(name);

### ListMigrationSubtasks(ListMigrationSubtasksRequest, CallSettings)

    public virtual PagedEnumerable<ListMigrationSubtasksResponse, MigrationSubtask> ListMigrationSubtasks(ListMigrationSubtasksRequest request, CallSettings callSettings = null)

Lists previously created migration subtasks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationSubtasksRequest` 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationSubtasksResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | A pageable sequence of [MigrationSubtask](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask) resources. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    ListMigrationSubtasksRequest request = new ListMigrationSubtasksRequest
    {
        ParentAsMigrationWorkflowName = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"),
        ReadMask = new FieldMask(),
        Filter = "",
    };
    // Make the request
    PagedEnumerable<ListMigrationSubtasksResponse, MigrationSubtask> response = migrationServiceClient.ListMigrationSubtasks(request);

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

### ListMigrationSubtasks(MigrationWorkflowName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListMigrationSubtasksResponse, MigrationSubtask> ListMigrationSubtasks(MigrationWorkflowName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists previously created migration subtasks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflowName` Required. The migration task of the subtasks to list. Example: `projects/123/locations/us/workflows/1234` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationSubtasksResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | A pageable sequence of [MigrationSubtask](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask) resources. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    MigrationWorkflowName parent = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
    // Make the request
    PagedEnumerable<ListMigrationSubtasksResponse, MigrationSubtask> response = migrationServiceClient.ListMigrationSubtasks(parent);

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

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

    public virtual PagedEnumerable<ListMigrationSubtasksResponse, MigrationSubtask> ListMigrationSubtasks(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists previously created migration subtasks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The migration task of the subtasks to list. Example: `projects/123/locations/us/workflows/1234` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationSubtasksResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | A pageable sequence of [MigrationSubtask](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask) resources. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]";
    // Make the request
    PagedEnumerable<ListMigrationSubtasksResponse, MigrationSubtask> response = migrationServiceClient.ListMigrationSubtasks(parent);

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

### ListMigrationSubtasksAsync(ListMigrationSubtasksRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListMigrationSubtasksResponse, MigrationSubtask> ListMigrationSubtasksAsync(ListMigrationSubtasksRequest request, CallSettings callSettings = null)

Lists previously created migration subtasks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationSubtasksRequest` 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationSubtasksResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | A pageable asynchronous sequence of [MigrationSubtask](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask) resources. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListMigrationSubtasksRequest request = new ListMigrationSubtasksRequest
    {
        ParentAsMigrationWorkflowName = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"),
        ReadMask = new FieldMask(),
        Filter = "",
    };
    // Make the request
    PagedAsyncEnumerable<ListMigrationSubtasksResponse, MigrationSubtask> response = migrationServiceClient.ListMigrationSubtasksAsync(request);

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

### ListMigrationSubtasksAsync(MigrationWorkflowName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListMigrationSubtasksResponse, MigrationSubtask> ListMigrationSubtasksAsync(MigrationWorkflowName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists previously created migration subtasks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflowName` Required. The migration task of the subtasks to list. Example: `projects/123/locations/us/workflows/1234` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationSubtasksResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | A pageable asynchronous sequence of [MigrationSubtask](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask) resources. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    MigrationWorkflowName parent = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
    // Make the request
    PagedAsyncEnumerable<ListMigrationSubtasksResponse, MigrationSubtask> response = migrationServiceClient.ListMigrationSubtasksAsync(parent);

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

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

    public virtual PagedAsyncEnumerable<ListMigrationSubtasksResponse, MigrationSubtask> ListMigrationSubtasksAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists previously created migration subtasks.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The migration task of the subtasks to list. Example: `projects/123/locations/us/workflows/1234` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationSubtasksResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask` | A pageable asynchronous sequence of [MigrationSubtask](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationSubtask) resources. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]";
    // Make the request
    PagedAsyncEnumerable<ListMigrationSubtasksResponse, MigrationSubtask> response = migrationServiceClient.ListMigrationSubtasksAsync(parent);

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

### ListMigrationWorkflows(LocationName, string, int?, CallSettings)

    public virtual PagedEnumerable<ListMigrationWorkflowsResponse, MigrationWorkflow> ListMigrationWorkflows(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The project and location of the migration workflows to list. Example: `projects/123/locations/us` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationWorkflowsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A pageable sequence of [MigrationWorkflow](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow) resources. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedEnumerable<ListMigrationWorkflowsResponse, MigrationWorkflow> response = migrationServiceClient.ListMigrationWorkflows(parent);

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

### ListMigrationWorkflows(ListMigrationWorkflowsRequest, CallSettings)

    public virtual PagedEnumerable<ListMigrationWorkflowsResponse, MigrationWorkflow> ListMigrationWorkflows(ListMigrationWorkflowsRequest request, CallSettings callSettings = null)

Lists previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationWorkflowsRequest` 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationWorkflowsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A pageable sequence of [MigrationWorkflow](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow) resources. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    ListMigrationWorkflowsRequest request = new ListMigrationWorkflowsRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        ReadMask = new FieldMask(),
    };
    // Make the request
    PagedEnumerable<ListMigrationWorkflowsResponse, MigrationWorkflow> response = migrationServiceClient.ListMigrationWorkflows(request);

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

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

    public virtual PagedEnumerable<ListMigrationWorkflowsResponse, MigrationWorkflow> ListMigrationWorkflows(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The project and location of the migration workflows to list. Example: `projects/123/locations/us` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationWorkflowsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A pageable sequence of [MigrationWorkflow](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow) resources. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedEnumerable<ListMigrationWorkflowsResponse, MigrationWorkflow> response = migrationServiceClient.ListMigrationWorkflows(parent);

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

### ListMigrationWorkflowsAsync(LocationName, string, int?, CallSettings)

    public virtual PagedAsyncEnumerable<ListMigrationWorkflowsResponse, MigrationWorkflow> ListMigrationWorkflowsAsync(LocationName parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html` Required. The project and location of the migration workflows to list. Example: `projects/123/locations/us` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationWorkflowsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A pageable asynchronous sequence of [MigrationWorkflow](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow) resources. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
    // Make the request
    PagedAsyncEnumerable<ListMigrationWorkflowsResponse, MigrationWorkflow> response = migrationServiceClient.ListMigrationWorkflowsAsync(parent);

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

### ListMigrationWorkflowsAsync(ListMigrationWorkflowsRequest, CallSettings)

    public virtual PagedAsyncEnumerable<ListMigrationWorkflowsResponse, MigrationWorkflow> ListMigrationWorkflowsAsync(ListMigrationWorkflowsRequest request, CallSettings callSettings = null)

Lists previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationWorkflowsRequest` 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationWorkflowsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A pageable asynchronous sequence of [MigrationWorkflow](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow) resources. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    ListMigrationWorkflowsRequest request = new ListMigrationWorkflowsRequest
    {
        ParentAsLocationName = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]"),
        ReadMask = new FieldMask(),
    };
    // Make the request
    PagedAsyncEnumerable<ListMigrationWorkflowsResponse, MigrationWorkflow> response = migrationServiceClient.ListMigrationWorkflowsAsync(request);

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

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

    public virtual PagedAsyncEnumerable<ListMigrationWorkflowsResponse, MigrationWorkflow> ListMigrationWorkflowsAsync(string parent, string pageToken = null, int? pageSize = null, CallSettings callSettings = null)

Lists previously created migration workflow.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The project and location of the migration workflows to list. Example: `projects/123/locations/us` |
| `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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.ListMigrationWorkflowsResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow` | A pageable asynchronous sequence of [MigrationWorkflow](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflow) resources. |

**Example**

    // Create client
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    string parent = "projects/[PROJECT]/locations/[LOCATION]";
    // Make the request
    PagedAsyncEnumerable<ListMigrationWorkflowsResponse, MigrationWorkflow> response = migrationServiceClient.ListMigrationWorkflowsAsync(parent);

    // Iterate over all response items, lazily performing RPCs as required
    await foreach (MigrationWorkflow 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 (ListMigrationWorkflowsResponse page in response.AsRawResponses())
    {
        // Do something with each page of items
        Console.WriteLine("A page of results:");
        foreach (MigrationWorkflow 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<MigrationWorkflow> 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 (MigrationWorkflow 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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClient#Google_Cloud_BigQuery_Migration_V2_MigrationServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClient#Google_Cloud_BigQuery_Migration_V2_MigrationServiceClient_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.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClient#Google_Cloud_BigQuery_Migration_V2_MigrationServiceClient_Create) and
[CreateAsync(CancellationToken)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationServiceClient#Google_Cloud_BigQuery_Migration_V2_MigrationServiceClient_CreateAsync_System_Threading_CancellationToken_) will create new channels, which could in turn be shut down
by another call to this method.

### StartMigrationWorkflow(MigrationWorkflowName, CallSettings)

    public virtual void StartMigrationWorkflow(MigrationWorkflowName name, CallSettings callSettings = null)

Starts a previously created migration workflow. I.e., the state transitions
from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
An error will be signaled if the state is anything other than DRAFT or
RUNNING.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflowName` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    MigrationWorkflowName name = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
    // Make the request
    migrationServiceClient.StartMigrationWorkflow(name);

### StartMigrationWorkflow(StartMigrationWorkflowRequest, CallSettings)

    public virtual void StartMigrationWorkflow(StartMigrationWorkflowRequest request, CallSettings callSettings = null)

Starts a previously created migration workflow. I.e., the state transitions
from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
An error will be signaled if the state is anything other than DRAFT or
RUNNING.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.StartMigrationWorkflowRequest` 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
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    StartMigrationWorkflowRequest request = new StartMigrationWorkflowRequest
    {
        MigrationWorkflowName = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"),
    };
    // Make the request
    migrationServiceClient.StartMigrationWorkflow(request);

### StartMigrationWorkflow(string, CallSettings)

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

Starts a previously created migration workflow. I.e., the state transitions
from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
An error will be signaled if the state is anything other than DRAFT or
RUNNING.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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
    MigrationServiceClient migrationServiceClient = MigrationServiceClient.Create();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]";
    // Make the request
    migrationServiceClient.StartMigrationWorkflow(name);

### StartMigrationWorkflowAsync(MigrationWorkflowName, CallSettings)

    public virtual Task StartMigrationWorkflowAsync(MigrationWorkflowName name, CallSettings callSettings = null)

Starts a previously created migration workflow. I.e., the state transitions
from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
An error will be signaled if the state is anything other than DRAFT or
RUNNING.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflowName` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    MigrationWorkflowName name = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
    // Make the request
    await migrationServiceClient.StartMigrationWorkflowAsync(name);

### StartMigrationWorkflowAsync(MigrationWorkflowName, CancellationToken)

    public virtual Task StartMigrationWorkflowAsync(MigrationWorkflowName name, CancellationToken cancellationToken)

Starts a previously created migration workflow. I.e., the state transitions
from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
An error will be signaled if the state is anything other than DRAFT or
RUNNING.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.MigrationWorkflowName` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    MigrationWorkflowName name = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]");
    // Make the request
    await migrationServiceClient.StartMigrationWorkflowAsync(name);

### StartMigrationWorkflowAsync(StartMigrationWorkflowRequest, CallSettings)

    public virtual Task StartMigrationWorkflowAsync(StartMigrationWorkflowRequest request, CallSettings callSettings = null)

Starts a previously created migration workflow. I.e., the state transitions
from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
An error will be signaled if the state is anything other than DRAFT or
RUNNING.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.StartMigrationWorkflowRequest` 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
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    StartMigrationWorkflowRequest request = new StartMigrationWorkflowRequest
    {
        MigrationWorkflowName = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"),
    };
    // Make the request
    await migrationServiceClient.StartMigrationWorkflowAsync(request);

### StartMigrationWorkflowAsync(StartMigrationWorkflowRequest, CancellationToken)

    public virtual Task StartMigrationWorkflowAsync(StartMigrationWorkflowRequest request, CancellationToken cancellationToken)

Starts a previously created migration workflow. I.e., the state transitions
from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
An error will be signaled if the state is anything other than DRAFT or
RUNNING.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.Migration.V2/latest/Google.Cloud.BigQuery.Migration.V2.StartMigrationWorkflowRequest` 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
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    StartMigrationWorkflowRequest request = new StartMigrationWorkflowRequest
    {
        MigrationWorkflowName = MigrationWorkflowName.FromProjectLocationWorkflow("[PROJECT]", "[LOCATION]", "[WORKFLOW]"),
    };
    // Make the request
    await migrationServiceClient.StartMigrationWorkflowAsync(request);

### StartMigrationWorkflowAsync(string, CallSettings)

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

Starts a previously created migration workflow. I.e., the state transitions
from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
An error will be signaled if the state is anything other than DRAFT or
RUNNING.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]";
    // Make the request
    await migrationServiceClient.StartMigrationWorkflowAsync(name);

### StartMigrationWorkflowAsync(string, CancellationToken)

    public virtual Task StartMigrationWorkflowAsync(string name, CancellationToken cancellationToken)

Starts a previously created migration workflow. I.e., the state transitions
from DRAFT to RUNNING. This is a no-op if the state is already RUNNING.
An error will be signaled if the state is anything other than DRAFT or
RUNNING.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `https://learn.microsoft.com/dotnet/api/system.string` Required. The unique identifier for the migration workflow. Example: `projects/123/locations/us/workflows/1234` |
| `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
    MigrationServiceClient migrationServiceClient = await MigrationServiceClient.CreateAsync();
    // Initialize request argument(s)
    string name = "projects/[PROJECT]/locations/[LOCATION]/workflows/[WORKFLOW]";
    // Make the request
    await migrationServiceClient.StartMigrationWorkflowAsync(name);