public static enum Envelope.BodyCase extends java.lang.Enum<Envelope.BodyCase> implements com.google.protobuf.Internal.EnumLite
Enum Constant and Description |
---|
BODY_NOT_SET |
CHECKPOINT |
PAYLOAD |
Modifier and Type | Method and Description |
---|---|
static Envelope.BodyCase |
forNumber(int value) |
int |
getNumber() |
static Envelope.BodyCase |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Envelope.BodyCase |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Envelope.BodyCase[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Envelope.BodyCase CHECKPOINT
public static final Envelope.BodyCase PAYLOAD
public static final Envelope.BodyCase BODY_NOT_SET
public static Envelope.BodyCase[] values()
for (Envelope.BodyCase c : Envelope.BodyCase.values()) System.out.println(c);
public static Envelope.BodyCase 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 Envelope.BodyCase valueOf(int value)
forNumber(int)
instead.public static Envelope.BodyCase forNumber(int value)
public int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.