@UnstableApi public enum FieldRequirement extends Enum<FieldRequirement>
| Enum Constant and Description |
|---|
OPTIONAL
The field is optional.
|
REQUIRED
The field is required.
|
UNSPECIFIED
The requirement level is unspecified and will be handled implicitly by the serialization layer.
|
| Modifier and Type | Method and Description |
|---|---|
static FieldRequirement |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FieldRequirement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FieldRequirement REQUIRED
public static final FieldRequirement OPTIONAL
public static final FieldRequirement UNSPECIFIED
public static FieldRequirement[] values()
for (FieldRequirement c : FieldRequirement.values()) System.out.println(c);
public static FieldRequirement 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 LeanCloud. All rights reserved.