public enum Role extends Enum<Role>
| Enum Constant and Description |
|---|
ALL |
ARCHIVE |
DRAFTS |
FLAGGED |
IMPORTANT |
INBOX |
JUNK |
SENT |
SUBSCRIBED |
TRASH |
| Modifier and Type | Method and Description |
|---|---|
static Role |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Role[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="all") public static final Role ALL
@SerializedName(value="inbox") public static final Role INBOX
@SerializedName(value="archive") public static final Role ARCHIVE
@SerializedName(value="drafts") public static final Role DRAFTS
@SerializedName(value="flagged") public static final Role FLAGGED
@SerializedName(value="important") public static final Role IMPORTANT
@SerializedName(value="sent") public static final Role SENT
@SerializedName(value="trash") public static final Role TRASH
@SerializedName(value="junk") public static final Role JUNK
@SerializedName(value="subscribed") public static final Role SUBSCRIBED
public static Role[] values()
for (Role c : Role.values()) System.out.println(c);
public static Role 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. All rights reserved.