public static enum TestProtos.OneOfMessage.PayloadCase extends java.lang.Enum<TestProtos.OneOfMessage.PayloadCase> implements com.google.protobuf.Internal.EnumLite
Enum Constant and Description |
---|
BAR |
BAZ |
FOO |
PAYLOAD_NOT_SET |
Modifier and Type | Method and Description |
---|---|
static TestProtos.OneOfMessage.PayloadCase |
forNumber(int value) |
int |
getNumber() |
static TestProtos.OneOfMessage.PayloadCase |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static TestProtos.OneOfMessage.PayloadCase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TestProtos.OneOfMessage.PayloadCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TestProtos.OneOfMessage.PayloadCase FOO
public static final TestProtos.OneOfMessage.PayloadCase BAR
public static final TestProtos.OneOfMessage.PayloadCase BAZ
public static final TestProtos.OneOfMessage.PayloadCase PAYLOAD_NOT_SET
public static TestProtos.OneOfMessage.PayloadCase[] values()
for (TestProtos.OneOfMessage.PayloadCase c : TestProtos.OneOfMessage.PayloadCase.values()) System.out.println(c);
public static TestProtos.OneOfMessage.PayloadCase valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Deprecated public static TestProtos.OneOfMessage.PayloadCase valueOf(int value)
forNumber(int)
instead.public static TestProtos.OneOfMessage.PayloadCase forNumber(int value)
public int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.