Package com.google.protobuf
Interface DescriptorProtos.EnumOptionsOrBuilder
-
- All Superinterfaces:
GeneratedMessageLite.ExtendableMessageOrBuilder<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder>
,MessageLiteOrBuilder
- All Known Implementing Classes:
DescriptorProtos.EnumOptions
,DescriptorProtos.EnumOptions.Builder
- Enclosing class:
- DescriptorProtos
public static interface DescriptorProtos.EnumOptionsOrBuilder extends GeneratedMessageLite.ExtendableMessageOrBuilder<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description 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.-
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
boolean hasAllowAlias()
Set this option to true to allow mapping different tag names to the same value.
optional bool allow_alias = 2;
- Returns:
- Whether the allowAlias field is set.
-
getAllowAlias
boolean getAllowAlias()
Set this option to true to allow mapping different tag names to the same value.
optional bool allow_alias = 2;
- Returns:
- The allowAlias.
-
hasDeprecated
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];
- Returns:
- Whether the deprecated field is set.
-
getDeprecated
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];
- Returns:
- The deprecated.
-
hasDeprecatedLegacyJsonFieldConflicts
@Deprecated 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];
- Returns:
- Whether the deprecatedLegacyJsonFieldConflicts field is set.
-
getDeprecatedLegacyJsonFieldConflicts
@Deprecated 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];
- Returns:
- The deprecatedLegacyJsonFieldConflicts.
-
hasFeatures
boolean hasFeatures()
Any features defined in the specific edition.
optional .google.protobuf.FeatureSet features = 7;
- Returns:
- Whether the features field is set.
-
getFeatures
DescriptorProtos.FeatureSet getFeatures()
Any features defined in the specific edition.
optional .google.protobuf.FeatureSet features = 7;
- Returns:
- The features.
-
getUninterpretedOptionList
java.util.List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
getUninterpretedOption
DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
getUninterpretedOptionCount
int getUninterpretedOptionCount()
The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
-