public static final class Sleep.SleepSummary extends GeneratedMessage implements Sleep.SleepSummaryOrBuilder
Sleep summary: metrics and stages summary.
Protobuf type google.devicesandservices.health.v4.Sleep.SleepSummary
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
MINUTES_AFTER_WAKE_UP_FIELD_NUMBER
public static final int MINUTES_AFTER_WAKE_UP_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MINUTES_ASLEEP_FIELD_NUMBER
public static final int MINUTES_ASLEEP_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MINUTES_AWAKE_FIELD_NUMBER
public static final int MINUTES_AWAKE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MINUTES_IN_SLEEP_PERIOD_FIELD_NUMBER
public static final int MINUTES_IN_SLEEP_PERIOD_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
MINUTES_TO_FALL_ASLEEP_FIELD_NUMBER
public static final int MINUTES_TO_FALL_ASLEEP_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
STAGES_SUMMARY_FIELD_NUMBER
public static final int STAGES_SUMMARY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Sleep.SleepSummary getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Sleep.SleepSummary.Builder newBuilder()
newBuilder(Sleep.SleepSummary prototype)
public static Sleep.SleepSummary.Builder newBuilder(Sleep.SleepSummary prototype)
public static Sleep.SleepSummary parseDelimitedFrom(InputStream input)
public static Sleep.SleepSummary parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Sleep.SleepSummary parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Sleep.SleepSummary parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Sleep.SleepSummary parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sleep.SleepSummary parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Sleep.SleepSummary parseFrom(CodedInputStream input)
public static Sleep.SleepSummary parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Sleep.SleepSummary parseFrom(InputStream input)
public static Sleep.SleepSummary parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Sleep.SleepSummary parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Sleep.SleepSummary parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Sleep.SleepSummary> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Sleep.SleepSummary getDefaultInstanceForType()
getMinutesAfterWakeUp()
public long getMinutesAfterWakeUp()
Output only. Minutes after wake up calculated by restlessness algorithm.
optional int64 minutes_after_wake_up = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
long |
The minutesAfterWakeUp.
|
getMinutesAsleep()
public long getMinutesAsleep()
Output only. Total number of minutes asleep.
For classic sleep it is the sum of ASLEEP stages (excluding AWAKE and
RESTLESS). For "stages" sleep it is the sum of LIGHT, REM and DEEP stages
(excluding AWAKE).
optional int64 minutes_asleep = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
long |
The minutesAsleep.
|
getMinutesAwake()
public long getMinutesAwake()
Output only. Total number of minutes awake. It is a sum of all AWAKE
stages.
optional int64 minutes_awake = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
long |
The minutesAwake.
|
getMinutesInSleepPeriod()
public long getMinutesInSleepPeriod()
Output only. Delta between wake time and bedtime. It is the sum of all
stages.
optional int64 minutes_in_sleep_period = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
long |
The minutesInSleepPeriod.
|
getMinutesToFallAsleep()
public long getMinutesToFallAsleep()
Output only. Minutes to fall asleep calculated by restlessness algorithm.
optional int64 minutes_to_fall_asleep = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
long |
The minutesToFallAsleep.
|
getParserForType()
public Parser<Sleep.SleepSummary> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getStagesSummary(int index)
public Sleep.SleepSummary.StageSummary getStagesSummary(int index)
Output only. List of summaries (total duration and segment count) per
each sleep stage type.
repeated .google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummary stages_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getStagesSummaryCount()
public int getStagesSummaryCount()
Output only. List of summaries (total duration and segment count) per
each sleep stage type.
repeated .google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummary stages_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
|
getStagesSummaryList()
public List<Sleep.SleepSummary.StageSummary> getStagesSummaryList()
Output only. List of summaries (total duration and segment count) per
each sleep stage type.
repeated .google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummary stages_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStagesSummaryOrBuilder(int index)
public Sleep.SleepSummary.StageSummaryOrBuilder getStagesSummaryOrBuilder(int index)
Output only. List of summaries (total duration and segment count) per
each sleep stage type.
repeated .google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummary stages_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getStagesSummaryOrBuilderList()
public List<? extends Sleep.SleepSummary.StageSummaryOrBuilder> getStagesSummaryOrBuilderList()
Output only. List of summaries (total duration and segment count) per
each sleep stage type.
repeated .google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummary stages_summary = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<? extends com.google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummaryOrBuilder> |
|
hasMinutesAfterWakeUp()
public boolean hasMinutesAfterWakeUp()
Output only. Minutes after wake up calculated by restlessness algorithm.
optional int64 minutes_after_wake_up = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the minutesAfterWakeUp field is set.
|
hasMinutesAsleep()
public boolean hasMinutesAsleep()
Output only. Total number of minutes asleep.
For classic sleep it is the sum of ASLEEP stages (excluding AWAKE and
RESTLESS). For "stages" sleep it is the sum of LIGHT, REM and DEEP stages
(excluding AWAKE).
optional int64 minutes_asleep = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the minutesAsleep field is set.
|
hasMinutesAwake()
public boolean hasMinutesAwake()
Output only. Total number of minutes awake. It is a sum of all AWAKE
stages.
optional int64 minutes_awake = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the minutesAwake field is set.
|
hasMinutesInSleepPeriod()
public boolean hasMinutesInSleepPeriod()
Output only. Delta between wake time and bedtime. It is the sum of all
stages.
optional int64 minutes_in_sleep_period = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the minutesInSleepPeriod field is set.
|
hasMinutesToFallAsleep()
public boolean hasMinutesToFallAsleep()
Output only. Minutes to fall asleep calculated by restlessness algorithm.
optional int64 minutes_to_fall_asleep = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the minutesToFallAsleep field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Sleep.SleepSummary.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Sleep.SleepSummary.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Sleep.SleepSummary.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides