public static enum Field.Label extends Enum<Field.Label>
Enum Constant and Description |
---|
ONE_OF
Indicates the field is a member of a
oneof block. |
OPTIONAL |
REPEATED |
REQUIRED |
Modifier and Type | Method and Description |
---|---|
static Field.Label |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Field.Label[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Field.Label OPTIONAL
public static final Field.Label REQUIRED
public static final Field.Label REPEATED
public static final Field.Label ONE_OF
oneof
block.public static Field.Label[] values()
for (Field.Label c : Field.Label.values()) System.out.println(c);
public static Field.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 © 2013–2016 Square, Inc.. All rights reserved.