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

The setValues to add.

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

The setValues to add.

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

The bytes of the setValues to add.

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

build()

public ColumnEntity build()
Returns
TypeDescription
ColumnEntity

buildPartial()

public ColumnEntity buildPartial()
Returns
TypeDescription
ColumnEntity

clear()

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

clearArray()

public ColumnEntity.Builder clearArray()

Is the column of array type.

bool array = 9;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearArrayLength()

public ColumnEntity.Builder clearArrayLength()

If the column is array, of which length.

int32 array_length = 10;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearAutoGenerated()

public ColumnEntity.Builder clearAutoGenerated()

Is the column auto-generated/identity.

bool auto_generated = 12;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearCharset()

public ColumnEntity.Builder clearCharset()

Charset override - instead of table level charset.

string charset = 3;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearCollation()

public ColumnEntity.Builder clearCollation()

Collation override - instead of table level collation.

string collation = 4;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearComment()

public ColumnEntity.Builder clearComment()

Comment associated with the column.

string comment = 16;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearCustomFeatures()

public ColumnEntity.Builder clearCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Returns
TypeDescription
ColumnEntity.Builder

clearDataType()

public ColumnEntity.Builder clearDataType()

Column data type.

string data_type = 2;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearDefaultValue()

public ColumnEntity.Builder clearDefaultValue()

Default value of the column.

string default_value = 18;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFractionalSecondsPrecision()

public ColumnEntity.Builder clearFractionalSecondsPrecision()

Column fractional second precision - used for timestamp based datatypes.

int32 fractional_seconds_precision = 8;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearLength()

public ColumnEntity.Builder clearLength()

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

int64 length = 5;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearName()

public ColumnEntity.Builder clearName()

Column name.

string name = 1;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearNullable()

public ColumnEntity.Builder clearNullable()

Is the column nullable.

bool nullable = 11;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOrdinalPosition()

public ColumnEntity.Builder clearOrdinalPosition()

Column order in the table.

int32 ordinal_position = 17;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearPrecision()

public ColumnEntity.Builder clearPrecision()

Column precision - when relevant.

int32 precision = 6;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clearScale()

public ColumnEntity.Builder clearScale()

Column scale - when relevant.

int32 scale = 7;

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

This builder for chaining.

clearUdt()

public ColumnEntity.Builder clearUdt()

Is the column a UDT.

bool udt = 13;

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

clone()

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

getArray()

public boolean getArray()

Is the column of array type.

bool array = 9;

Returns
TypeDescription
boolean

The array.

getArrayLength()

public int getArrayLength()

If the column is array, of which length.

int32 array_length = 10;

Returns
TypeDescription
int

The arrayLength.

getAutoGenerated()

public boolean getAutoGenerated()

Is the column auto-generated/identity.

bool auto_generated = 12;

Returns
TypeDescription
boolean

The autoGenerated.

getCharset()

public String getCharset()

Charset override - instead of table level charset.

string charset = 3;

Returns
TypeDescription
String

The charset.

getCharsetBytes()

public ByteString getCharsetBytes()

Charset override - instead of table level charset.

string charset = 3;

Returns
TypeDescription
ByteString

The bytes for charset.

getCollation()

public String getCollation()

Collation override - instead of table level collation.

string collation = 4;

Returns
TypeDescription
String

The collation.

getCollationBytes()

public ByteString getCollationBytes()

Collation override - instead of table level collation.

string collation = 4;

Returns
TypeDescription
ByteString

The bytes for collation.

getComment()

public String getComment()

Comment associated with the column.

string comment = 16;

Returns
TypeDescription
String

The comment.

getCommentBytes()

public ByteString getCommentBytes()

Comment associated with the column.

string comment = 16;

Returns
TypeDescription
ByteString

The bytes for comment.

getCustomFeatures()

public Struct getCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Returns
TypeDescription
Struct

The customFeatures.

getCustomFeaturesBuilder()

public Struct.Builder getCustomFeaturesBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Returns
TypeDescription
Builder

getCustomFeaturesOrBuilder()

public StructOrBuilder getCustomFeaturesOrBuilder()

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Returns
TypeDescription
StructOrBuilder

getDataType()

public String getDataType()

Column data type.

string data_type = 2;

Returns
TypeDescription
String

The dataType.

getDataTypeBytes()

public ByteString getDataTypeBytes()

Column data type.

string data_type = 2;

Returns
TypeDescription
ByteString

The bytes for dataType.

getDefaultInstanceForType()

public ColumnEntity getDefaultInstanceForType()
Returns
TypeDescription
ColumnEntity

getDefaultValue()

public String getDefaultValue()

Default value of the column.

string default_value = 18;

Returns
TypeDescription
String

The defaultValue.

getDefaultValueBytes()

public ByteString getDefaultValueBytes()

Default value of the column.

string default_value = 18;

Returns
TypeDescription
ByteString

The bytes for defaultValue.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFractionalSecondsPrecision()

public int getFractionalSecondsPrecision()

Column fractional second precision - used for timestamp based datatypes.

int32 fractional_seconds_precision = 8;

Returns
TypeDescription
int

The fractionalSecondsPrecision.

getLength()

public long getLength()

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

int64 length = 5;

Returns
TypeDescription
long

The length.

getName()

public String getName()

Column name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Column name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNullable()

public boolean getNullable()

Is the column nullable.

bool nullable = 11;

Returns
TypeDescription
boolean

The nullable.

getOrdinalPosition()

public int getOrdinalPosition()

Column order in the table.

int32 ordinal_position = 17;

Returns
TypeDescription
int

The ordinalPosition.

getPrecision()

public int getPrecision()

Column precision - when relevant.

int32 precision = 6;

Returns
TypeDescription
int

The precision.

getScale()

public int getScale()

Column scale - when relevant.

int32 scale = 7;

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

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

repeated string set_values = 15;

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

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

repeated string set_values = 15;

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

A list containing the setValues.

getUdt()

public boolean getUdt()

Is the column a UDT.

bool udt = 13;

Returns
TypeDescription
boolean

The udt.

hasCustomFeatures()

public boolean hasCustomFeatures()

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

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

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Parameter
NameDescription
valueStruct
Returns
TypeDescription
ColumnEntity.Builder

mergeFrom(ColumnEntity other)

public ColumnEntity.Builder mergeFrom(ColumnEntity other)
Parameter
NameDescription
otherColumnEntity
Returns
TypeDescription
ColumnEntity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setArray(boolean value)

public ColumnEntity.Builder setArray(boolean value)

Is the column of array type.

bool array = 9;

Parameter
NameDescription
valueboolean

The array to set.

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

The arrayLength to set.

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

The autoGenerated to set.

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

The charset to set.

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

The bytes for charset to set.

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

The collation to set.

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

The bytes for collation to set.

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

setComment(String value)

public ColumnEntity.Builder setComment(String value)

Comment associated with the column.

string comment = 16;

Parameter
NameDescription
valueString

The comment to set.

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

setCommentBytes(ByteString value)

public ColumnEntity.Builder setCommentBytes(ByteString value)

Comment associated with the column.

string comment = 16;

Parameter
NameDescription
valueByteString

The bytes for comment to set.

Returns
TypeDescription
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
NameDescription
valueStruct
Returns
TypeDescription
ColumnEntity.Builder

setCustomFeatures(Struct.Builder builderForValue)

public ColumnEntity.Builder setCustomFeatures(Struct.Builder builderForValue)

Custom engine specific features.

.google.protobuf.Struct custom_features = 14;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ColumnEntity.Builder

setDataType(String value)

public ColumnEntity.Builder setDataType(String value)

Column data type.

string data_type = 2;

Parameter
NameDescription
valueString

The dataType to set.

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

setDataTypeBytes(ByteString value)

public ColumnEntity.Builder setDataTypeBytes(ByteString value)

Column data type.

string data_type = 2;

Parameter
NameDescription
valueByteString

The bytes for dataType to set.

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

The defaultValue to set.

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

The bytes for defaultValue to set.

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The fractionalSecondsPrecision to set.

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

The length to set.

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

setName(String value)

public ColumnEntity.Builder setName(String value)

Column name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ColumnEntity.Builder setNameBytes(ByteString value)

Column name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

setNullable(boolean value)

public ColumnEntity.Builder setNullable(boolean value)

Is the column nullable.

bool nullable = 11;

Parameter
NameDescription
valueboolean

The nullable to set.

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

The ordinalPosition to set.

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

setPrecision(int value)

public ColumnEntity.Builder setPrecision(int value)

Column precision - when relevant.

int32 precision = 6;

Parameter
NameDescription
valueint

The precision to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ColumnEntity.Builder
Overrides

setScale(int value)

public ColumnEntity.Builder setScale(int value)

Column scale - when relevant.

int32 scale = 7;

Parameter
NameDescription
valueint

The scale to set.

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

The index to set the value at.

valueString

The setValues to set.

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

setUdt(boolean value)

public ColumnEntity.Builder setUdt(boolean value)

Is the column a UDT.

bool udt = 13;

Parameter
NameDescription
valueboolean

The udt to set.

Returns
TypeDescription
ColumnEntity.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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