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

Represents one mapping from a source SQL to a target SQL.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.SourceSpec` The source SQL or the path to it. |
| `↳ target_spec` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.TargetSpec` The target SQL or the path for it. |

### getSourceSpec

The source SQL or the path to it.

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

### hasSourceSpec

### clearSourceSpec

### setSourceSpec

The source SQL or the path to it.

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

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

### getTargetSpec

The target SQL or the path for it.

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

### hasTargetSpec

### clearTargetSpec

### setTargetSpec

The target SQL or the path for it.

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

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