Enum Sleep.SleepType (0.2.0)

public enum Sleep.SleepType extends Enum<Sleep.SleepType> implements ProtocolMessageEnum

Sleep type: classic or stages.

Protobuf enum google.devicesandservices.health.v4.Sleep.SleepType

Implements

ProtocolMessageEnum

Static Fields

Name Description
CLASSIC

Classic sleep is a sleep with 3 stages types: AWAKE, RESTLESS and ASLEEP.

CLASSIC = 1;

CLASSIC_VALUE

Classic sleep is a sleep with 3 stages types: AWAKE, RESTLESS and ASLEEP.

CLASSIC = 1;

SLEEP_TYPE_UNSPECIFIED

Sleep type is unspecified.

SLEEP_TYPE_UNSPECIFIED = 0;

SLEEP_TYPE_UNSPECIFIED_VALUE

Sleep type is unspecified.

SLEEP_TYPE_UNSPECIFIED = 0;

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;

STAGES_VALUE

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

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()