Package com.google.protobuf
Class DescriptorProtos.ExtensionRangeOptions.Declaration
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<DescriptorProtos.ExtensionRangeOptions.Declaration,DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
com.google.protobuf.DescriptorProtos.ExtensionRangeOptions.Declaration
- All Implemented Interfaces:
DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder
- Enclosing class:
- DescriptorProtos.ExtensionRangeOptions
public static final class DescriptorProtos.ExtensionRangeOptions.Declaration
extends com.google.protobuf.GeneratedMessageLite<DescriptorProtos.ExtensionRangeOptions.Declaration,DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
implements DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
Protobuf type
google.protobuf.ExtensionRangeOptions.Declaration-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typegoogle.protobuf.ExtensionRangeOptions.DeclarationNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) The fully-qualified name of the extension field.com.google.protobuf.ByteStringThe fully-qualified name of the extension field.intThe extension number declared within the extension range.booleanIf true, indicates that the extension must be defined as repeated.booleanIf true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile.getType()The fully-qualified type name of the extension field.com.google.protobuf.ByteStringThe fully-qualified type name of the extension field.booleanThe fully-qualified name of the extension field.booleanThe extension number declared within the extension range.booleanIf true, indicates that the extension must be defined as repeated.booleanIf 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.parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DescriptorProtos.ExtensionRangeOptions.Declaration>parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
NUMBER_FIELD_NUMBER
public static final int NUMBER_FIELD_NUMBER- See Also:
-
FULL_NAME_FIELD_NUMBER
public static final int FULL_NAME_FIELD_NUMBER- See Also:
-
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER- See Also:
-
RESERVED_FIELD_NUMBER
public static final int RESERVED_FIELD_NUMBER- See Also:
-
REPEATED_FIELD_NUMBER
public static final int REPEATED_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasNumber
public boolean hasNumber()The extension number declared within the extension range.
optional int32 number = 1 [json_name = "number"];- 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 [json_name = "number"];- 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 [json_name = "fullName"];- Specified by:
hasFullNamein interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- Whether the fullName field is set.
-
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 [json_name = "fullName"];- 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 [json_name = "fullName"];- 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 [json_name = "type"];- Specified by:
hasTypein interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- Whether the type field is set.
-
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 [json_name = "type"];- 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 [json_name = "type"];- 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 [json_name = "reserved"];- 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 [json_name = "reserved"];- 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 [json_name = "repeated"];- 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 [json_name = "repeated"];- Specified by:
getRepeatedin interfaceDescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder- Returns:
- The repeated.
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(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(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static DescriptorProtos.ExtensionRangeOptions.Declaration.Builder newBuilder(DescriptorProtos.ExtensionRangeOptions.Declaration prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<DescriptorProtos.ExtensionRangeOptions.Declaration,DescriptorProtos.ExtensionRangeOptions.Declaration.Builder>
-
getDefaultInstance
-
parser
public static com.google.protobuf.Parser<DescriptorProtos.ExtensionRangeOptions.Declaration> parser()
-