public static final class DescriptorProtos.MessageOptions extends com.google.protobuf.GeneratedMessage.ExtendableMessage<DescriptorProtos.MessageOptions> implements DescriptorProtos.MessageOptionsOrBuilder
google.protobuf.MessageOptions
Modifier and Type | Class and Description |
---|---|
static class |
DescriptorProtos.MessageOptions.Builder
Protobuf type
google.protobuf.MessageOptions |
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.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 com.google.protobuf.Parser<DescriptorProtos.MessageOptions> |
PARSER |
static int |
UNINTERPRETED_OPTION_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
static DescriptorProtos.MessageOptions |
getDefaultInstance() |
DescriptorProtos.MessageOptions |
getDefaultInstanceForType() |
boolean |
getDeprecated()
optional bool deprecated = 3 [default = false]; |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getMessageSetWireFormat()
optional bool message_set_wire_format = 1 [default = false]; |
boolean |
getNoStandardDescriptorAccessor()
optional bool no_standard_descriptor_accessor = 2 [default = false]; |
com.google.protobuf.Parser<DescriptorProtos.MessageOptions> |
getParserForType() |
int |
getSerializedSize() |
DescriptorProtos.UninterpretedOption |
getUninterpretedOption(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
int |
getUninterpretedOptionCount()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
java.util.List<DescriptorProtos.UninterpretedOption> |
getUninterpretedOptionList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
DescriptorProtos.UninterpretedOptionOrBuilder |
getUninterpretedOptionOrBuilder(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
java.util.List<? extends DescriptorProtos.UninterpretedOptionOrBuilder> |
getUninterpretedOptionOrBuilderList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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 com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DescriptorProtos.MessageOptions.Builder |
newBuilder() |
static DescriptorProtos.MessageOptions.Builder |
newBuilder(DescriptorProtos.MessageOptions prototype) |
DescriptorProtos.MessageOptions.Builder |
newBuilderForType() |
protected DescriptorProtos.MessageOptions.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static DescriptorProtos.MessageOptions |
parseDelimitedFrom(java.io.InputStream input) |
static DescriptorProtos.MessageOptions |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.MessageOptions |
parseFrom(byte[] data) |
static DescriptorProtos.MessageOptions |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.MessageOptions |
parseFrom(com.google.protobuf.ByteString data) |
static DescriptorProtos.MessageOptions |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.MessageOptions |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DescriptorProtos.MessageOptions |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.MessageOptions |
parseFrom(java.io.InputStream input) |
static DescriptorProtos.MessageOptions |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DescriptorProtos.MessageOptions.Builder |
toBuilder() |
protected java.lang.Object |
writeReplace() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField
getDescriptorForType, getOneofFieldDescriptor, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension
equals, findInitializationErrors, getInitializationErrorString, hashCode, hashFields, toString
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExtension, getExtension, getExtensionCount, hasExtension
public static com.google.protobuf.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()
getDefaultInstanceForType
in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<DescriptorProtos.MessageOptions>
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<DescriptorProtos.MessageOptions> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
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.
hasMessageSetWireFormat
in interface DescriptorProtos.MessageOptionsOrBuilder
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.
getMessageSetWireFormat
in interface DescriptorProtos.MessageOptionsOrBuilder
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".
hasNoStandardDescriptorAccessor
in interface DescriptorProtos.MessageOptionsOrBuilder
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".
getNoStandardDescriptorAccessor
in interface DescriptorProtos.MessageOptionsOrBuilder
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.
hasDeprecated
in interface DescriptorProtos.MessageOptionsOrBuilder
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.
getDeprecated
in interface DescriptorProtos.MessageOptionsOrBuilder
public java.util.List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
The parser stores options it doesn't recognize here. See above.
getUninterpretedOptionList
in interface DescriptorProtos.MessageOptionsOrBuilder
public java.util.List<? extends DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
The parser stores options it doesn't recognize here. See above.
getUninterpretedOptionOrBuilderList
in interface DescriptorProtos.MessageOptionsOrBuilder
public int getUninterpretedOptionCount()
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
The parser stores options it doesn't recognize here. See above.
getUninterpretedOptionCount
in interface DescriptorProtos.MessageOptionsOrBuilder
public DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
The parser stores options it doesn't recognize here. See above.
getUninterpretedOption
in interface DescriptorProtos.MessageOptionsOrBuilder
public DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder(int index)
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
The parser stores options it doesn't recognize here. See above.
getUninterpretedOptionOrBuilder
in interface DescriptorProtos.MessageOptionsOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.ExtendableMessage<DescriptorProtos.MessageOptions>
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.AbstractMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.AbstractMessage
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
java.io.ObjectStreamException
public static DescriptorProtos.MessageOptions parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DescriptorProtos.MessageOptions parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DescriptorProtos.MessageOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DescriptorProtos.MessageOptions parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static DescriptorProtos.MessageOptions parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.MessageOptions parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.MessageOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.MessageOptions parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.MessageOptions parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.MessageOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static DescriptorProtos.MessageOptions.Builder newBuilder()
public DescriptorProtos.MessageOptions.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static DescriptorProtos.MessageOptions.Builder newBuilder(DescriptorProtos.MessageOptions prototype)
public DescriptorProtos.MessageOptions.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected DescriptorProtos.MessageOptions.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage