# Google Cloud BigQuery Migration V2 Client - Class TargetSpec (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 TargetSpec.

Represents one path to the location that holds target data.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ relative_path` | `string` The relative path for the target data. Given source file `base_uri/input/sql`, the output would be `target_base_uri/sql/relative_path/input.sql`. |

### getRelativePath

The relative path for the target data. Given source file
`base_uri/input/sql`, the output would be
`target_base_uri/sql/relative_path/input.sql`.

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

### setRelativePath

The relative path for the target data. Given source file
`base_uri/input/sql`, the output would be
`target_base_uri/sql/relative_path/input.sql`.

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

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