public static final class VO2Max.Builder extends GeneratedMessage.Builder<VO2Max.Builder> implements VO2MaxOrBuilderVO2 max measurement.
Protobuf type google.devicesandservices.health.v4.VO2Max
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > VO2Max.BuilderImplements
VO2MaxOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public VO2Max build()| Returns | |
|---|---|
| Type | Description |
VO2Max |
|
buildPartial()
public VO2Max buildPartial()| Returns | |
|---|---|
| Type | Description |
VO2Max |
|
clear()
public VO2Max.Builder clear()| Returns | |
|---|---|
| Type | Description |
VO2Max.Builder |
|
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 | |
|---|---|
| Type | Description |
VO2Max.Builder |
This builder for chaining. |
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];
| Returns | |
|---|---|
| Type | Description |
VO2Max.Builder |
|
clearVo2Max()
public VO2Max.Builder clearVo2Max()Required. VO2 max value measured as in ml consumed oxygen / kg of body weight / min.
optional double vo2_max = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
VO2Max.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public VO2Max getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
VO2Max |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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];
| Returns | |
|---|---|
| Type | Description |
VO2Max.MeasurementMethod |
The measurementMethod. |
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];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for measurementMethod. |
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];
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime |
The sampleTime. |
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];
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTime.Builder |
|
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];
| Returns | |
|---|---|
| Type | Description |
ObservationSampleTimeOrBuilder |
|
getVo2Max()
public double getVo2Max()Required. VO2 max value measured as in ml consumed oxygen / kg of body weight / min.
optional double vo2_max = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
double |
The vo2Max. |
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];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sampleTime field is set. |
hasVo2Max()
public boolean hasVo2Max()Required. VO2 max value measured as in ml consumed oxygen / kg of body weight / min.
optional double vo2_max = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the vo2Max field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(VO2Max other)
public VO2Max.Builder mergeFrom(VO2Max other)| Parameter | |
|---|---|
| Name | Description |
other |
VO2Max |
| Returns | |
|---|---|
| Type | Description |
VO2Max.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public VO2Max.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
VO2Max.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public VO2Max.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
VO2Max.Builder |
|
mergeSampleTime(ObservationSampleTime value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
ObservationSampleTime |
| Returns | |
|---|---|
| Type | Description |
VO2Max.Builder |
|
setMeasurementMethod(VO2Max.MeasurementMethod value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
VO2Max.MeasurementMethodThe measurementMethod to set. |
| Returns | |
|---|---|
| Type | Description |
VO2Max.Builder |
This builder for chaining. |
setMeasurementMethodValue(int value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for measurementMethod to set. |
| Returns | |
|---|---|
| Type | Description |
VO2Max.Builder |
This builder for chaining. |
setSampleTime(ObservationSampleTime value)
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];
| Parameter | |
|---|---|
| Name | Description |
value |
ObservationSampleTime |
| Returns | |
|---|---|
| Type | Description |
VO2Max.Builder |
|
setSampleTime(ObservationSampleTime.Builder builderForValue)
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];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ObservationSampleTime.Builder |
| Returns | |
|---|---|
| Type | Description |
VO2Max.Builder |
|
setVo2Max(double value)
public VO2Max.Builder setVo2Max(double value)Required. VO2 max value measured as in ml consumed oxygen / kg of body weight / min.
optional double vo2_max = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe vo2Max to set. |
| Returns | |
|---|---|
| Type | Description |
VO2Max.Builder |
This builder for chaining. |