Package com.mysql.cj.x.protobuf
Class MysqlxResultset.ColumnMetaData.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
com.mysql.cj.x.protobuf.MysqlxResultset.ColumnMetaData.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MysqlxResultset.ColumnMetaDataOrBuilder,java.lang.Cloneable
- Enclosing class:
- MysqlxResultset.ColumnMetaData
public static final class MysqlxResultset.ColumnMetaData.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder> implements MysqlxResultset.ColumnMetaDataOrBuilder
meta data of a Column
.. note:: the encoding used for the different ``bytes`` fields in the meta data is externally
controlled.
.. seealso:: https://dev.mysql.com/doc/refman/8.0/en/charset-connection.html
.. note::
The server may not set the ``original_{table|name}`` fields if they are equal to the plain
``{table|name}`` field.
A client has to reconstruct it like::
if .original_name is empty and .name is not empty:
.original_name = .name
if .original_table is empty and .table is not empty:
.original_table = .table
.. note::
``compact metadata format`` can be requested by the client. In that case only ``.type`` is set and
all other fields are empty.
:param type:
.. table:: Expected Datatype of Mysqlx.Resultset.Row per SQL Type for non NULL values
================= ============ ======= ========== ====== ========
SQL Type .type .length .frac_dig .flags .charset
================= ============ ======= ========== ====== ========
TINY SINT x
TINY UNSIGNED UINT x x
SHORT SINT x
SHORT UNSIGNED UINT x x
INT24 SINT x
INT24 UNSIGNED UINT x x
INT SINT x
INT UNSIGNED UINT x x
LONGLONG SINT x
LONGLONG UNSIGNED UINT x x
DOUBLE DOUBLE x x x
FLOAT FLOAT x x x
DECIMAL DECIMAL x x x
VARCHAR,CHAR,... BYTES x x x
GEOMETRY BYTES
TIME TIME x
DATE DATETIME x
DATETIME DATETIME x
YEAR UINT x x
TIMESTAMP DATETIME x
SET SET x
ENUM ENUM x
NULL BYTES
BIT BIT x
================= ============ ======= ========== ====== ========
.. note:: the SQL "NULL" value is sent as an empty field value in :protobuf:msg:`Mysqlx.Resultset::Row`
.. seealso:: protobuf encoding of primitive datatypes are decribed in https://developers.google.com/protocol-buffers/docs/encoding
SINT
``.length``
maximum number of displayable decimal digits (including minus sign) of the type
.. note::
valid range is 0-255, but usually you'll see 1-20
=============== ==
SQL Type max digits per type
=============== ==
TINY SIGNED 4
SHORT SIGNED 6
INT24 SIGNED 8
INT SIGNED 11
LONGLONG SIGNED 20
=============== ==
.. seealso:: definition of ``M`` in https://dev.mysql.com/doc/refman/8.0/en/numeric-type-overview.html
``value``
variable length encoded signed 64 integer
UINT
``.flags & 1`` (zerofill)
the client has to left pad with 0's up to .length
``.length``
maximum number of displayable decimal digits of the type
.. note::
valid range is 0-255, but usually you'll see 1-20
================= ==
SQL Type max digits per type
================= ==
TINY UNSIGNED 3
SHORT UNSIGNED 5
INT24 UNSIGNED 8
INT UNSIGNED 10
LONGLONG UNSIGNED 20
================= ==
.. seealso:: definition of ``M`` in https://dev.mysql.com/doc/refman/8.0/en/numeric-type-overview.html
``value``
variable length encoded unsigned 64 integer
BIT
``.length``
maximum number of displayable binary digits
.. note:: valid range for M of the ``BIT`` type is 1 - 64
.. seealso:: https://dev.mysql.com/doc/refman/8.0/en/numeric-type-overview.html
``value``
variable length encoded unsigned 64 integer
DOUBLE
``.length``
maximum number of displayable decimal digits (including the decimal point and ``.fractional_digits``)
``.fractional_digits``
maximum number of displayable decimal digits following the decimal point
``value``
encoded as Protobuf's 'double'
FLOAT
``.length``
maximum number of displayable decimal digits (including the decimal point and ``.fractional_digits``)
``.fractional_digits``
maximum number of displayable decimal digits following the decimal point
``value``
encoded as Protobuf's 'float'
BYTES, ENUM
BYTES is used for all opaque byte strings that may have a charset
* TINYBLOB, BLOB, MEDIUMBLOB, LONGBLOB
* TINYTEXT, TEXT, MEDIUMTEXT, LONGTEXT
* VARCHAR, VARBINARY
* CHAR, BINARY
* ENUM
``.length``
the maximum length of characters of the underlying type
``.flags & 1`` (rightpad)
if the length of the field is less than ``.length``, the receiver is
supposed to add padding characters to the right end of the string.
If the ``.charset`` is "binary", the padding character is ``0x00``,
otherwise it is a space character as defined by that character set.
============= ======= ======== =======
SQL Type .length .charset .flags
============= ======= ======== =======
TINYBLOB 256 binary
BLOB 65535 binary
VARCHAR(32) 32 utf8
VARBINARY(32) 32 utf8_bin
BINARY(32) 32 binary rightpad
CHAR(32) 32 utf8 rightpad
============= ======= ======== =======
``value``
sequence of bytes with added one extra '\0' byte at the end. To obtain the
original string, the extra '\0' should be removed.
.. note:: the length of the string can be acquired with protobuf's field length() method
length of sequence-of-bytes = length-of-field - 1
.. note:: the extra byte allows to distinguish between a NULL and empty byte sequence
TIME
A time value.
``value``
the following bytes sequence:
``| negate [ | hour | [ | minutes | [ | seconds | [ | useconds | ]]]]``
* negate - one byte, should be one of: 0x00 for "+", 0x01 for "-"
* hour - optional variable length encoded unsigned64 value for the hour
* minutes - optional variable length encoded unsigned64 value for the minutes
* seconds - optional variable length encoded unsigned64 value for the seconds
* useconds - optional variable length encoded unsigned64 value for the microseconds
.. seealso:: protobuf encoding in https://developers.google.com/protocol-buffers/docs/encoding
.. note:: hour, minutes, seconds, useconds are optional if all the values to the right are 0
Example: 0x00 -> +00:00:00.000000
DATETIME
A date or date and time value.
``value``
a sequence of variants, arranged as follows:
``| year | month | day | [ | hour | [ | minutes | [ | seconds | [ | useconds | ]]]]``
* year - variable length encoded unsigned64 value for the year
* month - variable length encoded unsigned64 value for the month
* day - variable length encoded unsigned64 value for the day
* hour - optional variable length encoded unsigned64 value for the hour
* minutes - optional variable length encoded unsigned64 value for the minutes
* seconds - optional variable length encoded unsigned64 value for the seconds
* useconds - optional variable length encoded unsigned64 value for the microseconds
.. note:: hour, minutes, seconds, useconds are optional if all the values to the right are 0
``.flags & 1`` (timestamp)
============= =======
SQL Type .flags
============= =======
DATETIME
TIMESTAMP 1
DECIMAL
An arbitrary length number. The number is encoded as a single byte
indicating the position of the decimal point followed by the Packed BCD
encoded number. Packed BCD is used to simplify conversion to and
from strings and other native arbitrary precision math datatypes.
.. seealso:: packed BCD in https://en.wikipedia.org/wiki/Binary-coded_decimal
``.length``
maximum number of displayable decimal digits (*excluding* the decimal point and sign, but including ``.fractional_digits``)
.. note:: should be in the range of 1 - 65
``.fractional_digits``
is the decimal digits to display out of length
.. note:: should be in the range of 0 - 30
``value``
the following bytes sequence:
``| scale | BCD | sign | [0x0] |``
* scale - 8bit scale value (number of decimal digit after the '.')
* BCD - BCD encoded digits (4 bits for each digit)
* sign - sign encoded on 4 bits (0xc = "+", 0xd = "-")
* 0x0 - last 4bits if length(digits) % 2 == 0
Example: x04 0x12 0x34 0x01 0xd0 -> -12.3401
SET
A list of strings representing a SET of values.
``value``
A sequence of 0 or more of protobuf's bytes (length prepended octets) or one of
the special sequences with a predefined meaning listed below.
Example (length of the bytes array shown in brackets):
* ``[0]`` - the NULL value
* ``[1] 0x00`` - a set containing a blank string ''
* ``[1] 0x01`` - this would be an invalid value, but is to be treated as the empty set
* ``[2] 0x01 0x00`` - a set with a single item, which is the '\0' character
* ``[8] 0x03 F O O 0x03 B A R`` - a set with 2 items: FOO,BAR
:param name: name of the column
:param original_name: name of the column before an alias was applied
:param table: name of the table the column orginates from
:param original_table: name of the table the column orginates from before an alias was applied
:param schema: schema the column originates from
:param catalog:
catalog the schema originates from
.. note::
as there is current no support for catalogs in MySQL, don't expect this field to be set.
In the MySQL C/S protocol the field had the value ``def`` all the time.
:param fractional_digits: displayed factional decimal digits for floating point and fixed point numbers
:param length: maximum count of displayable characters of .type
:param flags:
``.type`` specific flags
======= ====== ===========
type value description
======= ====== ===========
UINT 0x0001 zerofill
DOUBLE 0x0001 unsigned
FLOAT 0x0001 unsigned
DECIMAL 0x0001 unsigned
BYTES 0x0001 rightpad
======= ====== ===========
====== ================
value description
====== ================
0x0010 NOT_NULL
0x0020 PRIMARY_KEY
0x0040 UNIQUE_KEY
0x0080 MULTIPLE_KEY
0x0100 AUTO_INCREMENT
====== ================
default: 0
:param content_type:
a hint about the higher-level encoding of a BYTES field, for more informations
please refer to Mysqlx.Resultset.ContentType_BYTES enum.
Protobuf type Mysqlx.Resultset.ColumnMetaData-
Method Summary
Modifier and Type Method Description MysqlxResultset.ColumnMetaData.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)MysqlxResultset.ColumnMetaDatabuild()MysqlxResultset.ColumnMetaDatabuildPartial()MysqlxResultset.ColumnMetaData.Builderclear()MysqlxResultset.ColumnMetaData.BuilderclearCatalog()optional bytes catalog = 7;MysqlxResultset.ColumnMetaData.BuilderclearCollation()optional uint64 collation = 8;MysqlxResultset.ColumnMetaData.BuilderclearContentType()optional uint32 content_type = 12;MysqlxResultset.ColumnMetaData.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MysqlxResultset.ColumnMetaData.BuilderclearFlags()optional uint32 flags = 11;MysqlxResultset.ColumnMetaData.BuilderclearFractionalDigits()optional uint32 fractional_digits = 9;MysqlxResultset.ColumnMetaData.BuilderclearLength()optional uint32 length = 10;MysqlxResultset.ColumnMetaData.BuilderclearName()optional bytes name = 2;MysqlxResultset.ColumnMetaData.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MysqlxResultset.ColumnMetaData.BuilderclearOriginalName()optional bytes original_name = 3;MysqlxResultset.ColumnMetaData.BuilderclearOriginalTable()optional bytes original_table = 5;MysqlxResultset.ColumnMetaData.BuilderclearSchema()optional bytes schema = 6;MysqlxResultset.ColumnMetaData.BuilderclearTable()optional bytes table = 4;MysqlxResultset.ColumnMetaData.BuilderclearType()datatype of the field in a rowMysqlxResultset.ColumnMetaData.Builderclone()com.google.protobuf.ByteStringgetCatalog()optional bytes catalog = 7;longgetCollation()optional uint64 collation = 8;intgetContentType()optional uint32 content_type = 12;MysqlxResultset.ColumnMetaDatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetFlags()optional uint32 flags = 11;intgetFractionalDigits()optional uint32 fractional_digits = 9;intgetLength()optional uint32 length = 10;com.google.protobuf.ByteStringgetName()optional bytes name = 2;com.google.protobuf.ByteStringgetOriginalName()optional bytes original_name = 3;com.google.protobuf.ByteStringgetOriginalTable()optional bytes original_table = 5;com.google.protobuf.ByteStringgetSchema()optional bytes schema = 6;com.google.protobuf.ByteStringgetTable()optional bytes table = 4;MysqlxResultset.ColumnMetaData.FieldTypegetType()datatype of the field in a rowbooleanhasCatalog()optional bytes catalog = 7;booleanhasCollation()optional uint64 collation = 8;booleanhasContentType()optional uint32 content_type = 12;booleanhasFlags()optional uint32 flags = 11;booleanhasFractionalDigits()optional uint32 fractional_digits = 9;booleanhasLength()optional uint32 length = 10;booleanhasName()optional bytes name = 2;booleanhasOriginalName()optional bytes original_name = 3;booleanhasOriginalTable()optional bytes original_table = 5;booleanhasSchema()optional bytes schema = 6;booleanhasTable()optional bytes table = 4;booleanhasType()datatype of the field in a rowprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()MysqlxResultset.ColumnMetaData.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MysqlxResultset.ColumnMetaData.BuildermergeFrom(com.google.protobuf.Message other)MysqlxResultset.ColumnMetaData.BuildermergeFrom(MysqlxResultset.ColumnMetaData other)MysqlxResultset.ColumnMetaData.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MysqlxResultset.ColumnMetaData.BuildersetCatalog(com.google.protobuf.ByteString value)optional bytes catalog = 7;MysqlxResultset.ColumnMetaData.BuildersetCollation(long value)optional uint64 collation = 8;MysqlxResultset.ColumnMetaData.BuildersetContentType(int value)optional uint32 content_type = 12;MysqlxResultset.ColumnMetaData.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)MysqlxResultset.ColumnMetaData.BuildersetFlags(int value)optional uint32 flags = 11;MysqlxResultset.ColumnMetaData.BuildersetFractionalDigits(int value)optional uint32 fractional_digits = 9;MysqlxResultset.ColumnMetaData.BuildersetLength(int value)optional uint32 length = 10;MysqlxResultset.ColumnMetaData.BuildersetName(com.google.protobuf.ByteString value)optional bytes name = 2;MysqlxResultset.ColumnMetaData.BuildersetOriginalName(com.google.protobuf.ByteString value)optional bytes original_name = 3;MysqlxResultset.ColumnMetaData.BuildersetOriginalTable(com.google.protobuf.ByteString value)optional bytes original_table = 5;MysqlxResultset.ColumnMetaData.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)MysqlxResultset.ColumnMetaData.BuildersetSchema(com.google.protobuf.ByteString value)optional bytes schema = 6;MysqlxResultset.ColumnMetaData.BuildersetTable(com.google.protobuf.ByteString value)optional bytes table = 4;MysqlxResultset.ColumnMetaData.BuildersetType(MysqlxResultset.ColumnMetaData.FieldType value)datatype of the field in a rowMysqlxResultset.ColumnMetaData.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
-
setField
public MysqlxResultset.ColumnMetaData.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
-
clearField
public MysqlxResultset.ColumnMetaData.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
-
clearOneof
public MysqlxResultset.ColumnMetaData.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
-
setRepeatedField
public MysqlxResultset.ColumnMetaData.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
-
addRepeatedField
public MysqlxResultset.ColumnMetaData.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MysqlxResultset.ColumnMetaData.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
-
mergeFrom
public MysqlxResultset.ColumnMetaData.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MysqlxResultset.ColumnMetaData.Builder>- Throws:
java.io.IOException
-
hasType
public boolean hasType()datatype of the field in a row
required .Mysqlx.Resultset.ColumnMetaData.FieldType type = 1;- Specified by:
hasTypein interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- Whether the type field is set.
-
getType
datatype of the field in a row
required .Mysqlx.Resultset.ColumnMetaData.FieldType type = 1;- Specified by:
getTypein interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- The type.
-
setType
public MysqlxResultset.ColumnMetaData.Builder setType(MysqlxResultset.ColumnMetaData.FieldType value)datatype of the field in a row
required .Mysqlx.Resultset.ColumnMetaData.FieldType type = 1;- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
datatype of the field in a row
required .Mysqlx.Resultset.ColumnMetaData.FieldType type = 1;- Returns:
- This builder for chaining.
-
hasName
public boolean hasName()optional bytes name = 2;- Specified by:
hasNamein interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- Whether the name field is set.
-
getName
public com.google.protobuf.ByteString getName()optional bytes name = 2;- Specified by:
getNamein interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- The name.
-
setName
optional bytes name = 2;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
optional bytes name = 2;- Returns:
- This builder for chaining.
-
hasOriginalName
public boolean hasOriginalName()optional bytes original_name = 3;- Specified by:
hasOriginalNamein interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- Whether the originalName field is set.
-
getOriginalName
public com.google.protobuf.ByteString getOriginalName()optional bytes original_name = 3;- Specified by:
getOriginalNamein interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- The originalName.
-
setOriginalName
public MysqlxResultset.ColumnMetaData.Builder setOriginalName(com.google.protobuf.ByteString value)optional bytes original_name = 3;- Parameters:
value- The originalName to set.- Returns:
- This builder for chaining.
-
clearOriginalName
optional bytes original_name = 3;- Returns:
- This builder for chaining.
-
hasTable
public boolean hasTable()optional bytes table = 4;- Specified by:
hasTablein interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- Whether the table field is set.
-
getTable
public com.google.protobuf.ByteString getTable()optional bytes table = 4;- Specified by:
getTablein interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- The table.
-
setTable
optional bytes table = 4;- Parameters:
value- The table to set.- Returns:
- This builder for chaining.
-
clearTable
optional bytes table = 4;- Returns:
- This builder for chaining.
-
hasOriginalTable
public boolean hasOriginalTable()optional bytes original_table = 5;- Specified by:
hasOriginalTablein interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- Whether the originalTable field is set.
-
getOriginalTable
public com.google.protobuf.ByteString getOriginalTable()optional bytes original_table = 5;- Specified by:
getOriginalTablein interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- The originalTable.
-
setOriginalTable
public MysqlxResultset.ColumnMetaData.Builder setOriginalTable(com.google.protobuf.ByteString value)optional bytes original_table = 5;- Parameters:
value- The originalTable to set.- Returns:
- This builder for chaining.
-
clearOriginalTable
optional bytes original_table = 5;- Returns:
- This builder for chaining.
-
hasSchema
public boolean hasSchema()optional bytes schema = 6;- Specified by:
hasSchemain interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- Whether the schema field is set.
-
getSchema
public com.google.protobuf.ByteString getSchema()optional bytes schema = 6;- Specified by:
getSchemain interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- The schema.
-
setSchema
optional bytes schema = 6;- Parameters:
value- The schema to set.- Returns:
- This builder for chaining.
-
clearSchema
optional bytes schema = 6;- Returns:
- This builder for chaining.
-
hasCatalog
public boolean hasCatalog()optional bytes catalog = 7;- Specified by:
hasCatalogin interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- Whether the catalog field is set.
-
getCatalog
public com.google.protobuf.ByteString getCatalog()optional bytes catalog = 7;- Specified by:
getCatalogin interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- The catalog.
-
setCatalog
optional bytes catalog = 7;- Parameters:
value- The catalog to set.- Returns:
- This builder for chaining.
-
clearCatalog
optional bytes catalog = 7;- Returns:
- This builder for chaining.
-
hasCollation
public boolean hasCollation()optional uint64 collation = 8;- Specified by:
hasCollationin interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- Whether the collation field is set.
-
getCollation
public long getCollation()optional uint64 collation = 8;- Specified by:
getCollationin interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- The collation.
-
setCollation
optional uint64 collation = 8;- Parameters:
value- The collation to set.- Returns:
- This builder for chaining.
-
clearCollation
optional uint64 collation = 8;- Returns:
- This builder for chaining.
-
hasFractionalDigits
public boolean hasFractionalDigits()optional uint32 fractional_digits = 9;- Specified by:
hasFractionalDigitsin interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- Whether the fractionalDigits field is set.
-
getFractionalDigits
public int getFractionalDigits()optional uint32 fractional_digits = 9;- Specified by:
getFractionalDigitsin interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- The fractionalDigits.
-
setFractionalDigits
optional uint32 fractional_digits = 9;- Parameters:
value- The fractionalDigits to set.- Returns:
- This builder for chaining.
-
clearFractionalDigits
optional uint32 fractional_digits = 9;- Returns:
- This builder for chaining.
-
hasLength
public boolean hasLength()optional uint32 length = 10;- Specified by:
hasLengthin interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- Whether the length field is set.
-
getLength
public int getLength()optional uint32 length = 10;- Specified by:
getLengthin interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- The length.
-
setLength
optional uint32 length = 10;- Parameters:
value- The length to set.- Returns:
- This builder for chaining.
-
clearLength
optional uint32 length = 10;- Returns:
- This builder for chaining.
-
hasFlags
public boolean hasFlags()optional uint32 flags = 11;- Specified by:
hasFlagsin interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- Whether the flags field is set.
-
getFlags
public int getFlags()optional uint32 flags = 11;- Specified by:
getFlagsin interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- The flags.
-
setFlags
optional uint32 flags = 11;- Parameters:
value- The flags to set.- Returns:
- This builder for chaining.
-
clearFlags
optional uint32 flags = 11;- Returns:
- This builder for chaining.
-
hasContentType
public boolean hasContentType()optional uint32 content_type = 12;- Specified by:
hasContentTypein interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- Whether the contentType field is set.
-
getContentType
public int getContentType()optional uint32 content_type = 12;- Specified by:
getContentTypein interfaceMysqlxResultset.ColumnMetaDataOrBuilder- Returns:
- The contentType.
-
setContentType
optional uint32 content_type = 12;- Parameters:
value- The contentType to set.- Returns:
- This builder for chaining.
-
clearContentType
optional uint32 content_type = 12;- Returns:
- This builder for chaining.
-
setUnknownFields
public final MysqlxResultset.ColumnMetaData.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
-
mergeUnknownFields
public final MysqlxResultset.ColumnMetaData.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlxResultset.ColumnMetaData.Builder>
-