Class HeartRate.HeartRateMetadata.Builder

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

public static final class HeartRate.HeartRateMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<HeartRate.HeartRateMetadata.Builder> implements HeartRate.HeartRateMetadataOrBuilder
 Heart rate metadata.
 
Protobuf type google.devicesandservices.health.v4.HeartRate.HeartRateMetadata
  • 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<HeartRate.HeartRateMetadata.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<HeartRate.HeartRateMetadata.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<HeartRate.HeartRateMetadata.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public HeartRate.HeartRateMetadata.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<HeartRate.HeartRateMetadata.Builder>
      Throws:
      IOException
    • getMotionContextValue

      public int getMotionContextValue()
       Optional. Indicates the user’s level of activity when the heart rate
       sample was measured
       
      .google.devicesandservices.health.v4.HeartRate.HeartRateMetadata.MotionContext motion_context = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMotionContextValue in interface HeartRate.HeartRateMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for motionContext.
    • setMotionContextValue

      public HeartRate.HeartRateMetadata.Builder setMotionContextValue(int value)
       Optional. Indicates the user’s level of activity when the heart rate
       sample was measured
       
      .google.devicesandservices.health.v4.HeartRate.HeartRateMetadata.MotionContext motion_context = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for motionContext to set.
      Returns:
      This builder for chaining.
    • getMotionContext

      public HeartRate.HeartRateMetadata.MotionContext getMotionContext()
       Optional. Indicates the user’s level of activity when the heart rate
       sample was measured
       
      .google.devicesandservices.health.v4.HeartRate.HeartRateMetadata.MotionContext motion_context = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getMotionContext in interface HeartRate.HeartRateMetadataOrBuilder
      Returns:
      The motionContext.
    • setMotionContext

       Optional. Indicates the user’s level of activity when the heart rate
       sample was measured
       
      .google.devicesandservices.health.v4.HeartRate.HeartRateMetadata.MotionContext motion_context = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The motionContext to set.
      Returns:
      This builder for chaining.
    • clearMotionContext

      public HeartRate.HeartRateMetadata.Builder clearMotionContext()
       Optional. Indicates the user’s level of activity when the heart rate
       sample was measured
       
      .google.devicesandservices.health.v4.HeartRate.HeartRateMetadata.MotionContext motion_context = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getSensorLocationValue

      public int getSensorLocationValue()
       Optional. Indicates the location of the sensor that measured the heart
       rate.
       
      .google.devicesandservices.health.v4.HeartRate.HeartRateMetadata.SensorLocation sensor_location = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSensorLocationValue in interface HeartRate.HeartRateMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for sensorLocation.
    • setSensorLocationValue

      public HeartRate.HeartRateMetadata.Builder setSensorLocationValue(int value)
       Optional. Indicates the location of the sensor that measured the heart
       rate.
       
      .google.devicesandservices.health.v4.HeartRate.HeartRateMetadata.SensorLocation sensor_location = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for sensorLocation to set.
      Returns:
      This builder for chaining.
    • getSensorLocation

      public HeartRate.HeartRateMetadata.SensorLocation getSensorLocation()
       Optional. Indicates the location of the sensor that measured the heart
       rate.
       
      .google.devicesandservices.health.v4.HeartRate.HeartRateMetadata.SensorLocation sensor_location = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSensorLocation in interface HeartRate.HeartRateMetadataOrBuilder
      Returns:
      The sensorLocation.
    • setSensorLocation

       Optional. Indicates the location of the sensor that measured the heart
       rate.
       
      .google.devicesandservices.health.v4.HeartRate.HeartRateMetadata.SensorLocation sensor_location = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The sensorLocation to set.
      Returns:
      This builder for chaining.
    • clearSensorLocation

      public HeartRate.HeartRateMetadata.Builder clearSensorLocation()
       Optional. Indicates the location of the sensor that measured the heart
       rate.
       
      .google.devicesandservices.health.v4.HeartRate.HeartRateMetadata.SensorLocation sensor_location = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.