public static final class DescriptorProtos.UninterpretedOption extends GeneratedMessageLite<DescriptorProtos.UninterpretedOption,DescriptorProtos.UninterpretedOption.Builder> 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 |
GeneratedMessageLite.DefaultInstanceBasedParser<T extends GeneratedMessageLite<T,?>>, GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>, GeneratedMessageLite.MergeFromVisitor, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedForm, GeneratedMessageLite.Visitor
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 int |
POSITIVE_INT_VALUE_FIELD_NUMBER |
static int |
STRING_VALUE_FIELD_NUMBER |
memoizedSerializedSize, unknownFields
memoizedHashCode
Modifier and Type | Method and Description |
---|---|
protected Object |
dynamicMethod(GeneratedMessageLite.MethodToInvoke method,
Object arg0,
Object arg1)
A method that implements different types of operations described in
GeneratedMessageLite.MethodToInvoke . |
String |
getAggregateValue()
optional string aggregate_value = 8; |
ByteString |
getAggregateValueBytes()
optional string aggregate_value = 8; |
static DescriptorProtos.UninterpretedOption |
getDefaultInstance() |
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; |
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; |
boolean |
hasAggregateValue()
optional string aggregate_value = 8; |
boolean |
hasDoubleValue()
optional double double_value = 6; |
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; |
static DescriptorProtos.UninterpretedOption.Builder |
newBuilder() |
static DescriptorProtos.UninterpretedOption.Builder |
newBuilder(DescriptorProtos.UninterpretedOption prototype) |
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(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() |
void |
writeTo(CodedOutputStream output)
Serializes the message and writes it to
output . |
dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, hashCode, isInitialized, isInitialized, makeImmutable, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, toBuilder, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDefaultInstanceForType, isInitialized
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
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;
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;
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 void writeTo(CodedOutputStream output) throws IOException
MessageLite
output
. This does not
flush or close the stream.writeTo
in interface MessageLite
IOException
public int getSerializedSize()
MessageLite
getSerializedSize
in interface MessageLite
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 static DescriptorProtos.UninterpretedOption.Builder newBuilder()
public static DescriptorProtos.UninterpretedOption.Builder newBuilder(DescriptorProtos.UninterpretedOption prototype)
protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
GeneratedMessageLite
GeneratedMessageLite.MethodToInvoke
.
Theses different kinds of operations are required to implement message-level operations for
builders in the runtime. This method bundles those operations to reduce the generated methods
count.
MERGE_FROM_STREAM
is parameterized with an CodedInputStream
and
ExtensionRegistryLite
. It consumes the input stream, parsing the contents into the
returned protocol buffer. If parsing throws an InvalidProtocolBufferException
, the
implementation wraps it in a RuntimeException.
NEW_INSTANCE
returns a new instance of the protocol buffer that has not yet been
made immutable. See MAKE_IMMUTABLE
.
IS_INITIALIZED
is parameterized with a Boolean
detailing whether to
memoize. It returns null
for false and the default instance for true. We optionally
memoize to support the Builder case, where memoization is not desired.
NEW_BUILDER
returns a BuilderType
instance.
VISIT
is parameterized with a Visitor
and a MessageType
and
recursively iterates through the fields side by side between this and the instance.
MAKE_IMMUTABLE
sets all internal fields to an immutable state.
For use by generated code only.
public static DescriptorProtos.UninterpretedOption getDefaultInstance()
public static Parser<DescriptorProtos.UninterpretedOption> parser()
Copyright © 2008–2016 Google. All rights reserved.