Class Exercise.ExerciseMetadata.Builder (0.2.0)

public static final class Exercise.ExerciseMetadata.Builder extends GeneratedMessage.Builder<Exercise.ExerciseMetadata.Builder> implements Exercise.ExerciseMetadataOrBuilder

Additional exercise metadata.

Protobuf type google.devicesandservices.health.v4.Exercise.ExerciseMetadata

Static Methods

getDescriptor()

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

Methods

build()

public Exercise.ExerciseMetadata build()
Returns
Type Description
Exercise.ExerciseMetadata

buildPartial()

public Exercise.ExerciseMetadata buildPartial()
Returns
Type Description
Exercise.ExerciseMetadata

clear()

public Exercise.ExerciseMetadata.Builder clear()
Returns
Type Description
Exercise.ExerciseMetadata.Builder
Overrides

clearHasGps()

public Exercise.ExerciseMetadata.Builder clearHasGps()

Optional. Whether the exercise had GPS tracking.

bool has_gps = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Exercise.ExerciseMetadata.Builder

This builder for chaining.

clearPoolLengthMillimeters()

public Exercise.ExerciseMetadata.Builder clearPoolLengthMillimeters()

Optional. Pool length in millimeters. Only present in the swimming exercises.

optional int64 pool_length_millimeters = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Exercise.ExerciseMetadata.Builder

This builder for chaining.

getDefaultInstanceForType()

public Exercise.ExerciseMetadata getDefaultInstanceForType()
Returns
Type Description
Exercise.ExerciseMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHasGps()

public boolean getHasGps()

Optional. Whether the exercise had GPS tracking.

bool has_gps = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The hasGps.

getPoolLengthMillimeters()

public long getPoolLengthMillimeters()

Optional. Pool length in millimeters. Only present in the swimming exercises.

optional int64 pool_length_millimeters = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The poolLengthMillimeters.

hasPoolLengthMillimeters()

public boolean hasPoolLengthMillimeters()

Optional. Pool length in millimeters. Only present in the swimming exercises.

optional int64 pool_length_millimeters = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the poolLengthMillimeters field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Exercise.ExerciseMetadata other)

public Exercise.ExerciseMetadata.Builder mergeFrom(Exercise.ExerciseMetadata other)
Parameter
Name Description
other Exercise.ExerciseMetadata
Returns
Type Description
Exercise.ExerciseMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Exercise.ExerciseMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Exercise.ExerciseMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Exercise.ExerciseMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Exercise.ExerciseMetadata.Builder
Overrides

setHasGps(boolean value)

public Exercise.ExerciseMetadata.Builder setHasGps(boolean value)

Optional. Whether the exercise had GPS tracking.

bool has_gps = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The hasGps to set.

Returns
Type Description
Exercise.ExerciseMetadata.Builder

This builder for chaining.

setPoolLengthMillimeters(long value)

public Exercise.ExerciseMetadata.Builder setPoolLengthMillimeters(long value)

Optional. Pool length in millimeters. Only present in the swimming exercises.

optional int64 pool_length_millimeters = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value long

The poolLengthMillimeters to set.

Returns
Type Description
Exercise.ExerciseMetadata.Builder

This builder for chaining.