Class DescriptorProtos.EnumOptions.Builder

    • Constructor Detail

      • Builder

        private Builder()
    • Method Detail

      • 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=857
         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=857
         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=857
         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=857
         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

        public DescriptorProtos.EnumOptions.Builder setFeatures​(DescriptorProtos.FeatureSet value)
         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

        public DescriptorProtos.EnumOptions.Builder setFeatures​(DescriptorProtos.FeatureSet.Builder builderForValue)
         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

        public DescriptorProtos.EnumOptions.Builder mergeFeatures​(DescriptorProtos.FeatureSet value)
         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;
      • 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;