- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<ServiceState>
public enum ServiceState
extends Enum<ServiceState>
implements com.google.protobuf.ProtocolMessageEnum
service states coming from guava (numbers have to correspond)Protobuf enum
yamcs.protobuf.yamcsManagement.ServiceState-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFAILED = 5;static final intNEW = 0;static final intRUNNING = 2;static final intSTARTING = 1;static final intSTOPPING = 3;static final intTERMINATED = 4; -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceStateforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ServiceState>static ServiceStatevalueOf(int value) Deprecated.static ServiceStatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ServiceStateReturns the enum constant of this type with the specified name.static ServiceState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NEW
NEW = 0; -
STARTING
STARTING = 1; -
RUNNING
RUNNING = 2; -
STOPPING
STOPPING = 3; -
TERMINATED
TERMINATED = 4; -
FAILED
FAILED = 5;
-
-
Field Details
-
NEW_VALUE
public static final int NEW_VALUENEW = 0;- See Also:
-
STARTING_VALUE
public static final int STARTING_VALUESTARTING = 1;- See Also:
-
RUNNING_VALUE
public static final int RUNNING_VALUERUNNING = 2;- See Also:
-
STOPPING_VALUE
public static final int STOPPING_VALUESTOPPING = 3;- See Also:
-
TERMINATED_VALUE
public static final int TERMINATED_VALUETERMINATED = 4;- See Also:
-
FAILED_VALUE
public static final int FAILED_VALUEFAILED = 5;- 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:
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
-
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 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
-