Class Sleep.SleepSummary
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devicesandservices.health.v4.Sleep.SleepSummary
- All Implemented Interfaces:
Sleep.SleepSummaryOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Sleep
public static final class Sleep.SleepSummary
extends com.google.protobuf.GeneratedMessage
implements Sleep.SleepSummaryOrBuilder
Sleep summary: metrics and stages summary.Protobuf type
google.devicesandservices.health.v4.Sleep.SleepSummary- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSleep summary: metrics and stages summary.static final classTotal duration and segment count for a stage.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic Sleep.SleepSummarystatic final com.google.protobuf.Descriptors.DescriptorlongOutput only.longOutput only.longOutput only.longOutput only.longOutput only.com.google.protobuf.Parser<Sleep.SleepSummary>intgetStagesSummary(int index) Output only.intOutput only.Output only.getStagesSummaryOrBuilder(int index) Output only.List<? extends Sleep.SleepSummary.StageSummaryOrBuilder>Output only.inthashCode()booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Sleep.SleepSummary.Builderstatic Sleep.SleepSummary.BuildernewBuilder(Sleep.SleepSummary prototype) protected Sleep.SleepSummary.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Sleep.SleepSummaryparseDelimitedFrom(InputStream input) static Sleep.SleepSummaryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Sleep.SleepSummaryparseFrom(byte[] data) static Sleep.SleepSummaryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Sleep.SleepSummaryparseFrom(com.google.protobuf.ByteString data) static Sleep.SleepSummaryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Sleep.SleepSummaryparseFrom(com.google.protobuf.CodedInputStream input) static Sleep.SleepSummaryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Sleep.SleepSummaryparseFrom(InputStream input) static Sleep.SleepSummaryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Sleep.SleepSummaryparseFrom(ByteBuffer data) static Sleep.SleepSummaryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Sleep.SleepSummary>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
MINUTES_IN_SLEEP_PERIOD_FIELD_NUMBER
public static final int MINUTES_IN_SLEEP_PERIOD_FIELD_NUMBER- See Also:
-
MINUTES_AFTER_WAKE_UP_FIELD_NUMBER
public static final int MINUTES_AFTER_WAKE_UP_FIELD_NUMBER- See Also:
-
MINUTES_TO_FALL_ASLEEP_FIELD_NUMBER
public static final int MINUTES_TO_FALL_ASLEEP_FIELD_NUMBER- See Also:
-
MINUTES_ASLEEP_FIELD_NUMBER
public static final int MINUTES_ASLEEP_FIELD_NUMBER- See Also:
-
MINUTES_AWAKE_FIELD_NUMBER
public static final int MINUTES_AWAKE_FIELD_NUMBER- See Also:
-
STAGES_SUMMARY_FIELD_NUMBER
public static final int STAGES_SUMMARY_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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];- Specified by:
hasMinutesInSleepPeriodin interfaceSleep.SleepSummaryOrBuilder- Returns:
- Whether the minutesInSleepPeriod field is set.
-
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];- Specified by:
getMinutesInSleepPeriodin interfaceSleep.SleepSummaryOrBuilder- Returns:
- The minutesInSleepPeriod.
-
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];- Specified by:
hasMinutesAfterWakeUpin interfaceSleep.SleepSummaryOrBuilder- Returns:
- Whether the minutesAfterWakeUp field is set.
-
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];- Specified by:
getMinutesAfterWakeUpin interfaceSleep.SleepSummaryOrBuilder- Returns:
- The minutesAfterWakeUp.
-
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];- Specified by:
hasMinutesToFallAsleepin interfaceSleep.SleepSummaryOrBuilder- Returns:
- Whether the minutesToFallAsleep field is set.
-
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];- Specified by:
getMinutesToFallAsleepin interfaceSleep.SleepSummaryOrBuilder- Returns:
- The minutesToFallAsleep.
-
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];- Specified by:
hasMinutesAsleepin interfaceSleep.SleepSummaryOrBuilder- Returns:
- Whether the minutesAsleep field is set.
-
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];- Specified by:
getMinutesAsleepin interfaceSleep.SleepSummaryOrBuilder- Returns:
- The minutesAsleep.
-
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];- Specified by:
hasMinutesAwakein interfaceSleep.SleepSummaryOrBuilder- Returns:
- Whether the minutesAwake field is set.
-
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];- Specified by:
getMinutesAwakein interfaceSleep.SleepSummaryOrBuilder- Returns:
- The minutesAwake.
-
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];- Specified by:
getStagesSummaryListin interfaceSleep.SleepSummaryOrBuilder
-
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];- Specified by:
getStagesSummaryOrBuilderListin interfaceSleep.SleepSummaryOrBuilder
-
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];- Specified by:
getStagesSummaryCountin interfaceSleep.SleepSummaryOrBuilder
-
getStagesSummary
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];- Specified by:
getStagesSummaryin interfaceSleep.SleepSummaryOrBuilder
-
getStagesSummaryOrBuilder
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];- Specified by:
getStagesSummaryOrBuilderin interfaceSleep.SleepSummaryOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Sleep.SleepSummary parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Sleep.SleepSummary parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Sleep.SleepSummary parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Sleep.SleepSummary parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Sleep.SleepSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Sleep.SleepSummary parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Sleep.SleepSummary parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Sleep.SleepSummary parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Sleep.SleepSummary parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Sleep.SleepSummary parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Sleep.SleepSummary.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-