Package org.apache.drill.exec.proto
Class UserProtos.ResultColumnMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
org.apache.drill.exec.proto.UserProtos.ResultColumnMetadata.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,UserProtos.ResultColumnMetadataOrBuilder
- Enclosing class:
- UserProtos.ResultColumnMetadata
public static final class UserProtos.ResultColumnMetadata.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
implements UserProtos.ResultColumnMetadataOrBuilder
Metadata of a column in query result setProtobuf type
exec.user.ResultColumnMetadata
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
whether the designated column is automatically incremented.Whether column's case matters for collations and comparisons.Designated column's catalog name.A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column.column nameData type in string format.Maximum number of characters required to display data from the column.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Is the column an aliased column.Is the data type a currency type? For JDBC only.optional bool is_nullable = 7;
Column label name for display or print purposes.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) For numeric data, this is the maximum precision.Column's number of digits to right of the decimal point.Designated column's schema name.optional .exec.user.ColumnSearchability searchability = 13;
Indicates whether values in the designated column are signed numbers.whether the column can be used in ORDER BY clauseDesignated column's table name.Defaults to READ_ONLYclone()
boolean
whether the designated column is automatically incremented.boolean
Whether column's case matters for collations and comparisons.Designated column's catalog name.com.google.protobuf.ByteString
Designated column's catalog name.A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column.com.google.protobuf.ByteString
A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column.column namecom.google.protobuf.ByteString
column nameData type in string format.com.google.protobuf.ByteString
Data type in string format.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
Maximum number of characters required to display data from the column.boolean
Is the column an aliased column.boolean
Is the data type a currency type? For JDBC only.boolean
optional bool is_nullable = 7;
getLabel()
Column label name for display or print purposes.com.google.protobuf.ByteString
Column label name for display or print purposes.int
For numeric data, this is the maximum precision.int
getScale()
Column's number of digits to right of the decimal point.Designated column's schema name.com.google.protobuf.ByteString
Designated column's schema name.optional .exec.user.ColumnSearchability searchability = 13;
boolean
Indicates whether values in the designated column are signed numbers.boolean
whether the column can be used in ORDER BY clauseDesignated column's table name.com.google.protobuf.ByteString
Designated column's table name.Defaults to READ_ONLYboolean
whether the designated column is automatically incremented.boolean
Whether column's case matters for collations and comparisons.boolean
Designated column's catalog name.boolean
A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column.boolean
column nameboolean
Data type in string format.boolean
Maximum number of characters required to display data from the column.boolean
Is the column an aliased column.boolean
Is the data type a currency type? For JDBC only.boolean
optional bool is_nullable = 7;
boolean
hasLabel()
Column label name for display or print purposes.boolean
For numeric data, this is the maximum precision.boolean
hasScale()
Column's number of digits to right of the decimal point.boolean
Designated column's schema name.boolean
optional .exec.user.ColumnSearchability searchability = 13;
boolean
Indicates whether values in the designated column are signed numbers.boolean
whether the column can be used in ORDER BY clauseboolean
Designated column's table name.boolean
Defaults to READ_ONLYprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setAutoIncrement
(boolean value) whether the designated column is automatically incremented.setCaseSensitivity
(boolean value) Whether column's case matters for collations and comparisons.setCatalogName
(String value) Designated column's catalog name.setCatalogNameBytes
(com.google.protobuf.ByteString value) Designated column's catalog name.setClassName
(String value) A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column.setClassNameBytes
(com.google.protobuf.ByteString value) A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column.setColumnName
(String value) column namesetColumnNameBytes
(com.google.protobuf.ByteString value) column namesetDataType
(String value) Data type in string format.setDataTypeBytes
(com.google.protobuf.ByteString value) Data type in string format.setDisplaySize
(int value) Maximum number of characters required to display data from the column.setIsAliased
(boolean value) Is the column an aliased column.setIsCurrency
(boolean value) Is the data type a currency type? For JDBC only.setIsNullable
(boolean value) optional bool is_nullable = 7;
Column label name for display or print purposes.setLabelBytes
(com.google.protobuf.ByteString value) Column label name for display or print purposes.setPrecision
(int value) For numeric data, this is the maximum precision.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setScale
(int value) Column's number of digits to right of the decimal point.setSchemaName
(String value) Designated column's schema name.setSchemaNameBytes
(com.google.protobuf.ByteString value) Designated column's schema name.optional .exec.user.ColumnSearchability searchability = 13;
setSigned
(boolean value) Indicates whether values in the designated column are signed numbers.setSortable
(boolean value) whether the column can be used in ORDER BY clausesetTableName
(String value) Designated column's table name.setTableNameBytes
(com.google.protobuf.ByteString value) Designated column's table name.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Defaults to READ_ONLYMethods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
setField
public UserProtos.ResultColumnMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
clearField
public UserProtos.ResultColumnMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
clearOneof
public UserProtos.ResultColumnMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
setRepeatedField
public UserProtos.ResultColumnMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
addRepeatedField
public UserProtos.ResultColumnMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UserProtos.ResultColumnMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
mergeFrom
public UserProtos.ResultColumnMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<UserProtos.ResultColumnMetadata.Builder>
- Throws:
IOException
-
hasCatalogName
public boolean hasCatalogName()Designated column's catalog name. Empty string if not applicable. Defaults to "DRILL" as drill has only one catalog.
optional string catalog_name = 1;
- Specified by:
hasCatalogName
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the catalogName field is set.
-
getCatalogName
Designated column's catalog name. Empty string if not applicable. Defaults to "DRILL" as drill has only one catalog.
optional string catalog_name = 1;
- Specified by:
getCatalogName
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The catalogName.
-
getCatalogNameBytes
public com.google.protobuf.ByteString getCatalogNameBytes()Designated column's catalog name. Empty string if not applicable. Defaults to "DRILL" as drill has only one catalog.
optional string catalog_name = 1;
- Specified by:
getCatalogNameBytes
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The bytes for catalogName.
-
setCatalogName
Designated column's catalog name. Empty string if not applicable. Defaults to "DRILL" as drill has only one catalog.
optional string catalog_name = 1;
- Parameters:
value
- The catalogName to set.- Returns:
- This builder for chaining.
-
clearCatalogName
Designated column's catalog name. Empty string if not applicable. Defaults to "DRILL" as drill has only one catalog.
optional string catalog_name = 1;
- Returns:
- This builder for chaining.
-
setCatalogNameBytes
public UserProtos.ResultColumnMetadata.Builder setCatalogNameBytes(com.google.protobuf.ByteString value) Designated column's catalog name. Empty string if not applicable. Defaults to "DRILL" as drill has only one catalog.
optional string catalog_name = 1;
- Parameters:
value
- The bytes for catalogName to set.- Returns:
- This builder for chaining.
-
hasSchemaName
public boolean hasSchemaName()Designated column's schema name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and schema info is lost. If we derive the schema from plan, we may get the right value.
optional string schema_name = 2;
- Specified by:
hasSchemaName
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the schemaName field is set.
-
getSchemaName
Designated column's schema name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and schema info is lost. If we derive the schema from plan, we may get the right value.
optional string schema_name = 2;
- Specified by:
getSchemaName
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The schemaName.
-
getSchemaNameBytes
public com.google.protobuf.ByteString getSchemaNameBytes()Designated column's schema name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and schema info is lost. If we derive the schema from plan, we may get the right value.
optional string schema_name = 2;
- Specified by:
getSchemaNameBytes
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The bytes for schemaName.
-
setSchemaName
Designated column's schema name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and schema info is lost. If we derive the schema from plan, we may get the right value.
optional string schema_name = 2;
- Parameters:
value
- The schemaName to set.- Returns:
- This builder for chaining.
-
clearSchemaName
Designated column's schema name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and schema info is lost. If we derive the schema from plan, we may get the right value.
optional string schema_name = 2;
- Returns:
- This builder for chaining.
-
setSchemaNameBytes
public UserProtos.ResultColumnMetadata.Builder setSchemaNameBytes(com.google.protobuf.ByteString value) Designated column's schema name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and schema info is lost. If we derive the schema from plan, we may get the right value.
optional string schema_name = 2;
- Parameters:
value
- The bytes for schemaName to set.- Returns:
- This builder for chaining.
-
hasTableName
public boolean hasTableName()Designated column's table name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and table info is lost. If we derive the schema from query plan, we may get the right value.
optional string table_name = 3;
- Specified by:
hasTableName
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the tableName field is set.
-
getTableName
Designated column's table name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and table info is lost. If we derive the schema from query plan, we may get the right value.
optional string table_name = 3;
- Specified by:
getTableName
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The tableName.
-
getTableNameBytes
public com.google.protobuf.ByteString getTableNameBytes()Designated column's table name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and table info is lost. If we derive the schema from query plan, we may get the right value.
optional string table_name = 3;
- Specified by:
getTableNameBytes
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The bytes for tableName.
-
setTableName
Designated column's table name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and table info is lost. If we derive the schema from query plan, we may get the right value.
optional string table_name = 3;
- Parameters:
value
- The tableName to set.- Returns:
- This builder for chaining.
-
clearTableName
Designated column's table name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and table info is lost. If we derive the schema from query plan, we may get the right value.
optional string table_name = 3;
- Returns:
- This builder for chaining.
-
setTableNameBytes
public UserProtos.ResultColumnMetadata.Builder setTableNameBytes(com.google.protobuf.ByteString value) Designated column's table name. Not set if not applicable. Initial implementation defaults to no value as we use LIMIT 0 queries to get the schema and table info is lost. If we derive the schema from query plan, we may get the right value.
optional string table_name = 3;
- Parameters:
value
- The bytes for tableName to set.- Returns:
- This builder for chaining.
-
hasColumnName
public boolean hasColumnName()column name
optional string column_name = 4;
- Specified by:
hasColumnName
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the columnName field is set.
-
getColumnName
column name
optional string column_name = 4;
- Specified by:
getColumnName
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The columnName.
-
getColumnNameBytes
public com.google.protobuf.ByteString getColumnNameBytes()column name
optional string column_name = 4;
- Specified by:
getColumnNameBytes
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The bytes for columnName.
-
setColumnName
column name
optional string column_name = 4;
- Parameters:
value
- The columnName to set.- Returns:
- This builder for chaining.
-
clearColumnName
column name
optional string column_name = 4;
- Returns:
- This builder for chaining.
-
setColumnNameBytes
public UserProtos.ResultColumnMetadata.Builder setColumnNameBytes(com.google.protobuf.ByteString value) column name
optional string column_name = 4;
- Parameters:
value
- The bytes for columnName to set.- Returns:
- This builder for chaining.
-
hasLabel
public boolean hasLabel()Column label name for display or print purposes. Ex. a column named "empName" might be labeled as "Employee Name".
optional string label = 5;
- Specified by:
hasLabel
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the label field is set.
-
getLabel
Column label name for display or print purposes. Ex. a column named "empName" might be labeled as "Employee Name".
optional string label = 5;
- Specified by:
getLabel
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()Column label name for display or print purposes. Ex. a column named "empName" might be labeled as "Employee Name".
optional string label = 5;
- Specified by:
getLabelBytes
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The bytes for label.
-
setLabel
Column label name for display or print purposes. Ex. a column named "empName" might be labeled as "Employee Name".
optional string label = 5;
- Parameters:
value
- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
Column label name for display or print purposes. Ex. a column named "empName" might be labeled as "Employee Name".
optional string label = 5;
- Returns:
- This builder for chaining.
-
setLabelBytes
Column label name for display or print purposes. Ex. a column named "empName" might be labeled as "Employee Name".
optional string label = 5;
- Parameters:
value
- The bytes for label to set.- Returns:
- This builder for chaining.
-
hasDataType
public boolean hasDataType()Data type in string format. Value is SQL standard type.
optional string data_type = 6;
- Specified by:
hasDataType
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the dataType field is set.
-
getDataType
Data type in string format. Value is SQL standard type.
optional string data_type = 6;
- Specified by:
getDataType
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The dataType.
-
getDataTypeBytes
public com.google.protobuf.ByteString getDataTypeBytes()Data type in string format. Value is SQL standard type.
optional string data_type = 6;
- Specified by:
getDataTypeBytes
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The bytes for dataType.
-
setDataType
Data type in string format. Value is SQL standard type.
optional string data_type = 6;
- Parameters:
value
- The dataType to set.- Returns:
- This builder for chaining.
-
clearDataType
Data type in string format. Value is SQL standard type.
optional string data_type = 6;
- Returns:
- This builder for chaining.
-
setDataTypeBytes
public UserProtos.ResultColumnMetadata.Builder setDataTypeBytes(com.google.protobuf.ByteString value) Data type in string format. Value is SQL standard type.
optional string data_type = 6;
- Parameters:
value
- The bytes for dataType to set.- Returns:
- This builder for chaining.
-
hasIsNullable
public boolean hasIsNullable()optional bool is_nullable = 7;
- Specified by:
hasIsNullable
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the isNullable field is set.
-
getIsNullable
public boolean getIsNullable()optional bool is_nullable = 7;
- Specified by:
getIsNullable
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The isNullable.
-
setIsNullable
optional bool is_nullable = 7;
- Parameters:
value
- The isNullable to set.- Returns:
- This builder for chaining.
-
clearIsNullable
optional bool is_nullable = 7;
- Returns:
- This builder for chaining.
-
hasPrecision
public boolean hasPrecision()For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For all other types 0 is returned where the column size is not applicable.
optional int32 precision = 8;
- Specified by:
hasPrecision
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the precision field is set.
-
getPrecision
public int getPrecision()For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For all other types 0 is returned where the column size is not applicable.
optional int32 precision = 8;
- Specified by:
getPrecision
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The precision.
-
setPrecision
For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For all other types 0 is returned where the column size is not applicable.
optional int32 precision = 8;
- Parameters:
value
- The precision to set.- Returns:
- This builder for chaining.
-
clearPrecision
For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For all other types 0 is returned where the column size is not applicable.
optional int32 precision = 8;
- Returns:
- This builder for chaining.
-
hasScale
public boolean hasScale()Column's number of digits to right of the decimal point. 0 is returned for types where the scale is not applicable
optional int32 scale = 9;
- Specified by:
hasScale
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the scale field is set.
-
getScale
public int getScale()Column's number of digits to right of the decimal point. 0 is returned for types where the scale is not applicable
optional int32 scale = 9;
- Specified by:
getScale
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The scale.
-
setScale
Column's number of digits to right of the decimal point. 0 is returned for types where the scale is not applicable
optional int32 scale = 9;
- Parameters:
value
- The scale to set.- Returns:
- This builder for chaining.
-
clearScale
Column's number of digits to right of the decimal point. 0 is returned for types where the scale is not applicable
optional int32 scale = 9;
- Returns:
- This builder for chaining.
-
hasSigned
public boolean hasSigned()Indicates whether values in the designated column are signed numbers.
optional bool signed = 10;
- Specified by:
hasSigned
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the signed field is set.
-
getSigned
public boolean getSigned()Indicates whether values in the designated column are signed numbers.
optional bool signed = 10;
- Specified by:
getSigned
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The signed.
-
setSigned
Indicates whether values in the designated column are signed numbers.
optional bool signed = 10;
- Parameters:
value
- The signed to set.- Returns:
- This builder for chaining.
-
clearSigned
Indicates whether values in the designated column are signed numbers.
optional bool signed = 10;
- Returns:
- This builder for chaining.
-
hasDisplaySize
public boolean hasDisplaySize()Maximum number of characters required to display data from the column.
optional int32 display_size = 11;
- Specified by:
hasDisplaySize
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the displaySize field is set.
-
getDisplaySize
public int getDisplaySize()Maximum number of characters required to display data from the column.
optional int32 display_size = 11;
- Specified by:
getDisplaySize
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The displaySize.
-
setDisplaySize
Maximum number of characters required to display data from the column.
optional int32 display_size = 11;
- Parameters:
value
- The displaySize to set.- Returns:
- This builder for chaining.
-
clearDisplaySize
Maximum number of characters required to display data from the column.
optional int32 display_size = 11;
- Returns:
- This builder for chaining.
-
hasIsAliased
public boolean hasIsAliased()Is the column an aliased column. Initial implementation defaults to true as we derive schema from LIMIT 0 query and not the query plan.
optional bool is_aliased = 12;
- Specified by:
hasIsAliased
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the isAliased field is set.
-
getIsAliased
public boolean getIsAliased()Is the column an aliased column. Initial implementation defaults to true as we derive schema from LIMIT 0 query and not the query plan.
optional bool is_aliased = 12;
- Specified by:
getIsAliased
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The isAliased.
-
setIsAliased
Is the column an aliased column. Initial implementation defaults to true as we derive schema from LIMIT 0 query and not the query plan.
optional bool is_aliased = 12;
- Parameters:
value
- The isAliased to set.- Returns:
- This builder for chaining.
-
clearIsAliased
Is the column an aliased column. Initial implementation defaults to true as we derive schema from LIMIT 0 query and not the query plan.
optional bool is_aliased = 12;
- Returns:
- This builder for chaining.
-
hasSearchability
public boolean hasSearchability()optional .exec.user.ColumnSearchability searchability = 13;
- Specified by:
hasSearchability
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the searchability field is set.
-
getSearchability
optional .exec.user.ColumnSearchability searchability = 13;
- Specified by:
getSearchability
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The searchability.
-
setSearchability
public UserProtos.ResultColumnMetadata.Builder setSearchability(UserProtos.ColumnSearchability value) optional .exec.user.ColumnSearchability searchability = 13;
- Parameters:
value
- The searchability to set.- Returns:
- This builder for chaining.
-
clearSearchability
optional .exec.user.ColumnSearchability searchability = 13;
- Returns:
- This builder for chaining.
-
hasUpdatability
public boolean hasUpdatability()Defaults to READ_ONLY
optional .exec.user.ColumnUpdatability updatability = 14;
- Specified by:
hasUpdatability
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the updatability field is set.
-
getUpdatability
Defaults to READ_ONLY
optional .exec.user.ColumnUpdatability updatability = 14;
- Specified by:
getUpdatability
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The updatability.
-
setUpdatability
Defaults to READ_ONLY
optional .exec.user.ColumnUpdatability updatability = 14;
- Parameters:
value
- The updatability to set.- Returns:
- This builder for chaining.
-
clearUpdatability
Defaults to READ_ONLY
optional .exec.user.ColumnUpdatability updatability = 14;
- Returns:
- This builder for chaining.
-
hasAutoIncrement
public boolean hasAutoIncrement()whether the designated column is automatically incremented.
optional bool auto_increment = 15;
- Specified by:
hasAutoIncrement
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the autoIncrement field is set.
-
getAutoIncrement
public boolean getAutoIncrement()whether the designated column is automatically incremented.
optional bool auto_increment = 15;
- Specified by:
getAutoIncrement
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The autoIncrement.
-
setAutoIncrement
whether the designated column is automatically incremented.
optional bool auto_increment = 15;
- Parameters:
value
- The autoIncrement to set.- Returns:
- This builder for chaining.
-
clearAutoIncrement
whether the designated column is automatically incremented.
optional bool auto_increment = 15;
- Returns:
- This builder for chaining.
-
hasCaseSensitivity
public boolean hasCaseSensitivity()Whether column's case matters for collations and comparisons. Defaults to true.
optional bool case_sensitivity = 16;
- Specified by:
hasCaseSensitivity
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the caseSensitivity field is set.
-
getCaseSensitivity
public boolean getCaseSensitivity()Whether column's case matters for collations and comparisons. Defaults to true.
optional bool case_sensitivity = 16;
- Specified by:
getCaseSensitivity
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The caseSensitivity.
-
setCaseSensitivity
Whether column's case matters for collations and comparisons. Defaults to true.
optional bool case_sensitivity = 16;
- Parameters:
value
- The caseSensitivity to set.- Returns:
- This builder for chaining.
-
clearCaseSensitivity
Whether column's case matters for collations and comparisons. Defaults to true.
optional bool case_sensitivity = 16;
- Returns:
- This builder for chaining.
-
hasSortable
public boolean hasSortable()whether the column can be used in ORDER BY clause
optional bool sortable = 17;
- Specified by:
hasSortable
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the sortable field is set.
-
getSortable
public boolean getSortable()whether the column can be used in ORDER BY clause
optional bool sortable = 17;
- Specified by:
getSortable
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The sortable.
-
setSortable
whether the column can be used in ORDER BY clause
optional bool sortable = 17;
- Parameters:
value
- The sortable to set.- Returns:
- This builder for chaining.
-
clearSortable
whether the column can be used in ORDER BY clause
optional bool sortable = 17;
- Returns:
- This builder for chaining.
-
hasClassName
public boolean hasClassName()A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column. Applicable only to JDBC clients.
optional string class_name = 18;
- Specified by:
hasClassName
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the className field is set.
-
getClassName
A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column. Applicable only to JDBC clients.
optional string class_name = 18;
- Specified by:
getClassName
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The className.
-
getClassNameBytes
public com.google.protobuf.ByteString getClassNameBytes()A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column. Applicable only to JDBC clients.
optional string class_name = 18;
- Specified by:
getClassNameBytes
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The bytes for className.
-
setClassName
A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column. Applicable only to JDBC clients.
optional string class_name = 18;
- Parameters:
value
- The className to set.- Returns:
- This builder for chaining.
-
clearClassName
A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column. Applicable only to JDBC clients.
optional string class_name = 18;
- Returns:
- This builder for chaining.
-
setClassNameBytes
public UserProtos.ResultColumnMetadata.Builder setClassNameBytes(com.google.protobuf.ByteString value) A fully-qualified name of the Java class whose instances are created if the method ResultSet.getObject is called to retrieve a value from the column. Applicable only to JDBC clients.
optional string class_name = 18;
- Parameters:
value
- The bytes for className to set.- Returns:
- This builder for chaining.
-
hasIsCurrency
public boolean hasIsCurrency()Is the data type a currency type? For JDBC only.
optional bool is_currency = 20;
- Specified by:
hasIsCurrency
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- Whether the isCurrency field is set.
-
getIsCurrency
public boolean getIsCurrency()Is the data type a currency type? For JDBC only.
optional bool is_currency = 20;
- Specified by:
getIsCurrency
in interfaceUserProtos.ResultColumnMetadataOrBuilder
- Returns:
- The isCurrency.
-
setIsCurrency
Is the data type a currency type? For JDBC only.
optional bool is_currency = 20;
- Parameters:
value
- The isCurrency to set.- Returns:
- This builder for chaining.
-
clearIsCurrency
Is the data type a currency type? For JDBC only.
optional bool is_currency = 20;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final UserProtos.ResultColumnMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-
mergeUnknownFields
public final UserProtos.ResultColumnMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
-