Package p4.config.v1

Enum Class P4InfoOuterClass.P4Ids.Prefix

java.lang.Object
java.lang.Enum<P4InfoOuterClass.P4Ids.Prefix>
p4.config.v1.P4InfoOuterClass.P4Ids.Prefix
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<P4InfoOuterClass.P4Ids.Prefix>, Constable
Enclosing class:
P4InfoOuterClass.P4Ids

public static enum P4InfoOuterClass.P4Ids.Prefix extends Enum<P4InfoOuterClass.P4Ids.Prefix> implements com.google.protobuf.ProtocolMessageEnum
 ids are allocated in such a way that it is possible based on an id to
 deduce the resource type (e.g. table, action, counter, ...). The
 most-significant byte of the 32-bit id encodes the resource type. The
 purpose of this enum is to define which value is used as the
 most-significant byte for each resource type. The P4 compiler must use
 these values when allocating ids for P4 objects. Other users of P4Info can
 refer to this enum to identify a resource type based on its id.
 
Protobuf enum p4.config.v1.P4Ids.Prefix
  • Enum Constant Details

  • Field Details

    • UNSPECIFIED_VALUE

      public static final int UNSPECIFIED_VALUE
      UNSPECIFIED = 0;
      See Also:
    • ACTION_VALUE

      public static final int ACTION_VALUE
       P4 language built-ins
       
      ACTION = 1;
      See Also:
    • TABLE_VALUE

      public static final int TABLE_VALUE
      TABLE = 2;
      See Also:
    • VALUE_SET_VALUE

      public static final int VALUE_SET_VALUE
      VALUE_SET = 3;
      See Also:
    • CONTROLLER_HEADER_VALUE

      public static final int CONTROLLER_HEADER_VALUE
      CONTROLLER_HEADER = 4;
      See Also:
    • PSA_EXTERNS_START_VALUE

      public static final int PSA_EXTERNS_START_VALUE
       PSA externs
       
      PSA_EXTERNS_START = 16;
      See Also:
    • ACTION_PROFILE_VALUE

      public static final int ACTION_PROFILE_VALUE
      ACTION_PROFILE = 17;
      See Also:
    • COUNTER_VALUE

      public static final int COUNTER_VALUE
      COUNTER = 18;
      See Also:
    • DIRECT_COUNTER_VALUE

      public static final int DIRECT_COUNTER_VALUE
      DIRECT_COUNTER = 19;
      See Also:
    • METER_VALUE

      public static final int METER_VALUE
      METER = 20;
      See Also:
    • DIRECT_METER_VALUE

      public static final int DIRECT_METER_VALUE
      DIRECT_METER = 21;
      See Also:
    • REGISTER_VALUE

      public static final int REGISTER_VALUE
      REGISTER = 22;
      See Also:
    • DIGEST_VALUE

      public static final int DIGEST_VALUE
      DIGEST = 23;
      See Also:
    • OTHER_EXTERNS_START_VALUE

      public static final int OTHER_EXTERNS_START_VALUE
       externs for other architectures (vendor extensions)
       
      OTHER_EXTERNS_START = 128;
      See Also:
    • MAX_VALUE

      public static final int MAX_VALUE
       max value for an unsigned 8-bit byte
       
      MAX = 255;
      See Also:
  • Method Details

    • values

      public static P4InfoOuterClass.P4Ids.Prefix[] 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.P4Ids.Prefix 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.P4Ids.Prefix 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.P4Ids.Prefix 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.P4Ids.Prefix> 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.P4Ids.Prefix 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