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 SetTablePrimaryKey : IMessage<SetTablePrimaryKey>, IEquatable<SetTablePrimaryKey>, IDeepCloneable<SetTablePrimaryKey>, IBufferMessage, IMessage

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

Options to configure rule type SetTablePrimaryKey.
The rule is used to specify the columns and name to configure/alter the
primary key of a table.

The rule filter field can refer to one entity.

The rule scope can be one of: Table.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[SetTablePrimaryKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.SetTablePrimaryKey.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SetTablePrimaryKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.SetTablePrimaryKey.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[SetTablePrimaryKey](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.SetTablePrimaryKey.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

### SetTablePrimaryKey()

    public SetTablePrimaryKey()

### SetTablePrimaryKey(SetTablePrimaryKey)

    public SetTablePrimaryKey(SetTablePrimaryKey other)

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

## Properties

### PrimaryKey

    public string PrimaryKey { get; set; }

Optional. Name for the primary key

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

### PrimaryKeyColumns

    public RepeatedField<string> PrimaryKeyColumns { get; }

Required. List of column names for the primary key

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