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

The potential components of a full name mapping that will be mapped
during translation in the source data warehouse.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` The type of object that is being mapped. |
| `↳ database` | `string` The database name (BigQuery project ID equivalent in the source data warehouse). |
| `↳ schema` | `string` The schema name (BigQuery dataset equivalent in the source data warehouse). |
| `↳ relation` | `string` The relation name (BigQuery table or view equivalent in the source data warehouse). |
| `↳ attribute` | `string` The attribute name (BigQuery column equivalent in the source data warehouse). |

### getType

The type of object that is being mapped.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.NameMappingKey.Type). |

### setType

The type of object that is being mapped.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-bigquery-migration/latest/V2.NameMappingKey.Type). |

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

### getDatabase

The database name (BigQuery project ID equivalent in the source data
warehouse).

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

### setDatabase

The database name (BigQuery project ID equivalent in the source data
warehouse).

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

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

### getSchema

The schema name (BigQuery dataset equivalent in the source data warehouse).

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

### setSchema

The schema name (BigQuery dataset equivalent in the source data warehouse).

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

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

### getRelation

The relation name (BigQuery table or view equivalent in the source data
warehouse).

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

### setRelation

The relation name (BigQuery table or view equivalent in the source data
warehouse).

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

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

### getAttribute

The attribute name (BigQuery column equivalent in the source data
warehouse).

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

### setAttribute

The attribute name (BigQuery column equivalent in the source data
warehouse).

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

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