2.6.0 (latest) 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.2.0 1.1.0 1.0.0

    public sealed class ConstraintEntity : IMessage<ConstraintEntity>, IEquatable<ConstraintEntity>, IDeepCloneable<ConstraintEntity>, IBufferMessage, IMessage

Reference documentation and code samples for the Database Migration v1 API class ConstraintEntity.

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

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ConstraintEntity

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ConstraintEntity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ConstraintEntity.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ConstraintEntity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ConstraintEntity.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ConstraintEntity](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.ConstraintEntity.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.CloudDms.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.md.txt)

## Assembly

Google.Cloud.CloudDms.V1.dll

## Constructors

### ConstraintEntity()

    public ConstraintEntity()

### ConstraintEntity(ConstraintEntity)

    public ConstraintEntity(ConstraintEntity other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ConstraintEntity` |

## Properties

### CustomFeatures

    public Struct CustomFeatures { get; set; }

Custom engine specific features.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Struct` |   |

### Name

    public string Name { get; set; }

The name of the table constraint.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ReferenceColumns

    public RepeatedField<string> ReferenceColumns { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### ReferenceTable

    public string ReferenceTable { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### TableColumns

    public RepeatedField<string> TableColumns { get; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### TableName

    public string TableName { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Type

    public string Type { get; set; }

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |