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
Modifier and TypeMethodDescriptionboolean
Set this option to true to allow mapping different tag names to the same value.boolean
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
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated.Any features defined in the specific edition.getUninterpretedOption
(int index) 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.boolean
Set this option to true to allow mapping different tag names to the same value.boolean
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
Deprecated.google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated.boolean
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 Details
-
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.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.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
List<DescriptorProtos.UninterpretedOption> getUninterpretedOptionList()The parser stores options it doesn't recognize here. See above.
repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;
-
getUninterpretedOption
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;
-