public static enum FieldElement.Label extends Enum<FieldElement.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 FieldElement.Label |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldElement.Label[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldElement.Label OPTIONAL
public static final FieldElement.Label REQUIRED
public static final FieldElement.Label REPEATED
public static final FieldElement.Label ONE_OF
oneof
block.public static FieldElement.Label[] values()
for (FieldElement.Label c : FieldElement.Label.values()) System.out.println(c);
public static FieldElement.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 © 2015 Square, Inc.. All Rights Reserved.