Package p4.config.v1
Enum Class P4InfoOuterClass.MeterSpec.Type
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<P4InfoOuterClass.MeterSpec.Type>,Constable
- Enclosing class:
P4InfoOuterClass.MeterSpec
public static enum P4InfoOuterClass.MeterSpec.Type
extends Enum<P4InfoOuterClass.MeterSpec.Type>
implements com.google.protobuf.ProtocolMessageEnum
Used to restrict the MeterConfigs that can be used to instantiate the meter. Added in 1.4.0.Protobuf enum
p4.config.v1.MeterSpec.Type-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAs described in RFC 2697, allows meters to use one rate with an Excess Burst Size (EBS) to split packets into three potential colors.A simplified version of RFC 2697, restricting meters to using a single rate to split packets into only RED or GREEN, by not providing an Excess Burst Size (EBS).As described in RFC 2698, allows meters to use two rates to split packets into three potential colors. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAs described in RFC 2697, allows meters to use one rate with an Excess Burst Size (EBS) to split packets into three potential colors.static final intA simplified version of RFC 2697, restricting meters to using a single rate to split packets into only RED or GREEN, by not providing an Excess Burst Size (EBS).static final intAs described in RFC 2698, allows meters to use two rates to split packets into three potential colors. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<P4InfoOuterClass.MeterSpec.Type> valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.Returns the enum constant of this class with the specified name.static P4InfoOuterClass.MeterSpec.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TWO_RATE_THREE_COLOR
As described in RFC 2698, allows meters to use two rates to split packets into three potential colors. MeterConfigs on table entries using this meter type MUST have `eburst == 0` (i.e. unset).
TWO_RATE_THREE_COLOR = 0; -
SINGLE_RATE_THREE_COLOR
As described in RFC 2697, allows meters to use one rate with an Excess Burst Size (EBS) to split packets into three potential colors. MeterConfigs on table entries using this meter type MUST have `cir == pir && cburst == pburst`.
SINGLE_RATE_THREE_COLOR = 1; -
SINGLE_RATE_TWO_COLOR
A simplified version of RFC 2697, restricting meters to using a single rate to split packets into only RED or GREEN, by not providing an Excess Burst Size (EBS). MeterConfigs on table entries using this meter type MUST have `cir == pir && cburst == pburst && eburst == 0` (i.e. unset).
SINGLE_RATE_TWO_COLOR = 2; -
UNRECOGNIZED
-
-
Field Details
-
TWO_RATE_THREE_COLOR_VALUE
public static final int TWO_RATE_THREE_COLOR_VALUEAs described in RFC 2698, allows meters to use two rates to split packets into three potential colors. MeterConfigs on table entries using this meter type MUST have `eburst == 0` (i.e. unset).
TWO_RATE_THREE_COLOR = 0;- See Also:
-
SINGLE_RATE_THREE_COLOR_VALUE
public static final int SINGLE_RATE_THREE_COLOR_VALUEAs described in RFC 2697, allows meters to use one rate with an Excess Burst Size (EBS) to split packets into three potential colors. MeterConfigs on table entries using this meter type MUST have `cir == pir && cburst == pburst`.
SINGLE_RATE_THREE_COLOR = 1;- See Also:
-
SINGLE_RATE_TWO_COLOR_VALUE
public static final int SINGLE_RATE_TWO_COLOR_VALUEA simplified version of RFC 2697, restricting meters to using a single rate to split packets into only RED or GREEN, by not providing an Excess Burst Size (EBS). MeterConfigs on table entries using this meter type MUST have `cir == pir && cburst == pburst && eburst == 0` (i.e. unset).
SINGLE_RATE_TWO_COLOR = 2;- See Also:
-
-
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
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 interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<P4InfoOuterClass.MeterSpec.Type> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static P4InfoOuterClass.MeterSpec.Type valueOf(com.google.protobuf.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
-