public static final class DescriptorProtos.ExtensionRangeOptions.Declaration extends GeneratedMessageV3 implements DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
google.protobuf.ExtensionRangeOptions.Declaration
Modifier and Type | Class and Description |
---|---|
static class |
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder
Protobuf type
google.protobuf.ExtensionRangeOptions.Declaration |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, GeneratedMessageV3.ExtendableMessage<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends GeneratedMessageV3.ExtendableMessage<MessageT>>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
FULL_NAME_FIELD_NUMBER |
static int |
NUMBER_FIELD_NUMBER |
static Parser<DescriptorProtos.ExtensionRangeOptions.Declaration> |
PARSER
Deprecated.
|
static int |
REPEATED_FIELD_NUMBER |
static int |
RESERVED_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Compares the specified object with this message for equality.
|
static DescriptorProtos.ExtensionRangeOptions.Declaration |
getDefaultInstance() |
DescriptorProtos.ExtensionRangeOptions.Declaration |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
static Descriptors.Descriptor |
getDescriptor() |
String |
getFullName()
The fully-qualified name of the extension field.
|
ByteString |
getFullNameBytes()
The fully-qualified name of the extension field.
|
int |
getNumber()
The extension number declared within the extension range.
|
Parser<DescriptorProtos.ExtensionRangeOptions.Declaration> |
getParserForType()
TODO: Remove this unnecessary intermediate implementation of this method.
|
boolean |
getRepeated()
If true, indicates that the extension must be defined as repeated.
|
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.
|
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
String |
getType()
The fully-qualified type name of the extension field.
|
ByteString |
getTypeBytes()
The fully-qualified type name of the extension field.
|
boolean |
hasFullName()
The fully-qualified name of the extension field.
|
int |
hashCode()
Returns the hash code value for this message.
|
boolean |
hasNumber()
The extension number declared within the extension range.
|
boolean |
hasRepeated()
If true, indicates that the extension must be defined as repeated.
|
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.
|
boolean |
hasType()
The fully-qualified type name of the extension field.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable()
Get the FieldAccessorTable for this type.
|
boolean |
isInitialized()
Returns true if all required fields in the message and all embedded messages are set, false
otherwise.
|
static DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
newBuilder() |
static DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
newBuilder(DescriptorProtos.ExtensionRangeOptions.Declaration prototype) |
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
newBuilderForType()
Constructs a new builder for a message of the same type as this message.
|
protected DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
TODO: remove this together with GeneratedMessageV3.BuilderParent.
|
protected Object |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Creates a new instance of this message type.
|
static DescriptorProtos.ExtensionRangeOptions.Declaration |
parseDelimitedFrom(InputStream input) |
static DescriptorProtos.ExtensionRangeOptions.Declaration |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.ExtensionRangeOptions.Declaration |
parseFrom(byte[] data) |
static DescriptorProtos.ExtensionRangeOptions.Declaration |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.ExtensionRangeOptions.Declaration |
parseFrom(ByteBuffer data) |
static DescriptorProtos.ExtensionRangeOptions.Declaration |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.ExtensionRangeOptions.Declaration |
parseFrom(ByteString data) |
static DescriptorProtos.ExtensionRangeOptions.Declaration |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.ExtensionRangeOptions.Declaration |
parseFrom(CodedInputStream input) |
static DescriptorProtos.ExtensionRangeOptions.Declaration |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.ExtensionRangeOptions.Declaration |
parseFrom(InputStream input) |
static DescriptorProtos.ExtensionRangeOptions.Declaration |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<DescriptorProtos.ExtensionRangeOptions.Declaration> |
parser() |
DescriptorProtos.ExtensionRangeOptions.Declaration.Builder |
toBuilder()
Constructs a builder initialized with the current message.
|
void |
writeTo(CodedOutputStream output)
Serializes the message and writes it to
output . |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, 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
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NUMBER_FIELD_NUMBER
public static final int FULL_NAME_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int RESERVED_FIELD_NUMBER
public static final int REPEATED_FIELD_NUMBER
@Deprecated public static final Parser<DescriptorProtos.ExtensionRangeOptions.Declaration> PARSER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
GeneratedMessageV3
newInstance
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessageV3
internalGetFieldAccessorTable
in class GeneratedMessageV3
public boolean hasNumber()
The extension number declared within the extension range.
optional int32 number = 1;
hasNumber
in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
public int getNumber()
The extension number declared within the extension range.
optional int32 number = 1;
getNumber
in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
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;
hasFullName
in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
public 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;
getFullName
in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
public 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;
getFullNameBytes
in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
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;
hasType
in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
public 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;
getType
in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
public 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;
getTypeBytes
in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
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;
hasReserved
in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
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;
getReserved
in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
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;
hasRepeated
in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
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;
getRepeated
in interface DescriptorProtos.ExtensionRangeOptions.DeclarationOrBuilder
public final boolean isInitialized()
MessageLiteOrBuilder
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
MessageLite
output
. This does not flush or close the
stream.writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
MessageLite
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
Message
true
if the given
object is a message of the same type (as defined by getDescriptorForType()
) and has
identical values for all of its fields. Subclasses must implement this; inheriting Object.equals()
is incorrect.equals
in interface Message
equals
in class AbstractMessage
obj
- object to be compared for equality with this messagetrue
if the specified object is equal to this messagepublic int hashCode()
Message
Object.hashCode()
is incorrect.hashCode
in interface Message
hashCode
in class AbstractMessage
Map.hashCode()
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseDelimitedFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(CodedInputStream input) throws IOException
IOException
public static DescriptorProtos.ExtensionRangeOptions.Declaration parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder newBuilderForType()
MessageLite
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static DescriptorProtos.ExtensionRangeOptions.Declaration.Builder newBuilder()
public static DescriptorProtos.ExtensionRangeOptions.Declaration.Builder newBuilder(DescriptorProtos.ExtensionRangeOptions.Declaration prototype)
public DescriptorProtos.ExtensionRangeOptions.Declaration.Builder toBuilder()
MessageLite
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected DescriptorProtos.ExtensionRangeOptions.Declaration.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
GeneratedMessageV3
newBuilderForType
in class GeneratedMessageV3
public static DescriptorProtos.ExtensionRangeOptions.Declaration getDefaultInstance()
public static Parser<DescriptorProtos.ExtensionRangeOptions.Declaration> parser()
public Parser<DescriptorProtos.ExtensionRangeOptions.Declaration> getParserForType()
GeneratedMessageV3
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public DescriptorProtos.ExtensionRangeOptions.Declaration getDefaultInstanceForType()
MessageLiteOrBuilder
getDefaultInstance()
method of generated
message classes in that this method is an abstract method of the MessageLite
interface
whereas getDefaultInstance()
is a static method of a specific class. They return the
same thing.getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2008–2024. All rights reserved.