Package com.google.protobuf
Class DescriptorProtos.MessageOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<DescriptorProtos.MessageOptions,DescriptorProtos.MessageOptions.Builder>
-
- com.google.protobuf.DescriptorProtos.MessageOptions.Builder
-
- All Implemented Interfaces:
DescriptorProtos.MessageOptionsOrBuilder,GeneratedMessageV3.ExtendableMessageOrBuilder<DescriptorProtos.MessageOptions>,Message.Builder,MessageLite.Builder,MessageLiteOrBuilder,MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- DescriptorProtos.MessageOptions
public static final class DescriptorProtos.MessageOptions.Builder extends GeneratedMessageV3.ExtendableBuilder<DescriptorProtos.MessageOptions,DescriptorProtos.MessageOptions.Builder> implements DescriptorProtos.MessageOptionsOrBuilder
Protobuf typegoogle.protobuf.MessageOptions
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DescriptorProtos.MessageOptions.BuilderaddAllUninterpretedOption(java.lang.Iterable<? extends DescriptorProtos.UninterpretedOption> values)The parser stores options it doesn't recognize here.<Type> DescriptorProtos.MessageOptions.BuilderaddExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MessageOptions,java.util.List<Type>> extension, Type value)Append a value to a repeated extension.DescriptorProtos.MessageOptions.BuilderaddRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)LikesetRepeatedField, but appends the value as a new element.DescriptorProtos.MessageOptions.BuilderaddUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)The parser stores options it doesn't recognize here.DescriptorProtos.MessageOptions.BuilderaddUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)The parser stores options it doesn't recognize here.DescriptorProtos.MessageOptions.BuilderaddUninterpretedOption(DescriptorProtos.UninterpretedOption value)The parser stores options it doesn't recognize here.DescriptorProtos.MessageOptions.BuilderaddUninterpretedOption(DescriptorProtos.UninterpretedOption.Builder builderForValue)The parser stores options it doesn't recognize here.DescriptorProtos.UninterpretedOption.BuilderaddUninterpretedOptionBuilder()The parser stores options it doesn't recognize here.DescriptorProtos.UninterpretedOption.BuilderaddUninterpretedOptionBuilder(int index)The parser stores options it doesn't recognize here.DescriptorProtos.MessageOptionsbuild()Constructs the message based on the state of the Builder.DescriptorProtos.MessageOptionsbuildPartial()LikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields.DescriptorProtos.MessageOptions.Builderclear()Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.DescriptorProtos.MessageOptions.BuilderclearDeprecated()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.<Type> DescriptorProtos.MessageOptions.BuilderclearExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MessageOptions,?> extension)Clear an extension.DescriptorProtos.MessageOptions.BuilderclearField(Descriptors.FieldDescriptor field)Clears the field.DescriptorProtos.MessageOptions.BuilderclearMapEntry()Whether the message is an automatically generated map entry type for the maps field.DescriptorProtos.MessageOptions.BuilderclearMessageSetWireFormat()Set true to use the old proto1 MessageSet wire format for extensions.DescriptorProtos.MessageOptions.BuilderclearNoStandardDescriptorAccessor()Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name.DescriptorProtos.MessageOptions.BuilderclearOneof(Descriptors.OneofDescriptor oneof)TODO(jieluo): Clear it when all subclasses have implemented this method.DescriptorProtos.MessageOptions.BuilderclearUninterpretedOption()The parser stores options it doesn't recognize here.DescriptorProtos.MessageOptions.Builderclone()Clones the Builder.DescriptorProtos.MessageOptionsgetDefaultInstanceForType()Get an instance of the type with no fields set.booleangetDeprecated()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.static Descriptors.DescriptorgetDescriptor()Descriptors.DescriptorgetDescriptorForType()Get the message's type's descriptor.booleangetMapEntry()Whether the message is an automatically generated map entry type for the maps field.booleangetMessageSetWireFormat()Set true to use the old proto1 MessageSet wire format for extensions.booleangetNoStandardDescriptorAccessor()Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name.DescriptorProtos.UninterpretedOptiongetUninterpretedOption(int index)The parser stores options it doesn't recognize here.DescriptorProtos.UninterpretedOption.BuildergetUninterpretedOptionBuilder(int index)The parser stores options it doesn't recognize here.java.util.List<DescriptorProtos.UninterpretedOption.Builder>getUninterpretedOptionBuilderList()The parser stores options it doesn't recognize here.intgetUninterpretedOptionCount()The parser stores options it doesn't recognize here.java.util.List<DescriptorProtos.UninterpretedOption>getUninterpretedOptionList()The parser stores options it doesn't recognize here.DescriptorProtos.UninterpretedOptionOrBuildergetUninterpretedOptionOrBuilder(int index)The parser stores options it doesn't recognize here.java.util.List<? extends DescriptorProtos.UninterpretedOptionOrBuilder>getUninterpretedOptionOrBuilderList()The parser stores options it doesn't recognize here.booleanhasDeprecated()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.booleanhasMapEntry()Whether the message is an automatically generated map entry type for the maps field.booleanhasMessageSetWireFormat()Set true to use the old proto1 MessageSet wire format for extensions.booleanhasNoStandardDescriptorAccessor()Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name.protected GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()Get the FieldAccessorTable for this type.booleanisInitialized()Returns true if all required fields in the message and all embedded messages are set, false otherwise.DescriptorProtos.MessageOptions.BuildermergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)LikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions.DescriptorProtos.MessageOptions.BuildermergeFrom(DescriptorProtos.MessageOptions other)DescriptorProtos.MessageOptions.BuildermergeFrom(Message other)Mergeotherinto the message being built.DescriptorProtos.MessageOptions.BuildermergeUnknownFields(UnknownFieldSet unknownFields)Merge some unknown fields into theUnknownFieldSetfor this message.DescriptorProtos.MessageOptions.BuilderremoveUninterpretedOption(int index)The parser stores options it doesn't recognize here.DescriptorProtos.MessageOptions.BuildersetDeprecated(boolean value)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.<Type> DescriptorProtos.MessageOptions.BuildersetExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MessageOptions,java.util.List<Type>> extension, int index, Type value)Set the value of one element of a repeated extension.<Type> DescriptorProtos.MessageOptions.BuildersetExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MessageOptions,Type> extension, Type value)Set the value of an extension.DescriptorProtos.MessageOptions.BuildersetField(Descriptors.FieldDescriptor field, java.lang.Object value)Sets a field to the given value.DescriptorProtos.MessageOptions.BuildersetMapEntry(boolean value)Whether the message is an automatically generated map entry type for the maps field.DescriptorProtos.MessageOptions.BuildersetMessageSetWireFormat(boolean value)Set true to use the old proto1 MessageSet wire format for extensions.DescriptorProtos.MessageOptions.BuildersetNoStandardDescriptorAccessor(boolean value)Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name.DescriptorProtos.MessageOptions.BuildersetRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)Sets an element of a repeated field to the given value.DescriptorProtos.MessageOptions.BuildersetUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)The parser stores options it doesn't recognize here.DescriptorProtos.MessageOptions.BuildersetUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)The parser stores options it doesn't recognize here.DescriptorProtos.MessageOptions.BuildersetUnknownFields(UnknownFieldSet unknownFields)Set theUnknownFieldSetfor this message.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder
addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, mergeExtensionFields, newBuilderForField, setExtension, setExtension, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getOneofFieldDescriptor, getParentForChildren, getUnknownFields, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
-
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getDescriptor
public static final Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Description copied from class:GeneratedMessageV3.BuilderGet the FieldAccessorTable for this type. We can't have the message class pass this in to the constructor because of bootstrapping trouble with DescriptorProtos.- Specified by:
internalGetFieldAccessorTablein classGeneratedMessageV3.Builder<DescriptorProtos.MessageOptions.Builder>
-
clear
public DescriptorProtos.MessageOptions.Builder clear()
Description copied from class:GeneratedMessageV3.BuilderCalled by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clearin interfaceMessage.Builder- Specified by:
clearin interfaceMessageLite.Builder- Overrides:
clearin classGeneratedMessageV3.ExtendableBuilder<DescriptorProtos.MessageOptions,DescriptorProtos.MessageOptions.Builder>
-
getDescriptorForType
public Descriptors.Descriptor getDescriptorForType()
Description copied from interface:Message.BuilderGet the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType().- Specified by:
getDescriptorForTypein interfaceMessage.Builder- Specified by:
getDescriptorForTypein interfaceMessageOrBuilder- Overrides:
getDescriptorForTypein classGeneratedMessageV3.Builder<DescriptorProtos.MessageOptions.Builder>
-
getDefaultInstanceForType
public DescriptorProtos.MessageOptions getDefaultInstanceForType()
Description copied from interface:MessageLiteOrBuilderGet an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from thegetDefaultInstance()method of generated message classes in that this method is an abstract method of theMessageLiteinterface whereasgetDefaultInstance()is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForTypein interfaceGeneratedMessageV3.ExtendableMessageOrBuilder<DescriptorProtos.MessageOptions>- Specified by:
getDefaultInstanceForTypein interfaceMessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceMessageOrBuilder
-
build
public DescriptorProtos.MessageOptions build()
Description copied from interface:MessageLite.BuilderConstructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildin interfaceMessage.Builder- Specified by:
buildin interfaceMessageLite.Builder
-
buildPartial
public DescriptorProtos.MessageOptions buildPartial()
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.build(), but does not throw an exception if the message is missing required fields. Instead, a partial message is returned. Subsequent changes to the Builder will not affect the returned message.- Specified by:
buildPartialin interfaceMessage.Builder- Specified by:
buildPartialin interfaceMessageLite.Builder
-
clone
public DescriptorProtos.MessageOptions.Builder clone()
Description copied from interface:MessageLite.BuilderClones the Builder.- Specified by:
clonein interfaceMessage.Builder- Specified by:
clonein interfaceMessageLite.Builder- Overrides:
clonein classGeneratedMessageV3.Builder<DescriptorProtos.MessageOptions.Builder>- See Also:
Object.clone()
-
setField
public DescriptorProtos.MessageOptions.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderSets a field to the given value. The value must be of the correct type for this field, i.e. the same type thatMessageOrBuilder.getField(Descriptors.FieldDescriptor)would return.- Specified by:
setFieldin interfaceMessage.Builder- Overrides:
setFieldin classGeneratedMessageV3.ExtendableBuilder<DescriptorProtos.MessageOptions,DescriptorProtos.MessageOptions.Builder>
-
clearField
public DescriptorProtos.MessageOptions.Builder clearField(Descriptors.FieldDescriptor field)
Description copied from interface:Message.BuilderClears the field. This is exactly equivalent to calling the generated "clear" accessor method corresponding to the field.- Specified by:
clearFieldin interfaceMessage.Builder- Overrides:
clearFieldin classGeneratedMessageV3.ExtendableBuilder<DescriptorProtos.MessageOptions,DescriptorProtos.MessageOptions.Builder>
-
clearOneof
public DescriptorProtos.MessageOptions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Description copied from class:AbstractMessage.BuilderTODO(jieluo): Clear it when all subclasses have implemented this method.- Specified by:
clearOneofin interfaceMessage.Builder- Overrides:
clearOneofin classGeneratedMessageV3.Builder<DescriptorProtos.MessageOptions.Builder>
-
setRepeatedField
public DescriptorProtos.MessageOptions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Description copied from interface:Message.BuilderSets an element of a repeated field to the given value. The value must be of the correct type for this field, i.e. the same type thatMessageOrBuilder.getRepeatedField(Descriptors.FieldDescriptor,int)would return.- Specified by:
setRepeatedFieldin interfaceMessage.Builder- Overrides:
setRepeatedFieldin classGeneratedMessageV3.ExtendableBuilder<DescriptorProtos.MessageOptions,DescriptorProtos.MessageOptions.Builder>
-
addRepeatedField
public DescriptorProtos.MessageOptions.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
Description copied from interface:Message.BuilderLikesetRepeatedField, but appends the value as a new element.- Specified by:
addRepeatedFieldin interfaceMessage.Builder- Overrides:
addRepeatedFieldin classGeneratedMessageV3.ExtendableBuilder<DescriptorProtos.MessageOptions,DescriptorProtos.MessageOptions.Builder>
-
setExtension
public <Type> DescriptorProtos.MessageOptions.Builder setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MessageOptions,Type> extension, Type value)
Description copied from class:GeneratedMessageV3.ExtendableBuilderSet the value of an extension.
-
setExtension
public <Type> DescriptorProtos.MessageOptions.Builder setExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MessageOptions,java.util.List<Type>> extension, int index, Type value)
Description copied from class:GeneratedMessageV3.ExtendableBuilderSet the value of one element of a repeated extension.
-
addExtension
public <Type> DescriptorProtos.MessageOptions.Builder addExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MessageOptions,java.util.List<Type>> extension, Type value)
Description copied from class:GeneratedMessageV3.ExtendableBuilderAppend a value to a repeated extension.
-
clearExtension
public <Type> DescriptorProtos.MessageOptions.Builder clearExtension(GeneratedMessage.GeneratedExtension<DescriptorProtos.MessageOptions,?> extension)
Description copied from class:GeneratedMessageV3.ExtendableBuilderClear an extension.
-
mergeFrom
public DescriptorProtos.MessageOptions.Builder mergeFrom(Message other)
Description copied from interface:Message.BuilderMergeotherinto the message being built.othermust have the exact same type asthis(i.e.getDescriptorForType() == other.getDescriptorForType()).Merging occurs as follows. For each field:
* For singular primitive fields, if the field is set inother, thenother's value overwrites the value in this message.
* For singular message fields, if the field is set inother, it is merged into the corresponding sub-message of this message using the same merging rules.
* For repeated fields, the elements inotherare concatenated with the elements in this message.
* For oneof groups, if the other message has one of the fields set, the group of this message is cleared and replaced by the field of the other message, so that the oneof constraint is preserved.This is equivalent to the
Message::MergeFrommethod in C++.- Specified by:
mergeFromin interfaceMessage.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<DescriptorProtos.MessageOptions.Builder>
-
mergeFrom
public DescriptorProtos.MessageOptions.Builder mergeFrom(DescriptorProtos.MessageOptions other)
-
isInitialized
public final boolean isInitialized()
Description copied from interface:MessageLiteOrBuilderReturns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitializedin interfaceMessageLiteOrBuilder- Overrides:
isInitializedin classGeneratedMessageV3.ExtendableBuilder<DescriptorProtos.MessageOptions,DescriptorProtos.MessageOptions.Builder>
-
mergeFrom
public DescriptorProtos.MessageOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
Description copied from interface:MessageLite.BuilderLikeMessageLite.Builder.mergeFrom(CodedInputStream), but also parses extensions. The extensions that you want to be able to parse must be registered inextensionRegistry. Extensions not in the registry will be treated as unknown fields.- Specified by:
mergeFromin interfaceMessage.Builder- Specified by:
mergeFromin interfaceMessageLite.Builder- Overrides:
mergeFromin classAbstractMessage.Builder<DescriptorProtos.MessageOptions.Builder>- Throws:
java.io.IOException
-
hasMessageSetWireFormat
public boolean hasMessageSetWireFormat()
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.optional bool message_set_wire_format = 1 [default = false];- Specified by:
hasMessageSetWireFormatin interfaceDescriptorProtos.MessageOptionsOrBuilder- Returns:
- Whether the messageSetWireFormat field is set.
-
getMessageSetWireFormat
public boolean getMessageSetWireFormat()
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.optional bool message_set_wire_format = 1 [default = false];- Specified by:
getMessageSetWireFormatin interfaceDescriptorProtos.MessageOptionsOrBuilder- Returns:
- The messageSetWireFormat.
-
setMessageSetWireFormat
public DescriptorProtos.MessageOptions.Builder setMessageSetWireFormat(boolean value)
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.optional bool message_set_wire_format = 1 [default = false];- Parameters:
value- The messageSetWireFormat to set.- Returns:
- This builder for chaining.
-
clearMessageSetWireFormat
public DescriptorProtos.MessageOptions.Builder clearMessageSetWireFormat()
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.optional bool message_set_wire_format = 1 [default = false];- Returns:
- This builder for chaining.
-
hasNoStandardDescriptorAccessor
public boolean hasNoStandardDescriptorAccessor()
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".
optional bool no_standard_descriptor_accessor = 2 [default = false];- Specified by:
hasNoStandardDescriptorAccessorin interfaceDescriptorProtos.MessageOptionsOrBuilder- Returns:
- Whether the noStandardDescriptorAccessor field is set.
-
getNoStandardDescriptorAccessor
public boolean getNoStandardDescriptorAccessor()
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".
optional bool no_standard_descriptor_accessor = 2 [default = false];- Specified by:
getNoStandardDescriptorAccessorin interfaceDescriptorProtos.MessageOptionsOrBuilder- Returns:
- The noStandardDescriptorAccessor.
-
setNoStandardDescriptorAccessor
public DescriptorProtos.MessageOptions.Builder setNoStandardDescriptorAccessor(boolean value)
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".
optional bool no_standard_descriptor_accessor = 2 [default = false];- Parameters:
value- The noStandardDescriptorAccessor to set.- Returns:
- This builder for chaining.
-
clearNoStandardDescriptorAccessor
public DescriptorProtos.MessageOptions.Builder clearNoStandardDescriptorAccessor()
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".
optional bool no_standard_descriptor_accessor = 2 [default = false];- Returns:
- This builder for chaining.
-
hasDeprecated
public boolean hasDeprecated()
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.
optional bool deprecated = 3 [default = false];- Specified by:
hasDeprecatedin interfaceDescriptorProtos.MessageOptionsOrBuilder- Returns:
- Whether the deprecated field is set.
-
getDeprecated
public boolean getDeprecated()
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.
optional bool deprecated = 3 [default = false];- Specified by:
getDeprecatedin interfaceDescriptorProtos.MessageOptionsOrBuilder- Returns:
- The deprecated.
-
setDeprecated
public DescriptorProtos.MessageOptions.Builder setDeprecated(boolean value)
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.
optional bool deprecated = 3 [default = false];- Parameters:
value- The deprecated to set.- Returns:
- This builder for chaining.
-
clearDeprecated
public DescriptorProtos.MessageOptions.Builder clearDeprecated()
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.
optional bool deprecated = 3 [default = false];- Returns:
- This builder for chaining.
-
hasMapEntry
public boolean hasMapEntry()
Whether the message is an automatically generated map entry type for the maps field. For maps fields: map<KeyType, ValueType> map_field = 1; The parsed descriptor looks like: message MapFieldEntry { option map_entry = true; optional KeyType key = 1; optional ValueType value = 2; } repeated MapFieldEntry map_field = 1; Implementations may choose not to generate the map_entry=true message, but use a native map in the target language to hold the keys and values. The reflection APIs in such implementations still need to work as if the field is a repeated message field. NOTE: Do not set the option in .proto files. Always use the maps syntax instead. The option should only be implicitly set by the proto compiler parser.optional bool map_entry = 7;- Specified by:
hasMapEntryin interfaceDescriptorProtos.MessageOptionsOrBuilder- Returns:
- Whether the mapEntry field is set.
-
getMapEntry
public boolean getMapEntry()
Whether the message is an automatically generated map entry type for the maps field. For maps fields: map<KeyType, ValueType> map_field = 1; The parsed descriptor looks like: message MapFieldEntry { option map_entry = true; optional KeyType key = 1; optional ValueType value = 2; } repeated MapFieldEntry map_field = 1; Implementations may choose not to generate the map_entry=true message, but use a native map in the target language to hold the keys and values. The reflection APIs in such implementations still need to work as if the field is a repeated message field. NOTE: Do not set the option in .proto files. Always use the maps syntax instead. The option should only be implicitly set by the proto compiler parser.optional bool map_entry = 7;- Specified by:
getMapEntryin interfaceDescriptorProtos.MessageOptionsOrBuilder- Returns:
- The mapEntry.
-
setMapEntry
public DescriptorProtos.MessageOptions.Builder setMapEntry(boolean value)
Whether the message is an automatically generated map entry type for the maps field. For maps fields: map<KeyType, ValueType> map_field = 1; The parsed descriptor looks like: message MapFieldEntry { option map_entry = true; optional KeyType key = 1; optional ValueType value = 2; } repeated MapFieldEntry map_field = 1; Implementations may choose not to generate the map_entry=true message, but use a native map in the target language to hold the keys and values. The reflection APIs in such implementations still need to work as if the field is a repeated message field. NOTE: Do not set the option in .proto files. Always use the maps syntax instead. The option should only be implicitly set by the proto compiler parser.optional bool map_entry = 7;- Parameters:
value- The mapEntry to set.- Returns:
- This builder for chaining.
-
clearMapEntry
public DescriptorProtos.MessageOptions.Builder clearMapEntry()
Whether the message is an automatically generated map entry type for the maps field. For maps fields: map<KeyType, ValueType> map_field = 1; The parsed descriptor looks like: message MapFieldEntry { option map_entry = true; optional KeyType key = 1; optional ValueType value = 2; } repeated MapFieldEntry map_field = 1; Implementations may choose not to generate the map_entry=true message, but use a native map in the target language to hold the keys and values. The reflection APIs in such implementations still need to work as if the field is a repeated message field. NOTE: Do not set the option in .proto files. Always use the maps syntax instead. The option should only be implicitly set by the proto compiler parser.optional bool map_entry = 7;- Returns:
- This builder for chaining.
-
getUninterpretedOptionList
public java.util.List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;- Specified by:
getUninterpretedOptionListin interfaceDescriptorProtos.MessageOptionsOrBuilder
-
getUninterpretedOptionCount
public int getUninterpretedOptionCount()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;- Specified by:
getUninterpretedOptionCountin interfaceDescriptorProtos.MessageOptionsOrBuilder
-
getUninterpretedOption
public DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;- Specified by:
getUninterpretedOptionin interfaceDescriptorProtos.MessageOptionsOrBuilder
-
setUninterpretedOption
public DescriptorProtos.MessageOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
setUninterpretedOption
public DescriptorProtos.MessageOptions.Builder setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
addUninterpretedOption
public DescriptorProtos.MessageOptions.Builder addUninterpretedOption(DescriptorProtos.UninterpretedOption value)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
addUninterpretedOption
public DescriptorProtos.MessageOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
addUninterpretedOption
public DescriptorProtos.MessageOptions.Builder addUninterpretedOption(DescriptorProtos.UninterpretedOption.Builder builderForValue)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
addUninterpretedOption
public DescriptorProtos.MessageOptions.Builder addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
addAllUninterpretedOption
public DescriptorProtos.MessageOptions.Builder addAllUninterpretedOption(java.lang.Iterable<? extends DescriptorProtos.UninterpretedOption> values)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
clearUninterpretedOption
public DescriptorProtos.MessageOptions.Builder clearUninterpretedOption()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
removeUninterpretedOption
public DescriptorProtos.MessageOptions.Builder removeUninterpretedOption(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
getUninterpretedOptionBuilder
public DescriptorProtos.UninterpretedOption.Builder getUninterpretedOptionBuilder(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
getUninterpretedOptionOrBuilder
public DescriptorProtos.UninterpretedOptionOrBuilder getUninterpretedOptionOrBuilder(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;- Specified by:
getUninterpretedOptionOrBuilderin interfaceDescriptorProtos.MessageOptionsOrBuilder
-
getUninterpretedOptionOrBuilderList
public java.util.List<? extends DescriptorProtos.UninterpretedOptionOrBuilder> getUninterpretedOptionOrBuilderList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;- Specified by:
getUninterpretedOptionOrBuilderListin interfaceDescriptorProtos.MessageOptionsOrBuilder
-
addUninterpretedOptionBuilder
public DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
addUninterpretedOptionBuilder
public DescriptorProtos.UninterpretedOption.Builder addUninterpretedOptionBuilder(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
getUninterpretedOptionBuilderList
public java.util.List<DescriptorProtos.UninterpretedOption.Builder> getUninterpretedOptionBuilderList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
setUnknownFields
public final DescriptorProtos.MessageOptions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderSet theUnknownFieldSetfor this message.- Specified by:
setUnknownFieldsin interfaceMessage.Builder- Overrides:
setUnknownFieldsin classGeneratedMessageV3.Builder<DescriptorProtos.MessageOptions.Builder>
-
mergeUnknownFields
public final DescriptorProtos.MessageOptions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Description copied from interface:Message.BuilderMerge some unknown fields into theUnknownFieldSetfor this message.- Specified by:
mergeUnknownFieldsin interfaceMessage.Builder- Overrides:
mergeUnknownFieldsin classGeneratedMessageV3.Builder<DescriptorProtos.MessageOptions.Builder>
-
-