Enum LocalTimeProtocol.Continent
java.lang.Object
java.lang.Enum<LocalTimeProtocol.Continent>
org.jboss.netty.example.localtime.LocalTimeProtocol.Continent
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<LocalTimeProtocol.Continent>
- Enclosing class:
LocalTimeProtocol
public static enum LocalTimeProtocol.Continent
extends Enum<LocalTimeProtocol.Continent>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
org.jboss.netty.example.localtime.Continent
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
AFRICA = 0;
static final int
AMERICA = 1;
static final int
ANTARCTICA = 2;
static final int
ARCTIC = 3;
static final int
ASIA = 4;
static final int
ATLANTIC = 5;
static final int
AUSTRALIA = 6;
static final int
EUROPE = 7;
static final int
INDIAN = 8;
private static final com.google.protobuf.Internal.EnumLiteMap
<LocalTimeProtocol.Continent> static final int
MIDEAST = 9;
static final int
PACIFIC = 10;
private final int
private static final LocalTimeProtocol.Continent[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalTimeProtocol.Continent
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.Continent> static LocalTimeProtocol.Continent
valueOf
(int value) Deprecated.static LocalTimeProtocol.Continent
valueOf
(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static LocalTimeProtocol.Continent
Returns the enum constant of this type with the specified name.static LocalTimeProtocol.Continent[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AFRICA
AFRICA = 0;
-
AMERICA
AMERICA = 1;
-
ANTARCTICA
ANTARCTICA = 2;
-
ARCTIC
ARCTIC = 3;
-
ASIA
ASIA = 4;
-
ATLANTIC
ATLANTIC = 5;
-
AUSTRALIA
AUSTRALIA = 6;
-
EUROPE
EUROPE = 7;
-
INDIAN
INDIAN = 8;
-
MIDEAST
MIDEAST = 9;
-
PACIFIC
PACIFIC = 10;
-
-
Field Details
-
AFRICA_VALUE
public static final int AFRICA_VALUEAFRICA = 0;
- See Also:
-
AMERICA_VALUE
public static final int AMERICA_VALUEAMERICA = 1;
- See Also:
-
ANTARCTICA_VALUE
public static final int ANTARCTICA_VALUEANTARCTICA = 2;
- See Also:
-
ARCTIC_VALUE
public static final int ARCTIC_VALUEARCTIC = 3;
- See Also:
-
ASIA_VALUE
public static final int ASIA_VALUEASIA = 4;
- See Also:
-
ATLANTIC_VALUE
public static final int ATLANTIC_VALUEATLANTIC = 5;
- See Also:
-
AUSTRALIA_VALUE
public static final int AUSTRALIA_VALUEAUSTRALIA = 6;
- See Also:
-
EUROPE_VALUE
public static final int EUROPE_VALUEEUROPE = 7;
- See Also:
-
INDIAN_VALUE
public static final int INDIAN_VALUEINDIAN = 8;
- See Also:
-
MIDEAST_VALUE
public static final int MIDEAST_VALUEMIDEAST = 9;
- See Also:
-
PACIFIC_VALUE
public static final int PACIFIC_VALUEPACIFIC = 10;
- See Also:
-
internalValueMap
private static final com.google.protobuf.Internal.EnumLiteMap<LocalTimeProtocol.Continent> internalValueMap -
VALUES
-
value
private final int value
-
-
Constructor Details
-
Continent
private Continent(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.Continent> 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.Continent 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
-