Package com.google.type
Enum DayOfWeek
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DayOfWeek>
@Generated
public enum DayOfWeek
extends Enum<DayOfWeek>
implements com.google.protobuf.ProtocolMessageEnum
Represents a day of the week.Protobuf enum
google.type.DayOfWeek-
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) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DayOfWeek>static DayOfWeekvalueOf(int value) Deprecated.static DayOfWeekvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static DayOfWeekReturns 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.
-
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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-