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 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 boolean hasDeprecatedLegacyJsonFieldConflicts()
      Deprecated.
      google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=874
      Enable 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=874
      Enable 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.
      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 = 7;
      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 = 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

      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;