Package p4.config.v1
Enum Class 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-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionP4 language built-insACTION_PROFILE = 17;CONTROLLER_HEADER = 4;COUNTER = 18;DIGEST = 23;DIRECT_COUNTER = 19;DIRECT_METER = 21;max value for an unsigned 8-bit byteMETER = 20;externs for other architectures (vendor extensions)PSA externsREGISTER = 22;TABLE = 2;UNSPECIFIED = 0;VALUE_SET = 3; -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intACTION_PROFILE = 17;static final intP4 language built-insstatic final intCONTROLLER_HEADER = 4;static final intCOUNTER = 18;static final intDIGEST = 23;static final intDIRECT_COUNTER = 19;static final intDIRECT_METER = 21;static final intmax value for an unsigned 8-bit bytestatic final intMETER = 20;static final intexterns for other architectures (vendor extensions)static final intPSA externsstatic final intREGISTER = 22;static final intTABLE = 2;static final intUNSPECIFIED = 0;static final intVALUE_SET = 3; -
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.P4Ids.Prefix> 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.P4Ids.Prefix[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
UNSPECIFIED = 0; -
ACTION
P4 language built-ins
ACTION = 1; -
TABLE
TABLE = 2; -
VALUE_SET
VALUE_SET = 3; -
CONTROLLER_HEADER
CONTROLLER_HEADER = 4; -
PSA_EXTERNS_START
PSA externs
PSA_EXTERNS_START = 16; -
ACTION_PROFILE
ACTION_PROFILE = 17; -
COUNTER
COUNTER = 18; -
DIRECT_COUNTER
DIRECT_COUNTER = 19; -
METER
METER = 20; -
DIRECT_METER
DIRECT_METER = 21; -
REGISTER
REGISTER = 22; -
DIGEST
DIGEST = 23; -
OTHER_EXTERNS_START
externs for other architectures (vendor extensions)
OTHER_EXTERNS_START = 128; -
MAX
max value for an unsigned 8-bit byte
MAX = 255; -
UNRECOGNIZED
-
-
Field Details
-
UNSPECIFIED_VALUE
public static final int UNSPECIFIED_VALUEUNSPECIFIED = 0;- See Also:
-
ACTION_VALUE
public static final int ACTION_VALUEP4 language built-ins
ACTION = 1;- See Also:
-
TABLE_VALUE
public static final int TABLE_VALUETABLE = 2;- See Also:
-
VALUE_SET_VALUE
public static final int VALUE_SET_VALUEVALUE_SET = 3;- See Also:
-
CONTROLLER_HEADER_VALUE
public static final int CONTROLLER_HEADER_VALUECONTROLLER_HEADER = 4;- See Also:
-
PSA_EXTERNS_START_VALUE
public static final int PSA_EXTERNS_START_VALUEPSA externs
PSA_EXTERNS_START = 16;- See Also:
-
ACTION_PROFILE_VALUE
public static final int ACTION_PROFILE_VALUEACTION_PROFILE = 17;- See Also:
-
COUNTER_VALUE
public static final int COUNTER_VALUECOUNTER = 18;- See Also:
-
DIRECT_COUNTER_VALUE
public static final int DIRECT_COUNTER_VALUEDIRECT_COUNTER = 19;- See Also:
-
METER_VALUE
public static final int METER_VALUEMETER = 20;- See Also:
-
DIRECT_METER_VALUE
public static final int DIRECT_METER_VALUEDIRECT_METER = 21;- See Also:
-
REGISTER_VALUE
public static final int REGISTER_VALUEREGISTER = 22;- See Also:
-
DIGEST_VALUE
public static final int DIGEST_VALUEDIGEST = 23;- See Also:
-
OTHER_EXTERNS_START_VALUE
public static final int OTHER_EXTERNS_START_VALUEexterns for other architectures (vendor extensions)
OTHER_EXTERNS_START = 128;- See Also:
-
MAX_VALUE
public static final int MAX_VALUEmax value for an unsigned 8-bit byte
MAX = 255;- 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.P4Ids.Prefix> 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.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 nameNullPointerException- if the argument is null
-