Class SetTablePrimaryKey.Builder (2.43.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
Type Description
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
Name Description
values Iterable<String>

The primaryKeyColumns to add.

Returns
Type Description
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
Name Description
value String

The primaryKeyColumns to add.

Returns
Type Description
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
Name Description
value ByteString

The bytes of the primaryKeyColumns to add.

Returns
Type Description
SetTablePrimaryKey.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SetTablePrimaryKey.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SetTablePrimaryKey.Builder
Overrides

build()

public SetTablePrimaryKey build()
Returns
Type Description
SetTablePrimaryKey

buildPartial()

public SetTablePrimaryKey buildPartial()
Returns
Type Description
SetTablePrimaryKey

clear()

public SetTablePrimaryKey.Builder clear()
Returns
Type Description
SetTablePrimaryKey.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SetTablePrimaryKey.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SetTablePrimaryKey.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SetTablePrimaryKey.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SetTablePrimaryKey.Builder
Overrides

clearPrimaryKey()

public SetTablePrimaryKey.Builder clearPrimaryKey()

Optional. Name for the primary key

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

Returns
Type Description
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
Type Description
SetTablePrimaryKey.Builder

This builder for chaining.

clone()

public SetTablePrimaryKey.Builder clone()
Returns
Type Description
SetTablePrimaryKey.Builder
Overrides

getDefaultInstanceForType()

public SetTablePrimaryKey getDefaultInstanceForType()
Returns
Type Description
SetTablePrimaryKey

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPrimaryKey()

public String getPrimaryKey()

Optional. Name for the primary key

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

Returns
Type Description
String

The primaryKey.

getPrimaryKeyBytes()

public ByteString getPrimaryKeyBytes()

Optional. Name for the primary key

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

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
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
Type Description
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
Type Description
ProtocolStringList

A list containing the primaryKeyColumns.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SetTablePrimaryKey other)

public SetTablePrimaryKey.Builder mergeFrom(SetTablePrimaryKey other)
Parameter
Name Description
other SetTablePrimaryKey
Returns
Type Description
SetTablePrimaryKey.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SetTablePrimaryKey.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SetTablePrimaryKey.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SetTablePrimaryKey.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SetTablePrimaryKey.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SetTablePrimaryKey.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SetTablePrimaryKey.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SetTablePrimaryKey.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The primaryKey to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for primaryKey to set.

Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The primaryKeyColumns to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SetTablePrimaryKey.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SetTablePrimaryKey.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SetTablePrimaryKey.Builder
Overrides