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 int
FRIDAY = 6;
private static final com.google.protobuf.Internal.EnumLiteMap
<LocalTimeProtocol.DayOfWeek> static final int
MONDAY = 2;
static final int
SATURDAY = 7;
static final int
SUNDAY = 1;
static final int
THURSDAY = 5;
static final int
TUESDAY = 3;
private final int
private static final LocalTimeProtocol.DayOfWeek[]
static final int
WEDNESDAY = 4;
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalTimeProtocol.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
<LocalTimeProtocol.DayOfWeek> static LocalTimeProtocol.DayOfWeek
valueOf
(int value) Deprecated.static LocalTimeProtocol.DayOfWeek
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static LocalTimeProtocol.DayOfWeek
Returns 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:
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
public static com.google.protobuf.Internal.EnumLiteMap<LocalTimeProtocol.DayOfWeek> 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
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
-