Class SingleColumnChange.Builder (2.45.0)

public static final class SingleColumnChange.Builder extends GeneratedMessageV3.Builder<SingleColumnChange.Builder> implements SingleColumnChangeOrBuilder

Options to configure rule type SingleColumnChange. The rule is used to change the properties of a column.

The rule filter field can refer to one entity.

The rule scope can be one of: Column.

When using this rule, if a field is not specified than the destination column's configuration will be the same as the one in the source column..

Protobuf type google.cloud.clouddms.v1.SingleColumnChange

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSetValues(Iterable<String> values)

public SingleColumnChange.Builder addAllSetValues(Iterable<String> values)

Optional. Specifies the list of values allowed in the column.

repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The setValues to add.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSetValues(String value)

public SingleColumnChange.Builder addSetValues(String value)

Optional. Specifies the list of values allowed in the column.

repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The setValues to add.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

addSetValuesBytes(ByteString value)

public SingleColumnChange.Builder addSetValuesBytes(ByteString value)

Optional. Specifies the list of values allowed in the column.

repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the setValues to add.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

build()

public SingleColumnChange build()
Returns
Type Description
SingleColumnChange

buildPartial()

public SingleColumnChange buildPartial()
Returns
Type Description
SingleColumnChange

clear()

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

clearArray()

public SingleColumnChange.Builder clearArray()

Optional. Is the column of array type.

bool array = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearArrayLength()

public SingleColumnChange.Builder clearArrayLength()

Optional. The length of the array, only relevant if the column type is an array.

int32 array_length = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearAutoGenerated()

public SingleColumnChange.Builder clearAutoGenerated()

Optional. Is the column auto-generated/identity.

bool auto_generated = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearCharset()

public SingleColumnChange.Builder clearCharset()

Optional. Charset override - instead of table level charset.

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

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearCollation()

public SingleColumnChange.Builder clearCollation()

Optional. Collation override - instead of table level collation.

string collation = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearComment()

public SingleColumnChange.Builder clearComment()

Optional. Comment associated with the column.

string comment = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearCustomFeatures()

public SingleColumnChange.Builder clearCustomFeatures()

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

clearDataType()

public SingleColumnChange.Builder clearDataType()

Optional. Column data type name.

string data_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFractionalSecondsPrecision()

public SingleColumnChange.Builder clearFractionalSecondsPrecision()

Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2)

  • when relevant.

int32 fractional_seconds_precision = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearLength()

public SingleColumnChange.Builder clearLength()

Optional. Column length - e.g. 50 as in varchar (50) - when relevant.

int64 length = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearNullable()

public SingleColumnChange.Builder clearNullable()

Optional. Is the column nullable.

bool nullable = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrecision()

public SingleColumnChange.Builder clearPrecision()

Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.

int32 precision = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearScale()

public SingleColumnChange.Builder clearScale()

Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.

int32 scale = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearSetValues()

public SingleColumnChange.Builder clearSetValues()

Optional. Specifies the list of values allowed in the column.

repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clearUdt()

public SingleColumnChange.Builder clearUdt()

Optional. Is the column a UDT (User-defined Type).

bool udt = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

clone()

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

getArray()

public boolean getArray()

Optional. Is the column of array type.

bool array = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The array.

getArrayLength()

public int getArrayLength()

Optional. The length of the array, only relevant if the column type is an array.

int32 array_length = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The arrayLength.

getAutoGenerated()

public boolean getAutoGenerated()

Optional. Is the column auto-generated/identity.

bool auto_generated = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The autoGenerated.

getCharset()

public String getCharset()

Optional. Charset override - instead of table level charset.

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

Returns
Type Description
String

The charset.

getCharsetBytes()

public ByteString getCharsetBytes()

Optional. Charset override - instead of table level charset.

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

Returns
Type Description
ByteString

The bytes for charset.

getCollation()

public String getCollation()

Optional. Collation override - instead of table level collation.

string collation = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The collation.

getCollationBytes()

public ByteString getCollationBytes()

Optional. Collation override - instead of table level collation.

string collation = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for collation.

getComment()

public String getComment()

Optional. Comment associated with the column.

string comment = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The comment.

getCommentBytes()

public ByteString getCommentBytes()

Optional. Comment associated with the column.

string comment = 15 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for comment.

getCustomFeatures()

public Struct getCustomFeatures()

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The customFeatures.

getCustomFeaturesBuilder()

public Struct.Builder getCustomFeaturesBuilder()

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getCustomFeaturesOrBuilder()

public StructOrBuilder getCustomFeaturesOrBuilder()

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getDataType()

public String getDataType()

Optional. Column data type name.

string data_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The dataType.

getDataTypeBytes()

public ByteString getDataTypeBytes()

Optional. Column data type name.

string data_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for dataType.

getDefaultInstanceForType()

public SingleColumnChange getDefaultInstanceForType()
Returns
Type Description
SingleColumnChange

getDescriptorForType()

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

getFractionalSecondsPrecision()

public int getFractionalSecondsPrecision()

Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2)

  • when relevant.

int32 fractional_seconds_precision = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The fractionalSecondsPrecision.

getLength()

public long getLength()

Optional. Column length - e.g. 50 as in varchar (50) - when relevant.

int64 length = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The length.

getNullable()

public boolean getNullable()

Optional. Is the column nullable.

bool nullable = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The nullable.

getPrecision()

public int getPrecision()

Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.

int32 precision = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The precision.

getScale()

public int getScale()

Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.

int32 scale = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The scale.

getSetValues(int index)

public String getSetValues(int index)

Optional. Specifies the list of values allowed in the column.

repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The setValues at the given index.

getSetValuesBytes(int index)

public ByteString getSetValuesBytes(int index)

Optional. Specifies the list of values allowed in the column.

repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the setValues at the given index.

getSetValuesCount()

public int getSetValuesCount()

Optional. Specifies the list of values allowed in the column.

repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of setValues.

getSetValuesList()

public ProtocolStringList getSetValuesList()

Optional. Specifies the list of values allowed in the column.

repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the setValues.

getUdt()

public boolean getUdt()

Optional. Is the column a UDT (User-defined Type).

bool udt = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The udt.

hasCustomFeatures()

public boolean hasCustomFeatures()

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the customFeatures field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCustomFeatures(Struct value)

public SingleColumnChange.Builder mergeCustomFeatures(Struct value)

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
SingleColumnChange.Builder

mergeFrom(SingleColumnChange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setArray(boolean value)

public SingleColumnChange.Builder setArray(boolean value)

Optional. Is the column of array type.

bool array = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The array to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setArrayLength(int value)

public SingleColumnChange.Builder setArrayLength(int value)

Optional. The length of the array, only relevant if the column type is an array.

int32 array_length = 9 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The arrayLength to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setAutoGenerated(boolean value)

public SingleColumnChange.Builder setAutoGenerated(boolean value)

Optional. Is the column auto-generated/identity.

bool auto_generated = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The autoGenerated to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setCharset(String value)

public SingleColumnChange.Builder setCharset(String value)

Optional. Charset override - instead of table level charset.

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

Parameter
Name Description
value String

The charset to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setCharsetBytes(ByteString value)

public SingleColumnChange.Builder setCharsetBytes(ByteString value)

Optional. Charset override - instead of table level charset.

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

Parameter
Name Description
value ByteString

The bytes for charset to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setCollation(String value)

public SingleColumnChange.Builder setCollation(String value)

Optional. Collation override - instead of table level collation.

string collation = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The collation to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setCollationBytes(ByteString value)

public SingleColumnChange.Builder setCollationBytes(ByteString value)

Optional. Collation override - instead of table level collation.

string collation = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for collation to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setComment(String value)

public SingleColumnChange.Builder setComment(String value)

Optional. Comment associated with the column.

string comment = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The comment to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setCommentBytes(ByteString value)

public SingleColumnChange.Builder setCommentBytes(ByteString value)

Optional. Comment associated with the column.

string comment = 15 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for comment to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setCustomFeatures(Struct value)

public SingleColumnChange.Builder setCustomFeatures(Struct value)

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Struct
Returns
Type Description
SingleColumnChange.Builder

setCustomFeatures(Struct.Builder builderForValue)

public SingleColumnChange.Builder setCustomFeatures(Struct.Builder builderForValue)

Optional. Custom engine specific features.

.google.protobuf.Struct custom_features = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SingleColumnChange.Builder

setDataType(String value)

public SingleColumnChange.Builder setDataType(String value)

Optional. Column data type name.

string data_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The dataType to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setDataTypeBytes(ByteString value)

public SingleColumnChange.Builder setDataTypeBytes(ByteString value)

Optional. Column data type name.

string data_type = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for dataType to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFractionalSecondsPrecision(int value)

public SingleColumnChange.Builder setFractionalSecondsPrecision(int value)

Optional. Column fractional seconds precision - e.g. 2 as in timestamp (2)

  • when relevant.

int32 fractional_seconds_precision = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The fractionalSecondsPrecision to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setLength(long value)

public SingleColumnChange.Builder setLength(long value)

Optional. Column length - e.g. 50 as in varchar (50) - when relevant.

int64 length = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The length to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setNullable(boolean value)

public SingleColumnChange.Builder setNullable(boolean value)

Optional. Is the column nullable.

bool nullable = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The nullable to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setPrecision(int value)

public SingleColumnChange.Builder setPrecision(int value)

Optional. Column precision - e.g. 8 as in double (8,2) - when relevant.

int32 precision = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The precision to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

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

public SingleColumnChange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SingleColumnChange.Builder
Overrides

setScale(int value)

public SingleColumnChange.Builder setScale(int value)

Optional. Column scale - e.g. 2 as in double (8,2) - when relevant.

int32 scale = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The scale to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setSetValues(int index, String value)

public SingleColumnChange.Builder setSetValues(int index, String value)

Optional. Specifies the list of values allowed in the column.

repeated string set_values = 14 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The setValues to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setUdt(boolean value)

public SingleColumnChange.Builder setUdt(boolean value)

Optional. Is the column a UDT (User-defined Type).

bool udt = 12 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The udt to set.

Returns
Type Description
SingleColumnChange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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