public static enum GrpcLogEntry.PayloadCase extends Enum<GrpcLogEntry.PayloadCase> implements Internal.EnumLite, AbstractMessageLite.InternalOneOfEnum
| Enum Constant and Description |
|---|
CLIENT_HEADER |
MESSAGE |
PAYLOAD_NOT_SET |
SERVER_HEADER |
TRAILER |
| Modifier and Type | Method and Description |
|---|---|
static GrpcLogEntry.PayloadCase |
forNumber(int value) |
int |
getNumber() |
static GrpcLogEntry.PayloadCase |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static GrpcLogEntry.PayloadCase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GrpcLogEntry.PayloadCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GrpcLogEntry.PayloadCase CLIENT_HEADER
public static final GrpcLogEntry.PayloadCase SERVER_HEADER
public static final GrpcLogEntry.PayloadCase MESSAGE
public static final GrpcLogEntry.PayloadCase TRAILER
public static final GrpcLogEntry.PayloadCase PAYLOAD_NOT_SET
public static GrpcLogEntry.PayloadCase[] values()
for (GrpcLogEntry.PayloadCase c : GrpcLogEntry.PayloadCase.values()) System.out.println(c);
public static GrpcLogEntry.PayloadCase 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 null@Deprecated public static GrpcLogEntry.PayloadCase valueOf(int value)
forNumber(int) instead.value - The number of the enum to look for.public static GrpcLogEntry.PayloadCase forNumber(int value)
public int getNumber()
getNumber in interface AbstractMessageLite.InternalOneOfEnumgetNumber in interface Internal.EnumLite