Package org.apache.drill.common.types
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 Summary
Modifier and TypeMethodDescriptionaddAllSubType
(Iterable<? extends TypeProtos.MinorType> values) used by Union typeaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) addSubType
(TypeProtos.MinorType value) used by Union typebuild()
clear()
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) optional .common.MinorType minor_type = 1;
optional .common.DataMode mode = 2;
clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) used for decimal types or as optional length for fixed size valueused for decimal typesused by Union typeused by TimeStamp typeoptional int32 width = 3;
clone()
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
optional .common.MinorType minor_type = 1;
getMode()
optional .common.DataMode mode = 2;
int
used for decimal types or as optional length for fixed size valueint
getScale()
used for decimal typesgetSubType
(int index) used by Union typeint
used by Union typeused by Union typeint
used by TimeStamp typeint
getWidth()
optional int32 width = 3;
boolean
optional .common.MinorType minor_type = 1;
boolean
hasMode()
optional .common.DataMode mode = 2;
boolean
used for decimal types or as optional length for fixed size valueboolean
hasScale()
used for decimal typesboolean
used by TimeStamp typeboolean
hasWidth()
optional int32 width = 3;
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(TypeProtos.MajorType other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setMinorType
(TypeProtos.MinorType value) optional .common.MinorType minor_type = 1;
setMode
(TypeProtos.DataMode value) optional .common.DataMode mode = 2;
setPrecision
(int value) used for decimal types or as optional length for fixed size valuesetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setScale
(int value) used for decimal typessetSubType
(int index, TypeProtos.MinorType value) used by Union typesetTimeZone
(int value) used by TimeStamp typesetUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setWidth
(int value) optional int32 width = 3;
Methods 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<TypeProtos.MajorType.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<TypeProtos.MajorType.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<TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
-
setField
public TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
-
clearField
public TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
-
clearOneof
public TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
-
setRepeatedField
public TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
-
addRepeatedField
public TypeProtos.MajorType.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<TypeProtos.MajorType.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TypeProtos.MajorType.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TypeProtos.MajorType.Builder>
- Throws:
IOException
-
hasMinorType
public boolean hasMinorType()optional .common.MinorType minor_type = 1;
- Specified by:
hasMinorType
in interfaceTypeProtos.MajorTypeOrBuilder
- Returns:
- Whether the minorType field is set.
-
getMinorType
optional .common.MinorType minor_type = 1;
- Specified by:
getMinorType
in interfaceTypeProtos.MajorTypeOrBuilder
- Returns:
- The minorType.
-
setMinorType
optional .common.MinorType minor_type = 1;
- Parameters:
value
- The minorType to set.- Returns:
- This builder for chaining.
-
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 interfaceTypeProtos.MajorTypeOrBuilder
- Returns:
- Whether the mode field is set.
-
getMode
optional .common.DataMode mode = 2;
- Specified by:
getMode
in interfaceTypeProtos.MajorTypeOrBuilder
- Returns:
- The mode.
-
setMode
optional .common.DataMode mode = 2;
- Parameters:
value
- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
optional .common.DataMode mode = 2;
- Returns:
- This builder for chaining.
-
hasWidth
public boolean hasWidth()optional int32 width = 3;
- Specified by:
hasWidth
in interfaceTypeProtos.MajorTypeOrBuilder
- Returns:
- Whether the width field is set.
-
getWidth
public int getWidth()optional int32 width = 3;
- Specified by:
getWidth
in interfaceTypeProtos.MajorTypeOrBuilder
- Returns:
- The width.
-
setWidth
optional int32 width = 3;
- Parameters:
value
- The width to set.- Returns:
- This builder for chaining.
-
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 interfaceTypeProtos.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 interfaceTypeProtos.MajorTypeOrBuilder
- Returns:
- The precision.
-
setPrecision
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
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 interfaceTypeProtos.MajorTypeOrBuilder
- Returns:
- Whether the scale field is set.
-
getScale
public int getScale()used for decimal types
optional int32 scale = 5;
- Specified by:
getScale
in interfaceTypeProtos.MajorTypeOrBuilder
- Returns:
- The scale.
-
setScale
used for decimal types
optional int32 scale = 5;
- Parameters:
value
- The scale to set.- Returns:
- This builder for chaining.
-
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 interfaceTypeProtos.MajorTypeOrBuilder
- Returns:
- Whether the timeZone field is set.
-
getTimeZone
public int getTimeZone()used by TimeStamp type
optional int32 timeZone = 6;
- Specified by:
getTimeZone
in interfaceTypeProtos.MajorTypeOrBuilder
- Returns:
- The timeZone.
-
setTimeZone
used by TimeStamp type
optional int32 timeZone = 6;
- Parameters:
value
- The timeZone to set.- Returns:
- This builder for chaining.
-
clearTimeZone
used by TimeStamp type
optional int32 timeZone = 6;
- Returns:
- This builder for chaining.
-
getSubTypeList
used by Union type
repeated .common.MinorType sub_type = 7;
- Specified by:
getSubTypeList
in interfaceTypeProtos.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 interfaceTypeProtos.MajorTypeOrBuilder
- Returns:
- The count of subType.
-
getSubType
used by Union type
repeated .common.MinorType sub_type = 7;
- Specified by:
getSubType
in interfaceTypeProtos.MajorTypeOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The subType at the given index.
-
setSubType
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
used by Union type
repeated .common.MinorType sub_type = 7;
- Parameters:
values
- The subType to add.- Returns:
- This builder for chaining.
-
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TypeProtos.MajorType.Builder>
-
mergeUnknownFields
public final TypeProtos.MajorType.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TypeProtos.MajorType.Builder>
-