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 intAFRICA = 0;static final intAMERICA = 1;static final intANTARCTICA = 2;static final intARCTIC = 3;static final intASIA = 4;static final intATLANTIC = 5;static final intAUSTRALIA = 6;static final intEUROPE = 7;static final intINDIAN = 8;private static final com.google.protobuf.Internal.EnumLiteMap<LocalTimeProtocol.Continent> static final intMIDEAST = 9;static final intPACIFIC = 10;private final intprivate static final LocalTimeProtocol.Continent[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LocalTimeProtocol.ContinentforNumber(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.Continent> static LocalTimeProtocol.ContinentvalueOf(int value) Deprecated.static LocalTimeProtocol.ContinentvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static LocalTimeProtocol.ContinentReturns 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:
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.Continent> 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.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
-