Class RespiratoryRateSleepSummary.Builder (0.2.0)

public static final class RespiratoryRateSleepSummary.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public RespiratoryRateSleepSummary build()
Returns
Type Description
RespiratoryRateSleepSummary

buildPartial()

public RespiratoryRateSleepSummary buildPartial()
Returns
Type Description
RespiratoryRateSleepSummary

clear()

public RespiratoryRateSleepSummary.Builder clear()
Returns
Type Description
RespiratoryRateSleepSummary.Builder
Overrides

clearDeepSleepStats()

public RespiratoryRateSleepSummary.Builder clearDeepSleepStats()

Optional. Respiratory rate statistics for deep sleep.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RespiratoryRateSleepSummary.Builder

clearFullSleepStats()

public RespiratoryRateSleepSummary.Builder clearFullSleepStats()

Required. Full respiratory rate statistics.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RespiratoryRateSleepSummary.Builder

clearLightSleepStats()

public RespiratoryRateSleepSummary.Builder clearLightSleepStats()

Optional. Respiratory rate statistics for light sleep.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RespiratoryRateSleepSummary.Builder

clearRemSleepStats()

public RespiratoryRateSleepSummary.Builder clearRemSleepStats()

Optional. Respiratory rate statistics for REM sleep.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RespiratoryRateSleepSummary.Builder

clearSampleTime()

public RespiratoryRateSleepSummary.Builder clearSampleTime()

Required. The time at which respiratory rate was measured.

.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RespiratoryRateSleepSummary.Builder

getDeepSleepStats()

public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics getDeepSleepStats()

Optional. Respiratory rate statistics for deep sleep.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics deep_sleep_stats = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics

The deepSleepStats.

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];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder

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];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder

getDefaultInstanceForType()

public RespiratoryRateSleepSummary getDefaultInstanceForType()
Returns
Type Description
RespiratoryRateSleepSummary

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getFullSleepStats()

public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics getFullSleepStats()

Required. Full respiratory rate statistics.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics

The fullSleepStats.

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];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder

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];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder

getLightSleepStats()

public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics getLightSleepStats()

Optional. Respiratory rate statistics for light sleep.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics light_sleep_stats = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics

The lightSleepStats.

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];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder

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];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder

getRemSleepStats()

public RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics getRemSleepStats()

Optional. Respiratory rate statistics for REM sleep.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics rem_sleep_stats = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics

The remSleepStats.

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];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder

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];

Returns
Type Description
RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatisticsOrBuilder

getSampleTime()

public ObservationSampleTime getSampleTime()

Required. The time at which respiratory rate was measured.

.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationSampleTime

The sampleTime.

getSampleTimeBuilder()

public ObservationSampleTime.Builder getSampleTimeBuilder()

Required. The time at which respiratory rate was measured.

.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationSampleTime.Builder

getSampleTimeOrBuilder()

public ObservationSampleTimeOrBuilder getSampleTimeOrBuilder()

Required. The time at which respiratory rate was measured.

.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationSampleTimeOrBuilder

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];

Returns
Type Description
boolean

Whether the deepSleepStats field is set.

hasFullSleepStats()

public boolean hasFullSleepStats()

Required. Full respiratory rate statistics.

.google.devicesandservices.health.v4.RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics full_sleep_stats = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the fullSleepStats field is set.

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];

Returns
Type Description
boolean

Whether the lightSleepStats field is set.

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];

Returns
Type Description
boolean

Whether the remSleepStats field is set.

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];

Returns
Type Description
boolean

Whether the sampleTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeepSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value)

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];

Parameter
Name Description
value RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics
Returns
Type Description
RespiratoryRateSleepSummary.Builder

mergeFrom(RespiratoryRateSleepSummary other)

public RespiratoryRateSleepSummary.Builder mergeFrom(RespiratoryRateSleepSummary other)
Parameter
Name Description
other RespiratoryRateSleepSummary
Returns
Type Description
RespiratoryRateSleepSummary.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RespiratoryRateSleepSummary.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RespiratoryRateSleepSummary.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RespiratoryRateSleepSummary.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RespiratoryRateSleepSummary.Builder
Overrides

mergeFullSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value)

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];

Parameter
Name Description
value RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics
Returns
Type Description
RespiratoryRateSleepSummary.Builder

mergeLightSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value)

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];

Parameter
Name Description
value RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics
Returns
Type Description
RespiratoryRateSleepSummary.Builder

mergeRemSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value)

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];

Parameter
Name Description
value RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics
Returns
Type Description
RespiratoryRateSleepSummary.Builder

mergeSampleTime(ObservationSampleTime value)

public RespiratoryRateSleepSummary.Builder mergeSampleTime(ObservationSampleTime value)

Required. The time at which respiratory rate was measured.

.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ObservationSampleTime
Returns
Type Description
RespiratoryRateSleepSummary.Builder

setDeepSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value)

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];

Parameter
Name Description
value RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics
Returns
Type Description
RespiratoryRateSleepSummary.Builder

setDeepSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder builderForValue)

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];

Parameter
Name Description
builderForValue RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder
Returns
Type Description
RespiratoryRateSleepSummary.Builder

setFullSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value)

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];

Parameter
Name Description
value RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics
Returns
Type Description
RespiratoryRateSleepSummary.Builder

setFullSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder builderForValue)

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];

Parameter
Name Description
builderForValue RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder
Returns
Type Description
RespiratoryRateSleepSummary.Builder

setLightSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value)

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];

Parameter
Name Description
value RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics
Returns
Type Description
RespiratoryRateSleepSummary.Builder

setLightSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder builderForValue)

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];

Parameter
Name Description
builderForValue RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder
Returns
Type Description
RespiratoryRateSleepSummary.Builder

setRemSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics value)

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];

Parameter
Name Description
value RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics
Returns
Type Description
RespiratoryRateSleepSummary.Builder

setRemSleepStats(RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder builderForValue)

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];

Parameter
Name Description
builderForValue RespiratoryRateSleepSummary.RespiratoryRateSleepSummaryStatistics.Builder
Returns
Type Description
RespiratoryRateSleepSummary.Builder

setSampleTime(ObservationSampleTime value)

public RespiratoryRateSleepSummary.Builder setSampleTime(ObservationSampleTime value)

Required. The time at which respiratory rate was measured.

.google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ObservationSampleTime
Returns
Type Description
RespiratoryRateSleepSummary.Builder

setSampleTime(ObservationSampleTime.Builder builderForValue)

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];

Parameter
Name Description
builderForValue ObservationSampleTime.Builder
Returns
Type Description
RespiratoryRateSleepSummary.Builder