Google Cloud Dms V1 Client - Class SingleColumnChange (2.0.3)

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

Options to configure rule type SingleColumnChange.

The rule is used to change the properties of a column. The rule filter field can refer to one entity. The rule scope can be one of: Column. When using this rule, if a field is not specified than the destination column's configuration will be the same as the one in the source column..

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

Namespace

Google \ Cloud \ CloudDms \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ data_type string

Optional. Column data type name.

↳ charset string

Optional. Charset override - instead of table level charset.

↳ collation string

Optional. Collation override - instead of table level collation.

↳ length int|string

Optional. Column length - e.g. 50 as in varchar (50) - when relevant.

↳ precision int

Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.

↳ scale int

Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.

↳ fractional_seconds_precision int

Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2) - when relevant.

↳ array bool

Optional. Is the column of array type.

↳ array_length int

Optional. The length of the array, only relevant if the column type is an array.

↳ nullable bool

Optional. Is the column nullable.

↳ auto_generated bool

Optional. Is the column auto-generated/identity.

↳ udt bool

Optional. Is the column a UDT (User-defined Type).

↳ custom_features Google\Protobuf\Struct

Optional. Custom engine specific features.

↳ set_values array

Optional. Specifies the list of values allowed in the column.

↳ comment string

Optional. Comment associated with the column.

getDataType

Optional. Column data type name.

Returns
Type Description
string

setDataType

Optional. Column data type name.

Parameter
Name Description
var string
Returns
Type Description
$this

getCharset

Optional. Charset override - instead of table level charset.

Returns
Type Description
string

setCharset

Optional. Charset override - instead of table level charset.

Parameter
Name Description
var string
Returns
Type Description
$this

getCollation

Optional. Collation override - instead of table level collation.

Returns
Type Description
string

setCollation

Optional. Collation override - instead of table level collation.

Parameter
Name Description
var string
Returns
Type Description
$this

getLength

Optional. Column length - e.g. 50 as in varchar (50) - when relevant.

Returns
Type Description
int|string

setLength

Optional. Column length - e.g. 50 as in varchar (50) - when relevant.

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

getPrecision

Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.

Returns
Type Description
int

setPrecision

Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.

Parameter
Name Description
var int
Returns
Type Description
$this

getScale

Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.

Returns
Type Description
int

setScale

Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.

Parameter
Name Description
var int
Returns
Type Description
$this

getFractionalSecondsPrecision

Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2)

  • when relevant.
Returns
Type Description
int

setFractionalSecondsPrecision

Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2)

  • when relevant.
Parameter
Name Description
var int
Returns
Type Description
$this

getArray

Optional. Is the column of array type.

Returns
Type Description
bool

setArray

Optional. Is the column of array type.

Parameter
Name Description
var bool
Returns
Type Description
$this

getArrayLength

Optional. The length of the array, only relevant if the column type is an array.

Returns
Type Description
int

setArrayLength

Optional. The length of the array, only relevant if the column type is an array.

Parameter
Name Description
var int
Returns
Type Description
$this

getNullable

Optional. Is the column nullable.

Returns
Type Description
bool

setNullable

Optional. Is the column nullable.

Parameter
Name Description
var bool
Returns
Type Description
$this

getAutoGenerated

Optional. Is the column auto-generated/identity.

Returns
Type Description
bool

setAutoGenerated

Optional. Is the column auto-generated/identity.

Parameter
Name Description
var bool
Returns
Type Description
$this

getUdt

Optional. Is the column a UDT (User-defined Type).

Returns
Type Description
bool

setUdt

Optional. Is the column a UDT (User-defined Type).

Parameter
Name Description
var bool
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

getSetValues

Optional. Specifies the list of values allowed in the column.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSetValues

Optional. Specifies the list of values allowed in the column.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getComment

Optional. Comment associated with the column.

Returns
Type Description
string

setComment

Optional. Comment associated with the column.

Parameter
Name Description
var string
Returns
Type Description
$this