# Google Cloud BigQuery Migration V2 Client - Class CreateMigrationWorkflowRequest (1.3.0)

1.3.0 (latest) 1.2.3 1.1.5 1.0.0 0.4.5 0.3.3 0.2.2 0.1.4 Reference documentation and code samples for the Google Cloud BigQuery Migration V2 Client class CreateMigrationWorkflowRequest.

Request to create a migration workflow resource.

Generated from protobuf message `google.cloud.bigquery.migration.v2.CreateMigrationWorkflowRequest`

## Namespace

Google \\ Cloud \\ BigQuery \\ Migration \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The name of the project to which this migration workflow belongs. Example: `projects/foo/locations/bar` |
| `↳ migration_workflow` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.MigrationWorkflow` Required. The migration workflow to create. |

### getParent

Required. The name of the project to which this migration workflow belongs.

Example: `projects/foo/locations/bar`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParent

Required. The name of the project to which this migration workflow belongs.

Example: `projects/foo/locations/bar`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMigrationWorkflow

Required. The migration workflow to create.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.MigrationWorkflow|null` |   |

### hasMigrationWorkflow

### clearMigrationWorkflow

### setMigrationWorkflow

Required. The migration workflow to create.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.MigrationWorkflow` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The name of the project to which this migration workflow belongs. Example: `projects/foo/locations/bar` Please see MigrationServiceClient::locationName() for help formatting this field. |
| `migrationWorkflow` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.MigrationWorkflow` Required. The migration workflow to create. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.CreateMigrationWorkflowRequest` |   |