Class VO2Max.Builder

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

public static final class VO2Max.Builder extends com.google.protobuf.GeneratedMessage.Builder<VO2Max.Builder> implements VO2MaxOrBuilder
 VO2 max measurement.
 
Protobuf type google.devicesandservices.health.v4.VO2Max
  • 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<VO2Max.Builder>
    • clear

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

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

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

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

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

      public VO2Max.Builder mergeFrom(VO2Max other)
    • isInitialized

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

      public VO2Max.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<VO2Max.Builder>
      Throws:
      IOException
    • hasSampleTime

      public boolean hasSampleTime()
       Required. The time at which VO2 max was measured.
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasSampleTime in interface VO2MaxOrBuilder
      Returns:
      Whether the sampleTime field is set.
    • getSampleTime

      public ObservationSampleTime getSampleTime()
       Required. The time at which VO2 max was measured.
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSampleTime in interface VO2MaxOrBuilder
      Returns:
      The sampleTime.
    • setSampleTime

      public VO2Max.Builder setSampleTime(ObservationSampleTime value)
       Required. The time at which VO2 max was measured.
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • setSampleTime

      public VO2Max.Builder setSampleTime(ObservationSampleTime.Builder builderForValue)
       Required. The time at which VO2 max was measured.
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeSampleTime

      public VO2Max.Builder mergeSampleTime(ObservationSampleTime value)
       Required. The time at which VO2 max was measured.
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearSampleTime

      public VO2Max.Builder clearSampleTime()
       Required. The time at which VO2 max was measured.
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSampleTimeBuilder

      public ObservationSampleTime.Builder getSampleTimeBuilder()
       Required. The time at which VO2 max was measured.
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSampleTimeOrBuilder

      public ObservationSampleTimeOrBuilder getSampleTimeOrBuilder()
       Required. The time at which VO2 max was measured.
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSampleTimeOrBuilder in interface VO2MaxOrBuilder
    • getVo2Max

      public double getVo2Max()
       Required. 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 VO2MaxOrBuilder
      Returns:
      The vo2Max.
    • setVo2Max

      public VO2Max.Builder setVo2Max(double value)
       Required. 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 VO2Max.Builder clearVo2Max()
       Required. 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.
    • getMeasurementMethodValue

      public int getMeasurementMethodValue()
       Optional. The method used to measure the VO2 max value.
       
      .google.devicesandservices.health.v4.VO2Max.MeasurementMethod measurement_method = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMeasurementMethodValue in interface VO2MaxOrBuilder
      Returns:
      The enum numeric value on the wire for measurementMethod.
    • setMeasurementMethodValue

      public VO2Max.Builder setMeasurementMethodValue(int value)
       Optional. The method used to measure the VO2 max value.
       
      .google.devicesandservices.health.v4.VO2Max.MeasurementMethod measurement_method = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for measurementMethod to set.
      Returns:
      This builder for chaining.
    • getMeasurementMethod

      public VO2Max.MeasurementMethod getMeasurementMethod()
       Optional. The method used to measure the VO2 max value.
       
      .google.devicesandservices.health.v4.VO2Max.MeasurementMethod measurement_method = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMeasurementMethod in interface VO2MaxOrBuilder
      Returns:
      The measurementMethod.
    • setMeasurementMethod

      public VO2Max.Builder setMeasurementMethod(VO2Max.MeasurementMethod value)
       Optional. The method used to measure the VO2 max value.
       
      .google.devicesandservices.health.v4.VO2Max.MeasurementMethod measurement_method = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The measurementMethod to set.
      Returns:
      This builder for chaining.
    • clearMeasurementMethod

      public VO2Max.Builder clearMeasurementMethod()
       Optional. The method used to measure the VO2 max value.
       
      .google.devicesandservices.health.v4.VO2Max.MeasurementMethod measurement_method = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.