public static enum P4Ids.Prefix extends Enum<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 and Description |
---|
ACTION
P4 language built-ins
|
ACTION_PROFILE
ACTION_PROFILE = 17; |
CONTROLLER_HEADER
CONTROLLER_HEADER = 4; |
COUNTER
COUNTER = 18; |
DIGEST
DIGEST = 23; |
DIRECT_COUNTER
DIRECT_COUNTER = 19; |
DIRECT_METER
DIRECT_METER = 21; |
MAX
max value for an unsigned 8-bit byte
|
METER
METER = 20; |
OTHER_EXTERNS_START
externs for other architectures (vendor extensions)
|
PSA_EXTERNS_START
PSA externs
|
REGISTER
REGISTER = 22; |
TABLE
TABLE = 2; |
UNRECOGNIZED |
UNSPECIFIED
UNSPECIFIED = 0; |
VALUE_SET
VALUE_SET = 3; |
Modifier and Type | Field and Description |
---|---|
static int |
ACTION_PROFILE_VALUE
ACTION_PROFILE = 17; |
static int |
ACTION_VALUE
P4 language built-ins
|
static int |
CONTROLLER_HEADER_VALUE
CONTROLLER_HEADER = 4; |
static int |
COUNTER_VALUE
COUNTER = 18; |
static int |
DIGEST_VALUE
DIGEST = 23; |
static int |
DIRECT_COUNTER_VALUE
DIRECT_COUNTER = 19; |
static int |
DIRECT_METER_VALUE
DIRECT_METER = 21; |
static int |
MAX_VALUE
max value for an unsigned 8-bit byte
|
static int |
METER_VALUE
METER = 20; |
static int |
OTHER_EXTERNS_START_VALUE
externs for other architectures (vendor extensions)
|
static int |
PSA_EXTERNS_START_VALUE
PSA externs
|
static int |
REGISTER_VALUE
REGISTER = 22; |
static int |
TABLE_VALUE
TABLE = 2; |
static int |
UNSPECIFIED_VALUE
UNSPECIFIED = 0; |
static int |
VALUE_SET_VALUE
VALUE_SET = 3; |
Modifier and Type | Method and Description |
---|---|
static P4Ids.Prefix |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<P4Ids.Prefix> |
internalGetValueMap() |
static P4Ids.Prefix |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static P4Ids.Prefix |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static P4Ids.Prefix |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static P4Ids.Prefix[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final P4Ids.Prefix UNSPECIFIED
UNSPECIFIED = 0;
public static final P4Ids.Prefix ACTION
P4 language built-ins
ACTION = 1;
public static final P4Ids.Prefix TABLE
TABLE = 2;
public static final P4Ids.Prefix VALUE_SET
VALUE_SET = 3;
public static final P4Ids.Prefix CONTROLLER_HEADER
CONTROLLER_HEADER = 4;
public static final P4Ids.Prefix PSA_EXTERNS_START
PSA externs
PSA_EXTERNS_START = 16;
public static final P4Ids.Prefix ACTION_PROFILE
ACTION_PROFILE = 17;
public static final P4Ids.Prefix COUNTER
COUNTER = 18;
public static final P4Ids.Prefix DIRECT_COUNTER
DIRECT_COUNTER = 19;
public static final P4Ids.Prefix METER
METER = 20;
public static final P4Ids.Prefix DIRECT_METER
DIRECT_METER = 21;
public static final P4Ids.Prefix REGISTER
REGISTER = 22;
public static final P4Ids.Prefix DIGEST
DIGEST = 23;
public static final P4Ids.Prefix OTHER_EXTERNS_START
externs for other architectures (vendor extensions)
OTHER_EXTERNS_START = 128;
public static final P4Ids.Prefix MAX
max value for an unsigned 8-bit byte
MAX = 255;
public static final P4Ids.Prefix UNRECOGNIZED
public static final int UNSPECIFIED_VALUE
UNSPECIFIED = 0;
public static final int ACTION_VALUE
P4 language built-ins
ACTION = 1;
public static final int TABLE_VALUE
TABLE = 2;
public static final int VALUE_SET_VALUE
VALUE_SET = 3;
public static final int CONTROLLER_HEADER_VALUE
CONTROLLER_HEADER = 4;
public static final int PSA_EXTERNS_START_VALUE
PSA externs
PSA_EXTERNS_START = 16;
public static final int ACTION_PROFILE_VALUE
ACTION_PROFILE = 17;
public static final int COUNTER_VALUE
COUNTER = 18;
public static final int DIRECT_COUNTER_VALUE
DIRECT_COUNTER = 19;
public static final int METER_VALUE
METER = 20;
public static final int DIRECT_METER_VALUE
DIRECT_METER = 21;
public static final int REGISTER_VALUE
REGISTER = 22;
public static final int DIGEST_VALUE
DIGEST = 23;
public static final int OTHER_EXTERNS_START_VALUE
externs for other architectures (vendor extensions)
OTHER_EXTERNS_START = 128;
public static final int MAX_VALUE
max value for an unsigned 8-bit byte
MAX = 255;
public static P4Ids.Prefix[] values()
for (P4Ids.Prefix c : P4Ids.Prefix.values()) System.out.println(c);
public static P4Ids.Prefix valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static P4Ids.Prefix valueOf(int value)
forNumber(int)
instead.public static P4Ids.Prefix forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<P4Ids.Prefix> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static P4Ids.Prefix valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018 OpenDaylight. All rights reserved.