Interface DescriptorProtos.EnumOptionsOrBuilder

All Superinterfaces:
com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder>, com.google.protobuf.MessageLiteOrBuilder
All Known Implementing Classes:
DescriptorProtos.EnumOptions, DescriptorProtos.EnumOptions.Builder
Enclosing class:
DescriptorProtos

public static interface DescriptorProtos.EnumOptionsOrBuilder extends com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder>
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    Any features defined in the specific edition.
    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 [json_name = "allowAlias"];
      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 [json_name = "allowAlias"];
      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, json_name = "deprecated"];
      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, json_name = "deprecated"];
      Returns:
      The deprecated.
    • hasDeprecatedLegacyJsonFieldConflicts

      @Deprecated boolean hasDeprecatedLegacyJsonFieldConflicts()
      Deprecated.
      google.protobuf.EnumOptions.deprecated_legacy_json_field_conflicts is deprecated. See google/protobuf/descriptor.proto;l=804
       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 [json_name = "deprecatedLegacyJsonFieldConflicts", 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=804
       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 [json_name = "deprecatedLegacyJsonFieldConflicts", deprecated = true];
      Returns:
      The deprecatedLegacyJsonFieldConflicts.
    • hasFeatures

      boolean hasFeatures()
       Any features defined in the specific edition.
       
      optional .google.protobuf.FeatureSet features = 7 [json_name = "features"];
      Returns:
      Whether the features field is set.
    • getFeatures

       Any features defined in the specific edition.
       
      optional .google.protobuf.FeatureSet features = 7 [json_name = "features"];
      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 [json_name = "uninterpretedOption"];
    • getUninterpretedOption

      DescriptorProtos.UninterpretedOption getUninterpretedOption(int index)
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];
    • getUninterpretedOptionCount

      int getUninterpretedOptionCount()
       The parser stores options it doesn't recognize here. See above.
       
      repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999 [json_name = "uninterpretedOption"];