public static final class DescriptorProtos.UninterpretedOption extends GeneratedMessageV3 implements DescriptorProtos.UninterpretedOptionOrBuilder
A message representing a option the parser does not recognize. This only appears in options protos created by the compiler::Parser class. DescriptorPool resolves these when building Descriptor objects. Therefore, options protos in descriptor objects (e.g. returned by Descriptor::options(), or produced by Descriptor::CopyTo()) will never have UninterpretedOptions in them.Protobuf type
google.protobuf.UninterpretedOption
Modifier and Type | Class and Description |
---|---|
static class |
DescriptorProtos.UninterpretedOption.Builder
A message representing a option the parser does not recognize.
|
static class |
DescriptorProtos.UninterpretedOption.NamePart
The name of the uninterpreted option.
|
static interface |
DescriptorProtos.UninterpretedOption.NamePartOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable
Modifier and Type | Field and Description |
---|---|
static int |
AGGREGATE_VALUE_FIELD_NUMBER |
static int |
DOUBLE_VALUE_FIELD_NUMBER |
static int |
IDENTIFIER_VALUE_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
NEGATIVE_INT_VALUE_FIELD_NUMBER |
static Parser<DescriptorProtos.UninterpretedOption> |
PARSER
Deprecated.
|
static int |
POSITIVE_INT_VALUE_FIELD_NUMBER |
static int |
STRING_VALUE_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.
|
String |
getAggregateValue()
optional string aggregate_value = 8; |
ByteString |
getAggregateValueBytes()
optional string aggregate_value = 8; |
static DescriptorProtos.UninterpretedOption |
getDefaultInstance() |
DescriptorProtos.UninterpretedOption |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
static Descriptors.Descriptor |
getDescriptor() |
double |
getDoubleValue()
optional double double_value = 6; |
String |
getIdentifierValue()
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing.
|
ByteString |
getIdentifierValueBytes()
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing.
|
DescriptorProtos.UninterpretedOption.NamePart |
getName(int index)
repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
int |
getNameCount()
repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
List<DescriptorProtos.UninterpretedOption.NamePart> |
getNameList()
repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
DescriptorProtos.UninterpretedOption.NamePartOrBuilder |
getNameOrBuilder(int index)
repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
List<? extends DescriptorProtos.UninterpretedOption.NamePartOrBuilder> |
getNameOrBuilderList()
repeated .google.protobuf.UninterpretedOption.NamePart name = 2; |
long |
getNegativeIntValue()
optional int64 negative_int_value = 5; |
Parser<DescriptorProtos.UninterpretedOption> |
getParserForType()
Gets the parser for a message of the same type as this message.
|
long |
getPositiveIntValue()
optional uint64 positive_int_value = 4; |
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
ByteString |
getStringValue()
optional bytes string_value = 7; |
UnknownFieldSet |
getUnknownFields()
Get the
UnknownFieldSet for this message. |
boolean |
hasAggregateValue()
optional string aggregate_value = 8; |
boolean |
hasDoubleValue()
optional double double_value = 6; |
int |
hashCode()
Returns the hash code value for this message.
|
boolean |
hasIdentifierValue()
The value of the uninterpreted option, in whatever type the tokenizer
identified it as during parsing.
|
boolean |
hasNegativeIntValue()
optional int64 negative_int_value = 5; |
boolean |
hasPositiveIntValue()
optional uint64 positive_int_value = 4; |
boolean |
hasStringValue()
optional bytes string_value = 7; |
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.UninterpretedOption.Builder |
newBuilder() |
static DescriptorProtos.UninterpretedOption.Builder |
newBuilder(DescriptorProtos.UninterpretedOption prototype) |
DescriptorProtos.UninterpretedOption.Builder |
newBuilderForType()
Constructs a new builder for a message of the same type as this message.
|
protected DescriptorProtos.UninterpretedOption.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
TODO(xiaofeng): remove this together with GeneratedMessageV3.BuilderParent.
|
static DescriptorProtos.UninterpretedOption |
parseDelimitedFrom(InputStream input) |
static DescriptorProtos.UninterpretedOption |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.UninterpretedOption |
parseFrom(byte[] data) |
static DescriptorProtos.UninterpretedOption |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.UninterpretedOption |
parseFrom(ByteBuffer data) |
static DescriptorProtos.UninterpretedOption |
parseFrom(ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.UninterpretedOption |
parseFrom(ByteString data) |
static DescriptorProtos.UninterpretedOption |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.UninterpretedOption |
parseFrom(CodedInputStream input) |
static DescriptorProtos.UninterpretedOption |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.UninterpretedOption |
parseFrom(InputStream input) |
static DescriptorProtos.UninterpretedOption |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<DescriptorProtos.UninterpretedOption> |
parser() |
DescriptorProtos.UninterpretedOption.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, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int NAME_FIELD_NUMBER
public static final int IDENTIFIER_VALUE_FIELD_NUMBER
public static final int POSITIVE_INT_VALUE_FIELD_NUMBER
public static final int NEGATIVE_INT_VALUE_FIELD_NUMBER
public static final int DOUBLE_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER
public static final int AGGREGATE_VALUE_FIELD_NUMBER
@Deprecated public static final Parser<DescriptorProtos.UninterpretedOption> PARSER
public final UnknownFieldSet getUnknownFields()
MessageOrBuilder
UnknownFieldSet
for this message.getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessageV3
internalGetFieldAccessorTable
in class GeneratedMessageV3
public List<DescriptorProtos.UninterpretedOption.NamePart> getNameList()
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
getNameList
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public List<? extends DescriptorProtos.UninterpretedOption.NamePartOrBuilder> getNameOrBuilderList()
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
getNameOrBuilderList
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public int getNameCount()
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
getNameCount
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public DescriptorProtos.UninterpretedOption.NamePart getName(int index)
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
getName
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public DescriptorProtos.UninterpretedOption.NamePartOrBuilder getNameOrBuilder(int index)
repeated .google.protobuf.UninterpretedOption.NamePart name = 2;
getNameOrBuilder
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public boolean hasIdentifierValue()
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
hasIdentifierValue
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public String getIdentifierValue()
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
getIdentifierValue
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public ByteString getIdentifierValueBytes()
The value of the uninterpreted option, in whatever type the tokenizer identified it as during parsing. Exactly one of these should be set.
optional string identifier_value = 3;
getIdentifierValueBytes
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public boolean hasPositiveIntValue()
optional uint64 positive_int_value = 4;
hasPositiveIntValue
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public long getPositiveIntValue()
optional uint64 positive_int_value = 4;
getPositiveIntValue
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public boolean hasNegativeIntValue()
optional int64 negative_int_value = 5;
hasNegativeIntValue
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public long getNegativeIntValue()
optional int64 negative_int_value = 5;
getNegativeIntValue
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public boolean hasDoubleValue()
optional double double_value = 6;
hasDoubleValue
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public double getDoubleValue()
optional double double_value = 6;
getDoubleValue
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public boolean hasStringValue()
optional bytes string_value = 7;
hasStringValue
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public ByteString getStringValue()
optional bytes string_value = 7;
getStringValue
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public boolean hasAggregateValue()
optional string aggregate_value = 8;
hasAggregateValue
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public String getAggregateValue()
optional string aggregate_value = 8;
getAggregateValue
in interface DescriptorProtos.UninterpretedOptionOrBuilder
public ByteString getAggregateValueBytes()
optional string aggregate_value = 8;
getAggregateValueBytes
in interface DescriptorProtos.UninterpretedOptionOrBuilder
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.UninterpretedOption parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.UninterpretedOption parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.UninterpretedOption parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.UninterpretedOption parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.UninterpretedOption parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.UninterpretedOption parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.UninterpretedOption parseFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.UninterpretedOption parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.UninterpretedOption parseDelimitedFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.UninterpretedOption parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.UninterpretedOption parseFrom(CodedInputStream input) throws IOException
IOException
public static DescriptorProtos.UninterpretedOption parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public DescriptorProtos.UninterpretedOption.Builder newBuilderForType()
MessageLite
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static DescriptorProtos.UninterpretedOption.Builder newBuilder()
public static DescriptorProtos.UninterpretedOption.Builder newBuilder(DescriptorProtos.UninterpretedOption prototype)
public DescriptorProtos.UninterpretedOption.Builder toBuilder()
MessageLite
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected DescriptorProtos.UninterpretedOption.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
GeneratedMessageV3
newBuilderForType
in class GeneratedMessageV3
public static DescriptorProtos.UninterpretedOption getDefaultInstance()
public static Parser<DescriptorProtos.UninterpretedOption> parser()
public Parser<DescriptorProtos.UninterpretedOption> getParserForType()
MessageLite
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public DescriptorProtos.UninterpretedOption 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–2017 Google. All rights reserved.