Class ColumnEntity

  • All Implemented Interfaces:
    ColumnEntityOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ColumnEntity
    extends com.google.protobuf.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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Column name.
         
        string name = 1;
        Specified by:
        getNameBytes in interface ColumnEntityOrBuilder
        Returns:
        The bytes for name.
      • getDataTypeBytes

        public com.google.protobuf.ByteString getDataTypeBytes()
         Column data type.
         
        string data_type = 2;
        Specified by:
        getDataTypeBytes in interface ColumnEntityOrBuilder
        Returns:
        The bytes for dataType.
      • getCharset

        public String getCharset()
         Charset override - instead of table level charset.
         
        string charset = 3;
        Specified by:
        getCharset in interface ColumnEntityOrBuilder
        Returns:
        The charset.
      • getCharsetBytes

        public com.google.protobuf.ByteString getCharsetBytes()
         Charset override - instead of table level charset.
         
        string charset = 3;
        Specified by:
        getCharsetBytes in interface ColumnEntityOrBuilder
        Returns:
        The bytes for charset.
      • getCollation

        public String getCollation()
         Collation override - instead of table level collation.
         
        string collation = 4;
        Specified by:
        getCollation in interface ColumnEntityOrBuilder
        Returns:
        The collation.
      • getCollationBytes

        public com.google.protobuf.ByteString getCollationBytes()
         Collation override - instead of table level collation.
         
        string collation = 4;
        Specified by:
        getCollationBytes in interface ColumnEntityOrBuilder
        Returns:
        The bytes for collation.
      • getLength

        public long getLength()
         Column length - e.g. varchar (50).
         
        int64 length = 5;
        Specified by:
        getLength in interface ColumnEntityOrBuilder
        Returns:
        The length.
      • getPrecision

        public int getPrecision()
         Column precision - when relevant.
         
        int32 precision = 6;
        Specified by:
        getPrecision in interface ColumnEntityOrBuilder
        Returns:
        The precision.
      • getScale

        public int getScale()
         Column scale - when relevant.
         
        int32 scale = 7;
        Specified by:
        getScale in interface ColumnEntityOrBuilder
        Returns:
        The scale.
      • getFractionalSecondsPrecision

        public int getFractionalSecondsPrecision()
         Column fractional second precision - used for timestamp based datatypes.
         
        int32 fractional_seconds_precision = 8;
        Specified by:
        getFractionalSecondsPrecision in interface ColumnEntityOrBuilder
        Returns:
        The fractionalSecondsPrecision.
      • getArray

        public boolean getArray()
         Is the column of array type.
         
        bool array = 9;
        Specified by:
        getArray in interface ColumnEntityOrBuilder
        Returns:
        The array.
      • getArrayLength

        public int getArrayLength()
         If the column is array, of which length.
         
        int32 array_length = 10;
        Specified by:
        getArrayLength in interface ColumnEntityOrBuilder
        Returns:
        The arrayLength.
      • getNullable

        public boolean getNullable()
         Is the column nullable.
         
        bool nullable = 11;
        Specified by:
        getNullable in interface ColumnEntityOrBuilder
        Returns:
        The nullable.
      • getAutoGenerated

        public boolean getAutoGenerated()
         Is the column auto-generated/identity.
         
        bool auto_generated = 12;
        Specified by:
        getAutoGenerated in interface ColumnEntityOrBuilder
        Returns:
        The autoGenerated.
      • getUdt

        public boolean getUdt()
         Is the column a UDT.
         
        bool udt = 13;
        Specified by:
        getUdt in interface ColumnEntityOrBuilder
        Returns:
        The udt.
      • hasCustomFeatures

        public boolean hasCustomFeatures()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 14;
        Specified by:
        hasCustomFeatures in interface ColumnEntityOrBuilder
        Returns:
        Whether the customFeatures field is set.
      • getCustomFeatures

        public com.google.protobuf.Struct getCustomFeatures()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 14;
        Specified by:
        getCustomFeatures in interface ColumnEntityOrBuilder
        Returns:
        The customFeatures.
      • getCustomFeaturesOrBuilder

        public com.google.protobuf.StructOrBuilder getCustomFeaturesOrBuilder()
         Custom engine specific features.
         
        .google.protobuf.Struct custom_features = 14;
        Specified by:
        getCustomFeaturesOrBuilder in interface ColumnEntityOrBuilder
      • getSetValuesList

        public com.google.protobuf.ProtocolStringList getSetValuesList()
         Specifies the list of values allowed in the column.
         Only used for set data type.
         
        repeated string set_values = 15;
        Specified by:
        getSetValuesList in interface ColumnEntityOrBuilder
        Returns:
        A list containing the setValues.
      • getSetValuesCount

        public int getSetValuesCount()
         Specifies the list of values allowed in the column.
         Only used for set data type.
         
        repeated string set_values = 15;
        Specified by:
        getSetValuesCount in interface ColumnEntityOrBuilder
        Returns:
        The count of setValues.
      • getSetValues

        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;
        Specified by:
        getSetValues in interface ColumnEntityOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The setValues at the given index.
      • getSetValuesBytes

        public com.google.protobuf.ByteString getSetValuesBytes​(int index)
         Specifies the list of values allowed in the column.
         Only used for set data type.
         
        repeated string set_values = 15;
        Specified by:
        getSetValuesBytes in interface ColumnEntityOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the setValues at the given index.
      • getCommentBytes

        public com.google.protobuf.ByteString getCommentBytes()
         Comment associated with the column.
         
        string comment = 16;
        Specified by:
        getCommentBytes in interface ColumnEntityOrBuilder
        Returns:
        The bytes for comment.
      • getOrdinalPosition

        public int getOrdinalPosition()
         Column order in the table.
         
        int32 ordinal_position = 17;
        Specified by:
        getOrdinalPosition in interface ColumnEntityOrBuilder
        Returns:
        The ordinalPosition.
      • getDefaultValueBytes

        public com.google.protobuf.ByteString getDefaultValueBytes()
         Default value of the column.
         
        string default_value = 18;
        Specified by:
        getDefaultValueBytes in interface ColumnEntityOrBuilder
        Returns:
        The bytes for defaultValue.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ColumnEntity parseFrom​(ByteBuffer data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ColumnEntity parseFrom​(ByteBuffer data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ColumnEntity parseFrom​(com.google.protobuf.ByteString data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ColumnEntity parseFrom​(com.google.protobuf.ByteString data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ColumnEntity parseFrom​(byte[] data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ColumnEntity parseFrom​(byte[] data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ColumnEntity parseFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Throws:
        IOException
      • newBuilderForType

        public ColumnEntity.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ColumnEntity.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ColumnEntity.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static ColumnEntity getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<ColumnEntity> parser()
      • getParserForType

        public com.google.protobuf.Parser<ColumnEntity> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ColumnEntity getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder