Class ColumnEntity.Builder (2.42.0)

public static final class ColumnEntity.Builder extends GeneratedMessageV3.Builder<ColumnEntity.Builder> implements ColumnEntityOrBuilder

Column is not used as an independent entity, it is retrieved as part of a Table entity.

Protobuf type google.cloud.clouddms.v1.ColumnEntity

Static Methods

getDescriptor()

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

Methods

addAllSetValues(Iterable<String> values)

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

Specifies the list of values allowed in the column. Only used for set data type.

repeated string set_values = 15;

Parameter
Name Description
values Iterable<String>

The setValues to add.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addSetValues(String value)

public ColumnEntity.Builder addSetValues(String value)

Specifies the list of values allowed in the column. Only used for set data type.

repeated string set_values = 15;

Parameter
Name Description
value String

The setValues to add.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

addSetValuesBytes(ByteString value)

public ColumnEntity.Builder addSetValuesBytes(ByteString value)

Specifies the list of values allowed in the column. Only used for set data type.

repeated string set_values = 15;

Parameter
Name Description
value ByteString

The bytes of the setValues to add.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

build()

public ColumnEntity build()
Returns
Type Description
ColumnEntity

buildPartial()

public ColumnEntity buildPartial()
Returns
Type Description
ColumnEntity

clear()

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

clearArray()

public ColumnEntity.Builder clearArray()

Is the column of array type.

bool array = 9;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearArrayLength()

public ColumnEntity.Builder clearArrayLength()

If the column is array, of which length.

int32 array_length = 10;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearAutoGenerated()

public ColumnEntity.Builder clearAutoGenerated()

Is the column auto-generated/identity.

bool auto_generated = 12;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearCharset()

public ColumnEntity.Builder clearCharset()

Charset override - instead of table level charset.

string charset = 3;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearCollation()

public ColumnEntity.Builder clearCollation()

Collation override - instead of table level collation.

string collation = 4;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearComment()

public ColumnEntity.Builder clearComment()

Comment associated with the column.

string comment = 16;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearCustomFeatures()

public ColumnEntity.Builder clearCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Returns
Type Description
ColumnEntity.Builder

clearDataType()

public ColumnEntity.Builder clearDataType()

Column data type.

string data_type = 2;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearDefaultValue()

public ColumnEntity.Builder clearDefaultValue()

Default value of the column.

string default_value = 18;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFractionalSecondsPrecision()

public ColumnEntity.Builder clearFractionalSecondsPrecision()

Column fractional second precision - used for timestamp based datatypes.

int32 fractional_seconds_precision = 8;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearLength()

public ColumnEntity.Builder clearLength()

Column length - e.g. varchar (50).

int64 length = 5;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearName()

public ColumnEntity.Builder clearName()

Column name.

string name = 1;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearNullable()

public ColumnEntity.Builder clearNullable()

Is the column nullable.

bool nullable = 11;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOrdinalPosition()

public ColumnEntity.Builder clearOrdinalPosition()

Column order in the table.

int32 ordinal_position = 17;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearPrecision()

public ColumnEntity.Builder clearPrecision()

Column precision - when relevant.

int32 precision = 6;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearScale()

public ColumnEntity.Builder clearScale()

Column scale - when relevant.

int32 scale = 7;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearSetValues()

public ColumnEntity.Builder clearSetValues()

Specifies the list of values allowed in the column. Only used for set data type.

repeated string set_values = 15;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clearUdt()

public ColumnEntity.Builder clearUdt()

Is the column a UDT.

bool udt = 13;

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

clone()

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

getArray()

public boolean getArray()

Is the column of array type.

bool array = 9;

Returns
Type Description
boolean

The array.

getArrayLength()

public int getArrayLength()

If the column is array, of which length.

int32 array_length = 10;

Returns
Type Description
int

The arrayLength.

getAutoGenerated()

public boolean getAutoGenerated()

Is the column auto-generated/identity.

bool auto_generated = 12;

Returns
Type Description
boolean

The autoGenerated.

getCharset()

public String getCharset()

Charset override - instead of table level charset.

string charset = 3;

Returns
Type Description
String

The charset.

getCharsetBytes()

public ByteString getCharsetBytes()

Charset override - instead of table level charset.

string charset = 3;

Returns
Type Description
ByteString

The bytes for charset.

getCollation()

public String getCollation()

Collation override - instead of table level collation.

string collation = 4;

Returns
Type Description
String

The collation.

getCollationBytes()

public ByteString getCollationBytes()

Collation override - instead of table level collation.

string collation = 4;

Returns
Type Description
ByteString

The bytes for collation.

getComment()

public String getComment()

Comment associated with the column.

string comment = 16;

Returns
Type Description
String

The comment.

getCommentBytes()

public ByteString getCommentBytes()

Comment associated with the column.

string comment = 16;

Returns
Type Description
ByteString

The bytes for comment.

getCustomFeatures()

public Struct getCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Returns
Type Description
Struct

The customFeatures.

getCustomFeaturesBuilder()

public Struct.Builder getCustomFeaturesBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Returns
Type Description
Builder

getCustomFeaturesOrBuilder()

public StructOrBuilder getCustomFeaturesOrBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Returns
Type Description
StructOrBuilder

getDataType()

public String getDataType()

Column data type.

string data_type = 2;

Returns
Type Description
String

The dataType.

getDataTypeBytes()

public ByteString getDataTypeBytes()

Column data type.

string data_type = 2;

Returns
Type Description
ByteString

The bytes for dataType.

getDefaultInstanceForType()

public ColumnEntity getDefaultInstanceForType()
Returns
Type Description
ColumnEntity

getDefaultValue()

public String getDefaultValue()

Default value of the column.

string default_value = 18;

Returns
Type Description
String

The defaultValue.

getDefaultValueBytes()

public ByteString getDefaultValueBytes()

Default value of the column.

string default_value = 18;

Returns
Type Description
ByteString

The bytes for defaultValue.

getDescriptorForType()

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

getFractionalSecondsPrecision()

public int getFractionalSecondsPrecision()

Column fractional second precision - used for timestamp based datatypes.

int32 fractional_seconds_precision = 8;

Returns
Type Description
int

The fractionalSecondsPrecision.

getLength()

public long getLength()

Column length - e.g. varchar (50).

int64 length = 5;

Returns
Type Description
long

The length.

getName()

public String getName()

Column name.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Column name.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getNullable()

public boolean getNullable()

Is the column nullable.

bool nullable = 11;

Returns
Type Description
boolean

The nullable.

getOrdinalPosition()

public int getOrdinalPosition()

Column order in the table.

int32 ordinal_position = 17;

Returns
Type Description
int

The ordinalPosition.

getPrecision()

public int getPrecision()

Column precision - when relevant.

int32 precision = 6;

Returns
Type Description
int

The precision.

getScale()

public int getScale()

Column scale - when relevant.

int32 scale = 7;

Returns
Type Description
int

The scale.

getSetValues(int index)

public String getSetValues(int index)

Specifies the list of values allowed in the column. Only used for set data type.

repeated string set_values = 15;

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)

Specifies the list of values allowed in the column. Only used for set data type.

repeated string set_values = 15;

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()

Specifies the list of values allowed in the column. Only used for set data type.

repeated string set_values = 15;

Returns
Type Description
int

The count of setValues.

getSetValuesList()

public ProtocolStringList getSetValuesList()

Specifies the list of values allowed in the column. Only used for set data type.

repeated string set_values = 15;

Returns
Type Description
ProtocolStringList

A list containing the setValues.

getUdt()

public boolean getUdt()

Is the column a UDT.

bool udt = 13;

Returns
Type Description
boolean

The udt.

hasCustomFeatures()

public boolean hasCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

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 ColumnEntity.Builder mergeCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Parameter
Name Description
value Struct
Returns
Type Description
ColumnEntity.Builder

mergeFrom(ColumnEntity other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setArray(boolean value)

public ColumnEntity.Builder setArray(boolean value)

Is the column of array type.

bool array = 9;

Parameter
Name Description
value boolean

The array to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setArrayLength(int value)

public ColumnEntity.Builder setArrayLength(int value)

If the column is array, of which length.

int32 array_length = 10;

Parameter
Name Description
value int

The arrayLength to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setAutoGenerated(boolean value)

public ColumnEntity.Builder setAutoGenerated(boolean value)

Is the column auto-generated/identity.

bool auto_generated = 12;

Parameter
Name Description
value boolean

The autoGenerated to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setCharset(String value)

public ColumnEntity.Builder setCharset(String value)

Charset override - instead of table level charset.

string charset = 3;

Parameter
Name Description
value String

The charset to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setCharsetBytes(ByteString value)

public ColumnEntity.Builder setCharsetBytes(ByteString value)

Charset override - instead of table level charset.

string charset = 3;

Parameter
Name Description
value ByteString

The bytes for charset to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setCollation(String value)

public ColumnEntity.Builder setCollation(String value)

Collation override - instead of table level collation.

string collation = 4;

Parameter
Name Description
value String

The collation to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setCollationBytes(ByteString value)

public ColumnEntity.Builder setCollationBytes(ByteString value)

Collation override - instead of table level collation.

string collation = 4;

Parameter
Name Description
value ByteString

The bytes for collation to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setComment(String value)

public ColumnEntity.Builder setComment(String value)

Comment associated with the column.

string comment = 16;

Parameter
Name Description
value String

The comment to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setCommentBytes(ByteString value)

public ColumnEntity.Builder setCommentBytes(ByteString value)

Comment associated with the column.

string comment = 16;

Parameter
Name Description
value ByteString

The bytes for comment to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setCustomFeatures(Struct value)

public ColumnEntity.Builder setCustomFeatures(Struct value)

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Parameter
Name Description
value Struct
Returns
Type Description
ColumnEntity.Builder

setCustomFeatures(Struct.Builder builderForValue)

public ColumnEntity.Builder setCustomFeatures(Struct.Builder builderForValue)

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ColumnEntity.Builder

setDataType(String value)

public ColumnEntity.Builder setDataType(String value)

Column data type.

string data_type = 2;

Parameter
Name Description
value String

The dataType to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setDataTypeBytes(ByteString value)

public ColumnEntity.Builder setDataTypeBytes(ByteString value)

Column data type.

string data_type = 2;

Parameter
Name Description
value ByteString

The bytes for dataType to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setDefaultValue(String value)

public ColumnEntity.Builder setDefaultValue(String value)

Default value of the column.

string default_value = 18;

Parameter
Name Description
value String

The defaultValue to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setDefaultValueBytes(ByteString value)

public ColumnEntity.Builder setDefaultValueBytes(ByteString value)

Default value of the column.

string default_value = 18;

Parameter
Name Description
value ByteString

The bytes for defaultValue to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFractionalSecondsPrecision(int value)

public ColumnEntity.Builder setFractionalSecondsPrecision(int value)

Column fractional second precision - used for timestamp based datatypes.

int32 fractional_seconds_precision = 8;

Parameter
Name Description
value int

The fractionalSecondsPrecision to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setLength(long value)

public ColumnEntity.Builder setLength(long value)

Column length - e.g. varchar (50).

int64 length = 5;

Parameter
Name Description
value long

The length to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setName(String value)

public ColumnEntity.Builder setName(String value)

Column name.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ColumnEntity.Builder setNameBytes(ByteString value)

Column name.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setNullable(boolean value)

public ColumnEntity.Builder setNullable(boolean value)

Is the column nullable.

bool nullable = 11;

Parameter
Name Description
value boolean

The nullable to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setOrdinalPosition(int value)

public ColumnEntity.Builder setOrdinalPosition(int value)

Column order in the table.

int32 ordinal_position = 17;

Parameter
Name Description
value int

The ordinalPosition to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setPrecision(int value)

public ColumnEntity.Builder setPrecision(int value)

Column precision - when relevant.

int32 precision = 6;

Parameter
Name Description
value int

The precision to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

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

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

setScale(int value)

public ColumnEntity.Builder setScale(int value)

Column scale - when relevant.

int32 scale = 7;

Parameter
Name Description
value int

The scale to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setSetValues(int index, String value)

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

Specifies the list of values allowed in the column. Only used for set data type.

repeated string set_values = 15;

Parameters
Name Description
index int

The index to set the value at.

value String

The setValues to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setUdt(boolean value)

public ColumnEntity.Builder setUdt(boolean value)

Is the column a UDT.

bool udt = 13;

Parameter
Name Description
value boolean

The udt to set.

Returns
Type Description
ColumnEntity.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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