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

Represents a key-value pair of NameMappingKey to NameMappingValue to
represent the mapping of SQL names from the input value to desired output.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.NameMappingKey` The name of the object in source that is being mapped. |
| `↳ target` | `https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.NameMappingValue` The desired target name of the object that is being mapped. |

### getSource

The name of the object in source that is being mapped.

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

### hasSource

### clearSource

### setSource

The name of the object in source that is being mapped.

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

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

### getTarget

The desired target name of the object that is being mapped.

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

### hasTarget

### clearTarget

### setTarget

The desired target name of the object that is being mapped.

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

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