Enum Class DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits
java.lang.Object
java.lang.Enum<DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits>
com.google.protobuf.DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits
- All Implemented Interfaces:
Internal.EnumLite, Serializable, Comparable<DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits>, Constable
- Enclosing class:
DescriptorProtos.FeatureSet.ProtoLimitsFeature
public static enum DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits
extends Enum<DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits>
implements Internal.EnumLite
Protobuf enum
google.protobuf.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classNested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDefault pre-EDITION_2026: there are no limit enforcement at the protoc level.PROTO_LIMITS_UNKNOWN = 0;A set of limits enforced by Edition 2026 by default. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Internal.EnumLiteMap<DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits> static final intDefault pre-EDITION_2026: there are no limit enforcement at the protoc level.static final intPROTO_LIMITS_UNKNOWN = 0;static final intA set of limits enforced by Edition 2026 by default.private final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) final intstatic Internal.EnumVerifiervalueOf(int value) Deprecated.Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROTO_LIMITS_UNKNOWN
public static final DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits PROTO_LIMITS_UNKNOWNPROTO_LIMITS_UNKNOWN = 0; -
LEGACY_NO_EXPLICIT_LIMITS
public static final DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits LEGACY_NO_EXPLICIT_LIMITSDefault pre-EDITION_2026: there are no limit enforcement at the protoc level. Practical limits still exist, but they will tend to fail while compiling protoc-generated code, and these limits tend to be language or toolchain specific.
LEGACY_NO_EXPLICIT_LIMITS = 1; -
PROTO_LIMITS2026
public static final DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits PROTO_LIMITS2026A set of limits enforced by Edition 2026 by default. For a detailed list of all the limits please consult the Edition 2026 documentation.
PROTO_LIMITS2026 = 2;
-
-
Field Details
-
PROTO_LIMITS_UNKNOWN_VALUE
public static final int PROTO_LIMITS_UNKNOWN_VALUEPROTO_LIMITS_UNKNOWN = 0;- See Also:
-
LEGACY_NO_EXPLICIT_LIMITS_VALUE
public static final int LEGACY_NO_EXPLICIT_LIMITS_VALUEDefault pre-EDITION_2026: there are no limit enforcement at the protoc level. Practical limits still exist, but they will tend to fail while compiling protoc-generated code, and these limits tend to be language or toolchain specific.
LEGACY_NO_EXPLICIT_LIMITS = 1;- See Also:
-
PROTO_LIMITS2026_VALUE
public static final int PROTO_LIMITS2026_VALUEA set of limits enforced by Edition 2026 by default. For a detailed list of all the limits please consult the Edition 2026 documentation.
PROTO_LIMITS2026 = 2;- See Also:
-
internalValueMap
private static final Internal.EnumLiteMap<DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits> internalValueMap -
value
private final int value
-
-
Constructor Details
-
EnforceProtoLimits
private EnforceProtoLimits(int value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
public static DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits valueOf(String name) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfaceInternal.EnumLite
-
valueOf
@Deprecated public static DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits valueOf(int value) Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits forNumber(int value) -
internalGetValueMap
public static Internal.EnumLiteMap<DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits> internalGetValueMap() -
internalGetVerifier
-