public enum DayOfWeek extends java.lang.Enum<DayOfWeek> implements com.google.protobuf.ProtocolMessageEnum
A day of week. The int value follows the ISO-8601 standard, from 1 (Monday) to 7 (Sunday).Protobuf enum
spine.time.DayOfWeek
Enum Constant and Description |
---|
DOW_UNDEFINED
DOW_UNDEFINED = 0; |
FRIDAY
FRIDAY = 5; |
MONDAY
MONDAY = 1; |
SATURDAY
SATURDAY = 6; |
SUNDAY
SUNDAY = 7; |
THURSDAY
THURSDAY = 4; |
TUESDAY
TUESDAY = 2; |
UNRECOGNIZED |
WEDNESDAY
WEDNESDAY = 3; |
Modifier and Type | Field and Description |
---|---|
static int |
DOW_UNDEFINED_VALUE
DOW_UNDEFINED = 0; |
static int |
FRIDAY_VALUE
FRIDAY = 5; |
static int |
MONDAY_VALUE
MONDAY = 1; |
static int |
SATURDAY_VALUE
SATURDAY = 6; |
static int |
SUNDAY_VALUE
SUNDAY = 7; |
static int |
THURSDAY_VALUE
THURSDAY = 4; |
static int |
TUESDAY_VALUE
TUESDAY = 2; |
static int |
WEDNESDAY_VALUE
WEDNESDAY = 3; |
Modifier and Type | Method and Description |
---|---|
static DayOfWeek |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<DayOfWeek> |
internalGetValueMap() |
static DayOfWeek |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DayOfWeek |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DayOfWeek |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DayOfWeek[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DayOfWeek DOW_UNDEFINED
DOW_UNDEFINED = 0;
public static final DayOfWeek MONDAY
MONDAY = 1;
public static final DayOfWeek TUESDAY
TUESDAY = 2;
public static final DayOfWeek WEDNESDAY
WEDNESDAY = 3;
public static final DayOfWeek THURSDAY
THURSDAY = 4;
public static final DayOfWeek FRIDAY
FRIDAY = 5;
public static final DayOfWeek SATURDAY
SATURDAY = 6;
public static final DayOfWeek SUNDAY
SUNDAY = 7;
public static final DayOfWeek UNRECOGNIZED
public static final int DOW_UNDEFINED_VALUE
DOW_UNDEFINED = 0;
public static final int MONDAY_VALUE
MONDAY = 1;
public static final int TUESDAY_VALUE
TUESDAY = 2;
public static final int WEDNESDAY_VALUE
WEDNESDAY = 3;
public static final int THURSDAY_VALUE
THURSDAY = 4;
public static final int FRIDAY_VALUE
FRIDAY = 5;
public static final int SATURDAY_VALUE
SATURDAY = 6;
public static final int SUNDAY_VALUE
SUNDAY = 7;
public static DayOfWeek[] values()
for (DayOfWeek c : DayOfWeek.values()) System.out.println(c);
public static DayOfWeek valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static DayOfWeek valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static DayOfWeek forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<DayOfWeek> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DayOfWeek valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)