Google Cloud Dms V1 Client - Class MultiColumnDatatypeChange (2.0.3)

Reference documentation and code samples for the Google Cloud Dms V1 Client class MultiColumnDatatypeChange.

Options to configure rule type MultiColumnDatatypeChange.

The rule is used to change the data type and associated properties of multiple columns at once. The rule filter field can refer to one or more entities. The rule scope can be one of:Column. This rule requires additional filters to be specified beyond the basic rule filter field, which is the source data type, but the rule supports additional filtering capabilities such as the minimum and maximum field length. All additional filters which are specified are required to be met in order for the rule to be applied (logical AND between the fields).

Generated from protobuf message google.cloud.clouddms.v1.MultiColumnDatatypeChange

Namespace

Google \ Cloud \ CloudDms \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ source_data_type_filter string

Required. Filter on source data type.

↳ source_text_filter SourceTextFilter

Optional. Filter for text-based data types like varchar.

↳ source_numeric_filter SourceNumericFilter

Optional. Filter for fixed point number data types such as NUMERIC/NUMBER.

↳ new_data_type string

Required. New data type.

↳ override_length int|string

Optional. Column length - e.g. varchar (50) - if not specified and relevant uses the source column length.

↳ override_scale int

Optional. Column scale - when relevant - if not specified and relevant uses the source column scale.

↳ override_precision int

Optional. Column precision - when relevant - if not specified and relevant uses the source column precision.

↳ override_fractional_seconds_precision int

Optional. Column fractional seconds precision - used only for timestamp based datatypes - if not specified and relevant uses the source column fractional seconds precision.

↳ custom_features Google\Protobuf\Struct

Optional. Custom engine specific features.

getSourceDataTypeFilter

Required. Filter on source data type.

Returns
Type Description
string

setSourceDataTypeFilter

Required. Filter on source data type.

Parameter
Name Description
var string
Returns
Type Description
$this

getSourceTextFilter

Optional. Filter for text-based data types like varchar.

Returns
Type Description
SourceTextFilter|null

hasSourceTextFilter

setSourceTextFilter

Optional. Filter for text-based data types like varchar.

Parameter
Name Description
var SourceTextFilter
Returns
Type Description
$this

getSourceNumericFilter

Optional. Filter for fixed point number data types such as NUMERIC/NUMBER.

Returns
Type Description
SourceNumericFilter|null

hasSourceNumericFilter

setSourceNumericFilter

Optional. Filter for fixed point number data types such as NUMERIC/NUMBER.

Parameter
Name Description
var SourceNumericFilter
Returns
Type Description
$this

getNewDataType

Required. New data type.

Returns
Type Description
string

setNewDataType

Required. New data type.

Parameter
Name Description
var string
Returns
Type Description
$this

getOverrideLength

Optional. Column length - e.g. varchar (50) - if not specified and relevant uses the source column length.

Returns
Type Description
int|string

setOverrideLength

Optional. Column length - e.g. varchar (50) - if not specified and relevant uses the source column length.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getOverrideScale

Optional. Column scale - when relevant - if not specified and relevant uses the source column scale.

Returns
Type Description
int

setOverrideScale

Optional. Column scale - when relevant - if not specified and relevant uses the source column scale.

Parameter
Name Description
var int
Returns
Type Description
$this

getOverridePrecision

Optional. Column precision - when relevant - if not specified and relevant uses the source column precision.

Returns
Type Description
int

setOverridePrecision

Optional. Column precision - when relevant - if not specified and relevant uses the source column precision.

Parameter
Name Description
var int
Returns
Type Description
$this

getOverrideFractionalSecondsPrecision

Optional. Column fractional seconds precision - used only for timestamp based datatypes - if not specified and relevant uses the source column fractional seconds precision.

Returns
Type Description
int

setOverrideFractionalSecondsPrecision

Optional. Column fractional seconds precision - used only for timestamp based datatypes - if not specified and relevant uses the source column fractional seconds precision.

Parameter
Name Description
var int
Returns
Type Description
$this

getCustomFeatures

Optional. Custom engine specific features.

Returns
Type Description
Google\Protobuf\Struct|null

hasCustomFeatures

clearCustomFeatures

setCustomFeatures

Optional. Custom engine specific features.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this

getSourceFilter

Returns
Type Description
string