Class SwimLengthsDataRollupValue (0.2.0)

public final class SwimLengthsDataRollupValue extends GeneratedMessage implements SwimLengthsDataRollupValueOrBuilder

Represents the result of the rollup of the swim lengths data type.

Protobuf type google.devicesandservices.health.v4.SwimLengthsDataRollupValue

Static Fields

STROKE_COUNT_SUM_FIELD_NUMBER

public static final int STROKE_COUNT_SUM_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SwimLengthsDataRollupValue getDefaultInstance()
Returns
Type Description
SwimLengthsDataRollupValue

getDescriptor()

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

newBuilder()

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

newBuilder(SwimLengthsDataRollupValue prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SwimLengthsDataRollupValue getDefaultInstanceForType()
Returns
Type Description
SwimLengthsDataRollupValue

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStrokeCountSum()

public long getStrokeCountSum()

Total number of swim strokes in the interval.

optional int64 stroke_count_sum = 1;

Returns
Type Description
long

The strokeCountSum.

hasStrokeCountSum()

public boolean hasStrokeCountSum()

Total number of swim strokes in the interval.

optional int64 stroke_count_sum = 1;

Returns
Type Description
boolean

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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