Google Cloud BigQuery Migration V2 Client - Class NameMappingKey (0.4.5)

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
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ typeint

The type of object that is being mapped.

↳ databasestring

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

↳ schemastring

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

↳ relationstring

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

↳ attributestring

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

getType

The type of object that is being mapped.

Returns
TypeDescription
int

setType

The type of object that is being mapped.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getDatabase

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

Returns
TypeDescription
string

setDatabase

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSchema

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

Returns
TypeDescription
string

setSchema

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getRelation

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

Returns
TypeDescription
string

setRelation

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getAttribute

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

Returns
TypeDescription
string

setAttribute

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this