Class SwimLengthsData (0.2.0)

public final class SwimLengthsData extends GeneratedMessage implements SwimLengthsDataOrBuilder

Swim lengths data over the time interval.

Protobuf type google.devicesandservices.health.v4.SwimLengthsData

Static Fields

INTERVAL_FIELD_NUMBER

public static final int INTERVAL_FIELD_NUMBER
Field Value
Type Description
int

STROKE_COUNT_FIELD_NUMBER

public static final int STROKE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

SWIM_STROKE_TYPE_FIELD_NUMBER

public static final int SWIM_STROKE_TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SwimLengthsData getDefaultInstance()
Returns
Type Description
SwimLengthsData

getDescriptor()

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

newBuilder()

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

newBuilder(SwimLengthsData prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SwimLengthsData getDefaultInstanceForType()
Returns
Type Description
SwimLengthsData

getInterval()

public ObservationTimeInterval getInterval()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationTimeInterval

The interval.

getIntervalOrBuilder()

public ObservationTimeIntervalOrBuilder getIntervalOrBuilder()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationTimeIntervalOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStrokeCount()

public long getStrokeCount()

Required. Number of strokes in the lap.

optional int64 stroke_count = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The strokeCount.

getSwimStrokeType()

public SwimLengthsData.SwimStrokeType getSwimStrokeType()

Required. Swim stroke type.

.google.devicesandservices.health.v4.SwimLengthsData.SwimStrokeType swim_stroke_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SwimLengthsData.SwimStrokeType

The swimStrokeType.

getSwimStrokeTypeValue()

public int getSwimStrokeTypeValue()

Required. Swim stroke type.

.google.devicesandservices.health.v4.SwimLengthsData.SwimStrokeType swim_stroke_type = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for swimStrokeType.

hasInterval()

public boolean hasInterval()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the interval field is set.

hasStrokeCount()

public boolean hasStrokeCount()

Required. Number of strokes in the lap.

optional int64 stroke_count = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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