Class DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder>
com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder>
com.google.protobuf.generated.DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder
- All Implemented Interfaces:
DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
DescriptorProtos.EnumDescriptorProto.EnumReservedRange
public static final class DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder>
implements DescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder
Range of reserved numeric values. Reserved values may not be used by entries in the same enum. Reserved ranges may not overlap. Note that this is distinct from DescriptorProto.ReservedRange in that it is inclusive such that it can appropriately represent the entire int32 domain.Protobuf type
google.protobuf.EnumDescriptorProto.EnumReservedRange
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
clearEnd()
Inclusive.Inclusive.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
getEnd()
Inclusive.int
getStart()
Inclusive.boolean
hasEnd()
Inclusive.boolean
hasStart()
Inclusive.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) setEnd
(int value) Inclusive.setStart
(int value) Inclusive.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.EnumReservedRange.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.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.EnumReservedRange.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.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.EnumReservedRange.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
-
mergeFrom
public DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder>
-
mergeFrom
public DescriptorProtos.EnumDescriptorProto.EnumReservedRange.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<DescriptorProtos.EnumDescriptorProto.EnumReservedRange.Builder>
- Throws:
IOException
-
hasStart
public boolean hasStart()Inclusive.
optional int32 start = 1;
- Specified by:
hasStart
in interfaceDescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder
- Returns:
- Whether the start field is set.
-
getStart
public int getStart()Inclusive.
optional int32 start = 1;
- Specified by:
getStart
in interfaceDescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder
- Returns:
- The start.
-
setStart
Inclusive.
optional int32 start = 1;
- Parameters:
value
- The start to set.- Returns:
- This builder for chaining.
-
clearStart
Inclusive.
optional int32 start = 1;
- Returns:
- This builder for chaining.
-
hasEnd
public boolean hasEnd()Inclusive.
optional int32 end = 2;
- Specified by:
hasEnd
in interfaceDescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder
- Returns:
- Whether the end field is set.
-
getEnd
public int getEnd()Inclusive.
optional int32 end = 2;
- Specified by:
getEnd
in interfaceDescriptorProtos.EnumDescriptorProto.EnumReservedRangeOrBuilder
- Returns:
- The end.
-
setEnd
Inclusive.
optional int32 end = 2;
- Parameters:
value
- The end to set.- Returns:
- This builder for chaining.
-
clearEnd
Inclusive.
optional int32 end = 2;
- Returns:
- This builder for chaining.
-