public static final class DailyVO2Max.Builder extends GeneratedMessage.Builder<DailyVO2Max.Builder> implements DailyVO2MaxOrBuilderContains a daily summary of the user's VO2 max (cardio fitness score), which is the maximum rate of oxygen the body can use during exercise.
Protobuf type google.devicesandservices.health.v4.DailyVO2Max
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DailyVO2Max.BuilderImplements
DailyVO2MaxOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DailyVO2Max build()| Returns | |
|---|---|
| Type | Description |
DailyVO2Max |
|
buildPartial()
public DailyVO2Max buildPartial()| Returns | |
|---|---|
| Type | Description |
DailyVO2Max |
|
clear()
public DailyVO2Max.Builder clear()| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
|
clearCardioFitnessLevel()
public DailyVO2Max.Builder clearCardioFitnessLevel()Optional. Represents the user's cardio fitness level based on their VO2 max.
.google.devicesandservices.health.v4.DailyVO2Max.CardioFitnessLevel cardio_fitness_level = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
This builder for chaining. |
clearDate()
public DailyVO2Max.Builder clearDate()Required. The date for which the Daily VO2 max was measured.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
|
clearEstimated()
public DailyVO2Max.Builder clearEstimated()Optional. An estimated field is added to indicate when the confidence has decreased sufficiently to consider the value an estimation.
bool estimated = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
This builder for chaining. |
clearVo2Max()
public DailyVO2Max.Builder clearVo2Max()Required. Daily 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 |
DailyVO2Max.Builder |
This builder for chaining. |
clearVo2MaxCovariance()
public DailyVO2Max.Builder clearVo2MaxCovariance()Optional. The covariance of the VO2 max value.
optional double vo2_max_covariance = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
This builder for chaining. |
getCardioFitnessLevel()
public DailyVO2Max.CardioFitnessLevel getCardioFitnessLevel()Optional. Represents the user's cardio fitness level based on their VO2 max.
.google.devicesandservices.health.v4.DailyVO2Max.CardioFitnessLevel cardio_fitness_level = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.CardioFitnessLevel |
The cardioFitnessLevel. |
getCardioFitnessLevelValue()
public int getCardioFitnessLevelValue()Optional. Represents the user's cardio fitness level based on their VO2 max.
.google.devicesandservices.health.v4.DailyVO2Max.CardioFitnessLevel cardio_fitness_level = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for cardioFitnessLevel. |
getDate()
public Date getDate()Required. The date for which the Daily VO2 max was measured.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The date. |
getDateBuilder()
public Date.Builder getDateBuilder()Required. The date for which the Daily VO2 max was measured.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
getDateOrBuilder()
public DateOrBuilder getDateOrBuilder()Required. The date for which the Daily VO2 max was measured.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getDefaultInstanceForType()
public DailyVO2Max getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DailyVO2Max |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEstimated()
public boolean getEstimated()Optional. An estimated field is added to indicate when the confidence has decreased sufficiently to consider the value an estimation.
bool estimated = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The estimated. |
getVo2Max()
public double getVo2Max()Required. Daily 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. |
getVo2MaxCovariance()
public double getVo2MaxCovariance()Optional. The covariance of the VO2 max value.
optional double vo2_max_covariance = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
double |
The vo2MaxCovariance. |
hasDate()
public boolean hasDate()Required. The date for which the Daily VO2 max was measured.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the date field is set. |
hasVo2Max()
public boolean hasVo2Max()Required. Daily 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. |
hasVo2MaxCovariance()
public boolean hasVo2MaxCovariance()Optional. The covariance of the VO2 max value.
optional double vo2_max_covariance = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the vo2MaxCovariance field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDate(Date value)
public DailyVO2Max.Builder mergeDate(Date value)Required. The date for which the Daily VO2 max was measured.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
|
mergeFrom(DailyVO2Max other)
public DailyVO2Max.Builder mergeFrom(DailyVO2Max other)| Parameter | |
|---|---|
| Name | Description |
other |
DailyVO2Max |
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DailyVO2Max.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DailyVO2Max.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
|
setCardioFitnessLevel(DailyVO2Max.CardioFitnessLevel value)
public DailyVO2Max.Builder setCardioFitnessLevel(DailyVO2Max.CardioFitnessLevel value)Optional. Represents the user's cardio fitness level based on their VO2 max.
.google.devicesandservices.health.v4.DailyVO2Max.CardioFitnessLevel cardio_fitness_level = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
DailyVO2Max.CardioFitnessLevelThe cardioFitnessLevel to set. |
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
This builder for chaining. |
setCardioFitnessLevelValue(int value)
public DailyVO2Max.Builder setCardioFitnessLevelValue(int value)Optional. Represents the user's cardio fitness level based on their VO2 max.
.google.devicesandservices.health.v4.DailyVO2Max.CardioFitnessLevel cardio_fitness_level = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for cardioFitnessLevel to set. |
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
This builder for chaining. |
setDate(Date value)
public DailyVO2Max.Builder setDate(Date value)Required. The date for which the Daily VO2 max was measured.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
|
setDate(Date.Builder builderForValue)
public DailyVO2Max.Builder setDate(Date.Builder builderForValue)Required. The date for which the Daily VO2 max was measured.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
|
setEstimated(boolean value)
public DailyVO2Max.Builder setEstimated(boolean value)Optional. An estimated field is added to indicate when the confidence has decreased sufficiently to consider the value an estimation.
bool estimated = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe estimated to set. |
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
This builder for chaining. |
setVo2Max(double value)
public DailyVO2Max.Builder setVo2Max(double value)Required. Daily 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 |
DailyVO2Max.Builder |
This builder for chaining. |
setVo2MaxCovariance(double value)
public DailyVO2Max.Builder setVo2MaxCovariance(double value)Optional. The covariance of the VO2 max value.
optional double vo2_max_covariance = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe vo2MaxCovariance to set. |
| Returns | |
|---|---|
| Type | Description |
DailyVO2Max.Builder |
This builder for chaining. |