Google Cloud Dms V1 Client - Class ConstraintEntity (1.4.2)

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

Constraint is not used as an independent entity, it is retrieved as part of another entity such as Table or View.

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

Namespace

Google \ Cloud \ CloudDms \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The name of the table constraint.

↳ type string

Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).

↳ table_columns array

Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.

↳ custom_features Google\Protobuf\Struct

Custom engine specific features.

↳ reference_columns array

Reference columns which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full names of referenced columns by the foreign key.

↳ reference_table string

Reference table which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full name of the referenced table by the foreign key.

↳ table_name string

Table which is associated with the constraint. In case the constraint is defined on a table, this field is left empty as this information is stored in parent_name. However, if constraint is defined on a view, this field stores the table name on which the view is defined.

getName

The name of the table constraint.

Returns
TypeDescription
string

setName

The name of the table constraint.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).

Returns
TypeDescription
string

setType

Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTableColumns

Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setTableColumns

Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getCustomFeatures

Custom engine specific features.

Returns
TypeDescription
Google\Protobuf\Struct|null

hasCustomFeatures

clearCustomFeatures

setCustomFeatures

Custom engine specific features.

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

getReferenceColumns

Reference columns which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full names of referenced columns by the foreign key.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setReferenceColumns

Reference columns which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full names of referenced columns by the foreign key.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getReferenceTable

Reference table which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full name of the referenced table by the foreign key.

Returns
TypeDescription
string

setReferenceTable

Reference table which may be associated with the constraint. For example, if the constraint is a FOREIGN_KEY, this represents the list of full name of the referenced table by the foreign key.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTableName

Table which is associated with the constraint. In case the constraint is defined on a table, this field is left empty as this information is stored in parent_name. However, if constraint is defined on a view, this field stores the table name on which the view is defined.

Returns
TypeDescription
string

setTableName

Table which is associated with the constraint. In case the constraint is defined on a table, this field is left empty as this information is stored in parent_name. However, if constraint is defined on a view, this field stores the table name on which the view is defined.

Parameter
NameDescription
var string
Returns
TypeDescription
$this