Class AltitudeRollupValue (0.2.0)

public final class AltitudeRollupValue extends GeneratedMessage implements AltitudeRollupValueOrBuilder

Represents the result of the rollup of the user's altitude.

Protobuf type google.devicesandservices.health.v4.AltitudeRollupValue

Static Fields

GAIN_MILLIMETERS_SUM_FIELD_NUMBER

public static final int GAIN_MILLIMETERS_SUM_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AltitudeRollupValue getDefaultInstance()
Returns
Type Description
AltitudeRollupValue

getDescriptor()

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

newBuilder()

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

newBuilder(AltitudeRollupValue prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AltitudeRollupValue getDefaultInstanceForType()
Returns
Type Description
AltitudeRollupValue

getGainMillimetersSum()

public long getGainMillimetersSum()

Sum of the altitude gain in millimeters.

optional int64 gain_millimeters_sum = 1;

Returns
Type Description
long

The gainMillimetersSum.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasGainMillimetersSum()

public boolean hasGainMillimetersSum()

Sum of the altitude gain in millimeters.

optional int64 gain_millimeters_sum = 1;

Returns
Type Description
boolean

Whether the gainMillimetersSum 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 AltitudeRollupValue.Builder newBuilderForType()
Returns
Type Description
AltitudeRollupValue.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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