Class MysqlColumn

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

    public final class MysqlColumn
    extends com.google.protobuf.GeneratedMessageV3
    implements MysqlColumnOrBuilder
     MySQL Column.
     
    Protobuf type google.cloud.datastream.v1.MysqlColumn
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  MysqlColumn.Builder
      MySQL Column.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • 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
      • getColumnBytes

        public com.google.protobuf.ByteString getColumnBytes()
         Column name.
         
        string column = 1;
        Specified by:
        getColumnBytes in interface MysqlColumnOrBuilder
        Returns:
        The bytes for column.
      • getDataType

        public String getDataType()
         The MySQL data type. Full data types list can be found here:
         https://dev.mysql.com/doc/refman/8.0/en/data-types.html
         
        string data_type = 2;
        Specified by:
        getDataType in interface MysqlColumnOrBuilder
        Returns:
        The dataType.
      • getDataTypeBytes

        public com.google.protobuf.ByteString getDataTypeBytes()
         The MySQL data type. Full data types list can be found here:
         https://dev.mysql.com/doc/refman/8.0/en/data-types.html
         
        string data_type = 2;
        Specified by:
        getDataTypeBytes in interface MysqlColumnOrBuilder
        Returns:
        The bytes for dataType.
      • getLength

        public int getLength()
         Column length.
         
        int32 length = 3;
        Specified by:
        getLength in interface MysqlColumnOrBuilder
        Returns:
        The length.
      • getCollationBytes

        public com.google.protobuf.ByteString getCollationBytes()
         Column collation.
         
        string collation = 4;
        Specified by:
        getCollationBytes in interface MysqlColumnOrBuilder
        Returns:
        The bytes for collation.
      • getPrimaryKey

        public boolean getPrimaryKey()
         Whether or not the column represents a primary key.
         
        bool primary_key = 5;
        Specified by:
        getPrimaryKey in interface MysqlColumnOrBuilder
        Returns:
        The primaryKey.
      • getNullable

        public boolean getNullable()
         Whether or not the column can accept a null value.
         
        bool nullable = 6;
        Specified by:
        getNullable in interface MysqlColumnOrBuilder
        Returns:
        The nullable.
      • getOrdinalPosition

        public int getOrdinalPosition()
         The ordinal position of the column in the table.
         
        int32 ordinal_position = 7;
        Specified by:
        getOrdinalPosition in interface MysqlColumnOrBuilder
        Returns:
        The ordinalPosition.
      • getPrecision

        public int getPrecision()
         Column precision.
         
        int32 precision = 8;
        Specified by:
        getPrecision in interface MysqlColumnOrBuilder
        Returns:
        The precision.
      • getScale

        public int getScale()
         Column scale.
         
        int32 scale = 9;
        Specified by:
        getScale in interface MysqlColumnOrBuilder
        Returns:
        The scale.
      • 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 MysqlColumn parseFrom​(ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static MysqlColumn getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<MysqlColumn> 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 MysqlColumn getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder