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.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eSetTablePrimaryKey\u003c/code\u003e class in the Database Migration v1 API is 2.5.0, with versions ranging back to 1.0.0 available.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSetTablePrimaryKey\u003c/code\u003e is a rule type used to configure or alter the primary key of a table, specifying both the columns and name.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, enabling it to function within the Google Cloud Protobuf ecosystem.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSetTablePrimaryKey\u003c/code\u003e has two main properties: \u003ccode\u003ePrimaryKey\u003c/code\u003e, which allows setting an optional name for the primary key, and \u003ccode\u003ePrimaryKeyColumns\u003c/code\u003e, which requires a list of column names.\u003c/p\u003e\n"],["\u003cp\u003eThe scope of the rule is one of table, meaning the rule can refer to one entity.\u003c/p\u003e\n"]]],[],null,[]]