public static final class HeartRate.HeartRateMetadata.Builder extends GeneratedMessage.Builder<HeartRate.HeartRateMetadata.Builder> implements HeartRate.HeartRateMetadataOrBuilderHeart rate metadata.
Protobuf type google.devicesandservices.health.v4.HeartRate.HeartRateMetadata
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > HeartRate.HeartRateMetadata.BuilderImplements
HeartRate.HeartRateMetadataOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| 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 |
|
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.MotionContextThe 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 |
intThe 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.SensorLocationThe 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 |
intThe enum numeric value on the wire for sensorLocation to set. |
| Returns | |
|---|---|
| Type | Description |
HeartRate.HeartRateMetadata.Builder |
This builder for chaining. |