Package p4.config.v1

Enum Class P4InfoOuterClass.MeterSpec.Type

java.lang.Object
java.lang.Enum<P4InfoOuterClass.MeterSpec.Type>
p4.config.v1.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
  • Enum Constant Details

    • TWO_RATE_THREE_COLOR

      public static final P4InfoOuterClass.MeterSpec.Type 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

      public static final P4InfoOuterClass.MeterSpec.Type 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

      public static final P4InfoOuterClass.MeterSpec.Type 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

      public static final P4InfoOuterClass.MeterSpec.Type UNRECOGNIZED
  • Field Details

    • TWO_RATE_THREE_COLOR_VALUE

      public static final int TWO_RATE_THREE_COLOR_VALUE
       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;
      See Also:
    • SINGLE_RATE_THREE_COLOR_VALUE

      public static final int SINGLE_RATE_THREE_COLOR_VALUE
       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;
      See Also:
    • SINGLE_RATE_TWO_COLOR_VALUE

      public static final int SINGLE_RATE_TWO_COLOR_VALUE
       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;
      See Also:
  • Method Details

    • values

      public static P4InfoOuterClass.MeterSpec.Type[] 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 P4InfoOuterClass.MeterSpec.Type 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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static P4InfoOuterClass.MeterSpec.Type 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 name
      NullPointerException - if the argument is null
    • forNumber

      public static P4InfoOuterClass.MeterSpec.Type 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 com.google.protobuf.Internal.EnumLiteMap<P4InfoOuterClass.MeterSpec.Type> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null