Package com.google.protobuf
Class DescriptorProtos.MessageOptions.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<DescriptorProtos.MessageOptions.Builder>
com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.MessageOptions.Builder>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<DescriptorProtos.MessageOptions,DescriptorProtos.MessageOptions.Builder>
com.google.protobuf.DescriptorProtos.MessageOptions.Builder
- All Implemented Interfaces:
DescriptorProtos.MessageOptionsOrBuilder
,GeneratedMessage.ExtendableMessageOrBuilder<DescriptorProtos.MessageOptions>
,Message.Builder
,MessageLite.Builder
,MessageLiteOrBuilder
,MessageOrBuilder
,Cloneable
- Enclosing class:
DescriptorProtos.MessageOptions
public static final class DescriptorProtos.MessageOptions.Builder
extends GeneratedMessage.ExtendableBuilder<DescriptorProtos.MessageOptions,DescriptorProtos.MessageOptions.Builder>
implements DescriptorProtos.MessageOptionsOrBuilder
Protobuf type
google.protobuf.MessageOptions
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite.Builder
AbstractMessageLite.Builder.LimitedInputStream
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private boolean
private boolean
private DescriptorProtos.FeatureSet
private SingleFieldBuilder
<DescriptorProtos.FeatureSet, DescriptorProtos.FeatureSet.Builder, DescriptorProtos.FeatureSetOrBuilder> private boolean
private boolean
private boolean
private List
<DescriptorProtos.UninterpretedOption> private RepeatedFieldBuilder
<DescriptorProtos.UninterpretedOption, DescriptorProtos.UninterpretedOption.Builder, DescriptorProtos.UninterpretedOptionOrBuilder> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Builder()
private
Builder
(AbstractMessage.BuilderParent parent) -
Method Summary
Modifier and TypeMethodDescriptionaddAllUninterpretedOption
(Iterable<? extends DescriptorProtos.UninterpretedOption> values) The parser stores options it doesn't recognize here.addUninterpretedOption
(int index, DescriptorProtos.UninterpretedOption value) The parser stores options it doesn't recognize here.addUninterpretedOption
(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue) The parser stores options it doesn't recognize here.The parser stores options it doesn't recognize here.addUninterpretedOption
(DescriptorProtos.UninterpretedOption.Builder builderForValue) The parser stores options it doesn't recognize here.The parser stores options it doesn't recognize here.addUninterpretedOptionBuilder
(int index) The parser stores options it doesn't recognize here.build()
Constructs the message based on the state of the Builder.LikeMessageLite.Builder.build()
, but does not throw an exception if the message is missing required fields.private void
private void
clear()
Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.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.Deprecated.google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated.Any features defined in the specific edition.Whether the message is an automatically generated map entry type for the maps field.Set true to use the old proto1 MessageSet wire format for extensions.Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name.The parser stores options it doesn't recognize here.private void
Get an instance of the type with no fields set.boolean
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.boolean
Deprecated.google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated.static final Descriptors.Descriptor
Get the message's type's descriptor.Any features defined in the specific edition.Any features defined in the specific edition.Any features defined in the specific edition.boolean
Whether the message is an automatically generated map entry type for the maps field.boolean
Set true to use the old proto1 MessageSet wire format for extensions.boolean
Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name.getUninterpretedOption
(int index) The parser stores options it doesn't recognize here.getUninterpretedOptionBuilder
(int index) The parser stores options it doesn't recognize here.The parser stores options it doesn't recognize here.int
The parser stores options it doesn't recognize here.The parser stores options it doesn't recognize here.getUninterpretedOptionOrBuilder
(int index) The parser stores options it doesn't recognize here.The parser stores options it doesn't recognize here.boolean
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.boolean
Deprecated.google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated.boolean
Any features defined in the specific edition.boolean
Whether the message is an automatically generated map entry type for the maps field.boolean
Set true to use the old proto1 MessageSet wire format for extensions.boolean
Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name.private SingleFieldBuilder
<DescriptorProtos.FeatureSet, DescriptorProtos.FeatureSet.Builder, DescriptorProtos.FeatureSetOrBuilder> Any features defined in the specific edition.protected GeneratedMessage.FieldAccessorTable
Get the FieldAccessorTable for this type.private RepeatedFieldBuilder
<DescriptorProtos.UninterpretedOption, DescriptorProtos.UninterpretedOption.Builder, DescriptorProtos.UninterpretedOptionOrBuilder> final boolean
Returns true if all required fields in the message and all embedded messages are set, false otherwise.private void
Any features defined in the specific edition.mergeFrom
(CodedInputStream input, ExtensionRegistryLite extensionRegistry) LikeMessageLite.Builder.mergeFrom(CodedInputStream)
, but also parses extensions.Mergeother
into the message being built.removeUninterpretedOption
(int index) The parser stores options it doesn't recognize here.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.setDeprecatedLegacyJsonFieldConflicts
(boolean value) Deprecated.google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated.Any features defined in the specific edition.setFeatures
(DescriptorProtos.FeatureSet.Builder builderForValue) Any features defined in the specific edition.setMapEntry
(boolean value) Whether the message is an automatically generated map entry type for the maps field.setMessageSetWireFormat
(boolean value) Set true to use the old proto1 MessageSet wire format for extensions.setNoStandardDescriptorAccessor
(boolean value) Disables the generation of the standard "descriptor()" accessor, which can conflict with a field of the same name.setUninterpretedOption
(int index, DescriptorProtos.UninterpretedOption value) The parser stores options it doesn't recognize here.setUninterpretedOption
(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue) The parser stores options it doesn't recognize here.Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, addRepeatedField, clearExtension, clearField, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, internalSetExtensionSet, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension, setField, setRepeatedField
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
clearOneof, clone, dispose, getOneofFieldDescriptor, getParentForChildren, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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.GeneratedMessage.ExtendableMessageOrBuilder
getExtension, getExtension, getExtensionCount, hasExtension
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
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
-
Field Details
-
bitField0_
private int bitField0_ -
messageSetWireFormat_
private boolean messageSetWireFormat_ -
noStandardDescriptorAccessor_
private boolean noStandardDescriptorAccessor_ -
deprecated_
private boolean deprecated_ -
mapEntry_
private boolean mapEntry_ -
deprecatedLegacyJsonFieldConflicts_
private boolean deprecatedLegacyJsonFieldConflicts_ -
features_
-
featuresBuilder_
private SingleFieldBuilder<DescriptorProtos.FeatureSet,DescriptorProtos.FeatureSet.Builder, featuresBuilder_DescriptorProtos.FeatureSetOrBuilder> -
uninterpretedOption_
-
uninterpretedOptionBuilder_
private RepeatedFieldBuilder<DescriptorProtos.UninterpretedOption,DescriptorProtos.UninterpretedOption.Builder, uninterpretedOptionBuilder_DescriptorProtos.UninterpretedOptionOrBuilder>
-
-
Constructor Details
-
Builder
private Builder() -
Builder
-
-
Method Details
-
getDescriptor
-
internalGetFieldAccessorTable
Description copied from class:GeneratedMessage.Builder
Get 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:
internalGetFieldAccessorTable
in classGeneratedMessage.Builder<DescriptorProtos.MessageOptions.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
Description copied from class:GeneratedMessage.Builder
Called by the initialization and clear code paths to allow subclasses to reset any of their builtin fields back to the initial values.- Specified by:
clear
in interfaceMessage.Builder
- Specified by:
clear
in interfaceMessageLite.Builder
- Overrides:
clear
in classGeneratedMessage.ExtendableBuilder<DescriptorProtos.MessageOptions,
DescriptorProtos.MessageOptions.Builder>
-
getDescriptorForType
Description copied from interface:Message.Builder
Get the message's type's descriptor. SeeMessageOrBuilder.getDescriptorForType()
.- Specified by:
getDescriptorForType
in interfaceMessage.Builder
- Specified by:
getDescriptorForType
in interfaceMessageOrBuilder
- Overrides:
getDescriptorForType
in classGeneratedMessage.Builder<DescriptorProtos.MessageOptions.Builder>
-
getDefaultInstanceForType
Description copied from interface:MessageLiteOrBuilder
Get 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 theMessageLite
interface whereasgetDefaultInstance()
is a static method of a specific class. They return the same thing.- Specified by:
getDefaultInstanceForType
in interfaceGeneratedMessage.ExtendableMessageOrBuilder<DescriptorProtos.MessageOptions>
- Specified by:
getDefaultInstanceForType
in interfaceMessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfaceMessageOrBuilder
-
build
Description copied from interface:MessageLite.Builder
Constructs the message based on the state of the Builder. Subsequent changes to the Builder will not affect the returned message.- Specified by:
build
in interfaceMessage.Builder
- Specified by:
build
in interfaceMessageLite.Builder
-
buildPartial
Description copied from interface:MessageLite.Builder
LikeMessageLite.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:
buildPartial
in interfaceMessage.Builder
- Specified by:
buildPartial
in interfaceMessageLite.Builder
-
buildPartialRepeatedFields
-
buildPartial0
-
mergeFrom
Description copied from interface:Message.Builder
Mergeother
into the message being built.other
must 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 inother
are 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::MergeFrom
method in C++.- Specified by:
mergeFrom
in interfaceMessage.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<DescriptorProtos.MessageOptions.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()Description copied from interface:MessageLiteOrBuilder
Returns true if all required fields in the message and all embedded messages are set, false otherwise.- Specified by:
isInitialized
in interfaceMessageLiteOrBuilder
- Overrides:
isInitialized
in classGeneratedMessage.ExtendableBuilder<DescriptorProtos.MessageOptions,
DescriptorProtos.MessageOptions.Builder>
-
mergeFrom
public DescriptorProtos.MessageOptions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException Description copied from interface:MessageLite.Builder
LikeMessageLite.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:
mergeFrom
in interfaceMessage.Builder
- Specified by:
mergeFrom
in interfaceMessageLite.Builder
- Overrides:
mergeFrom
in classAbstractMessage.Builder<DescriptorProtos.MessageOptions.Builder>
- Throws:
IOException
- an I/O error reading from the stream
-
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:
hasMessageSetWireFormat
in 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:
getMessageSetWireFormat
in interfaceDescriptorProtos.MessageOptionsOrBuilder
- Returns:
- The messageSetWireFormat.
-
setMessageSetWireFormat
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
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:
hasNoStandardDescriptorAccessor
in 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:
getNoStandardDescriptorAccessor
in interfaceDescriptorProtos.MessageOptionsOrBuilder
- Returns:
- The noStandardDescriptorAccessor.
-
setNoStandardDescriptorAccessor
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
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:
hasDeprecated
in 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:
getDeprecated
in interfaceDescriptorProtos.MessageOptionsOrBuilder
- Returns:
- The deprecated.
-
setDeprecated
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
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:
hasMapEntry
in 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:
getMapEntry
in interfaceDescriptorProtos.MessageOptionsOrBuilder
- Returns:
- The mapEntry.
-
setMapEntry
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
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.
-
hasDeprecatedLegacyJsonFieldConflicts
Deprecated.google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=640Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes `json_name` into account and applies to proto2 as well. This should only be used as a temporary measure against broken builds due to the change in behavior for JSON field name conflicts. TODO This is legacy behavior we plan to remove once downstream teams have had time to migrate.
optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
- Specified by:
hasDeprecatedLegacyJsonFieldConflicts
in interfaceDescriptorProtos.MessageOptionsOrBuilder
- Returns:
- Whether the deprecatedLegacyJsonFieldConflicts field is set.
-
getDeprecatedLegacyJsonFieldConflicts
Deprecated.google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=640Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes `json_name` into account and applies to proto2 as well. This should only be used as a temporary measure against broken builds due to the change in behavior for JSON field name conflicts. TODO This is legacy behavior we plan to remove once downstream teams have had time to migrate.
optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
- Specified by:
getDeprecatedLegacyJsonFieldConflicts
in interfaceDescriptorProtos.MessageOptionsOrBuilder
- Returns:
- The deprecatedLegacyJsonFieldConflicts.
-
setDeprecatedLegacyJsonFieldConflicts
@Deprecated public DescriptorProtos.MessageOptions.Builder setDeprecatedLegacyJsonFieldConflicts(boolean value) Deprecated.google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=640Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes `json_name` into account and applies to proto2 as well. This should only be used as a temporary measure against broken builds due to the change in behavior for JSON field name conflicts. TODO This is legacy behavior we plan to remove once downstream teams have had time to migrate.
optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
- Parameters:
value
- The deprecatedLegacyJsonFieldConflicts to set.- Returns:
- This builder for chaining.
-
clearDeprecatedLegacyJsonFieldConflicts
@Deprecated public DescriptorProtos.MessageOptions.Builder clearDeprecatedLegacyJsonFieldConflicts()Deprecated.google.protobuf.MessageOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=640Enable the legacy handling of JSON field name conflicts. This lowercases and strips underscored from the fields before comparison in proto3 only. The new behavior takes `json_name` into account and applies to proto2 as well. This should only be used as a temporary measure against broken builds due to the change in behavior for JSON field name conflicts. TODO This is legacy behavior we plan to remove once downstream teams have had time to migrate.
optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
- Returns:
- This builder for chaining.
-
hasFeatures
public boolean hasFeatures()Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.FeatureSet features = 12;
- Specified by:
hasFeatures
in interfaceDescriptorProtos.MessageOptionsOrBuilder
- Returns:
- Whether the features field is set.
-
getFeatures
Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.FeatureSet features = 12;
- Specified by:
getFeatures
in interfaceDescriptorProtos.MessageOptionsOrBuilder
- Returns:
- The features.
-
setFeatures
Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.FeatureSet features = 12;
-
setFeatures
public DescriptorProtos.MessageOptions.Builder setFeatures(DescriptorProtos.FeatureSet.Builder builderForValue) Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.FeatureSet features = 12;
-
mergeFeatures
Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.FeatureSet features = 12;
-
clearFeatures
Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.FeatureSet features = 12;
-
getFeaturesBuilder
Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.FeatureSet features = 12;
-
getFeaturesOrBuilder
Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.FeatureSet features = 12;
- Specified by:
getFeaturesOrBuilder
in interfaceDescriptorProtos.MessageOptionsOrBuilder
-
internalGetFeaturesFieldBuilder
private SingleFieldBuilder<DescriptorProtos.FeatureSet,DescriptorProtos.FeatureSet.Builder, internalGetFeaturesFieldBuilder()DescriptorProtos.FeatureSetOrBuilder> Any features defined in the specific edition. WARNING: This field should only be used by protobuf plugins or special cases like the proto compiler. Other uses are discouraged and developers should rely on the protoreflect APIs for their client language.
optional .google.protobuf.FeatureSet features = 12;
-
ensureUninterpretedOptionIsMutable
private void ensureUninterpretedOptionIsMutable() -
getUninterpretedOptionList
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
- Specified by:
getUninterpretedOptionList
in 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:
getUninterpretedOptionCount
in interfaceDescriptorProtos.MessageOptionsOrBuilder
-
getUninterpretedOption
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
- Specified by:
getUninterpretedOption
in 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(Iterable<? extends DescriptorProtos.UninterpretedOption> values) The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
clearUninterpretedOption
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
removeUninterpretedOption
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
getUninterpretedOptionBuilder
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
getUninterpretedOptionOrBuilder
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
- Specified by:
getUninterpretedOptionOrBuilder
in interfaceDescriptorProtos.MessageOptionsOrBuilder
-
getUninterpretedOptionOrBuilderList
public 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:
getUninterpretedOptionOrBuilderList
in interfaceDescriptorProtos.MessageOptionsOrBuilder
-
addUninterpretedOptionBuilder
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
addUninterpretedOptionBuilder
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
getUninterpretedOptionBuilderList
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
internalGetUninterpretedOptionFieldBuilder
private RepeatedFieldBuilder<DescriptorProtos.UninterpretedOption,DescriptorProtos.UninterpretedOption.Builder, internalGetUninterpretedOptionFieldBuilder()DescriptorProtos.UninterpretedOptionOrBuilder>
-