Class SetTablePrimaryKey.Builder (2.40.0)

public static final class SetTablePrimaryKey.Builder extends GeneratedMessageV3.Builder<SetTablePrimaryKey.Builder> implements SetTablePrimaryKeyOrBuilder

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.

Protobuf type google.cloud.clouddms.v1.SetTablePrimaryKey

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllPrimaryKeyColumns(Iterable<String> values)

public SetTablePrimaryKey.Builder addAllPrimaryKeyColumns(Iterable<String> values)

Required. List of column names for the primary key

repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<String>

The primaryKeyColumns to add.

Returns
TypeDescription
SetTablePrimaryKey.Builder

This builder for chaining.

addPrimaryKeyColumns(String value)

public SetTablePrimaryKey.Builder addPrimaryKeyColumns(String value)

Required. List of column names for the primary key

repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The primaryKeyColumns to add.

Returns
TypeDescription
SetTablePrimaryKey.Builder

This builder for chaining.

addPrimaryKeyColumnsBytes(ByteString value)

public SetTablePrimaryKey.Builder addPrimaryKeyColumnsBytes(ByteString value)

Required. List of column names for the primary key

repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes of the primaryKeyColumns to add.

Returns
TypeDescription
SetTablePrimaryKey.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SetTablePrimaryKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SetTablePrimaryKey.Builder
Overrides

build()

public SetTablePrimaryKey build()
Returns
TypeDescription
SetTablePrimaryKey

buildPartial()

public SetTablePrimaryKey buildPartial()
Returns
TypeDescription
SetTablePrimaryKey

clear()

public SetTablePrimaryKey.Builder clear()
Returns
TypeDescription
SetTablePrimaryKey.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SetTablePrimaryKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SetTablePrimaryKey.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SetTablePrimaryKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SetTablePrimaryKey.Builder
Overrides

clearPrimaryKey()

public SetTablePrimaryKey.Builder clearPrimaryKey()

Optional. Name for the primary key

string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
SetTablePrimaryKey.Builder

This builder for chaining.

clearPrimaryKeyColumns()

public SetTablePrimaryKey.Builder clearPrimaryKeyColumns()

Required. List of column names for the primary key

repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
SetTablePrimaryKey.Builder

This builder for chaining.

clone()

public SetTablePrimaryKey.Builder clone()
Returns
TypeDescription
SetTablePrimaryKey.Builder
Overrides

getDefaultInstanceForType()

public SetTablePrimaryKey getDefaultInstanceForType()
Returns
TypeDescription
SetTablePrimaryKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPrimaryKey()

public String getPrimaryKey()

Optional. Name for the primary key

string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The primaryKey.

getPrimaryKeyBytes()

public ByteString getPrimaryKeyBytes()

Optional. Name for the primary key

string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for primaryKey.

getPrimaryKeyColumns(int index)

public String getPrimaryKeyColumns(int index)

Required. List of column names for the primary key

repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The primaryKeyColumns at the given index.

getPrimaryKeyColumnsBytes(int index)

public ByteString getPrimaryKeyColumnsBytes(int index)

Required. List of column names for the primary key

repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the primaryKeyColumns at the given index.

getPrimaryKeyColumnsCount()

public int getPrimaryKeyColumnsCount()

Required. List of column names for the primary key

repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of primaryKeyColumns.

getPrimaryKeyColumnsList()

public ProtocolStringList getPrimaryKeyColumnsList()

Required. List of column names for the primary key

repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ProtocolStringList

A list containing the primaryKeyColumns.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SetTablePrimaryKey other)

public SetTablePrimaryKey.Builder mergeFrom(SetTablePrimaryKey other)
Parameter
NameDescription
otherSetTablePrimaryKey
Returns
TypeDescription
SetTablePrimaryKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SetTablePrimaryKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SetTablePrimaryKey.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SetTablePrimaryKey.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SetTablePrimaryKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SetTablePrimaryKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SetTablePrimaryKey.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SetTablePrimaryKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SetTablePrimaryKey.Builder
Overrides

setPrimaryKey(String value)

public SetTablePrimaryKey.Builder setPrimaryKey(String value)

Optional. Name for the primary key

string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The primaryKey to set.

Returns
TypeDescription
SetTablePrimaryKey.Builder

This builder for chaining.

setPrimaryKeyBytes(ByteString value)

public SetTablePrimaryKey.Builder setPrimaryKeyBytes(ByteString value)

Optional. Name for the primary key

string primary_key = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for primaryKey to set.

Returns
TypeDescription
SetTablePrimaryKey.Builder

This builder for chaining.

setPrimaryKeyColumns(int index, String value)

public SetTablePrimaryKey.Builder setPrimaryKeyColumns(int index, String value)

Required. List of column names for the primary key

repeated string primary_key_columns = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The primaryKeyColumns to set.

Returns
TypeDescription
SetTablePrimaryKey.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SetTablePrimaryKey.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SetTablePrimaryKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SetTablePrimaryKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SetTablePrimaryKey.Builder
Overrides