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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eSetTablePrimaryKey\u003c/code\u003e class within the Google Cloud Database Migration v1 API.\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 the columns and name.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this documentation is 2.5.0, with versions available from 1.0.0 onwards, including the 2.2.0 version detailed on this page.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties \u003ccode\u003ePrimaryKey\u003c/code\u003e for the primary key's name and \u003ccode\u003ePrimaryKeyColumns\u003c/code\u003e for a list of column names within the primary key.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSetTablePrimaryKey\u003c/code\u003e class inherits from the [object] class, and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]