public final class MetricsSummary extends GeneratedMessage implements MetricsSummaryOrBuilder
Summary metrics for an exercise.
Protobuf type google.devicesandservices.health.v4.MetricsSummary
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static MetricsSummary.Builder newBuilder()
newBuilder(MetricsSummary prototype)
public static MetricsSummary.Builder newBuilder(MetricsSummary prototype)
public static MetricsSummary parseDelimitedFrom(InputStream input)
public static MetricsSummary parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static MetricsSummary parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MetricsSummary parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static MetricsSummary parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MetricsSummary parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MetricsSummary parseFrom(CodedInputStream input)
public static MetricsSummary parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MetricsSummary parseFrom(InputStream input)
public static MetricsSummary parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static MetricsSummary parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MetricsSummary parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<MetricsSummary> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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()
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];
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];
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];
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];
getParserForType()
public Parser<MetricsSummary> getParserForType()
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()
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public MetricsSummary.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected MetricsSummary.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public MetricsSummary.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides