public static final class DescriptorProtos.EnumOptions extends GeneratedMessage.ExtendableMessage <DescriptorProtos .EnumOptions > implements DescriptorProtos .EnumOptionsOrBuilder
google.protobuf.EnumOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
DescriptorProtos
Protobuf type
google.protobuf.EnumOptions
|
GeneratedMessage.ExtendableMessage.ExtensionWriter GeneratedMessage.BuilderParent , GeneratedMessage.ExtendableBuilder <MessageType extends GeneratedMessage.ExtendableMessage ,BuilderType extends GeneratedMessage.ExtendableBuilder >, GeneratedMessage.ExtendableMessage <MessageType extends GeneratedMessage.ExtendableMessage >, GeneratedMessage.ExtendableMessageOrBuilder <MessageType extends GeneratedMessage.ExtendableMessage >, GeneratedMessage.FieldAccessorTable , GeneratedMessage.GeneratedExtension <ContainingType extends Message,Type> | Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_ALIAS_FIELD_NUMBER
|
static int |
DEPRECATED_FIELD_NUMBER
|
static Parser |
PARSER
|
static int |
UNINTERPRETED_OPTION_FIELD_NUMBER
|
alwaysUseFieldBuildersmemoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowAlias()
optional bool allow_alias = 2;
|
static DescriptorProtos |
getDefaultInstance()
|
DescriptorProtos |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
boolean |
getDeprecated()
optional bool deprecated = 3 [default = false];
|
static Descriptors |
getDescriptor()
|
Parser |
getParserForType()
Gets the parser for a message of the same type as this message.
|
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
DescriptorProtos |
getUninterpretedOption(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
int |
getUninterpretedOptionCount()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
List |
getUninterpretedOptionList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
DescriptorProtos |
getUninterpretedOptionOrBuilder(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
List |
getUninterpretedOptionOrBuilderList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
|
UnknownFieldSet |
getUnknownFields()
Get the
UnknownFieldSet for this message.
|
boolean |
hasAllowAlias()
optional bool allow_alias = 2;
|
boolean |
hasDeprecated()
optional bool deprecated = 3 [default = false];
|
protected GeneratedMessage |
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 |
newBuilder()
|
static DescriptorProtos |
newBuilder(DescriptorProtos
|
DescriptorProtos |
newBuilderForType()
Constructs a new builder for a message of the same type as this message.
|
protected DescriptorProtos |
newBuilderForType(GeneratedMessage
|
static DescriptorProtos |
parseDelimitedFrom(InputStream
|
static DescriptorProtos |
parseDelimitedFrom(InputStream
|
static DescriptorProtos |
parseFrom(byte[] data)
|
static DescriptorProtos |
parseFrom(byte[] data, ExtensionRegistryLite
|
static DescriptorProtos |
parseFrom(ByteString
|
static DescriptorProtos |
parseFrom(ByteString
|
static DescriptorProtos |
parseFrom(CodedInputStream
|
static DescriptorProtos |
parseFrom(CodedInputStream
|
static DescriptorProtos |
parseFrom(InputStream
|
static DescriptorProtos |
parseFrom(InputStream
|
DescriptorProtos |
toBuilder()
Constructs a builder initialized with the current message.
|
protected Object |
writeReplace()
Replaces this object in the output stream with a serialized form.
|
void |
writeTo(CodedOutputStream
Serializes the message and writes it to
output.
|
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownFieldgetDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtensionequals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toStringcheckByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtensionCount, hasExtensionfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static Parser<DescriptorProtos .EnumOptions > PARSER
public static final int ALLOW_ALIAS_FIELD_NUMBER
public static final int DEPRECATED_FIELD_NUMBER
public static final int UNINTERPRETED_OPTION_FIELD_NUMBER
public static DescriptorProtos.EnumOptions getDefaultInstance()
public DescriptorProtos.EnumOptions 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.
public final UnknownFieldSetgetUnknownFields()
MessageOrBuilder
UnknownFieldSet for this message.
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessage
public Parser<DescriptorProtos .EnumOptions > getParserForType()
MessageLite
public boolean hasAllowAlias()
optional bool allow_alias = 2;
Set this option to true to allow mapping different tag names to the same value.
public boolean getAllowAlias()
optional bool allow_alias = 2;
Set this option to true to allow mapping different tag names to the same value.
public boolean hasDeprecated()
optional bool deprecated = 3 [default = false];
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
public boolean getDeprecated()
optional bool deprecated = 3 [default = false];
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
public List<DescriptorProtos .UninterpretedOption > getUninterpretedOptionList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
The parser stores options it doesn't recognize here. See above.
public List<? extends DescriptorProtos .UninterpretedOptionOrBuilder > getUninterpretedOptionOrBuilderList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
The parser stores options it doesn't recognize here. See above.
public int getUninterpretedOptionCount()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
The parser stores options it doesn't recognize here. See above.
public DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
The parser stores options it doesn't recognize here. See above.
public DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
The parser stores options it doesn't recognize here. See above.
public final boolean isInitialized()
MessageLiteOrBuilder
public void writeTo(CodedOutputStreamoutput) throws IOException
MessageLite
output. This does not flush or close the stream.
writeTo in interface
MessageLite
writeTo in class
AbstractMessage
IOException
public int getSerializedSize()
MessageLite
protected ObjectwriteReplace() throws ObjectStreamException
GeneratedMessage
return super.writeReplace();
writeReplace in class
GeneratedMessage
ObjectStreamException
public static DescriptorProtos.EnumOptions parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.EnumOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.EnumOptions parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.EnumOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.EnumOptions parseFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.EnumOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.EnumOptions parseDelimitedFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.EnumOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.EnumOptions parseFrom(CodedInputStream input) throws IOException
IOException
public static DescriptorProtos.EnumOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.EnumOptions .Builder newBuilder()
public DescriptorProtos.EnumOptions .Builder newBuilderForType()
MessageLite
public static DescriptorProtos.EnumOptions .Builder newBuilder(DescriptorProtos .EnumOptions prototype)
public DescriptorProtos.EnumOptions .Builder toBuilder()
MessageLite
protected DescriptorProtos.EnumOptions .Builder newBuilderForType(GeneratedMessage .BuilderParent parent)