public enum DayOfWeek extends java.lang.Enum<DayOfWeek> implements ProtocolMessageEnum
Represents a day of week.Protobuf enum
google.type.DayOfWeek
Enum Constant and Description |
---|
DAY_OF_WEEK_UNSPECIFIED
The unspecified day-of-week.
|
FRIDAY
The day-of-week of Friday.
|
MONDAY
The day-of-week of Monday.
|
SATURDAY
The day-of-week of Saturday.
|
SUNDAY
The day-of-week of Sunday.
|
THURSDAY
The day-of-week of Thursday.
|
TUESDAY
The day-of-week of Tuesday.
|
UNRECOGNIZED |
WEDNESDAY
The day-of-week of Wednesday.
|
Modifier and Type | Field and Description |
---|---|
static int |
DAY_OF_WEEK_UNSPECIFIED_VALUE
The unspecified day-of-week.
|
static int |
FRIDAY_VALUE
The day-of-week of Friday.
|
static int |
MONDAY_VALUE
The day-of-week of Monday.
|
static int |
SATURDAY_VALUE
The day-of-week of Saturday.
|
static int |
SUNDAY_VALUE
The day-of-week of Sunday.
|
static int |
THURSDAY_VALUE
The day-of-week of Thursday.
|
static int |
TUESDAY_VALUE
The day-of-week of Tuesday.
|
static int |
WEDNESDAY_VALUE
The day-of-week of Wednesday.
|
Modifier and Type | Method and Description |
---|---|
static DayOfWeek |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<DayOfWeek> |
internalGetValueMap() |
static DayOfWeek |
valueOf(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 DAY_OF_WEEK_UNSPECIFIED
The unspecified day-of-week.
DAY_OF_WEEK_UNSPECIFIED = 0;
public static final DayOfWeek MONDAY
The day-of-week of Monday.
MONDAY = 1;
public static final DayOfWeek TUESDAY
The day-of-week of Tuesday.
TUESDAY = 2;
public static final DayOfWeek WEDNESDAY
The day-of-week of Wednesday.
WEDNESDAY = 3;
public static final DayOfWeek THURSDAY
The day-of-week of Thursday.
THURSDAY = 4;
public static final DayOfWeek FRIDAY
The day-of-week of Friday.
FRIDAY = 5;
public static final DayOfWeek SATURDAY
The day-of-week of Saturday.
SATURDAY = 6;
public static final DayOfWeek SUNDAY
The day-of-week of Sunday.
SUNDAY = 7;
public static final DayOfWeek UNRECOGNIZED
public static final int DAY_OF_WEEK_UNSPECIFIED_VALUE
The unspecified day-of-week.
DAY_OF_WEEK_UNSPECIFIED = 0;
public static final int MONDAY_VALUE
The day-of-week of Monday.
MONDAY = 1;
public static final int TUESDAY_VALUE
The day-of-week of Tuesday.
TUESDAY = 2;
public static final int WEDNESDAY_VALUE
The day-of-week of Wednesday.
WEDNESDAY = 3;
public static final int THURSDAY_VALUE
The day-of-week of Thursday.
THURSDAY = 4;
public static final int FRIDAY_VALUE
The day-of-week of Friday.
FRIDAY = 5;
public static final int SATURDAY_VALUE
The day-of-week of Saturday.
SATURDAY = 6;
public static final int SUNDAY_VALUE
The day-of-week of Sunday.
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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static DayOfWeek valueOf(int value)
forNumber(int)
instead.public static DayOfWeek forNumber(int value)
public static Internal.EnumLiteMap<DayOfWeek> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static DayOfWeek valueOf(Descriptors.EnumValueDescriptor desc)