public enum Label extends Enum<Label>
| Enum Constant and Description |
|---|
ONE_OF
Indicates a field that is a member of a
oneof element. |
OPTIONAL |
REPEATED |
REQUIRED |
| Modifier and Type | Method and Description |
|---|---|
static Label |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Label[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Label REQUIRED
public static final Label OPTIONAL
public static final Label REPEATED
public static final Label ONE_OF
oneof element. It is an implicitly optional and non-repeated
field.public static Label[] values()
for (Label c : Label.values()) System.out.println(c);
public static Label 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 nullCopyright © 2020 JBoss, a division of Red Hat. All rights reserved.