Class OxygenSaturation.Builder

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

public static final class OxygenSaturation.Builder extends com.google.protobuf.GeneratedMessage.Builder<OxygenSaturation.Builder> implements OxygenSaturationOrBuilder
 Captures the user's instantaneous oxygen saturation percentage (SpO2).
 
Protobuf type google.devicesandservices.health.v4.OxygenSaturation
  • 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<OxygenSaturation.Builder>
    • clear

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

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

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

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

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

      public OxygenSaturation.Builder mergeFrom(OxygenSaturation other)
    • isInitialized

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

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

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

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

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

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

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

      public OxygenSaturation.Builder clearSampleTime()
       Required. The time at which oxygen saturation 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 oxygen saturation was measured.
       
      .google.devicesandservices.health.v4.ObservationSampleTime sample_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • getSampleTimeOrBuilder

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

      public double getPercentage()
       Required. The oxygen saturation percentage. Valid values are from 0 to 100.
       
      double percentage = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPercentage in interface OxygenSaturationOrBuilder
      Returns:
      The percentage.
    • setPercentage

      public OxygenSaturation.Builder setPercentage(double value)
       Required. The oxygen saturation percentage. Valid values are from 0 to 100.
       
      double percentage = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The percentage to set.
      Returns:
      This builder for chaining.
    • clearPercentage

      public OxygenSaturation.Builder clearPercentage()
       Required. The oxygen saturation percentage. Valid values are from 0 to 100.
       
      double percentage = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.