Class TypeProtos.MajorType.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<TypeProtos.MajorType.Builder>
org.apache.drill.common.types.TypeProtos.MajorType.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, TypeProtos.MajorTypeOrBuilder
Enclosing class:
TypeProtos.MajorType

public static final class TypeProtos.MajorType.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<TypeProtos.MajorType.Builder> implements TypeProtos.MajorTypeOrBuilder
Protobuf type common.MajorType
  • 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<TypeProtos.MajorType.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<TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
    • getDefaultInstanceForType

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

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

      public TypeProtos.MajorType 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<TypeProtos.MajorType.Builder>
    • setField

      public TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
    • clearField

      public TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
    • clearOneof

      public TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
    • setRepeatedField

      public TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
    • addRepeatedField

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

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

      public TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
      Throws:
      IOException
    • hasMinorType

      public boolean hasMinorType()
      optional .common.MinorType minor_type = 1;
      Specified by:
      hasMinorType in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      Whether the minorType field is set.
    • getMinorType

      public TypeProtos.MinorType getMinorType()
      optional .common.MinorType minor_type = 1;
      Specified by:
      getMinorType in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      The minorType.
    • setMinorType

      optional .common.MinorType minor_type = 1;
      Parameters:
      value - The minorType to set.
      Returns:
      This builder for chaining.
    • clearMinorType

      public TypeProtos.MajorType.Builder clearMinorType()
      optional .common.MinorType minor_type = 1;
      Returns:
      This builder for chaining.
    • hasMode

      public boolean hasMode()
      optional .common.DataMode mode = 2;
      Specified by:
      hasMode in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      Whether the mode field is set.
    • getMode

      public TypeProtos.DataMode getMode()
      optional .common.DataMode mode = 2;
      Specified by:
      getMode in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      The mode.
    • setMode

      optional .common.DataMode mode = 2;
      Parameters:
      value - The mode to set.
      Returns:
      This builder for chaining.
    • clearMode

      public TypeProtos.MajorType.Builder clearMode()
      optional .common.DataMode mode = 2;
      Returns:
      This builder for chaining.
    • hasWidth

      public boolean hasWidth()
      optional int32 width = 3;
      Specified by:
      hasWidth in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      Whether the width field is set.
    • getWidth

      public int getWidth()
      optional int32 width = 3;
      Specified by:
      getWidth in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      The width.
    • setWidth

      public TypeProtos.MajorType.Builder setWidth(int value)
      optional int32 width = 3;
      Parameters:
      value - The width to set.
      Returns:
      This builder for chaining.
    • clearWidth

      public TypeProtos.MajorType.Builder clearWidth()
      optional int32 width = 3;
      Returns:
      This builder for chaining.
    • hasPrecision

      public boolean hasPrecision()
       used for decimal types or as optional length for fixed size value
       
      optional int32 precision = 4;
      Specified by:
      hasPrecision in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      Whether the precision field is set.
    • getPrecision

      public int getPrecision()
       used for decimal types or as optional length for fixed size value
       
      optional int32 precision = 4;
      Specified by:
      getPrecision in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      The precision.
    • setPrecision

      public TypeProtos.MajorType.Builder setPrecision(int value)
       used for decimal types or as optional length for fixed size value
       
      optional int32 precision = 4;
      Parameters:
      value - The precision to set.
      Returns:
      This builder for chaining.
    • clearPrecision

      public TypeProtos.MajorType.Builder clearPrecision()
       used for decimal types or as optional length for fixed size value
       
      optional int32 precision = 4;
      Returns:
      This builder for chaining.
    • hasScale

      public boolean hasScale()
       used for decimal types
       
      optional int32 scale = 5;
      Specified by:
      hasScale in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      Whether the scale field is set.
    • getScale

      public int getScale()
       used for decimal types
       
      optional int32 scale = 5;
      Specified by:
      getScale in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      The scale.
    • setScale

      public TypeProtos.MajorType.Builder setScale(int value)
       used for decimal types
       
      optional int32 scale = 5;
      Parameters:
      value - The scale to set.
      Returns:
      This builder for chaining.
    • clearScale

      public TypeProtos.MajorType.Builder clearScale()
       used for decimal types
       
      optional int32 scale = 5;
      Returns:
      This builder for chaining.
    • hasTimeZone

      public boolean hasTimeZone()
       used by TimeStamp type
       
      optional int32 timeZone = 6;
      Specified by:
      hasTimeZone in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      Whether the timeZone field is set.
    • getTimeZone

      public int getTimeZone()
       used by TimeStamp type
       
      optional int32 timeZone = 6;
      Specified by:
      getTimeZone in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      The timeZone.
    • setTimeZone

      public TypeProtos.MajorType.Builder setTimeZone(int value)
       used by TimeStamp type
       
      optional int32 timeZone = 6;
      Parameters:
      value - The timeZone to set.
      Returns:
      This builder for chaining.
    • clearTimeZone

      public TypeProtos.MajorType.Builder clearTimeZone()
       used by TimeStamp type
       
      optional int32 timeZone = 6;
      Returns:
      This builder for chaining.
    • getSubTypeList

      public List<TypeProtos.MinorType> getSubTypeList()
       used by Union type
       
      repeated .common.MinorType sub_type = 7;
      Specified by:
      getSubTypeList in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      A list containing the subType.
    • getSubTypeCount

      public int getSubTypeCount()
       used by Union type
       
      repeated .common.MinorType sub_type = 7;
      Specified by:
      getSubTypeCount in interface TypeProtos.MajorTypeOrBuilder
      Returns:
      The count of subType.
    • getSubType

      public TypeProtos.MinorType getSubType(int index)
       used by Union type
       
      repeated .common.MinorType sub_type = 7;
      Specified by:
      getSubType in interface TypeProtos.MajorTypeOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The subType at the given index.
    • setSubType

      public TypeProtos.MajorType.Builder setSubType(int index, TypeProtos.MinorType value)
       used by Union type
       
      repeated .common.MinorType sub_type = 7;
      Parameters:
      index - The index to set the value at.
      value - The subType to set.
      Returns:
      This builder for chaining.
    • addSubType

       used by Union type
       
      repeated .common.MinorType sub_type = 7;
      Parameters:
      value - The subType to add.
      Returns:
      This builder for chaining.
    • addAllSubType

      public TypeProtos.MajorType.Builder addAllSubType(Iterable<? extends TypeProtos.MinorType> values)
       used by Union type
       
      repeated .common.MinorType sub_type = 7;
      Parameters:
      values - The subType to add.
      Returns:
      This builder for chaining.
    • clearSubType

      public TypeProtos.MajorType.Builder clearSubType()
       used by Union type
       
      repeated .common.MinorType sub_type = 7;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
    • mergeUnknownFields

      public final TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>