public static enum Message.Label extends Enum<Message.Label>
| Enum Constant and Description |
|---|
OPTIONAL |
PACKED |
REPEATED |
REQUIRED |
| Modifier and Type | Field and Description |
|---|---|
static Comparator<Message.Label> |
ORDER_BY_NAME |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPacked() |
boolean |
isRepeated() |
int |
value() |
static Message.Label |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Message.Label[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.Label REQUIRED
public static final Message.Label OPTIONAL
public static final Message.Label REPEATED
public static final Message.Label PACKED
public static final Comparator<Message.Label> ORDER_BY_NAME
public static Message.Label[] values()
for (Message.Label c : Message.Label.values()) System.out.println(c);
public static Message.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 nullpublic int value()
public boolean isRepeated()
public boolean isPacked()
Copyright © 2013 Square, Inc.. All Rights Reserved.