Package com.google.protobuf
Interface DescriptorProtos.MessageOptionsOrBuilder
- All Superinterfaces:
GeneratedMessage.ExtendableMessageOrBuilder<DescriptorProtos.MessageOptions>,MessageLiteOrBuilder,MessageOrBuilder
- All Known Implementing Classes:
DescriptorProtos.MessageOptions,DescriptorProtos.MessageOptions.Builder
- Enclosing class:
- DescriptorProtos
public static interface DescriptorProtos.MessageOptionsOrBuilder
extends GeneratedMessage.ExtendableMessageOrBuilder<DescriptorProtos.MessageOptions>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanoptional bool deprecated = 3 [default = false];booleanoptional bool message_set_wire_format = 1 [default = false];booleanoptional bool no_standard_descriptor_accessor = 2 [default = false];getUninterpretedOption(int index) repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;intrepeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;getUninterpretedOptionOrBuilder(int index) repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;booleanoptional bool deprecated = 3 [default = false];booleanoptional bool message_set_wire_format = 1 [default = false];booleanoptional bool no_standard_descriptor_accessor = 2 [default = false];Methods inherited from interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder
getDefaultInstanceForType, getExtension, getExtension, getExtensionCount, hasExtensionMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasMessageSetWireFormat
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. -
getMessageSetWireFormat
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. -
hasNoStandardDescriptorAccessor
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".
-
getNoStandardDescriptorAccessor
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".
-
hasDeprecated
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.
-
getDeprecated
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.
-
getUninterpretedOptionList
List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;The parser stores options it doesn't recognize here. See above.
-
getUninterpretedOption
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;The parser stores options it doesn't recognize here. See above.
-
getUninterpretedOptionCount
int getUninterpretedOptionCount()repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;The parser stores options it doesn't recognize here. See above.
-
getUninterpretedOptionOrBuilderList
List<? extends DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList()repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;The parser stores options it doesn't recognize here. See above.
-
getUninterpretedOptionOrBuilder
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;The parser stores options it doesn't recognize here. See above.
-