Package com.google.protobuf
Class DescriptorProtos.EnumOptions.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.Builder<MessageType,BuilderType>
-
- com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder>
-
- com.google.protobuf.DescriptorProtos.EnumOptions.Builder
-
- All Implemented Interfaces:
DescriptorProtos.EnumOptionsOrBuilder
,GeneratedMessageLite.ExtendableMessageOrBuilder<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder>
,MessageLite.Builder
,MessageLiteOrBuilder
,java.lang.Cloneable
- Enclosing class:
- DescriptorProtos.EnumOptions
public static final class DescriptorProtos.EnumOptions.Builder extends GeneratedMessageLite.ExtendableBuilder<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder> implements DescriptorProtos.EnumOptionsOrBuilder
Protobuf typegoogle.protobuf.EnumOptions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite.Builder
AbstractMessageLite.Builder.LimitedInputStream
-
-
Field Summary
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DescriptorProtos.EnumOptions.Builder
addAllUninterpretedOption(java.lang.Iterable<? extends DescriptorProtos.UninterpretedOption> values)
The parser stores options it doesn't recognize here.DescriptorProtos.EnumOptions.Builder
addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
The parser stores options it doesn't recognize here.DescriptorProtos.EnumOptions.Builder
addUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
The parser stores options it doesn't recognize here.DescriptorProtos.EnumOptions.Builder
addUninterpretedOption(DescriptorProtos.UninterpretedOption value)
The parser stores options it doesn't recognize here.DescriptorProtos.EnumOptions.Builder
addUninterpretedOption(DescriptorProtos.UninterpretedOption.Builder builderForValue)
The parser stores options it doesn't recognize here.DescriptorProtos.EnumOptions.Builder
clearAllowAlias()
Set this option to true to allow mapping different tag names to the same value.DescriptorProtos.EnumOptions.Builder
clearDeprecated()
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.DescriptorProtos.EnumOptions.Builder
clearDeprecatedLegacyJsonFieldConflicts()
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated.DescriptorProtos.EnumOptions.Builder
clearFeatures()
Any features defined in the specific edition.DescriptorProtos.EnumOptions.Builder
clearUninterpretedOption()
The parser stores options it doesn't recognize here.boolean
getAllowAlias()
Set this option to true to allow mapping different tag names to the same value.boolean
getDeprecated()
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.boolean
getDeprecatedLegacyJsonFieldConflicts()
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated.DescriptorProtos.FeatureSet
getFeatures()
Any features defined in the specific edition.DescriptorProtos.UninterpretedOption
getUninterpretedOption(int index)
The parser stores options it doesn't recognize here.int
getUninterpretedOptionCount()
The parser stores options it doesn't recognize here.java.util.List<DescriptorProtos.UninterpretedOption>
getUninterpretedOptionList()
The parser stores options it doesn't recognize here.boolean
hasAllowAlias()
Set this option to true to allow mapping different tag names to the same value.boolean
hasDeprecated()
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.boolean
hasDeprecatedLegacyJsonFieldConflicts()
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated.boolean
hasFeatures()
Any features defined in the specific edition.DescriptorProtos.EnumOptions.Builder
mergeFeatures(DescriptorProtos.FeatureSet value)
Any features defined in the specific edition.DescriptorProtos.EnumOptions.Builder
removeUninterpretedOption(int index)
The parser stores options it doesn't recognize here.DescriptorProtos.EnumOptions.Builder
setAllowAlias(boolean value)
Set this option to true to allow mapping different tag names to the same value.DescriptorProtos.EnumOptions.Builder
setDeprecated(boolean value)
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.DescriptorProtos.EnumOptions.Builder
setDeprecatedLegacyJsonFieldConflicts(boolean value)
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated.DescriptorProtos.EnumOptions.Builder
setFeatures(DescriptorProtos.FeatureSet value)
Any features defined in the specific edition.DescriptorProtos.EnumOptions.Builder
setFeatures(DescriptorProtos.FeatureSet.Builder builderForValue)
Any features defined in the specific edition.DescriptorProtos.EnumOptions.Builder
setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption value)
The parser stores options it doesn't recognize here.DescriptorProtos.EnumOptions.Builder
setUninterpretedOption(int index, DescriptorProtos.UninterpretedOption.Builder builderForValue)
The parser stores options it doesn't recognize here.-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.ExtendableBuilder
addExtension, buildPartial, clearExtension, copyOnWriteInternal, getExtension, getExtension, getExtensionCount, hasExtension, internalSetExtensionSet, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, clear, clone, copyOnWrite, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder
getExtension, getExtension, getExtensionCount, hasExtension
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Method Detail
-
hasAllowAlias
public boolean hasAllowAlias()
Set this option to true to allow mapping different tag names to the same value.
optional bool allow_alias = 2;
- Specified by:
hasAllowAlias
in interfaceDescriptorProtos.EnumOptionsOrBuilder
- Returns:
- Whether the allowAlias field is set.
-
getAllowAlias
public boolean getAllowAlias()
Set this option to true to allow mapping different tag names to the same value.
optional bool allow_alias = 2;
- Specified by:
getAllowAlias
in interfaceDescriptorProtos.EnumOptionsOrBuilder
- Returns:
- The allowAlias.
-
setAllowAlias
public DescriptorProtos.EnumOptions.Builder setAllowAlias(boolean value)
Set this option to true to allow mapping different tag names to the same value.
optional bool allow_alias = 2;
- Parameters:
value
- The allowAlias to set.- Returns:
- This builder for chaining.
-
clearAllowAlias
public DescriptorProtos.EnumOptions.Builder clearAllowAlias()
Set this option to true to allow mapping different tag names to the same value.
optional bool allow_alias = 2;
- Returns:
- This builder for chaining.
-
hasDeprecated
public boolean hasDeprecated()
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false];
- Specified by:
hasDeprecated
in interfaceDescriptorProtos.EnumOptionsOrBuilder
- Returns:
- Whether the deprecated field is set.
-
getDeprecated
public boolean getDeprecated()
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false];
- Specified by:
getDeprecated
in interfaceDescriptorProtos.EnumOptionsOrBuilder
- Returns:
- The deprecated.
-
setDeprecated
public DescriptorProtos.EnumOptions.Builder setDeprecated(boolean value)
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false];
- Parameters:
value
- The deprecated to set.- Returns:
- This builder for chaining.
-
clearDeprecated
public DescriptorProtos.EnumOptions.Builder clearDeprecated()
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
optional bool deprecated = 3 [default = false];
- Returns:
- This builder for chaining.
-
hasDeprecatedLegacyJsonFieldConflicts
@Deprecated public boolean hasDeprecatedLegacyJsonFieldConflicts()
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=835Enable 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. TODO Remove this legacy behavior once downstream teams have had time to migrate.
optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
- Specified by:
hasDeprecatedLegacyJsonFieldConflicts
in interfaceDescriptorProtos.EnumOptionsOrBuilder
- Returns:
- Whether the deprecatedLegacyJsonFieldConflicts field is set.
-
getDeprecatedLegacyJsonFieldConflicts
@Deprecated public boolean getDeprecatedLegacyJsonFieldConflicts()
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=835Enable 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. TODO Remove this legacy behavior once downstream teams have had time to migrate.
optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
- Specified by:
getDeprecatedLegacyJsonFieldConflicts
in interfaceDescriptorProtos.EnumOptionsOrBuilder
- Returns:
- The deprecatedLegacyJsonFieldConflicts.
-
setDeprecatedLegacyJsonFieldConflicts
@Deprecated public DescriptorProtos.EnumOptions.Builder setDeprecatedLegacyJsonFieldConflicts(boolean value)
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=835Enable 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. TODO Remove this legacy behavior once downstream teams have had time to migrate.
optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
- Parameters:
value
- The deprecatedLegacyJsonFieldConflicts to set.- Returns:
- This builder for chaining.
-
clearDeprecatedLegacyJsonFieldConflicts
@Deprecated public DescriptorProtos.EnumOptions.Builder clearDeprecatedLegacyJsonFieldConflicts()
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=835Enable 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. TODO Remove this legacy behavior once downstream teams have had time to migrate.
optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
- Returns:
- This builder for chaining.
-
hasFeatures
public boolean hasFeatures()
Any features defined in the specific edition.
optional .google.protobuf.FeatureSet features = 7;
- Specified by:
hasFeatures
in interfaceDescriptorProtos.EnumOptionsOrBuilder
- Returns:
- Whether the features field is set.
-
getFeatures
public DescriptorProtos.FeatureSet getFeatures()
Any features defined in the specific edition.
optional .google.protobuf.FeatureSet features = 7;
- Specified by:
getFeatures
in interfaceDescriptorProtos.EnumOptionsOrBuilder
- Returns:
- The features.
-
setFeatures
public DescriptorProtos.EnumOptions.Builder setFeatures(DescriptorProtos.FeatureSet value)
Any features defined in the specific edition.
optional .google.protobuf.FeatureSet features = 7;
-
setFeatures
public DescriptorProtos.EnumOptions.Builder setFeatures(DescriptorProtos.FeatureSet.Builder builderForValue)
Any features defined in the specific edition.
optional .google.protobuf.FeatureSet features = 7;
-
mergeFeatures
public DescriptorProtos.EnumOptions.Builder mergeFeatures(DescriptorProtos.FeatureSet value)
Any features defined in the specific edition.
optional .google.protobuf.FeatureSet features = 7;
-
clearFeatures
public DescriptorProtos.EnumOptions.Builder clearFeatures()
Any features defined in the specific edition.
optional .google.protobuf.FeatureSet features = 7;
-
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:
getUninterpretedOptionList
in interfaceDescriptorProtos.EnumOptionsOrBuilder
-
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.EnumOptionsOrBuilder
-
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:
getUninterpretedOption
in interfaceDescriptorProtos.EnumOptionsOrBuilder
-
setUninterpretedOption
public DescriptorProtos.EnumOptions.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.EnumOptions.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.EnumOptions.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.EnumOptions.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.EnumOptions.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.EnumOptions.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.EnumOptions.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.EnumOptions.Builder clearUninterpretedOption()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
removeUninterpretedOption
public DescriptorProtos.EnumOptions.Builder removeUninterpretedOption(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
-