Reference documentation and code samples for the Google Cloud Dms V1 Client 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.
Generated from protobuf message google.cloud.clouddms.v1.SetTablePrimaryKey
Namespace
Google \ Cloud \ CloudDms \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ primary_key_columns
array
Required. List of column names for the primary key
↳ primary_key
string
Optional. Name for the primary key
getPrimaryKeyColumns
Required. List of column names for the primary key
[[["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-09 UTC."],[],[],null,["# Google Cloud Dms V1 Client - Class SetTablePrimaryKey (2.0.6)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.6 (latest)](/php/docs/reference/cloud-dms/latest/V1.SetTablePrimaryKey)\n- [2.0.5](/php/docs/reference/cloud-dms/2.0.5/V1.SetTablePrimaryKey)\n- [1.5.5](/php/docs/reference/cloud-dms/1.5.5/V1.SetTablePrimaryKey)\n- [1.4.2](/php/docs/reference/cloud-dms/1.4.2/V1.SetTablePrimaryKey)\n- [1.3.0](/php/docs/reference/cloud-dms/1.3.0/V1.SetTablePrimaryKey)\n- [1.2.1](/php/docs/reference/cloud-dms/1.2.1/V1.SetTablePrimaryKey)\n- [1.1.0](/php/docs/reference/cloud-dms/1.1.0/V1.SetTablePrimaryKey)\n- [1.0.5](/php/docs/reference/cloud-dms/1.0.5/V1.SetTablePrimaryKey) \nReference documentation and code samples for the Google Cloud Dms V1 Client class SetTablePrimaryKey.\n\nOptions to configure rule type SetTablePrimaryKey.\n\nThe rule is used to specify the columns and name to configure/alter the\nprimary key of a table.\nThe rule filter field can refer to one entity.\nThe rule scope can be one of: Table.\n\nGenerated from protobuf message `google.cloud.clouddms.v1.SetTablePrimaryKey`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ CloudDms \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPrimaryKeyColumns\n\nRequired. List of column names for the primary key\n\n### setPrimaryKeyColumns\n\nRequired. List of column names for the primary key\n\n### getPrimaryKey\n\nOptional. Name for the primary key\n\n### setPrimaryKey\n\nOptional. Name for the primary key"]]