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
Type
Description
string
setName
The name of the table constraint.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getType
Type of constraint, for example unique, primary key, foreign key (currently
only primary key is supported).
Returns
Type
Description
string
setType
Type of constraint, for example unique, primary key, foreign key (currently
only primary key is supported).
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTableColumns
Table columns used as part of the Constraint, for example primary key
constraint should list the columns which constitutes the key.
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 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
Name
Description
var
string[]
Returns
Type
Description
$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
Type
Description
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
Name
Description
var
string
Returns
Type
Description
$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
Type
Description
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dms V1 Client - Class ConstraintEntity (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-dms/latest/V1.ConstraintEntity)\n- [2.0.5](/php/docs/reference/cloud-dms/2.0.5/V1.ConstraintEntity)\n- [1.5.5](/php/docs/reference/cloud-dms/1.5.5/V1.ConstraintEntity)\n- [1.4.2](/php/docs/reference/cloud-dms/1.4.2/V1.ConstraintEntity)\n- [1.3.0](/php/docs/reference/cloud-dms/1.3.0/V1.ConstraintEntity)\n- [1.2.1](/php/docs/reference/cloud-dms/1.2.1/V1.ConstraintEntity)\n- [1.1.0](/php/docs/reference/cloud-dms/1.1.0/V1.ConstraintEntity)\n- [1.0.5](/php/docs/reference/cloud-dms/1.0.5/V1.ConstraintEntity) \nReference documentation and code samples for the Google Cloud Dms V1 Client class ConstraintEntity.\n\nConstraint is not used as an independent entity, it is retrieved\nas part of another entity such as Table or View.\n\nGenerated from protobuf message `google.cloud.clouddms.v1.ConstraintEntity`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ CloudDms \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe name of the table constraint.\n\n### setName\n\nThe name of the table constraint.\n\n### getType\n\nType of constraint, for example unique, primary key, foreign key (currently\nonly primary key is supported).\n\n### setType\n\nType of constraint, for example unique, primary key, foreign key (currently\nonly primary key is supported).\n\n### getTableColumns\n\nTable columns used as part of the Constraint, for example primary key\nconstraint should list the columns which constitutes the key.\n\n### setTableColumns\n\nTable columns used as part of the Constraint, for example primary key\nconstraint should list the columns which constitutes the key.\n\n### getCustomFeatures\n\nCustom engine specific features.\n\n### hasCustomFeatures\n\n### clearCustomFeatures\n\n### setCustomFeatures\n\nCustom engine specific features.\n\n### getReferenceColumns\n\nReference columns which may be associated with the constraint. For example,\nif the constraint is a FOREIGN_KEY, this represents the list of full names\nof referenced columns by the foreign key.\n\n### setReferenceColumns\n\nReference columns which may be associated with the constraint. For example,\nif the constraint is a FOREIGN_KEY, this represents the list of full names\nof referenced columns by the foreign key.\n\n### getReferenceTable\n\nReference table which may be associated with the constraint. For example,\nif the constraint is a FOREIGN_KEY, this represents the list of full name\nof the referenced table by the foreign key.\n\n### setReferenceTable\n\nReference table which may be associated with the constraint. For example,\nif the constraint is a FOREIGN_KEY, this represents the list of full name\nof the referenced table by the foreign key.\n\n### getTableName\n\nTable which is associated with the constraint. In case the constraint\nis defined on a table, this field is left empty as this information is\nstored in parent_name. However, if constraint is defined on a view, this\nfield stores the table name on which the view is defined.\n\n### setTableName\n\nTable which is associated with the constraint. In case the constraint\nis defined on a table, this field is left empty as this information is\nstored in parent_name. However, if constraint is defined on a view, this\nfield stores the table name on which the view is defined."]]