public static enum LogEntry.PayloadCase extends Enum<LogEntry.PayloadCase> implements com.google.protobuf.Internal.EnumLite
Enum Constant and Description |
---|
JSON_PAYLOAD |
PAYLOAD_NOT_SET |
PROTO_PAYLOAD |
TEXT_PAYLOAD |
Modifier and Type | Method and Description |
---|---|
static LogEntry.PayloadCase |
forNumber(int value) |
int |
getNumber() |
static LogEntry.PayloadCase |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static LogEntry.PayloadCase |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogEntry.PayloadCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogEntry.PayloadCase PROTO_PAYLOAD
public static final LogEntry.PayloadCase TEXT_PAYLOAD
public static final LogEntry.PayloadCase JSON_PAYLOAD
public static final LogEntry.PayloadCase PAYLOAD_NOT_SET
public static LogEntry.PayloadCase[] values()
for (LogEntry.PayloadCase c : LogEntry.PayloadCase.values()) System.out.println(c);
public static LogEntry.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 LogEntry.PayloadCase valueOf(int value)
forNumber(int)
instead.value
- The number of the enum to look for.public static LogEntry.PayloadCase forNumber(int value)
public int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
Copyright © 2023 Google LLC. All rights reserved.