Class DailyVO2Max.Builder

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

public static final class DailyVO2Max.Builder extends com.google.protobuf.GeneratedMessage.Builder<DailyVO2Max.Builder> implements DailyVO2MaxOrBuilder
 Contains a daily summary of the user's VO2 max (cardio fitness score),
 which is the maximum rate of oxygen the body can use during exercise.
 
Protobuf type google.devicesandservices.health.v4.DailyVO2Max
  • 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<DailyVO2Max.Builder>
    • clear

      public DailyVO2Max.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<DailyVO2Max.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<DailyVO2Max.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DailyVO2Max.Builder mergeFrom(DailyVO2Max other)
    • isInitialized

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

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

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

      public Date getDate()
       Required. The date for which the Daily VO2 max was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDate in interface DailyVO2MaxOrBuilder
      Returns:
      The date.
    • setDate

      public DailyVO2Max.Builder setDate(Date value)
       Required. The date for which the Daily VO2 max was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • setDate

      public DailyVO2Max.Builder setDate(Date.Builder builderForValue)
       Required. The date for which the Daily VO2 max was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeDate

      public DailyVO2Max.Builder mergeDate(Date value)
       Required. The date for which the Daily VO2 max was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearDate

      public DailyVO2Max.Builder clearDate()
       Required. The date for which the Daily VO2 max was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDateBuilder

      public Date.Builder getDateBuilder()
       Required. The date for which the Daily VO2 max was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
    • getDateOrBuilder

      public DateOrBuilder getDateOrBuilder()
       Required. The date for which the Daily VO2 max was measured.
       
      .google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDateOrBuilder in interface DailyVO2MaxOrBuilder
    • getVo2Max

      public double getVo2Max()
       Required. Daily VO2 max value measured as in ml consumed oxygen / kg of
       body weight / min.
       
      double vo2_max = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getVo2Max in interface DailyVO2MaxOrBuilder
      Returns:
      The vo2Max.
    • setVo2Max

      public DailyVO2Max.Builder setVo2Max(double value)
       Required. Daily VO2 max value measured as in ml consumed oxygen / kg of
       body weight / min.
       
      double vo2_max = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The vo2Max to set.
      Returns:
      This builder for chaining.
    • clearVo2Max

      public DailyVO2Max.Builder clearVo2Max()
       Required. Daily VO2 max value measured as in ml consumed oxygen / kg of
       body weight / min.
       
      double vo2_max = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • getEstimated

      public boolean getEstimated()
       Optional. An estimated field is added to indicate when the confidence has
       decreased sufficiently to consider the value an estimation.
       
      bool estimated = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEstimated in interface DailyVO2MaxOrBuilder
      Returns:
      The estimated.
    • setEstimated

      public DailyVO2Max.Builder setEstimated(boolean value)
       Optional. An estimated field is added to indicate when the confidence has
       decreased sufficiently to consider the value an estimation.
       
      bool estimated = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The estimated to set.
      Returns:
      This builder for chaining.
    • clearEstimated

      public DailyVO2Max.Builder clearEstimated()
       Optional. An estimated field is added to indicate when the confidence has
       decreased sufficiently to consider the value an estimation.
       
      bool estimated = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getCardioFitnessLevelValue

      public int getCardioFitnessLevelValue()
       Optional. Represents the user's cardio fitness level based on their VO2
       max.
       
      .google.devicesandservices.health.v4.DailyVO2Max.CardioFitnessLevel cardio_fitness_level = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCardioFitnessLevelValue in interface DailyVO2MaxOrBuilder
      Returns:
      The enum numeric value on the wire for cardioFitnessLevel.
    • setCardioFitnessLevelValue

      public DailyVO2Max.Builder setCardioFitnessLevelValue(int value)
       Optional. Represents the user's cardio fitness level based on their VO2
       max.
       
      .google.devicesandservices.health.v4.DailyVO2Max.CardioFitnessLevel cardio_fitness_level = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for cardioFitnessLevel to set.
      Returns:
      This builder for chaining.
    • getCardioFitnessLevel

      public DailyVO2Max.CardioFitnessLevel getCardioFitnessLevel()
       Optional. Represents the user's cardio fitness level based on their VO2
       max.
       
      .google.devicesandservices.health.v4.DailyVO2Max.CardioFitnessLevel cardio_fitness_level = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCardioFitnessLevel in interface DailyVO2MaxOrBuilder
      Returns:
      The cardioFitnessLevel.
    • setCardioFitnessLevel

      public DailyVO2Max.Builder setCardioFitnessLevel(DailyVO2Max.CardioFitnessLevel value)
       Optional. Represents the user's cardio fitness level based on their VO2
       max.
       
      .google.devicesandservices.health.v4.DailyVO2Max.CardioFitnessLevel cardio_fitness_level = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The cardioFitnessLevel to set.
      Returns:
      This builder for chaining.
    • clearCardioFitnessLevel

      public DailyVO2Max.Builder clearCardioFitnessLevel()
       Optional. Represents the user's cardio fitness level based on their VO2
       max.
       
      .google.devicesandservices.health.v4.DailyVO2Max.CardioFitnessLevel cardio_fitness_level = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getVo2MaxCovariance

      public double getVo2MaxCovariance()
       Optional. The covariance of the VO2 max value.
       
      double vo2_max_covariance = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVo2MaxCovariance in interface DailyVO2MaxOrBuilder
      Returns:
      The vo2MaxCovariance.
    • setVo2MaxCovariance

      public DailyVO2Max.Builder setVo2MaxCovariance(double value)
       Optional. The covariance of the VO2 max value.
       
      double vo2_max_covariance = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The vo2MaxCovariance to set.
      Returns:
      This builder for chaining.
    • clearVo2MaxCovariance

      public DailyVO2Max.Builder clearVo2MaxCovariance()
       Optional. The covariance of the VO2 max value.
       
      double vo2_max_covariance = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.