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 set
 
Protobuf type exec.user.ResultColumnMetadata
  • Method Details

    • 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.Builder<UserProtos.ResultColumnMetadata.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
    • getDefaultInstanceForType

      public UserProtos.ResultColumnMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public UserProtos.ResultColumnMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
    • clearField

      public UserProtos.ResultColumnMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
    • clearOneof

      public UserProtos.ResultColumnMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.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 interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
    • mergeFrom

      public UserProtos.ResultColumnMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<UserProtos.ResultColumnMetadata.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      Whether the catalogName field is set.
    • getCatalogName

      public String 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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The bytes for catalogName.
    • setCatalogName

      public UserProtos.ResultColumnMetadata.Builder setCatalogName(String 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 catalogName to set.
      Returns:
      This builder for chaining.
    • clearCatalogName

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      Whether the schemaName field is set.
    • getSchemaName

      public String 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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The bytes for schemaName.
    • setSchemaName

      public UserProtos.ResultColumnMetadata.Builder setSchemaName(String 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 schemaName to set.
      Returns:
      This builder for chaining.
    • clearSchemaName

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      Whether the tableName field is set.
    • getTableName

      public String 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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The bytes for tableName.
    • setTableName

      public UserProtos.ResultColumnMetadata.Builder setTableName(String 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 tableName to set.
      Returns:
      This builder for chaining.
    • clearTableName

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      Whether the columnName field is set.
    • getColumnName

      public String getColumnName()
       column name
       
      optional string column_name = 4;
      Specified by:
      getColumnName in interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The columnName.
    • getColumnNameBytes

      public com.google.protobuf.ByteString getColumnNameBytes()
       column name
       
      optional string column_name = 4;
      Specified by:
      getColumnNameBytes in interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The bytes for columnName.
    • setColumnName

      public UserProtos.ResultColumnMetadata.Builder setColumnName(String value)
       column name
       
      optional string column_name = 4;
      Parameters:
      value - The columnName to set.
      Returns:
      This builder for chaining.
    • clearColumnName

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      Whether the label field is set.
    • getLabel

      public String 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 interface UserProtos.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 interface UserProtos.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

      public UserProtos.ResultColumnMetadata.Builder setLabelBytes(com.google.protobuf.ByteString value)
       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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      Whether the dataType field is set.
    • getDataType

      public String getDataType()
       Data type in string format. Value is SQL standard type.
       
      optional string data_type = 6;
      Specified by:
      getDataType in interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The bytes for dataType.
    • setDataType

      public UserProtos.ResultColumnMetadata.Builder setDataType(String value)
       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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      Whether the isNullable field is set.
    • getIsNullable

      public boolean getIsNullable()
      optional bool is_nullable = 7;
      Specified by:
      getIsNullable in interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The isNullable.
    • setIsNullable

      public UserProtos.ResultColumnMetadata.Builder setIsNullable(boolean value)
      optional bool is_nullable = 7;
      Parameters:
      value - The isNullable to set.
      Returns:
      This builder for chaining.
    • clearIsNullable

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The precision.
    • setPrecision

      public UserProtos.ResultColumnMetadata.Builder setPrecision(int value)
       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

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The scale.
    • setScale

      public UserProtos.ResultColumnMetadata.Builder setScale(int value)
       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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The signed.
    • setSigned

      public UserProtos.ResultColumnMetadata.Builder setSigned(boolean value)
       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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The displaySize.
    • setDisplaySize

      public UserProtos.ResultColumnMetadata.Builder setDisplaySize(int value)
       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

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The isAliased.
    • setIsAliased

      public UserProtos.ResultColumnMetadata.Builder setIsAliased(boolean value)
       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

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      Whether the searchability field is set.
    • getSearchability

      public UserProtos.ColumnSearchability getSearchability()
      optional .exec.user.ColumnSearchability searchability = 13;
      Specified by:
      getSearchability in interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The searchability.
    • setSearchability

      optional .exec.user.ColumnSearchability searchability = 13;
      Parameters:
      value - The searchability to set.
      Returns:
      This builder for chaining.
    • clearSearchability

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      Whether the updatability field is set.
    • getUpdatability

      public UserProtos.ColumnUpdatability getUpdatability()
       Defaults to READ_ONLY
       
      optional .exec.user.ColumnUpdatability updatability = 14;
      Specified by:
      getUpdatability in interface UserProtos.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

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The autoIncrement.
    • setAutoIncrement

      public UserProtos.ResultColumnMetadata.Builder setAutoIncrement(boolean value)
       whether the designated column is automatically incremented.
       
      optional bool auto_increment = 15;
      Parameters:
      value - The autoIncrement to set.
      Returns:
      This builder for chaining.
    • clearAutoIncrement

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The caseSensitivity.
    • setCaseSensitivity

      public UserProtos.ResultColumnMetadata.Builder setCaseSensitivity(boolean value)
       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

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The sortable.
    • setSortable

      public UserProtos.ResultColumnMetadata.Builder setSortable(boolean value)
       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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      Whether the className field is set.
    • getClassName

      public String 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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The bytes for className.
    • setClassName

      public UserProtos.ResultColumnMetadata.Builder 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. Applicable only to JDBC clients.
       
      optional string class_name = 18;
      Parameters:
      value - The className to set.
      Returns:
      This builder for chaining.
    • clearClassName

      public UserProtos.ResultColumnMetadata.Builder 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 interface UserProtos.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 interface UserProtos.ResultColumnMetadataOrBuilder
      Returns:
      The isCurrency.
    • setIsCurrency

      public UserProtos.ResultColumnMetadata.Builder setIsCurrency(boolean value)
       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

      public UserProtos.ResultColumnMetadata.Builder 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 interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>
    • mergeUnknownFields

      public final UserProtos.ResultColumnMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<UserProtos.ResultColumnMetadata.Builder>