Class Sleep.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Sleep.Builder>
com.google.devicesandservices.health.v4.Sleep.Builder
- All Implemented Interfaces:
SleepOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Sleep
public static final class Sleep.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Sleep.Builder>
implements SleepOrBuilder
A sleep session possibly including stages.Protobuf type
google.devicesandservices.health.v4.Sleep-
Method Summary
Modifier and TypeMethodDescriptionaddAllOutOfBedSegments(Iterable<? extends Sleep.OutOfBedSegment> values) Optional.addAllStages(Iterable<? extends Sleep.SleepStage> values) Optional.addOutOfBedSegments(int index, Sleep.OutOfBedSegment value) Optional.addOutOfBedSegments(int index, Sleep.OutOfBedSegment.Builder builderForValue) Optional.Optional.addOutOfBedSegments(Sleep.OutOfBedSegment.Builder builderForValue) Optional.Optional.addOutOfBedSegmentsBuilder(int index) Optional.addStages(int index, Sleep.SleepStage value) Optional.addStages(int index, Sleep.SleepStage.Builder builderForValue) Optional.addStages(Sleep.SleepStage value) Optional.addStages(Sleep.SleepStage.Builder builderForValue) Optional.Optional.addStagesBuilder(int index) Optional.build()clear()Output only.Required.Optional.Optional.Optional.Output only.Optional.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.Required.Required.Optional.Optional.Optional.getOutOfBedSegments(int index) Optional.getOutOfBedSegmentsBuilder(int index) Optional.Optional.intOptional.Optional.getOutOfBedSegmentsOrBuilder(int index) Optional.List<? extends Sleep.OutOfBedSegmentOrBuilder>Optional.getStages(int index) Optional.getStagesBuilder(int index) Optional.Optional.intOptional.Optional.getStagesOrBuilder(int index) Optional.List<? extends Sleep.SleepStageOrBuilder>Optional.Output only.Output only.Output only.getType()Optional.intOptional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanRequired.booleanOptional.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeInterval(SessionTimeInterval value) Required.mergeMetadata(Sleep.SleepMetadata value) Optional.mergeSummary(Sleep.SleepSummary value) Output only.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.removeOutOfBedSegments(int index) Optional.removeStages(int index) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setInterval(SessionTimeInterval value) Required.setInterval(SessionTimeInterval.Builder builderForValue) Required.setMetadata(Sleep.SleepMetadata value) Optional.setMetadata(Sleep.SleepMetadata.Builder builderForValue) Optional.setOutOfBedSegments(int index, Sleep.OutOfBedSegment value) Optional.setOutOfBedSegments(int index, Sleep.OutOfBedSegment.Builder builderForValue) Optional.setStages(int index, Sleep.SleepStage value) Optional.setStages(int index, Sleep.SleepStage.Builder builderForValue) Optional.setSummary(Sleep.SleepSummary value) Output only.setSummary(Sleep.SleepSummary.Builder builderForValue) Output only.setType(Sleep.SleepType value) Optional.setTypeValue(int value) Optional.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.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.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.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.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.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Sleep.Builder>
-
mergeFrom
public Sleep.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.Builder>- Throws:
IOException
-
hasInterval
public boolean hasInterval()Required. Observed sleep interval.
.google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasIntervalin interfaceSleepOrBuilder- Returns:
- Whether the interval field is set.
-
getInterval
Required. Observed sleep interval.
.google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIntervalin interfaceSleepOrBuilder- Returns:
- The interval.
-
setInterval
Required. Observed sleep interval.
.google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED]; -
setInterval
Required. Observed sleep interval.
.google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED]; -
mergeInterval
Required. Observed sleep interval.
.google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED]; -
clearInterval
Required. Observed sleep interval.
.google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED]; -
getIntervalBuilder
Required. Observed sleep interval.
.google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED]; -
getIntervalOrBuilder
Required. Observed sleep interval.
.google.devicesandservices.health.v4.SessionTimeInterval interval = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getIntervalOrBuilderin interfaceSleepOrBuilder
-
getTypeValue
public int getTypeValue()Optional. SleepType: classic or stages.
.google.devicesandservices.health.v4.Sleep.SleepType type = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTypeValuein interfaceSleepOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Optional. SleepType: classic or stages.
.google.devicesandservices.health.v4.Sleep.SleepType type = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Optional. SleepType: classic or stages.
.google.devicesandservices.health.v4.Sleep.SleepType type = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getTypein interfaceSleepOrBuilder- Returns:
- The type.
-
setType
Optional. SleepType: classic or stages.
.google.devicesandservices.health.v4.Sleep.SleepType type = 4 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Optional. SleepType: classic or stages.
.google.devicesandservices.health.v4.Sleep.SleepType type = 4 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getStagesList
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStagesListin interfaceSleepOrBuilder
-
getStagesCount
public int getStagesCount()Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStagesCountin interfaceSleepOrBuilder
-
getStages
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStagesin interfaceSleepOrBuilder
-
setStages
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setStages
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addStages
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addStages
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addStages
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addStages
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addAllStages
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
clearStages
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
removeStages
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getStagesBuilder
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getStagesOrBuilder
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStagesOrBuilderin interfaceSleepOrBuilder
-
getStagesOrBuilderList
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStagesOrBuilderListin interfaceSleepOrBuilder
-
addStagesBuilder
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addStagesBuilder
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getStagesBuilderList
Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
repeated .google.devicesandservices.health.v4.Sleep.SleepStage stages = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getOutOfBedSegmentsList
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutOfBedSegmentsListin interfaceSleepOrBuilder
-
getOutOfBedSegmentsCount
public int getOutOfBedSegmentsCount()Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutOfBedSegmentsCountin interfaceSleepOrBuilder
-
getOutOfBedSegments
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutOfBedSegmentsin interfaceSleepOrBuilder
-
setOutOfBedSegments
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setOutOfBedSegments
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addOutOfBedSegments
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addOutOfBedSegments
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addOutOfBedSegments
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addOutOfBedSegments
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addAllOutOfBedSegments
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearOutOfBedSegments
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
removeOutOfBedSegments
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getOutOfBedSegmentsBuilder
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getOutOfBedSegmentsOrBuilder
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutOfBedSegmentsOrBuilderin interfaceSleepOrBuilder
-
getOutOfBedSegmentsOrBuilderList
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getOutOfBedSegmentsOrBuilderListin interfaceSleepOrBuilder
-
addOutOfBedSegmentsBuilder
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
addOutOfBedSegmentsBuilder
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getOutOfBedSegmentsBuilderList
Optional. “Out of bed” segments that can overlap with sleep stages.
repeated .google.devicesandservices.health.v4.Sleep.OutOfBedSegment out_of_bed_segments = 6 [(.google.api.field_behavior) = OPTIONAL]; -
hasMetadata
public boolean hasMetadata()Optional. Sleep metadata: processing, main, manually edited, stages status.
.google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasMetadatain interfaceSleepOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
Optional. Sleep metadata: processing, main, manually edited, stages status.
.google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadatain interfaceSleepOrBuilder- Returns:
- The metadata.
-
setMetadata
Optional. Sleep metadata: processing, main, manually edited, stages status.
.google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL]; -
setMetadata
Optional. Sleep metadata: processing, main, manually edited, stages status.
.google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL]; -
mergeMetadata
Optional. Sleep metadata: processing, main, manually edited, stages status.
.google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL]; -
clearMetadata
Optional. Sleep metadata: processing, main, manually edited, stages status.
.google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getMetadataBuilder
Optional. Sleep metadata: processing, main, manually edited, stages status.
.google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL]; -
getMetadataOrBuilder
Optional. Sleep metadata: processing, main, manually edited, stages status.
.google.devicesandservices.health.v4.Sleep.SleepMetadata metadata = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getMetadataOrBuilderin interfaceSleepOrBuilder
-
hasSummary
public boolean hasSummary()Output only. Sleep summary: metrics and stages summary.
.google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSummaryin interfaceSleepOrBuilder- Returns:
- Whether the summary field is set.
-
getSummary
Output only. Sleep summary: metrics and stages summary.
.google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSummaryin interfaceSleepOrBuilder- Returns:
- The summary.
-
setSummary
Output only. Sleep summary: metrics and stages summary.
.google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setSummary
Output only. Sleep summary: metrics and stages summary.
.google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeSummary
Output only. Sleep summary: metrics and stages summary.
.google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearSummary
Output only. Sleep summary: metrics and stages summary.
.google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSummaryBuilder
Output only. Sleep summary: metrics and stages summary.
.google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getSummaryOrBuilder
Output only. Sleep summary: metrics and stages summary.
.google.devicesandservices.health.v4.Sleep.SleepSummary summary = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSummaryOrBuilderin interfaceSleepOrBuilder
-
hasCreateTime
public boolean hasCreateTime()Output only. Creation time of this sleep observation.
.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceSleepOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Creation time of this sleep observation.
.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceSleepOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Creation time of this sleep observation.
.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
Output only. Creation time of this sleep observation.
.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Creation time of this sleep observation.
.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Creation time of this sleep observation.
.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Creation time of this sleep observation.
.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Creation time of this sleep observation.
.google.protobuf.Timestamp create_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceSleepOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Last update time of this sleep observation.
.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceSleepOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Last update time of this sleep observation.
.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceSleepOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Last update time of this sleep observation.
.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
Output only. Last update time of this sleep observation.
.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. Last update time of this sleep observation.
.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. Last update time of this sleep observation.
.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Last update time of this sleep observation.
.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Last update time of this sleep observation.
.google.protobuf.Timestamp update_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceSleepOrBuilder
-