Class DailyOxygenSaturation.Builder (0.2.0)

public static final class DailyOxygenSaturation.Builder extends GeneratedMessage.Builder<DailyOxygenSaturation.Builder> implements DailyOxygenSaturationOrBuilder

A daily oxygen saturation (SpO2) record. Represents the user's daily oxygen saturation summary, typically calculated during sleep.

Protobuf type google.devicesandservices.health.v4.DailyOxygenSaturation

Static Methods

getDescriptor()

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

Methods

build()

public DailyOxygenSaturation build()
Returns
Type Description
DailyOxygenSaturation

buildPartial()

public DailyOxygenSaturation buildPartial()
Returns
Type Description
DailyOxygenSaturation

clear()

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

clearAveragePercentage()

public DailyOxygenSaturation.Builder clearAveragePercentage()

Required. The average value of the oxygen saturation samples during the sleep.

optional double average_percentage = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DailyOxygenSaturation.Builder

This builder for chaining.

clearDate()

public DailyOxygenSaturation.Builder clearDate()

Required. Date (in user's timezone) of the daily oxygen saturation record.

.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DailyOxygenSaturation.Builder

clearLowerBoundPercentage()

public DailyOxygenSaturation.Builder clearLowerBoundPercentage()

Required. The lower bound of the confidence interval of oxygen saturation samples during sleep.

optional double lower_bound_percentage = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DailyOxygenSaturation.Builder

This builder for chaining.

clearStandardDeviationPercentage()

public DailyOxygenSaturation.Builder clearStandardDeviationPercentage()

Optional. Standard deviation of the daily oxygen saturation averages from the past 7-30 days.

optional double standard_deviation_percentage = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DailyOxygenSaturation.Builder

This builder for chaining.

clearUpperBoundPercentage()

public DailyOxygenSaturation.Builder clearUpperBoundPercentage()

Required. The upper bound of the confidence interval of oxygen saturation samples during sleep.

optional double upper_bound_percentage = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DailyOxygenSaturation.Builder

This builder for chaining.

getAveragePercentage()

public double getAveragePercentage()

Required. The average value of the oxygen saturation samples during the sleep.

optional double average_percentage = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The averagePercentage.

getDate()

public Date getDate()

Required. Date (in user's timezone) of the daily oxygen saturation record.

.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Date

The date.

getDateBuilder()

public Date.Builder getDateBuilder()

Required. Date (in user's timezone) of the daily oxygen saturation record.

.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Date.Builder

getDateOrBuilder()

public DateOrBuilder getDateOrBuilder()

Required. Date (in user's timezone) of the daily oxygen saturation record.

.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.DateOrBuilder

getDefaultInstanceForType()

public DailyOxygenSaturation getDefaultInstanceForType()
Returns
Type Description
DailyOxygenSaturation

getDescriptorForType()

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

getLowerBoundPercentage()

public double getLowerBoundPercentage()

Required. The lower bound of the confidence interval of oxygen saturation samples during sleep.

optional double lower_bound_percentage = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The lowerBoundPercentage.

getStandardDeviationPercentage()

public double getStandardDeviationPercentage()

Optional. Standard deviation of the daily oxygen saturation averages from the past 7-30 days.

optional double standard_deviation_percentage = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The standardDeviationPercentage.

getUpperBoundPercentage()

public double getUpperBoundPercentage()

Required. The upper bound of the confidence interval of oxygen saturation samples during sleep.

optional double upper_bound_percentage = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The upperBoundPercentage.

hasAveragePercentage()

public boolean hasAveragePercentage()

Required. The average value of the oxygen saturation samples during the sleep.

optional double average_percentage = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the averagePercentage field is set.

hasDate()

public boolean hasDate()

Required. Date (in user's timezone) of the daily oxygen saturation record.

.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the date field is set.

hasLowerBoundPercentage()

public boolean hasLowerBoundPercentage()

Required. The lower bound of the confidence interval of oxygen saturation samples during sleep.

optional double lower_bound_percentage = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the lowerBoundPercentage field is set.

hasStandardDeviationPercentage()

public boolean hasStandardDeviationPercentage()

Optional. Standard deviation of the daily oxygen saturation averages from the past 7-30 days.

optional double standard_deviation_percentage = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the standardDeviationPercentage field is set.

hasUpperBoundPercentage()

public boolean hasUpperBoundPercentage()

Required. The upper bound of the confidence interval of oxygen saturation samples during sleep.

optional double upper_bound_percentage = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the upperBoundPercentage field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDate(Date value)

public DailyOxygenSaturation.Builder mergeDate(Date value)

Required. Date (in user's timezone) of the daily oxygen saturation record.

.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
DailyOxygenSaturation.Builder

mergeFrom(DailyOxygenSaturation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setAveragePercentage(double value)

public DailyOxygenSaturation.Builder setAveragePercentage(double value)

Required. The average value of the oxygen saturation samples during the sleep.

optional double average_percentage = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value double

The averagePercentage to set.

Returns
Type Description
DailyOxygenSaturation.Builder

This builder for chaining.

setDate(Date value)

public DailyOxygenSaturation.Builder setDate(Date value)

Required. Date (in user's timezone) of the daily oxygen saturation record.

.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
DailyOxygenSaturation.Builder

setDate(Date.Builder builderForValue)

public DailyOxygenSaturation.Builder setDate(Date.Builder builderForValue)

Required. Date (in user's timezone) of the daily oxygen saturation record.

.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
DailyOxygenSaturation.Builder

setLowerBoundPercentage(double value)

public DailyOxygenSaturation.Builder setLowerBoundPercentage(double value)

Required. The lower bound of the confidence interval of oxygen saturation samples during sleep.

optional double lower_bound_percentage = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value double

The lowerBoundPercentage to set.

Returns
Type Description
DailyOxygenSaturation.Builder

This builder for chaining.

setStandardDeviationPercentage(double value)

public DailyOxygenSaturation.Builder setStandardDeviationPercentage(double value)

Optional. Standard deviation of the daily oxygen saturation averages from the past 7-30 days.

optional double standard_deviation_percentage = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value double

The standardDeviationPercentage to set.

Returns
Type Description
DailyOxygenSaturation.Builder

This builder for chaining.

setUpperBoundPercentage(double value)

public DailyOxygenSaturation.Builder setUpperBoundPercentage(double value)

Required. The upper bound of the confidence interval of oxygen saturation samples during sleep.

optional double upper_bound_percentage = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value double

The upperBoundPercentage to set.

Returns
Type Description
DailyOxygenSaturation.Builder

This builder for chaining.