Package com.google.protobuf
Class DescriptorProtos.ExtensionRangeOptions.Declaration
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Declaration
-
- All Implemented Interfaces:
DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
- Enclosing class:
- DescriptorProtos.ExtensionRangeOptions
public static final class DescriptorProtos.ExtensionRangeOptions.Declaration extends com.google.protobuf.GeneratedMessageV3 implements DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
Protobuf typegoogle.protobuf.ExtensionRangeOptions.Declaration- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDescriptorProtos.ExtensionRangeOptions.Declaration.BuilderProtobuf typegoogle.protobuf.ExtensionRangeOptions.Declaration-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intFULL_NAME_FIELD_NUMBERstatic intNUMBER_FIELD_NUMBERstatic com.google.protobuf.Parser<DescriptorProtos.ExtensionRangeOptions.Declaration>PARSERDeprecated.static intREPEATED_FIELD_NUMBERstatic intRESERVED_FIELD_NUMBERstatic intTYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)static DescriptorProtos.ExtensionRangeOptions.DeclarationgetDefaultInstance()DescriptorProtos.ExtensionRangeOptions.DeclarationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()java.lang.StringgetFullName()The fully-qualified name of the extension field.com.google.protobuf.ByteStringgetFullNameBytes()The fully-qualified name of the extension field.intgetNumber()The extension number declared within the extension range.com.google.protobuf.Parser<DescriptorProtos.ExtensionRangeOptions.Declaration>getParserForType()booleangetRepeated()If true, indicates that the extension must be defined as repeated.booleangetReserved()If true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile.intgetSerializedSize()java.lang.StringgetType()The fully-qualified type name of the extension field.com.google.protobuf.ByteStringgetTypeBytes()The fully-qualified type name of the extension field.booleanhasFullName()The fully-qualified name of the extension field.inthashCode()booleanhasNumber()The extension number declared within the extension range.booleanhasRepeated()If true, indicates that the extension must be defined as repeated.booleanhasReserved()If true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile.booleanhasType()The fully-qualified type name of the extension field.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DescriptorProtos.ExtensionRangeOptions.Declaration.BuildernewBuilder()static DescriptorProtos.ExtensionRangeOptions.Declaration.BuildernewBuilder(DescriptorProtos.ExtensionRangeOptions.Declaration prototype)DescriptorProtos.ExtensionRangeOptions.Declaration.BuildernewBuilderForType()protected DescriptorProtos.ExtensionRangeOptions.Declaration.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DescriptorProtos.ExtensionRangeOptions.DeclarationparseDelimitedFrom(java.io.InputStream input)static DescriptorProtos.ExtensionRangeOptions.DeclarationparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.ExtensionRangeOptions.DeclarationparseFrom(byte[] data)static DescriptorProtos.ExtensionRangeOptions.DeclarationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.ExtensionRangeOptions.DeclarationparseFrom(com.google.protobuf.ByteString data)static DescriptorProtos.ExtensionRangeOptions.DeclarationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.ExtensionRangeOptions.DeclarationparseFrom(com.google.protobuf.CodedInputStream input)static DescriptorProtos.ExtensionRangeOptions.DeclarationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.ExtensionRangeOptions.DeclarationparseFrom(java.io.InputStream input)static DescriptorProtos.ExtensionRangeOptions.DeclarationparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.ExtensionRangeOptions.DeclarationparseFrom(java.nio.ByteBuffer data)static DescriptorProtos.ExtensionRangeOptions.DeclarationparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DescriptorProtos.ExtensionRangeOptions.Declaration>parser()DescriptorProtos.ExtensionRangeOptions.Declaration.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NUMBER_FIELD_NUMBER
public static final int NUMBER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FULL_NAME_FIELD_NUMBER
public static final int FULL_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESERVED_FIELD_NUMBER
public static final int RESERVED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REPEATED_FIELD_NUMBER
public static final int REPEATED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<DescriptorProtos.ExtensionRangeOptions.Declaration> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasNumber
public boolean hasNumber()
The extension number declared within the extension range.
optional int32 number = 1;- Specified by:
hasNumberin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- Whether the number field is set.
-
getNumber
public int getNumber()
The extension number declared within the extension range.
optional int32 number = 1;- Specified by:
getNumberin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The number.
-
hasFullName
public boolean hasFullName()
The fully-qualified name of the extension field. There must be a leading dot in front of the full name.
optional string full_name = 2;- Specified by:
hasFullNamein interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- Whether the fullName field is set.
-
getFullName
public java.lang.String getFullName()
The fully-qualified name of the extension field. There must be a leading dot in front of the full name.
optional string full_name = 2;- Specified by:
getFullNamein interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The fullName.
-
getFullNameBytes
public com.google.protobuf.ByteString getFullNameBytes()
The fully-qualified name of the extension field. There must be a leading dot in front of the full name.
optional string full_name = 2;- Specified by:
getFullNameBytesin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The bytes for fullName.
-
hasType
public boolean hasType()
The fully-qualified type name of the extension field. Unlike Metadata.type, Declaration.type must have a leading dot for messages and enums.
optional string type = 3;- Specified by:
hasTypein interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- Whether the type field is set.
-
getType
public java.lang.String getType()
The fully-qualified type name of the extension field. Unlike Metadata.type, Declaration.type must have a leading dot for messages and enums.
optional string type = 3;- Specified by:
getTypein interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The type.
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()
The fully-qualified type name of the extension field. Unlike Metadata.type, Declaration.type must have a leading dot for messages and enums.
optional string type = 3;- Specified by:
getTypeBytesin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The bytes for type.
-
hasReserved
public boolean hasReserved()
If true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile. Set this when a declared extension field is deleted.
optional bool reserved = 5;- Specified by:
hasReservedin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- Whether the reserved field is set.
-
getReserved
public boolean getReserved()
If true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile. Set this when a declared extension field is deleted.
optional bool reserved = 5;- Specified by:
getReservedin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The reserved.
-
hasRepeated
public boolean hasRepeated()
If true, indicates that the extension must be defined as repeated. Otherwise the extension must be defined as optional.
optional bool repeated = 6;- Specified by:
hasRepeatedin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- Whether the repeated field is set.
-
getRepeated
public boolean getRepeated()
If true, indicates that the extension must be defined as repeated. Otherwise the extension must be defined as optional.
optional bool repeated = 6;- Specified by:
getRepeatedin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The repeated.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DescriptorProtos.ExtensionRangeOptions.Declaration.Builder newBuilder()
-
newBuilder
public static DescriptorProtos.ExtensionRangeOptions.Declaration.Builder newBuilder(DescriptorProtos.ExtensionRangeOptions.Declaration prototype)
-
toBuilder
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DescriptorProtos.ExtensionRangeOptions.Declaration.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DescriptorProtos.ExtensionRangeOptions.Declaration getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DescriptorProtos.ExtensionRangeOptions.Declaration> parser()
-
getParserForType
public com.google.protobuf.Parser<DescriptorProtos.ExtensionRangeOptions.Declaration> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DescriptorProtos.ExtensionRangeOptions.Declaration getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-