Class MetricsSummary (0.2.0)

public final class MetricsSummary extends GeneratedMessage implements MetricsSummaryOrBuilder

Summary metrics for an exercise.

Protobuf type google.devicesandservices.health.v4.MetricsSummary

Static Fields

ACTIVE_ZONE_MINUTES_FIELD_NUMBER

public static final int ACTIVE_ZONE_MINUTES_FIELD_NUMBER
Field Value
Type Description
int

AVERAGE_HEART_RATE_BEATS_PER_MINUTE_FIELD_NUMBER

public static final int AVERAGE_HEART_RATE_BEATS_PER_MINUTE_FIELD_NUMBER
Field Value
Type Description
int

AVERAGE_PACE_SECONDS_PER_METER_FIELD_NUMBER

public static final int AVERAGE_PACE_SECONDS_PER_METER_FIELD_NUMBER
Field Value
Type Description
int

AVERAGE_SPEED_MILLIMETERS_PER_SECOND_FIELD_NUMBER

public static final int AVERAGE_SPEED_MILLIMETERS_PER_SECOND_FIELD_NUMBER
Field Value
Type Description
int

CALORIES_KCAL_FIELD_NUMBER

public static final int CALORIES_KCAL_FIELD_NUMBER
Field Value
Type Description
int

DISTANCE_MILLIMETERS_FIELD_NUMBER

public static final int DISTANCE_MILLIMETERS_FIELD_NUMBER
Field Value
Type Description
int

ELEVATION_GAIN_MILLIMETERS_FIELD_NUMBER

public static final int ELEVATION_GAIN_MILLIMETERS_FIELD_NUMBER
Field Value
Type Description
int

HEART_RATE_ZONE_DURATIONS_FIELD_NUMBER

public static final int HEART_RATE_ZONE_DURATIONS_FIELD_NUMBER
Field Value
Type Description
int

MOBILITY_METRICS_FIELD_NUMBER

public static final int MOBILITY_METRICS_FIELD_NUMBER
Field Value
Type Description
int

RUN_VO2_MAX_FIELD_NUMBER

public static final int RUN_VO2_MAX_FIELD_NUMBER
Field Value
Type Description
int

STEPS_FIELD_NUMBER

public static final int STEPS_FIELD_NUMBER
Field Value
Type Description
int

TOTAL_SWIM_LENGTHS_FIELD_NUMBER

public static final int TOTAL_SWIM_LENGTHS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static MetricsSummary getDefaultInstance()
Returns
Type Description
MetricsSummary

getDescriptor()

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

newBuilder()

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

newBuilder(MetricsSummary prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getActiveZoneMinutes()

public long getActiveZoneMinutes()

Optional. Total active zone minutes for the exercise.

optional int64 active_zone_minutes = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The activeZoneMinutes.

getAverageHeartRateBeatsPerMinute()

public long getAverageHeartRateBeatsPerMinute()

Optional. Average heart rate during the exercise.

optional int64 average_heart_rate_beats_per_minute = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The averageHeartRateBeatsPerMinute.

getAveragePaceSecondsPerMeter()

public double getAveragePaceSecondsPerMeter()

Optional. Average pace in seconds per meter.

optional double average_pace_seconds_per_meter = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The averagePaceSecondsPerMeter.

getAverageSpeedMillimetersPerSecond()

public double getAverageSpeedMillimetersPerSecond()

Optional. Average speed in millimeters per second.

optional double average_speed_millimeters_per_second = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The averageSpeedMillimetersPerSecond.

getCaloriesKcal()

public double getCaloriesKcal()

Optional. Total calories burned by the user during the exercise.

optional double calories_kcal = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The caloriesKcal.

getDefaultInstanceForType()

public MetricsSummary getDefaultInstanceForType()
Returns
Type Description
MetricsSummary

getDistanceMillimeters()

public double getDistanceMillimeters()

Optional. Total distance covered by the user during the exercise.

optional double distance_millimeters = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The distanceMillimeters.

getElevationGainMillimeters()

public double getElevationGainMillimeters()

Optional. Total elevation gain during the exercise.

optional double elevation_gain_millimeters = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The elevationGainMillimeters.

getHeartRateZoneDurations()

public MetricsSummary.TimeInHeartRateZones getHeartRateZoneDurations()

Optional. Time spent in each heart rate zone.

.google.devicesandservices.health.v4.MetricsSummary.TimeInHeartRateZones heart_rate_zone_durations = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MetricsSummary.TimeInHeartRateZones

The heartRateZoneDurations.

getHeartRateZoneDurationsOrBuilder()

public MetricsSummary.TimeInHeartRateZonesOrBuilder getHeartRateZoneDurationsOrBuilder()

Optional. Time spent in each heart rate zone.

.google.devicesandservices.health.v4.MetricsSummary.TimeInHeartRateZones heart_rate_zone_durations = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MetricsSummary.TimeInHeartRateZonesOrBuilder

getMobilityMetrics()

public MetricsSummary.MobilityMetrics getMobilityMetrics()

Optional. Mobility workouts specific metrics. Only present in the advanced running exercises.

.google.devicesandservices.health.v4.MetricsSummary.MobilityMetrics mobility_metrics = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MetricsSummary.MobilityMetrics

The mobilityMetrics.

getMobilityMetricsOrBuilder()

public MetricsSummary.MobilityMetricsOrBuilder getMobilityMetricsOrBuilder()

Optional. Mobility workouts specific metrics. Only present in the advanced running exercises.

.google.devicesandservices.health.v4.MetricsSummary.MobilityMetrics mobility_metrics = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MetricsSummary.MobilityMetricsOrBuilder

getParserForType()

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

getRunVo2Max()

public double getRunVo2Max()

Optional. Run VO2 max value for the exercise. Only present in the running exercises at the top level as in the summary of the whole exercise.

optional double run_vo2_max = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The runVo2Max.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSteps()

public long getSteps()

Optional. Total steps taken during the exercise.

optional int64 steps = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The steps.

getTotalSwimLengths()

public double getTotalSwimLengths()

Optional. Number of full pool lengths completed during the exercise. Only present in the swimming exercises at the top level as in the summary of the whole exercise.

optional double total_swim_lengths = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
double

The totalSwimLengths.

hasActiveZoneMinutes()

public boolean hasActiveZoneMinutes()

Optional. Total active zone minutes for the exercise.

optional int64 active_zone_minutes = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the activeZoneMinutes field is set.

hasAverageHeartRateBeatsPerMinute()

public boolean hasAverageHeartRateBeatsPerMinute()

Optional. Average heart rate during the exercise.

optional int64 average_heart_rate_beats_per_minute = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the averageHeartRateBeatsPerMinute field is set.

hasAveragePaceSecondsPerMeter()

public boolean hasAveragePaceSecondsPerMeter()

Optional. Average pace in seconds per meter.

optional double average_pace_seconds_per_meter = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the averagePaceSecondsPerMeter field is set.

hasAverageSpeedMillimetersPerSecond()

public boolean hasAverageSpeedMillimetersPerSecond()

Optional. Average speed in millimeters per second.

optional double average_speed_millimeters_per_second = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the averageSpeedMillimetersPerSecond field is set.

hasCaloriesKcal()

public boolean hasCaloriesKcal()

Optional. Total calories burned by the user during the exercise.

optional double calories_kcal = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the caloriesKcal field is set.

hasDistanceMillimeters()

public boolean hasDistanceMillimeters()

Optional. Total distance covered by the user during the exercise.

optional double distance_millimeters = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the distanceMillimeters field is set.

hasElevationGainMillimeters()

public boolean hasElevationGainMillimeters()

Optional. Total elevation gain during the exercise.

optional double elevation_gain_millimeters = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the elevationGainMillimeters field is set.

hasHeartRateZoneDurations()

public boolean hasHeartRateZoneDurations()

Optional. Time spent in each heart rate zone.

.google.devicesandservices.health.v4.MetricsSummary.TimeInHeartRateZones heart_rate_zone_durations = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the heartRateZoneDurations field is set.

hasMobilityMetrics()

public boolean hasMobilityMetrics()

Optional. Mobility workouts specific metrics. Only present in the advanced running exercises.

.google.devicesandservices.health.v4.MetricsSummary.MobilityMetrics mobility_metrics = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the mobilityMetrics field is set.

hasRunVo2Max()

public boolean hasRunVo2Max()

Optional. Run VO2 max value for the exercise. Only present in the running exercises at the top level as in the summary of the whole exercise.

optional double run_vo2_max = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the runVo2Max field is set.

hasSteps()

public boolean hasSteps()

Optional. Total steps taken during the exercise.

optional int64 steps = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the steps field is set.

hasTotalSwimLengths()

public boolean hasTotalSwimLengths()

Optional. Number of full pool lengths completed during the exercise. Only present in the swimming exercises at the top level as in the summary of the whole exercise.

optional double total_swim_lengths = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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