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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ source Google\Cloud\BigQuery\Migration\V2\NameMappingKey

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

↳ target Google\Cloud\BigQuery\Migration\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
TypeDescription
Google\Cloud\BigQuery\Migration\V2\NameMappingKey|null

hasSource

clearSource

setSource

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

Parameter
NameDescription
var Google\Cloud\BigQuery\Migration\V2\NameMappingKey
Returns
TypeDescription
$this

getTarget

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

Returns
TypeDescription
Google\Cloud\BigQuery\Migration\V2\NameMappingValue|null

hasTarget

clearTarget

setTarget

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

Parameter
NameDescription
var Google\Cloud\BigQuery\Migration\V2\NameMappingValue
Returns
TypeDescription
$this