Class DescriptorProtos.EnumOptions.Builder

All Implemented Interfaces:
DescriptorProtos.EnumOptionsOrBuilder, GeneratedMessageLite.ExtendableMessageOrBuilder<DescriptorProtos.EnumOptions,DescriptorProtos.EnumOptions.Builder>, MessageLite.Builder, MessageLiteOrBuilder, Cloneable
Enclosing class:
DescriptorProtos.EnumOptions

Protobuf type google.protobuf.EnumOptions
  • Constructor Details

    • Builder

      private Builder()
  • Method Details

    • 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 interface DescriptorProtos.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 interface DescriptorProtos.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 interface DescriptorProtos.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 interface DescriptorProtos.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=867
       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];
      Specified by:
      hasDeprecatedLegacyJsonFieldConflicts in interface DescriptorProtos.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=867
       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];
      Specified by:
      getDeprecatedLegacyJsonFieldConflicts in interface DescriptorProtos.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=867
       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];
      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=867
       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:
      This builder for chaining.
    • hasFeatures

      public 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;
      Specified by:
      hasFeatures in interface DescriptorProtos.EnumOptionsOrBuilder
      Returns:
      Whether the features field is set.
    • getFeatures

      public DescriptorProtos.FeatureSet 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;
      Specified by:
      getFeatures in interface DescriptorProtos.EnumOptionsOrBuilder
      Returns:
      The features.
    • setFeatures

       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;
    • setFeatures

       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;
    • mergeFeatures

       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;
    • clearFeatures

      public DescriptorProtos.EnumOptions.Builder clearFeatures()
       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;
    • getUninterpretedOptionList

      public 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 interface DescriptorProtos.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 interface DescriptorProtos.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 interface DescriptorProtos.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

       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

       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(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;