Google Cloud BigQuery Migration V2 Client - Class TranslationConfigDetails (1.1.4)

Reference documentation and code samples for the Google Cloud BigQuery Migration V2 Client class TranslationConfigDetails.

The translation config to capture necessary settings for a translation task and subtask.

Generated from protobuf message google.cloud.bigquery.migration.v2.TranslationConfigDetails

Namespace

Google \ Cloud \ BigQuery \ Migration \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ gcs_source_pathstring

The Cloud Storage path for a directory of files to translate in a task.

↳ gcs_target_pathstring

The Cloud Storage path to write back the corresponding input files to.

↳ name_mapping_listObjectNameMappingList

The mapping of objects to their desired output names in list form.

↳ source_dialectDialect

The dialect of the input files.

↳ target_dialectDialect

The target dialect for the engine to translate the input to.

↳ source_envSourceEnv

The default source environment values for the translation.

↳ request_sourcestring

The indicator to show translation request initiator.

↳ target_typesarray

The types of output to generate, e.g. sql, metadata 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.

getGcsSourcePath

The Cloud Storage path for a directory of files to translate in a task.

Returns
TypeDescription
string

hasGcsSourcePath

setGcsSourcePath

The Cloud Storage path for a directory of files to translate in a task.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getGcsTargetPath

The Cloud Storage path to write back the corresponding input files to.

Returns
TypeDescription
string

hasGcsTargetPath

setGcsTargetPath

The Cloud Storage path to write back the corresponding input files to.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getNameMappingList

The mapping of objects to their desired output names in list form.

Returns
TypeDescription
ObjectNameMappingList|null

hasNameMappingList

setNameMappingList

The mapping of objects to their desired output names in list form.

Parameter
NameDescription
varObjectNameMappingList
Returns
TypeDescription
$this

getSourceDialect

The dialect of the input files.

Returns
TypeDescription
Dialect|null

hasSourceDialect

clearSourceDialect

setSourceDialect

The dialect of the input files.

Parameter
NameDescription
varDialect
Returns
TypeDescription
$this

getTargetDialect

The target dialect for the engine to translate the input to.

Returns
TypeDescription
Dialect|null

hasTargetDialect

clearTargetDialect

setTargetDialect

The target dialect for the engine to translate the input to.

Parameter
NameDescription
varDialect
Returns
TypeDescription
$this

getSourceEnv

The default source environment values for the translation.

Returns
TypeDescription
SourceEnv|null

hasSourceEnv

clearSourceEnv

setSourceEnv

The default source environment values for the translation.

Parameter
NameDescription
varSourceEnv
Returns
TypeDescription
$this

getRequestSource

The indicator to show translation request initiator.

Returns
TypeDescription
string

setRequestSource

The indicator to show translation request initiator.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getTargetTypes

The types of output to generate, e.g. sql, metadata 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
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTargetTypes

The types of output to generate, e.g. sql, metadata 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
NameDescription
varstring[]
Returns
TypeDescription
$this

getSourceLocation

Returns
TypeDescription
string

getTargetLocation

Returns
TypeDescription
string

getOutputNameMapping

Returns
TypeDescription
string