Class DailyOxygenSaturation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DailyOxygenSaturation.Builder>
com.google.devicesandservices.health.v4.DailyOxygenSaturation.Builder
All Implemented Interfaces:
DailyOxygenSaturationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
DailyOxygenSaturation

public static final class DailyOxygenSaturation.Builder extends com.google.protobuf.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
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DailyOxygenSaturation.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<DailyOxygenSaturation.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DailyOxygenSaturation.Builder>
    • getDefaultInstanceForType

      public DailyOxygenSaturation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public DailyOxygenSaturation build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public DailyOxygenSaturation buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public DailyOxygenSaturation.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DailyOxygenSaturation.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<DailyOxygenSaturation.Builder>
    • mergeFrom

      public DailyOxygenSaturation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<DailyOxygenSaturation.Builder>
      Throws:
      IOException
    • 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];
      Specified by:
      hasDate in interface DailyOxygenSaturationOrBuilder
      Returns:
      Whether the date field is set.
    • 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];
      Specified by:
      getDate in interface DailyOxygenSaturationOrBuilder
      Returns:
      The date.
    • setDate

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

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

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getDateOrBuilder in interface DailyOxygenSaturationOrBuilder
    • getAveragePercentage

      public double getAveragePercentage()
       Required. The average value of the oxygen saturation samples during the
       sleep.
       
      double average_percentage = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAveragePercentage in interface DailyOxygenSaturationOrBuilder
      Returns:
      The averagePercentage.
    • setAveragePercentage

      public DailyOxygenSaturation.Builder setAveragePercentage(double value)
       Required. The average value of the oxygen saturation samples during the
       sleep.
       
      double average_percentage = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The averagePercentage to set.
      Returns:
      This builder for chaining.
    • clearAveragePercentage

      public DailyOxygenSaturation.Builder clearAveragePercentage()
       Required. The average value of the oxygen saturation samples during the
       sleep.
       
      double average_percentage = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getLowerBoundPercentage

      public double getLowerBoundPercentage()
       Required. The lower bound of the confidence interval of oxygen saturation
       samples during sleep.
       
      double lower_bound_percentage = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getLowerBoundPercentage in interface DailyOxygenSaturationOrBuilder
      Returns:
      The lowerBoundPercentage.
    • setLowerBoundPercentage

      public DailyOxygenSaturation.Builder setLowerBoundPercentage(double value)
       Required. The lower bound of the confidence interval of oxygen saturation
       samples during sleep.
       
      double lower_bound_percentage = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The lowerBoundPercentage to set.
      Returns:
      This builder for chaining.
    • clearLowerBoundPercentage

      public DailyOxygenSaturation.Builder clearLowerBoundPercentage()
       Required. The lower bound of the confidence interval of oxygen saturation
       samples during sleep.
       
      double lower_bound_percentage = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getUpperBoundPercentage

      public double getUpperBoundPercentage()
       Required. The upper bound of the confidence interval of oxygen saturation
       samples during sleep.
       
      double upper_bound_percentage = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUpperBoundPercentage in interface DailyOxygenSaturationOrBuilder
      Returns:
      The upperBoundPercentage.
    • setUpperBoundPercentage

      public DailyOxygenSaturation.Builder setUpperBoundPercentage(double value)
       Required. The upper bound of the confidence interval of oxygen saturation
       samples during sleep.
       
      double upper_bound_percentage = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The upperBoundPercentage to set.
      Returns:
      This builder for chaining.
    • clearUpperBoundPercentage

      public DailyOxygenSaturation.Builder clearUpperBoundPercentage()
       Required. The upper bound of the confidence interval of oxygen saturation
       samples during sleep.
       
      double upper_bound_percentage = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getStandardDeviationPercentage

      public double getStandardDeviationPercentage()
       Optional. Standard deviation of the daily oxygen saturation averages from
       the past 7-30 days.
       
      double standard_deviation_percentage = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStandardDeviationPercentage in interface DailyOxygenSaturationOrBuilder
      Returns:
      The standardDeviationPercentage.
    • setStandardDeviationPercentage

      public DailyOxygenSaturation.Builder setStandardDeviationPercentage(double value)
       Optional. Standard deviation of the daily oxygen saturation averages from
       the past 7-30 days.
       
      double standard_deviation_percentage = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The standardDeviationPercentage to set.
      Returns:
      This builder for chaining.
    • clearStandardDeviationPercentage

      public DailyOxygenSaturation.Builder clearStandardDeviationPercentage()
       Optional. Standard deviation of the daily oxygen saturation averages from
       the past 7-30 days.
       
      double standard_deviation_percentage = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.