public static final class DescriptorProtos.MessageOptions extends GeneratedMessage.ExtendableMessage <DescriptorProtos .MessageOptions > implements DescriptorProtos .MessageOptionsOrBuilder
google.protobuf.MessageOptions
| Modifier and Type | Class and Description |
|---|---|
static class |
DescriptorProtos
Protobuf type
google.protobuf.MessageOptions
|
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 |
DEPRECATED_FIELD_NUMBER
|
static int |
MESSAGE_SET_WIRE_FORMAT_FIELD_NUMBER
|
static int |
NO_STANDARD_DESCRIPTOR_ACCESSOR_FIELD_NUMBER
|
static Parser |
PARSER
|
static int |
UNINTERPRETED_OPTION_FIELD_NUMBER
|
alwaysUseFieldBuildersmemoizedHashCode| Modifier and Type | Method and Description |
|---|---|
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()
|
boolean |
getMessageSetWireFormat()
optional bool message_set_wire_format = 1 [default = false];
|
boolean |
getNoStandardDescriptorAccessor()
optional bool no_standard_descriptor_accessor = 2 [default = false];
|
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 |
hasDeprecated()
optional bool deprecated = 3 [default = false];
|
boolean |
hasMessageSetWireFormat()
optional bool message_set_wire_format = 1 [default = false];
|
boolean |
hasNoStandardDescriptorAccessor()
optional bool no_standard_descriptor_accessor = 2 [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 .MessageOptions > PARSER
public static final int MESSAGE_SET_WIRE_FORMAT_FIELD_NUMBER
public static final int NO_STANDARD_DESCRIPTOR_ACCESSOR_FIELD_NUMBER
public static final int DEPRECATED_FIELD_NUMBER
public static final int UNINTERPRETED_OPTION_FIELD_NUMBER
public static DescriptorProtos.MessageOptions getDefaultInstance()
public DescriptorProtos.MessageOptions 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 .MessageOptions > getParserForType()
MessageLite
public boolean hasMessageSetWireFormat()
optional bool message_set_wire_format = 1 [default = false];
Set true to use the old proto1 MessageSet wire format for extensions.
This is provided for backwards-compatibility with the MessageSet wire
format. You should not use this for any other reason: It's less
efficient, has fewer features, and is more complicated.
The message must be defined exactly as follows:
message Foo {
option message_set_wire_format = true;
extensions 4 to max;
}
Note that the message cannot have any defined fields; MessageSets only
have extensions.
All extensions of your type must be singular messages; e.g. they cannot
be int32s, enums, or repeated messages.
Because this is an option, the above two restrictions are not enforced by
the protocol compiler.
public boolean getMessageSetWireFormat()
optional bool message_set_wire_format = 1 [default = false];
Set true to use the old proto1 MessageSet wire format for extensions.
This is provided for backwards-compatibility with the MessageSet wire
format. You should not use this for any other reason: It's less
efficient, has fewer features, and is more complicated.
The message must be defined exactly as follows:
message Foo {
option message_set_wire_format = true;
extensions 4 to max;
}
Note that the message cannot have any defined fields; MessageSets only
have extensions.
All extensions of your type must be singular messages; e.g. they cannot
be int32s, enums, or repeated messages.
Because this is an option, the above two restrictions are not enforced by
the protocol compiler.
public boolean hasNoStandardDescriptorAccessor()
optional bool no_standard_descriptor_accessor = 2 [default = false];
Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name. This is meant to make migration from proto1 easier; new code should avoid fields named "descriptor".
public boolean getNoStandardDescriptorAccessor()
optional bool no_standard_descriptor_accessor = 2 [default = false];
Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name. This is meant to make migration from proto1 easier; new code should avoid fields named "descriptor".
public boolean hasDeprecated()
optional bool deprecated = 3 [default = false];
Is this message deprecated? Depending on the target platform, this can emit Deprecated annotations for the message, or it will be completely ignored; in the very least, this is a formalization for deprecating messages.
public boolean getDeprecated()
optional bool deprecated = 3 [default = false];
Is this message deprecated? Depending on the target platform, this can emit Deprecated annotations for the message, or it will be completely ignored; in the very least, this is a formalization for deprecating messages.
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.MessageOptions parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.MessageOptions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.MessageOptions parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.MessageOptions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static DescriptorProtos.MessageOptions parseFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.MessageOptions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.MessageOptions parseDelimitedFrom(InputStream input) throws IOException
IOException
public static DescriptorProtos.MessageOptions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.MessageOptions parseFrom(CodedInputStream input) throws IOException
IOException
public static DescriptorProtos.MessageOptions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static DescriptorProtos.MessageOptions .Builder newBuilder()
public DescriptorProtos.MessageOptions .Builder newBuilderForType()
MessageLite
public static DescriptorProtos.MessageOptions .Builder newBuilder(DescriptorProtos .MessageOptions prototype)
public DescriptorProtos.MessageOptions .Builder toBuilder()
MessageLite
protected DescriptorProtos.MessageOptions .Builder newBuilderForType(GeneratedMessage .BuilderParent parent)