Class RespiratoryRateSleepSummary.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RespiratoryRateSleepSummary.Builder>
com.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.Builder
- All Implemented Interfaces:
RespiratoryRateSleepSummaryOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RespiratoryRateSleepSummary
public static final class RespiratoryRateSleepSummary.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RespiratoryRateSleepSummary.Builder>
implements RespiratoryRateSleepSummaryOrBuilder
Records respiratory rate details during sleep. Can have multiple per day if the user sleeps multiple times.Protobuf type
google.devicesandservices.health.v4.RespiratoryRateSleepSummary-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.Optional.Optional.Required.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.Required.Required.Optional.Optional.Optional.Optional.Optional.Optional.Required.Required.Required.booleanOptional.booleanRequired.booleanOptional.booleanOptional.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Required.Optional.Optional.Required.Optional.setDeepSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder builderForValue) Optional.Required.setFullSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder builderForValue) Required.Optional.setLightSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder builderForValue) Optional.Optional.setRemSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder builderForValue) Optional.Required.setSampleTime(ObservationSampleTime.Builder builderForValue) Required.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<RespiratoryRateSleepSummary.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<RespiratoryRateSleepSummary.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<RespiratoryRateSleepSummary.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<RespiratoryRateSleepSummary.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RespiratoryRateSleepSummary.Builder>
-
mergeFrom
public RespiratoryRateSleepSummary.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<RespiratoryRateSleepSummary.Builder>- Throws:
IOException
-
hasSampleTime
public boolean hasSampleTime()Required. The time at which respiratory rate was measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasSampleTimein interfaceRespiratoryRateSleepSummaryOrBuilder- Returns:
- Whether the sampleTime field is set.
-
getSampleTime
Required. The time at which respiratory rate was measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSampleTimein interfaceRespiratoryRateSleepSummaryOrBuilder- Returns:
- The sampleTime.
-
setSampleTime
Required. The time at which respiratory rate was measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
setSampleTime
public RespiratoryRateSleepSummary.Builder setSampleTime(ObservationSampleTime.Builder builderForValue) Required. The time at which respiratory rate was measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeSampleTime
Required. The time at which respiratory rate was measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearSampleTime
Required. The time at which respiratory rate was measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
getSampleTimeBuilder
Required. The time at which respiratory rate was measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
getSampleTimeOrBuilder
Required. The time at which respiratory rate was measured.
.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSampleTimeOrBuilderin interfaceRespiratoryRateSleepSummaryOrBuilder
-
hasDeepSleepStats
public boolean hasDeepSleepStats()Optional. Respiratory rate statistics for deep sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDeepSleepStatsin interfaceRespiratoryRateSleepSummaryOrBuilder- Returns:
- Whether the deepSleepStats field is set.
-
getDeepSleepStats
Optional. Respiratory rate statistics for deep sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeepSleepStatsin interfaceRespiratoryRateSleepSummaryOrBuilder- Returns:
- The deepSleepStats.
-
setDeepSleepStats
public RespiratoryRateSleepSummary.Builder setDeepSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value) Optional. Respiratory rate statistics for deep sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; -
setDeepSleepStats
public RespiratoryRateSleepSummary.Builder setDeepSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder builderForValue) Optional. Respiratory rate statistics for deep sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; -
mergeDeepSleepStats
public RespiratoryRateSleepSummary.Builder mergeDeepSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value) Optional. Respiratory rate statistics for deep sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; -
clearDeepSleepStats
Optional. Respiratory rate statistics for deep sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getDeepSleepStatsBuilder
public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder getDeepSleepStatsBuilder()Optional. Respiratory rate statistics for deep sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL]; -
getDeepSleepStatsOrBuilder
public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder getDeepSleepStatsOrBuilder()Optional. Respiratory rate statistics for deep sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDeepSleepStatsOrBuilderin interfaceRespiratoryRateSleepSummaryOrBuilder
-
hasLightSleepStats
public boolean hasLightSleepStats()Optional. Respiratory rate statistics for light sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasLightSleepStatsin interfaceRespiratoryRateSleepSummaryOrBuilder- Returns:
- Whether the lightSleepStats field is set.
-
getLightSleepStats
Optional. Respiratory rate statistics for light sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLightSleepStatsin interfaceRespiratoryRateSleepSummaryOrBuilder- Returns:
- The lightSleepStats.
-
setLightSleepStats
public RespiratoryRateSleepSummary.Builder setLightSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value) Optional. Respiratory rate statistics for light sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL]; -
setLightSleepStats
public RespiratoryRateSleepSummary.Builder setLightSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder builderForValue) Optional. Respiratory rate statistics for light sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL]; -
mergeLightSleepStats
public RespiratoryRateSleepSummary.Builder mergeLightSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value) Optional. Respiratory rate statistics for light sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL]; -
clearLightSleepStats
Optional. Respiratory rate statistics for light sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getLightSleepStatsBuilder
public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder getLightSleepStatsBuilder()Optional. Respiratory rate statistics for light sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL]; -
getLightSleepStatsOrBuilder
public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder getLightSleepStatsOrBuilder()Optional. Respiratory rate statistics for light sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getLightSleepStatsOrBuilderin interfaceRespiratoryRateSleepSummaryOrBuilder
-
hasRemSleepStats
public boolean hasRemSleepStats()Optional. Respiratory rate statistics for REM sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRemSleepStatsin interfaceRespiratoryRateSleepSummaryOrBuilder- Returns:
- Whether the remSleepStats field is set.
-
getRemSleepStats
Optional. Respiratory rate statistics for REM sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRemSleepStatsin interfaceRespiratoryRateSleepSummaryOrBuilder- Returns:
- The remSleepStats.
-
setRemSleepStats
public RespiratoryRateSleepSummary.Builder setRemSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value) Optional. Respiratory rate statistics for REM sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setRemSleepStats
public RespiratoryRateSleepSummary.Builder setRemSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder builderForValue) Optional. Respiratory rate statistics for REM sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRemSleepStats
public RespiratoryRateSleepSummary.Builder mergeRemSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value) Optional. Respiratory rate statistics for REM sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearRemSleepStats
Optional. Respiratory rate statistics for REM sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getRemSleepStatsBuilder
public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder getRemSleepStatsBuilder()Optional. Respiratory rate statistics for REM sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getRemSleepStatsOrBuilder
public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder getRemSleepStatsOrBuilder()Optional. Respiratory rate statistics for REM sleep.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRemSleepStatsOrBuilderin interfaceRespiratoryRateSleepSummaryOrBuilder
-
hasFullSleepStats
public boolean hasFullSleepStats()Required. Full respiratory rate statistics.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasFullSleepStatsin interfaceRespiratoryRateSleepSummaryOrBuilder- Returns:
- Whether the fullSleepStats field is set.
-
getFullSleepStats
Required. Full respiratory rate statistics.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFullSleepStatsin interfaceRespiratoryRateSleepSummaryOrBuilder- Returns:
- The fullSleepStats.
-
setFullSleepStats
public RespiratoryRateSleepSummary.Builder setFullSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value) Required. Full respiratory rate statistics.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED]; -
setFullSleepStats
public RespiratoryRateSleepSummary.Builder setFullSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder builderForValue) Required. Full respiratory rate statistics.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED]; -
mergeFullSleepStats
public RespiratoryRateSleepSummary.Builder mergeFullSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value) Required. Full respiratory rate statistics.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED]; -
clearFullSleepStats
Required. Full respiratory rate statistics.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED]; -
getFullSleepStatsBuilder
public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder getFullSleepStatsBuilder()Required. Full respiratory rate statistics.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED]; -
getFullSleepStatsOrBuilder
public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder getFullSleepStatsOrBuilder()Required. Full respiratory rate statistics.
.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getFullSleepStatsOrBuilderin interfaceRespiratoryRateSleepSummaryOrBuilder
-