Class DailyRespiratoryRate.Builder

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

public static final class DailyRespiratoryRate.Builder extends com.google.protobuf.GeneratedMessage.Builder<DailyRespiratoryRate.Builder> implements DailyRespiratoryRateOrBuilder
 A daily average respiratory rate (breaths per minute) for a day of the year.
 One data point per day calculated for the main sleep.
 
Protobuf type google.devicesandservices.health.v4.DailyRespiratoryRate
  • 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<DailyRespiratoryRate.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<DailyRespiratoryRate.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<DailyRespiratoryRate.Builder>
    • getDefaultInstanceForType

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

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

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

      public DailyRespiratoryRate.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<DailyRespiratoryRate.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<DailyRespiratoryRate.Builder>
    • mergeFrom

      public DailyRespiratoryRate.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<DailyRespiratoryRate.Builder>
      Throws:
      IOException
    • hasDate

      public boolean hasDate()
       Required. The date on which the respiratory rate was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDate in interface DailyRespiratoryRateOrBuilder
      Returns:
      Whether the date field is set.
    • getDate

      public Date getDate()
       Required. The date on which the respiratory rate was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDate in interface DailyRespiratoryRateOrBuilder
      Returns:
      The date.
    • setDate

      public DailyRespiratoryRate.Builder setDate(Date value)
       Required. The date on which the respiratory rate was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • setDate

      public DailyRespiratoryRate.Builder setDate(Date.Builder builderForValue)
       Required. The date on which the respiratory rate was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeDate

      public DailyRespiratoryRate.Builder mergeDate(Date value)
       Required. The date on which the respiratory rate was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearDate

      public DailyRespiratoryRate.Builder clearDate()
       Required. The date on which the respiratory rate was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDateBuilder

      public Date.Builder getDateBuilder()
       Required. The date on which the respiratory rate was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDateOrBuilder

      public DateOrBuilder getDateOrBuilder()
       Required. The date on which the respiratory rate was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDateOrBuilder in interface DailyRespiratoryRateOrBuilder
    • getBreathsPerMinute

      public double getBreathsPerMinute()
       Required. The average number of breaths taken per minute.
       
      double breaths_per_minute = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getBreathsPerMinute in interface DailyRespiratoryRateOrBuilder
      Returns:
      The breathsPerMinute.
    • setBreathsPerMinute

      public DailyRespiratoryRate.Builder setBreathsPerMinute(double value)
       Required. The average number of breaths taken per minute.
       
      double breaths_per_minute = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The breathsPerMinute to set.
      Returns:
      This builder for chaining.
    • clearBreathsPerMinute

      public DailyRespiratoryRate.Builder clearBreathsPerMinute()
       Required. The average number of breaths taken per minute.
       
      double breaths_per_minute = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.