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