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 \ V1Methods
__construct
Constructor.
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
↳ 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.
string
setName
The name of the table constraint.
var
string
$this
getType
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
string
setType
Type of constraint, for example unique, primary key, foreign key (currently only primary key is supported).
var
string
$this
getTableColumns
Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.
setTableColumns
Table columns used as part of the Constraint, for example primary key constraint should list the columns which constitutes the key.
var
string[]
$this
getCustomFeatures
Custom engine specific features.
hasCustomFeatures
clearCustomFeatures
setCustomFeatures
Custom engine specific features.
$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.
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.
var
string[]
$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.
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.
var
string
$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.
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.
var
string
$this