Enum LocalTimeProtocol.DayOfWeek
java.lang.Object
java.lang.Enum<LocalTimeProtocol.DayOfWeek>
org.jboss.netty.example.localtime.LocalTimeProtocol.DayOfWeek
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<LocalTimeProtocol.DayOfWeek>
- Enclosing class:
LocalTimeProtocol
public static enum LocalTimeProtocol.DayOfWeek
extends Enum<LocalTimeProtocol.DayOfWeek>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
org.jboss.netty.example.localtime.DayOfWeek-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFRIDAY = 6;private static final com.google.protobuf.Internal.EnumLiteMap<LocalTimeProtocol.DayOfWeek> static final intMONDAY = 2;static final intSATURDAY = 7;static final intSUNDAY = 1;static final intTHURSDAY = 5;static final intTUESDAY = 3;private final intprivate static final LocalTimeProtocol.DayOfWeek[]static final intWEDNESDAY = 4; -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalTimeProtocol.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<LocalTimeProtocol.DayOfWeek> static LocalTimeProtocol.DayOfWeekvalueOf(int value) Deprecated.static LocalTimeProtocol.DayOfWeekvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static LocalTimeProtocol.DayOfWeekReturns the enum constant of this type with the specified name.static LocalTimeProtocol.DayOfWeek[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SUNDAY
SUNDAY = 1; -
MONDAY
MONDAY = 2; -
TUESDAY
TUESDAY = 3; -
WEDNESDAY
WEDNESDAY = 4; -
THURSDAY
THURSDAY = 5; -
FRIDAY
FRIDAY = 6; -
SATURDAY
SATURDAY = 7;
-
-
Field Details
-
SUNDAY_VALUE
public static final int SUNDAY_VALUESUNDAY = 1;- See Also:
-
MONDAY_VALUE
public static final int MONDAY_VALUEMONDAY = 2;- See Also:
-
TUESDAY_VALUE
public static final int TUESDAY_VALUETUESDAY = 3;- See Also:
-
WEDNESDAY_VALUE
public static final int WEDNESDAY_VALUEWEDNESDAY = 4;- See Also:
-
THURSDAY_VALUE
public static final int THURSDAY_VALUETHURSDAY = 5;- See Also:
-
FRIDAY_VALUE
public static final int FRIDAY_VALUEFRIDAY = 6;- See Also:
-
SATURDAY_VALUE
public static final int SATURDAY_VALUESATURDAY = 7;- See Also:
-
internalValueMap
private static final com.google.protobuf.Internal.EnumLiteMap<LocalTimeProtocol.DayOfWeek> internalValueMap -
VALUES
-
value
private final int value
-
-
Constructor Details
-
DayOfWeek
private DayOfWeek(int value)
-
-
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
public static com.google.protobuf.Internal.EnumLiteMap<LocalTimeProtocol.DayOfWeek> 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
public static LocalTimeProtocol.DayOfWeek valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) 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
-