Package com.google.type
Enum DayOfWeek
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<DayOfWeek>
Represents a day of the week.Protobuf enum
google.type.DayOfWeek
-
Enum Constant Summary
Enum ConstantDescriptionThe day of the week is unspecified.FridayMondaySaturdaySundayThursdayTuesdayWednesday -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The day of the week is unspecified.static final int
Fridaystatic final int
Mondaystatic final int
Saturdaystatic final int
Sundaystatic final int
Thursdaystatic final int
Tuesdaystatic final int
Wednesday -
Method Summary
Modifier and TypeMethodDescriptionstatic DayOfWeek
forNumber
(int value) static final com.google.protobuf.Descriptors.EnumDescriptor
final com.google.protobuf.Descriptors.EnumDescriptor
final int
final com.google.protobuf.Descriptors.EnumValueDescriptor
static com.google.protobuf.Internal.EnumLiteMap<DayOfWeek>
static DayOfWeek
valueOf
(int value) Deprecated.static DayOfWeek
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static DayOfWeek
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.
-
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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final 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
-