Class ColumnInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ColumnInfo.Builder>
com.google.protobuf.GeneratedMessage.Builder<ColumnInfo.Builder>
ai.pipestream.parsed.data.database.v1.ColumnInfo.Builder
All Implemented Interfaces:
ColumnInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ColumnInfo

public static final class ColumnInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<ColumnInfo.Builder> implements ColumnInfoOrBuilder
 Detailed information about a database column
 
Protobuf type ai.pipestream.parsed.data.database.v1.ColumnInfo
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ColumnInfo.Builder>
    • clear

      public ColumnInfo.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.GeneratedMessage.Builder<ColumnInfo.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.GeneratedMessage.Builder<ColumnInfo.Builder>
    • getDefaultInstanceForType

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

      public ColumnInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ColumnInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ColumnInfo.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<ColumnInfo.Builder>
    • mergeFrom

      public ColumnInfo.Builder mergeFrom(ColumnInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ColumnInfo.Builder>
    • mergeFrom

      public ColumnInfo.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<ColumnInfo.Builder>
      Throws:
      IOException
    • hasName

      public boolean hasName()
       Column name
       
      optional string name = 1 [json_name = "name"];
      Specified by:
      hasName in interface ColumnInfoOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Column name
       
      optional string name = 1 [json_name = "name"];
      Specified by:
      getName in interface ColumnInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Column name
       
      optional string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface ColumnInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ColumnInfo.Builder setName(String value)
       Column name
       
      optional string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ColumnInfo.Builder clearName()
       Column name
       
      optional string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public ColumnInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       Column name
       
      optional string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasLabel

      public boolean hasLabel()
       Column label/description
       
      optional string label = 2 [json_name = "label"];
      Specified by:
      hasLabel in interface ColumnInfoOrBuilder
      Returns:
      Whether the label field is set.
    • getLabel

      public String getLabel()
       Column label/description
       
      optional string label = 2 [json_name = "label"];
      Specified by:
      getLabel in interface ColumnInfoOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
       Column label/description
       
      optional string label = 2 [json_name = "label"];
      Specified by:
      getLabelBytes in interface ColumnInfoOrBuilder
      Returns:
      The bytes for label.
    • setLabel

      public ColumnInfo.Builder setLabel(String value)
       Column label/description
       
      optional string label = 2 [json_name = "label"];
      Parameters:
      value - The label to set.
      Returns:
      This builder for chaining.
    • clearLabel

      public ColumnInfo.Builder clearLabel()
       Column label/description
       
      optional string label = 2 [json_name = "label"];
      Returns:
      This builder for chaining.
    • setLabelBytes

      public ColumnInfo.Builder setLabelBytes(com.google.protobuf.ByteString value)
       Column label/description
       
      optional string label = 2 [json_name = "label"];
      Parameters:
      value - The bytes for label to set.
      Returns:
      This builder for chaining.
    • hasTableName

      public boolean hasTableName()
       Table this column belongs to
       
      optional string table_name = 3 [json_name = "tableName"];
      Specified by:
      hasTableName in interface ColumnInfoOrBuilder
      Returns:
      Whether the tableName field is set.
    • getTableName

      public String getTableName()
       Table this column belongs to
       
      optional string table_name = 3 [json_name = "tableName"];
      Specified by:
      getTableName in interface ColumnInfoOrBuilder
      Returns:
      The tableName.
    • getTableNameBytes

      public com.google.protobuf.ByteString getTableNameBytes()
       Table this column belongs to
       
      optional string table_name = 3 [json_name = "tableName"];
      Specified by:
      getTableNameBytes in interface ColumnInfoOrBuilder
      Returns:
      The bytes for tableName.
    • setTableName

      public ColumnInfo.Builder setTableName(String value)
       Table this column belongs to
       
      optional string table_name = 3 [json_name = "tableName"];
      Parameters:
      value - The tableName to set.
      Returns:
      This builder for chaining.
    • clearTableName

      public ColumnInfo.Builder clearTableName()
       Table this column belongs to
       
      optional string table_name = 3 [json_name = "tableName"];
      Returns:
      This builder for chaining.
    • setTableNameBytes

      public ColumnInfo.Builder setTableNameBytes(com.google.protobuf.ByteString value)
       Table this column belongs to
       
      optional string table_name = 3 [json_name = "tableName"];
      Parameters:
      value - The bytes for tableName to set.
      Returns:
      This builder for chaining.
    • hasDataType

      public boolean hasDataType()
       Column data type
       
      optional string data_type = 4 [json_name = "dataType"];
      Specified by:
      hasDataType in interface ColumnInfoOrBuilder
      Returns:
      Whether the dataType field is set.
    • getDataType

      public String getDataType()
       Column data type
       
      optional string data_type = 4 [json_name = "dataType"];
      Specified by:
      getDataType in interface ColumnInfoOrBuilder
      Returns:
      The dataType.
    • getDataTypeBytes

      public com.google.protobuf.ByteString getDataTypeBytes()
       Column data type
       
      optional string data_type = 4 [json_name = "dataType"];
      Specified by:
      getDataTypeBytes in interface ColumnInfoOrBuilder
      Returns:
      The bytes for dataType.
    • setDataType

      public ColumnInfo.Builder setDataType(String value)
       Column data type
       
      optional string data_type = 4 [json_name = "dataType"];
      Parameters:
      value - The dataType to set.
      Returns:
      This builder for chaining.
    • clearDataType

      public ColumnInfo.Builder clearDataType()
       Column data type
       
      optional string data_type = 4 [json_name = "dataType"];
      Returns:
      This builder for chaining.
    • setDataTypeBytes

      public ColumnInfo.Builder setDataTypeBytes(com.google.protobuf.ByteString value)
       Column data type
       
      optional string data_type = 4 [json_name = "dataType"];
      Parameters:
      value - The bytes for dataType to set.
      Returns:
      This builder for chaining.
    • hasMaxLength

      public boolean hasMaxLength()
       Maximum length for text columns
       
      optional int32 max_length = 5 [json_name = "maxLength"];
      Specified by:
      hasMaxLength in interface ColumnInfoOrBuilder
      Returns:
      Whether the maxLength field is set.
    • getMaxLength

      public int getMaxLength()
       Maximum length for text columns
       
      optional int32 max_length = 5 [json_name = "maxLength"];
      Specified by:
      getMaxLength in interface ColumnInfoOrBuilder
      Returns:
      The maxLength.
    • setMaxLength

      public ColumnInfo.Builder setMaxLength(int value)
       Maximum length for text columns
       
      optional int32 max_length = 5 [json_name = "maxLength"];
      Parameters:
      value - The maxLength to set.
      Returns:
      This builder for chaining.
    • clearMaxLength

      public ColumnInfo.Builder clearMaxLength()
       Maximum length for text columns
       
      optional int32 max_length = 5 [json_name = "maxLength"];
      Returns:
      This builder for chaining.
    • hasNullable

      public boolean hasNullable()
       Whether column allows NULL values
       
      optional bool nullable = 6 [json_name = "nullable"];
      Specified by:
      hasNullable in interface ColumnInfoOrBuilder
      Returns:
      Whether the nullable field is set.
    • getNullable

      public boolean getNullable()
       Whether column allows NULL values
       
      optional bool nullable = 6 [json_name = "nullable"];
      Specified by:
      getNullable in interface ColumnInfoOrBuilder
      Returns:
      The nullable.
    • setNullable

      public ColumnInfo.Builder setNullable(boolean value)
       Whether column allows NULL values
       
      optional bool nullable = 6 [json_name = "nullable"];
      Parameters:
      value - The nullable to set.
      Returns:
      This builder for chaining.
    • clearNullable

      public ColumnInfo.Builder clearNullable()
       Whether column allows NULL values
       
      optional bool nullable = 6 [json_name = "nullable"];
      Returns:
      This builder for chaining.
    • hasPrimaryKey

      public boolean hasPrimaryKey()
       Whether column is primary key
       
      optional bool primary_key = 7 [json_name = "primaryKey"];
      Specified by:
      hasPrimaryKey in interface ColumnInfoOrBuilder
      Returns:
      Whether the primaryKey field is set.
    • getPrimaryKey

      public boolean getPrimaryKey()
       Whether column is primary key
       
      optional bool primary_key = 7 [json_name = "primaryKey"];
      Specified by:
      getPrimaryKey in interface ColumnInfoOrBuilder
      Returns:
      The primaryKey.
    • setPrimaryKey

      public ColumnInfo.Builder setPrimaryKey(boolean value)
       Whether column is primary key
       
      optional bool primary_key = 7 [json_name = "primaryKey"];
      Parameters:
      value - The primaryKey to set.
      Returns:
      This builder for chaining.
    • clearPrimaryKey

      public ColumnInfo.Builder clearPrimaryKey()
       Whether column is primary key
       
      optional bool primary_key = 7 [json_name = "primaryKey"];
      Returns:
      This builder for chaining.
    • hasAutoIncrement

      public boolean hasAutoIncrement()
       Whether column auto-increments
       
      optional bool auto_increment = 8 [json_name = "autoIncrement"];
      Specified by:
      hasAutoIncrement in interface ColumnInfoOrBuilder
      Returns:
      Whether the autoIncrement field is set.
    • getAutoIncrement

      public boolean getAutoIncrement()
       Whether column auto-increments
       
      optional bool auto_increment = 8 [json_name = "autoIncrement"];
      Specified by:
      getAutoIncrement in interface ColumnInfoOrBuilder
      Returns:
      The autoIncrement.
    • setAutoIncrement

      public ColumnInfo.Builder setAutoIncrement(boolean value)
       Whether column auto-increments
       
      optional bool auto_increment = 8 [json_name = "autoIncrement"];
      Parameters:
      value - The autoIncrement to set.
      Returns:
      This builder for chaining.
    • clearAutoIncrement

      public ColumnInfo.Builder clearAutoIncrement()
       Whether column auto-increments
       
      optional bool auto_increment = 8 [json_name = "autoIncrement"];
      Returns:
      This builder for chaining.
    • hasDefaultValue

      public boolean hasDefaultValue()
       Default value for column
       
      optional string default_value = 9 [json_name = "defaultValue"];
      Specified by:
      hasDefaultValue in interface ColumnInfoOrBuilder
      Returns:
      Whether the defaultValue field is set.
    • getDefaultValue

      public String getDefaultValue()
       Default value for column
       
      optional string default_value = 9 [json_name = "defaultValue"];
      Specified by:
      getDefaultValue in interface ColumnInfoOrBuilder
      Returns:
      The defaultValue.
    • getDefaultValueBytes

      public com.google.protobuf.ByteString getDefaultValueBytes()
       Default value for column
       
      optional string default_value = 9 [json_name = "defaultValue"];
      Specified by:
      getDefaultValueBytes in interface ColumnInfoOrBuilder
      Returns:
      The bytes for defaultValue.
    • setDefaultValue

      public ColumnInfo.Builder setDefaultValue(String value)
       Default value for column
       
      optional string default_value = 9 [json_name = "defaultValue"];
      Parameters:
      value - The defaultValue to set.
      Returns:
      This builder for chaining.
    • clearDefaultValue

      public ColumnInfo.Builder clearDefaultValue()
       Default value for column
       
      optional string default_value = 9 [json_name = "defaultValue"];
      Returns:
      This builder for chaining.
    • setDefaultValueBytes

      public ColumnInfo.Builder setDefaultValueBytes(com.google.protobuf.ByteString value)
       Default value for column
       
      optional string default_value = 9 [json_name = "defaultValue"];
      Parameters:
      value - The bytes for defaultValue to set.
      Returns:
      This builder for chaining.
    • hasFormat

      public boolean hasFormat()
       Display format for column
       
      optional string format = 10 [json_name = "format"];
      Specified by:
      hasFormat in interface ColumnInfoOrBuilder
      Returns:
      Whether the format field is set.
    • getFormat

      public String getFormat()
       Display format for column
       
      optional string format = 10 [json_name = "format"];
      Specified by:
      getFormat in interface ColumnInfoOrBuilder
      Returns:
      The format.
    • getFormatBytes

      public com.google.protobuf.ByteString getFormatBytes()
       Display format for column
       
      optional string format = 10 [json_name = "format"];
      Specified by:
      getFormatBytes in interface ColumnInfoOrBuilder
      Returns:
      The bytes for format.
    • setFormat

      public ColumnInfo.Builder setFormat(String value)
       Display format for column
       
      optional string format = 10 [json_name = "format"];
      Parameters:
      value - The format to set.
      Returns:
      This builder for chaining.
    • clearFormat

      public ColumnInfo.Builder clearFormat()
       Display format for column
       
      optional string format = 10 [json_name = "format"];
      Returns:
      This builder for chaining.
    • setFormatBytes

      public ColumnInfo.Builder setFormatBytes(com.google.protobuf.ByteString value)
       Display format for column
       
      optional string format = 10 [json_name = "format"];
      Parameters:
      value - The bytes for format to set.
      Returns:
      This builder for chaining.