Class HeartRate.HeartRateMetadata.Builder (0.2.0)

public static final class HeartRate.HeartRateMetadata.Builder extends GeneratedMessage.Builder<HeartRate.HeartRateMetadata.Builder> implements HeartRate.HeartRateMetadataOrBuilder

Heart rate metadata.

Protobuf type google.devicesandservices.health.v4.HeartRate.HeartRateMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public HeartRate.HeartRateMetadata build()
Returns
Type Description
HeartRate.HeartRateMetadata

buildPartial()

public HeartRate.HeartRateMetadata buildPartial()
Returns
Type Description
HeartRate.HeartRateMetadata

clear()

public HeartRate.HeartRateMetadata.Builder clear()
Returns
Type Description
HeartRate.HeartRateMetadata.Builder
Overrides

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
Type Description
HeartRate.HeartRateMetadata.Builder

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
Type Description
HeartRate.HeartRateMetadata.Builder

This builder for chaining.

getDefaultInstanceForType()

public HeartRate.HeartRateMetadata getDefaultInstanceForType()
Returns
Type Description
HeartRate.HeartRateMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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];

Returns
Type Description
HeartRate.HeartRateMetadata.MotionContext

The motionContext.

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];

Returns
Type Description
int

The enum numeric value on the wire for motionContext.

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];

Returns
Type Description
HeartRate.HeartRateMetadata.SensorLocation

The sensorLocation.

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];

Returns
Type Description
int

The enum numeric value on the wire for sensorLocation.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HeartRate.HeartRateMetadata other)

public HeartRate.HeartRateMetadata.Builder mergeFrom(HeartRate.HeartRateMetadata other)
Parameter
Name Description
other HeartRate.HeartRateMetadata
Returns
Type Description
HeartRate.HeartRateMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HeartRate.HeartRateMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HeartRate.HeartRateMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HeartRate.HeartRateMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HeartRate.HeartRateMetadata.Builder
Overrides

setMotionContext(HeartRate.HeartRateMetadata.MotionContext value)

public HeartRate.HeartRateMetadata.Builder setMotionContext(HeartRate.HeartRateMetadata.MotionContext 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];

Parameter
Name Description
value HeartRate.HeartRateMetadata.MotionContext

The motionContext to set.

Returns
Type Description
HeartRate.HeartRateMetadata.Builder

This builder for chaining.

setMotionContextValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for motionContext to set.

Returns
Type Description
HeartRate.HeartRateMetadata.Builder

This builder for chaining.

setSensorLocation(HeartRate.HeartRateMetadata.SensorLocation value)

public HeartRate.HeartRateMetadata.Builder setSensorLocation(HeartRate.HeartRateMetadata.SensorLocation 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];

Parameter
Name Description
value HeartRate.HeartRateMetadata.SensorLocation

The sensorLocation to set.

Returns
Type Description
HeartRate.HeartRateMetadata.Builder

This builder for chaining.

setSensorLocationValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for sensorLocation to set.

Returns
Type Description
HeartRate.HeartRateMetadata.Builder

This builder for chaining.