Class SingleColumnChange.Builder (2.38.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
TypeDescription
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
NameDescription
valuesIterable<String>

The setValues to add.

Returns
TypeDescription
SingleColumnChange.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SingleColumnChange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The setValues to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the setValues to add.

Returns
TypeDescription
SingleColumnChange.Builder

This builder for chaining.

build()

public SingleColumnChange build()
Returns
TypeDescription
SingleColumnChange

buildPartial()

public SingleColumnChange buildPartial()
Returns
TypeDescription
SingleColumnChange

clear()

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

clearArray()

public SingleColumnChange.Builder clearArray()

Optional. Is the column of array type.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SingleColumnChange.Builder

clearDataType()

public SingleColumnChange.Builder clearDataType()

Optional. Column data type name.

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

Returns
TypeDescription
SingleColumnChange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public SingleColumnChange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SingleColumnChange.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SingleColumnChange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
SingleColumnChange.Builder

This builder for chaining.

clone()

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

getArray()

public boolean getArray()

Optional. Is the column of array type.

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

Returns
TypeDescription
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
TypeDescription
int

The arrayLength.

getAutoGenerated()

public boolean getAutoGenerated()

Optional. Is the column auto-generated/identity.

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

Returns
TypeDescription
boolean

The autoGenerated.

getCharset()

public String getCharset()

Optional. Charset override - instead of table level charset.

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

Returns
TypeDescription
String

The charset.

getCharsetBytes()

public ByteString getCharsetBytes()

Optional. Charset override - instead of table level charset.

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

Returns
TypeDescription
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
TypeDescription
String

The collation.

getCollationBytes()

public ByteString getCollationBytes()

Optional. Collation override - instead of table level collation.

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

Returns
TypeDescription
ByteString

The bytes for collation.

getComment()

public String getComment()

Optional. Comment associated with the column.

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

Returns
TypeDescription
String

The comment.

getCommentBytes()

public ByteString getCommentBytes()

Optional. Comment associated with the column.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
Builder

getCustomFeaturesOrBuilder()

public StructOrBuilder getCustomFeaturesOrBuilder()

Optional. Custom engine specific features.

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

Returns
TypeDescription
StructOrBuilder

getDataType()

public String getDataType()

Optional. Column data type name.

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

Returns
TypeDescription
String

The dataType.

getDataTypeBytes()

public ByteString getDataTypeBytes()

Optional. Column data type name.

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

Returns
TypeDescription
ByteString

The bytes for dataType.

getDefaultInstanceForType()

public SingleColumnChange getDefaultInstanceForType()
Returns
TypeDescription
SingleColumnChange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
long

The length.

getNullable()

public boolean getNullable()

Optional. Is the column nullable.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The udt.

hasCustomFeatures()

public boolean hasCustomFeatures()

Optional. Custom engine specific features.

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

Returns
TypeDescription
boolean

Whether the customFeatures field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
SingleColumnChange.Builder

mergeFrom(SingleColumnChange other)

public SingleColumnChange.Builder mergeFrom(SingleColumnChange other)
Parameter
NameDescription
otherSingleColumnChange
Returns
TypeDescription
SingleColumnChange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SingleColumnChange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The array to set.

Returns
TypeDescription
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
NameDescription
valueint

The arrayLength to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The autoGenerated to set.

Returns
TypeDescription
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
NameDescription
valueString

The charset to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for charset to set.

Returns
TypeDescription
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
NameDescription
valueString

The collation to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for collation to set.

Returns
TypeDescription
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
NameDescription
valueString

The comment to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for comment to set.

Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueString

The dataType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for dataType to set.

Returns
TypeDescription
SingleColumnChange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public SingleColumnChange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The fractionalSecondsPrecision to set.

Returns
TypeDescription
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
NameDescription
valuelong

The length to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The nullable to set.

Returns
TypeDescription
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
NameDescription
valueint

The precision to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The scale to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The setValues to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The udt to set.

Returns
TypeDescription
SingleColumnChange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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