Package com.google.type
Enum Class DayOfWeek
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,Serializable,Comparable<DayOfWeek>,Constable
Represents a day of the week.Protobuf enum
google.type.DayOfWeek-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe day of the week is unspecified.FridayMondaySaturdaySundayThursdayTuesdayWednesday -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe day of the week is unspecified.static final intFridaystatic final intMondaystatic final intSaturdaystatic final intSundaystatic final intThursdaystatic final intTuesdaystatic final intWednesday -
Method Summary
Modifier and TypeMethodDescriptionstatic DayOfWeekforNumber(int value) final intstatic com.google.protobuf.Internal.EnumLiteMap<DayOfWeek>static com.google.protobuf.Internal.EnumVerifierstatic DayOfWeekvalueOf(int value) Deprecated.static DayOfWeekReturns the enum constant of this class with the specified name.static DayOfWeek[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DAY_OF_WEEK_UNSPECIFIED
The day of the week is unspecified.
DAY_OF_WEEK_UNSPECIFIED = 0; -
MONDAY
Monday
MONDAY = 1; -
TUESDAY
Tuesday
TUESDAY = 2; -
WEDNESDAY
Wednesday
WEDNESDAY = 3; -
THURSDAY
Thursday
THURSDAY = 4; -
FRIDAY
Friday
FRIDAY = 5; -
SATURDAY
Saturday
SATURDAY = 6; -
SUNDAY
Sunday
SUNDAY = 7; -
UNRECOGNIZED
-
-
Field Details
-
DAY_OF_WEEK_UNSPECIFIED_VALUE
public static final int DAY_OF_WEEK_UNSPECIFIED_VALUEThe day of the week is unspecified.
DAY_OF_WEEK_UNSPECIFIED = 0;- See Also:
-
MONDAY_VALUE
public static final int MONDAY_VALUEMonday
MONDAY = 1;- See Also:
-
TUESDAY_VALUE
public static final int TUESDAY_VALUETuesday
TUESDAY = 2;- See Also:
-
WEDNESDAY_VALUE
public static final int WEDNESDAY_VALUEWednesday
WEDNESDAY = 3;- See Also:
-
THURSDAY_VALUE
public static final int THURSDAY_VALUEThursday
THURSDAY = 4;- See Also:
-
FRIDAY_VALUE
public static final int FRIDAY_VALUEFriday
FRIDAY = 5;- See Also:
-
SATURDAY_VALUE
public static final int SATURDAY_VALUESaturday
SATURDAY = 6;- See Also:
-
SUNDAY_VALUE
public static final int SUNDAY_VALUESunday
SUNDAY = 7;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
-
internalGetValueMap
-
internalGetVerifier
public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()
-