Enum Sleep.SleepStageType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Sleep.SleepStageType>
- Enclosing class:
- Sleep
public static enum Sleep.SleepStageType
extends Enum<Sleep.SleepStageType>
implements com.google.protobuf.ProtocolMessageEnum
Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.Protobuf enum
google.devicesandservices.health.v4.Sleep.SleepStageType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSleep stage ASLEEP.Sleep stage AWAKE.Sleep stage DEEP.Sleep stage LIGHT.Sleep stage REM.Sleep stage RESTLESS.The default unset value. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSleep stage ASLEEP.static final intSleep stage AWAKE.static final intSleep stage DEEP.static final intSleep stage LIGHT.static final intSleep stage REM.static final intSleep stage RESTLESS.static final intThe default unset value. -
Method Summary
Modifier and TypeMethodDescriptionstatic Sleep.SleepStageTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Sleep.SleepStageType>static Sleep.SleepStageTypevalueOf(int value) Deprecated.static Sleep.SleepStageTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Sleep.SleepStageTypeReturns the enum constant of this type with the specified name.static Sleep.SleepStageType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SLEEP_STAGE_TYPE_UNSPECIFIED
The default unset value.
SLEEP_STAGE_TYPE_UNSPECIFIED = 0; -
AWAKE
Sleep stage AWAKE.
AWAKE = 1; -
LIGHT
Sleep stage LIGHT.
LIGHT = 2; -
DEEP
Sleep stage DEEP.
DEEP = 3; -
REM
Sleep stage REM.
REM = 4; -
ASLEEP
Sleep stage ASLEEP.
ASLEEP = 5; -
RESTLESS
Sleep stage RESTLESS.
RESTLESS = 6; -
UNRECOGNIZED
-
-
Field Details
-
SLEEP_STAGE_TYPE_UNSPECIFIED_VALUE
public static final int SLEEP_STAGE_TYPE_UNSPECIFIED_VALUEThe default unset value.
SLEEP_STAGE_TYPE_UNSPECIFIED = 0;- See Also:
-
AWAKE_VALUE
public static final int AWAKE_VALUESleep stage AWAKE.
AWAKE = 1;- See Also:
-
LIGHT_VALUE
public static final int LIGHT_VALUESleep stage LIGHT.
LIGHT = 2;- See Also:
-
DEEP_VALUE
public static final int DEEP_VALUESleep stage DEEP.
DEEP = 3;- See Also:
-
REM_VALUE
public static final int REM_VALUESleep stage REM.
REM = 4;- See Also:
-
ASLEEP_VALUE
public static final int ASLEEP_VALUESleep stage ASLEEP.
ASLEEP = 5;- See Also:
-
RESTLESS_VALUE
public static final int RESTLESS_VALUESleep stage RESTLESS.
RESTLESS = 6;- 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static Sleep.SleepStageType 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
-