public static enum MeterSpec.Unit extends Enum<MeterSpec.Unit> implements com.google.protobuf.ProtocolMessageEnum
Corresponds to 'type' attribute for meter in P4 spec.Protobuf enum
p4.config.MeterSpec.Unit| Enum Constant and Description |
|---|
BYTES
BYTES = 1; |
PACKETS
PACKETS = 2; |
UNRECOGNIZED |
UNSPECIFIED
UNSPECIFIED = 0; |
| Modifier and Type | Field and Description |
|---|---|
static int |
BYTES_VALUE
BYTES = 1; |
static int |
PACKETS_VALUE
PACKETS = 2; |
static int |
UNSPECIFIED_VALUE
UNSPECIFIED = 0; |
| Modifier and Type | Method and Description |
|---|---|
static MeterSpec.Unit |
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<MeterSpec.Unit> |
internalGetValueMap() |
static MeterSpec.Unit |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MeterSpec.Unit |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MeterSpec.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MeterSpec.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MeterSpec.Unit UNSPECIFIED
UNSPECIFIED = 0;public static final MeterSpec.Unit BYTES
BYTES = 1;public static final MeterSpec.Unit PACKETS
PACKETS = 2;public static final MeterSpec.Unit UNRECOGNIZED
public static final int UNSPECIFIED_VALUE
UNSPECIFIED = 0;public static final int BYTES_VALUE
BYTES = 1;public static final int PACKETS_VALUE
PACKETS = 2;public static MeterSpec.Unit[] values()
for (MeterSpec.Unit c : MeterSpec.Unit.values()) System.out.println(c);
public static MeterSpec.Unit 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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static MeterSpec.Unit valueOf(int value)
forNumber(int) instead.public static MeterSpec.Unit forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<MeterSpec.Unit> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static MeterSpec.Unit valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2019 OpenDaylight. All rights reserved.