Class VO2Max (0.2.0)

public final class VO2Max extends GeneratedMessage implements VO2MaxOrBuilder

VO2 max measurement.

Protobuf type google.devicesandservices.health.v4.VO2Max

Implements

VO2MaxOrBuilder

Static Fields

MEASUREMENT_METHOD_FIELD_NUMBER

public static final int MEASUREMENT_METHOD_FIELD_NUMBER
Field Value
Type Description
int

SAMPLE_TIME_FIELD_NUMBER

public static final int SAMPLE_TIME_FIELD_NUMBER
Field Value
Type Description
int

VO2_MAX_FIELD_NUMBER

public static final int VO2_MAX_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static VO2Max getDefaultInstance()
Returns
Type Description
VO2Max

getDescriptor()

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

newBuilder()

public static VO2Max.Builder newBuilder()
Returns
Type Description
VO2Max.Builder

newBuilder(VO2Max prototype)

public static VO2Max.Builder newBuilder(VO2Max prototype)
Parameter
Name Description
prototype VO2Max
Returns
Type Description
VO2Max.Builder

parseDelimitedFrom(InputStream input)

public static VO2Max parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VO2Max
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VO2Max parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VO2Max
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static VO2Max parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
VO2Max
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static VO2Max parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VO2Max
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static VO2Max parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
VO2Max
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static VO2Max parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VO2Max
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static VO2Max parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
VO2Max
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static VO2Max parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VO2Max
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static VO2Max parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
VO2Max
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static VO2Max parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VO2Max
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static VO2Max parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
VO2Max
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static VO2Max parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
VO2Max
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<VO2Max> parser()
Returns
Type Description
Parser<VO2Max>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public VO2Max getDefaultInstanceForType()
Returns
Type Description
VO2Max

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.

getParserForType()

public Parser<VO2Max> getParserForType()
Returns
Type Description
Parser<VO2Max>
Overrides

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.

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public VO2Max.Builder newBuilderForType()
Returns
Type Description
VO2Max.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected VO2Max.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
VO2Max.Builder
Overrides

toBuilder()

public VO2Max.Builder toBuilder()
Returns
Type Description
VO2Max.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException