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, ProtocolMessageEnum, 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 ProtocolMessageEnum
Protobuf enum
google.protobuf.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits-
Nested Class Summary
Nested 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 intprivate static final DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static Descriptors.EnumDescriptorReturn the enum type's descriptor, which contains information about each defined value, etc.final intReturn the value's numeric value as defined in the .proto file.Return the value's descriptor, which contains information such as value name, number, and type.valueOf(int value) Deprecated.Returns the enum constant of this class with the specified name.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 -
VALUES
-
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()Description copied from interface:ProtocolMessageEnumReturn the value's numeric value as defined in the .proto file.- Specified by:
getNumberin interfaceInternal.EnumLite- Specified by:
getNumberin interfaceProtocolMessageEnum
-
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) - Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static Internal.EnumLiteMap<DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits> internalGetValueMap() -
getValueDescriptor
Description copied from interface:ProtocolMessageEnumReturn the value's descriptor, which contains information such as value name, number, and type.- Specified by:
getValueDescriptorin interfaceProtocolMessageEnum
-
getDescriptorForType
Description copied from interface:ProtocolMessageEnumReturn the enum type's descriptor, which contains information about each defined value, etc.- Specified by:
getDescriptorForTypein interfaceProtocolMessageEnum
-
getDescriptor
-
valueOf
public static DescriptorProtos.FeatureSet.ProtoLimitsFeature.EnforceProtoLimits valueOf(Descriptors.EnumValueDescriptor desc) 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:
desc- 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
-