Google Cloud Dms V1 Client - Class MultiColumnDatatypeChange (1.5.0)

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
NameDescription
data array

Optional. Data for populating the Message object.

↳ source_data_type_filter string

Required. Filter on source data type.

↳ source_text_filter Google\Cloud\CloudDms\V1\SourceTextFilter

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

↳ source_numeric_filter Google\Cloud\CloudDms\V1\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
TypeDescription
string

setSourceDataTypeFilter

Required. Filter on source data type.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourceTextFilter

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

Returns
TypeDescription
Google\Cloud\CloudDms\V1\SourceTextFilter|null

hasSourceTextFilter

setSourceTextFilter

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

Parameter
NameDescription
var Google\Cloud\CloudDms\V1\SourceTextFilter
Returns
TypeDescription
$this

getSourceNumericFilter

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

Returns
TypeDescription
Google\Cloud\CloudDms\V1\SourceNumericFilter|null

hasSourceNumericFilter

setSourceNumericFilter

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

Parameter
NameDescription
var Google\Cloud\CloudDms\V1\SourceNumericFilter
Returns
TypeDescription
$this

getNewDataType

Required. New data type.

Returns
TypeDescription
string

setNewDataType

Required. New data type.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOverrideLength

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

Returns
TypeDescription
int|string

setOverrideLength

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

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getOverrideScale

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

Returns
TypeDescription
int

setOverrideScale

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getOverridePrecision

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

Returns
TypeDescription
int

setOverridePrecision

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

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int
Returns
TypeDescription
$this

getCustomFeatures

Optional. Custom engine specific features.

Returns
TypeDescription
Google\Protobuf\Struct|null

hasCustomFeatures

clearCustomFeatures

setCustomFeatures

Optional. Custom engine specific features.

Parameter
NameDescription
var Google\Protobuf\Struct
Returns
TypeDescription
$this

getSourceFilter

Returns
TypeDescription
string