Class ColumnEntity (2.18.0)

public final class ColumnEntity extends GeneratedMessageV3 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 Fields

ARRAY_FIELD_NUMBER

public static final int ARRAY_FIELD_NUMBER
Field Value
TypeDescription
int

ARRAY_LENGTH_FIELD_NUMBER

public static final int ARRAY_LENGTH_FIELD_NUMBER
Field Value
TypeDescription
int

AUTO_GENERATED_FIELD_NUMBER

public static final int AUTO_GENERATED_FIELD_NUMBER
Field Value
TypeDescription
int

CHARSET_FIELD_NUMBER

public static final int CHARSET_FIELD_NUMBER
Field Value
TypeDescription
int

COLLATION_FIELD_NUMBER

public static final int COLLATION_FIELD_NUMBER
Field Value
TypeDescription
int

COMMENT_FIELD_NUMBER

public static final int COMMENT_FIELD_NUMBER
Field Value
TypeDescription
int

CUSTOM_FEATURES_FIELD_NUMBER

public static final int CUSTOM_FEATURES_FIELD_NUMBER
Field Value
TypeDescription
int

DATA_TYPE_FIELD_NUMBER

public static final int DATA_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

DEFAULT_VALUE_FIELD_NUMBER

public static final int DEFAULT_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

FRACTIONAL_SECONDS_PRECISION_FIELD_NUMBER

public static final int FRACTIONAL_SECONDS_PRECISION_FIELD_NUMBER
Field Value
TypeDescription
int

LENGTH_FIELD_NUMBER

public static final int LENGTH_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NULLABLE_FIELD_NUMBER

public static final int NULLABLE_FIELD_NUMBER
Field Value
TypeDescription
int

ORDINAL_POSITION_FIELD_NUMBER

public static final int ORDINAL_POSITION_FIELD_NUMBER
Field Value
TypeDescription
int

PRECISION_FIELD_NUMBER

public static final int PRECISION_FIELD_NUMBER
Field Value
TypeDescription
int

SCALE_FIELD_NUMBER

public static final int SCALE_FIELD_NUMBER
Field Value
TypeDescription
int

SET_VALUES_FIELD_NUMBER

public static final int SET_VALUES_FIELD_NUMBER
Field Value
TypeDescription
int

UDT_FIELD_NUMBER

public static final int UDT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ColumnEntity getDefaultInstance()
Returns
TypeDescription
ColumnEntity

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ColumnEntity.Builder newBuilder()
Returns
TypeDescription
ColumnEntity.Builder

newBuilder(ColumnEntity prototype)

public static ColumnEntity.Builder newBuilder(ColumnEntity prototype)
Parameter
NameDescription
prototypeColumnEntity
Returns
TypeDescription
ColumnEntity.Builder

parseDelimitedFrom(InputStream input)

public static ColumnEntity parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ColumnEntity
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ColumnEntity parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnEntity
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ColumnEntity parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ColumnEntity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ColumnEntity parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnEntity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ColumnEntity parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ColumnEntity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ColumnEntity parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnEntity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ColumnEntity parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ColumnEntity
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ColumnEntity parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnEntity
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ColumnEntity parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ColumnEntity
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ColumnEntity parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnEntity
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ColumnEntity parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ColumnEntity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ColumnEntity parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ColumnEntity
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ColumnEntity> parser()
Returns
TypeDescription
Parser<ColumnEntity>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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.

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.

getParserForType()

public Parser<ColumnEntity> getParserForType()
Returns
TypeDescription
Parser<ColumnEntity>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ColumnEntity.Builder newBuilderForType()
Returns
TypeDescription
ColumnEntity.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ColumnEntity.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ColumnEntity.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ColumnEntity.Builder toBuilder()
Returns
TypeDescription
ColumnEntity.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException