public static enum Field.Modifier extends Enum<Field.Modifier>
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
static Field.Modifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Field.Modifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Field.Modifier OPTIONAL
public static final Field.Modifier REQUIRED
public static final Field.Modifier REPEATED
public static Field.Modifier[] values()
for (Field.Modifier c : Field.Modifier.values()) System.out.println(c);
public static Field.Modifier 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 nullpublic String getName()
Copyright © 2009–2021. All rights reserved.