Reference documentation and code samples for the Google Cloud BigQuery Migration V2 Client class TranslationDetails.
The translation details to capture the necessary settings for a translation job.
Generated from protobuf message google.cloud.bigquery.migration.v2.TranslationDetails
Namespace
Google \ Cloud \ BigQuery \ Migration \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ source_target_mapping |
array<SourceTargetMapping>
The mapping from source to target SQL. |
↳ target_base_uri |
string
The base URI for all writes to persistent storage. |
↳ source_environment |
SourceEnvironment
The default source environment values for the translation. |
↳ target_return_literals |
array
The list of literal targets that will be directly returned to the response. Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage. |
↳ target_types |
array
The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types. |
getSourceTargetMapping
The mapping from source to target SQL.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setSourceTargetMapping
The mapping from source to target SQL.
| Parameter | |
|---|---|
| Name | Description |
var |
array<SourceTargetMapping>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTargetBaseUri
The base URI for all writes to persistent storage.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTargetBaseUri
The base URI for all writes to persistent storage.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSourceEnvironment
The default source environment values for the translation.
| Returns | |
|---|---|
| Type | Description |
SourceEnvironment|null |
|
hasSourceEnvironment
clearSourceEnvironment
setSourceEnvironment
The default source environment values for the translation.
| Parameter | |
|---|---|
| Name | Description |
var |
SourceEnvironment
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTargetReturnLiterals
The list of literal targets that will be directly returned to the response.
Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setTargetReturnLiterals
The list of literal targets that will be directly returned to the response.
Each entry consists of the constructed path, EXCLUDING the base path. Not providing a target_base_uri will prevent writing to persistent storage.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTargetTypes
The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setTargetTypes
The types of output to generate, e.g. sql, metadata, lineage_from_sql_scripts, etc. If not specified, a default set of targets will be generated. Some additional target types may be slower to generate. See the documentation for the set of available target types.
| Parameter | |
|---|---|
| Name | Description |
var |
string[]
|
| Returns | |
|---|---|
| Type | Description |
$this |
|