Class Sleep.SleepSummary.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Sleep.SleepSummary.Builder>
com.google.devicesandservices.health.v4.Sleep.SleepSummary.Builder
- All Implemented Interfaces:
Sleep.SleepSummaryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Sleep.SleepSummary
public static final class Sleep.SleepSummary.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Sleep.SleepSummary.Builder>
implements Sleep.SleepSummaryOrBuilder
Sleep summary: metrics and stages summary.Protobuf type
google.devicesandservices.health.v4.Sleep.SleepSummary-
Method Summary
Modifier and TypeMethodDescriptionaddAllStagesSummary(Iterable<? extends Sleep.SleepSummary.StageSummary> values) Output only.addStagesSummary(int index, Sleep.SleepSummary.StageSummary value) Output only.addStagesSummary(int index, Sleep.SleepSummary.StageSummary.Builder builderForValue) Output only.Output only.addStagesSummary(Sleep.SleepSummary.StageSummary.Builder builderForValue) Output only.Output only.addStagesSummaryBuilder(int index) Output only.build()clear()Output only.Output only.Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongOutput only.longOutput only.longOutput only.longOutput only.longOutput only.getStagesSummary(int index) Output only.getStagesSummaryBuilder(int index) Output only.Output only.intOutput only.Output only.getStagesSummaryOrBuilder(int index) Output only.List<? extends Sleep.SleepSummary.StageSummaryOrBuilder>Output only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Sleep.SleepSummary other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeStagesSummary(int index) Output only.setMinutesAfterWakeUp(long value) Output only.setMinutesAsleep(long value) Output only.setMinutesAwake(long value) Output only.setMinutesInSleepPeriod(long value) Output only.setMinutesToFallAsleep(long value) Output only.setStagesSummary(int index, Sleep.SleepSummary.StageSummary value) Output only.setStagesSummary(int index, Sleep.SleepSummary.StageSummary.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Sleep.SleepSummary.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Sleep.SleepSummary.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Sleep.SleepSummary.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Sleep.SleepSummary.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Sleep.SleepSummary.Builder>
-
mergeFrom
public Sleep.SleepSummary.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Sleep.SleepSummary.Builder>- Throws:
IOException
-
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.
-
setMinutesInSleepPeriod
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];- Parameters:
value- The minutesInSleepPeriod to set.- Returns:
- This builder for chaining.
-
clearMinutesInSleepPeriod
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:
- This builder for chaining.
-
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.
-
setMinutesAfterWakeUp
Output only. Minutes after wake up calculated by restlessness algorithm.
optional int64 minutes_after_wake_up = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The minutesAfterWakeUp to set.- Returns:
- This builder for chaining.
-
clearMinutesAfterWakeUp
Output only. Minutes after wake up calculated by restlessness algorithm.
optional int64 minutes_after_wake_up = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
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.
-
setMinutesToFallAsleep
Output only. Minutes to fall asleep calculated by restlessness algorithm.
optional int64 minutes_to_fall_asleep = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The minutesToFallAsleep to set.- Returns:
- This builder for chaining.
-
clearMinutesToFallAsleep
Output only. Minutes to fall asleep calculated by restlessness algorithm.
optional int64 minutes_to_fall_asleep = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
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.
-
setMinutesAsleep
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];- Parameters:
value- The minutesAsleep to set.- Returns:
- This builder for chaining.
-
clearMinutesAsleep
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:
- This builder for chaining.
-
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.
-
setMinutesAwake
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];- Parameters:
value- The minutesAwake to set.- Returns:
- This builder for chaining.
-
clearMinutesAwake
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:
- This builder for chaining.
-
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
-
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
-
setStagesSummary
public Sleep.SleepSummary.Builder setStagesSummary(int index, Sleep.SleepSummary.StageSummary value) 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]; -
setStagesSummary
public Sleep.SleepSummary.Builder setStagesSummary(int index, Sleep.SleepSummary.StageSummary.Builder builderForValue) 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]; -
addStagesSummary
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]; -
addStagesSummary
public Sleep.SleepSummary.Builder addStagesSummary(int index, Sleep.SleepSummary.StageSummary value) 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]; -
addStagesSummary
public Sleep.SleepSummary.Builder addStagesSummary(Sleep.SleepSummary.StageSummary.Builder builderForValue) 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]; -
addStagesSummary
public Sleep.SleepSummary.Builder addStagesSummary(int index, Sleep.SleepSummary.StageSummary.Builder builderForValue) 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]; -
addAllStagesSummary
public Sleep.SleepSummary.Builder addAllStagesSummary(Iterable<? extends Sleep.SleepSummary.StageSummary> values) 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]; -
clearStagesSummary
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]; -
removeStagesSummary
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]; -
getStagesSummaryBuilder
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
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
-
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
-
addStagesSummaryBuilder
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]; -
addStagesSummaryBuilder
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]; -
getStagesSummaryBuilderList
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];
-