Enum Sleep.SleepType
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Sleep.SleepType>
- Enclosing class:
- Sleep
public static enum Sleep.SleepType
extends Enum<Sleep.SleepType>
implements com.google.protobuf.ProtocolMessageEnum
Sleep type: classic or stages.Protobuf enum
google.devicesandservices.health.v4.Sleep.SleepType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionClassic sleep is a sleep with 3 stages types: AWAKE, RESTLESS and ASLEEP.Sleep type is unspecified.On top of "classic" sleep stages an additional processing pass can calculate stages more precisely, overwriting the prior stages with AWAKE, LIGHT, REM and DEEP. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intClassic sleep is a sleep with 3 stages types: AWAKE, RESTLESS and ASLEEP.static final intSleep type is unspecified.static final intOn top of "classic" sleep stages an additional processing pass can calculate stages more precisely, overwriting the prior stages with AWAKE, LIGHT, REM and DEEP. -
Method Summary
Modifier and TypeMethodDescriptionstatic Sleep.SleepTypeforNumber(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.SleepType>static Sleep.SleepTypevalueOf(int value) Deprecated.static Sleep.SleepTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Sleep.SleepTypeReturns the enum constant of this type with the specified name.static Sleep.SleepType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SLEEP_TYPE_UNSPECIFIED
Sleep type is unspecified.
SLEEP_TYPE_UNSPECIFIED = 0; -
CLASSIC
Classic sleep is a sleep with 3 stages types: AWAKE, RESTLESS and ASLEEP.
CLASSIC = 1; -
STAGES
On top of "classic" sleep stages an additional processing pass can calculate stages more precisely, overwriting the prior stages with AWAKE, LIGHT, REM and DEEP.
STAGES = 2; -
UNRECOGNIZED
-
-
Field Details
-
SLEEP_TYPE_UNSPECIFIED_VALUE
public static final int SLEEP_TYPE_UNSPECIFIED_VALUESleep type is unspecified.
SLEEP_TYPE_UNSPECIFIED = 0;- See Also:
-
CLASSIC_VALUE
public static final int CLASSIC_VALUEClassic sleep is a sleep with 3 stages types: AWAKE, RESTLESS and ASLEEP.
CLASSIC = 1;- See Also:
-
STAGES_VALUE
public static final int STAGES_VALUEOn top of "classic" sleep stages an additional processing pass can calculate stages more precisely, overwriting the prior stages with AWAKE, LIGHT, REM and DEEP.
STAGES = 2;- 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
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
-