Class MetricsSummary
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devicesandservices.health.v4.MetricsSummary
- All Implemented Interfaces:
MetricsSummaryOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class MetricsSummary
extends com.google.protobuf.GeneratedMessage
implements MetricsSummaryOrBuilder
Summary metrics for an exercise.Protobuf type
google.devicesandservices.health.v4.MetricsSummary- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSummary metrics for an exercise.static final classMobility workouts specific metricsstatic interfacestatic final classTime spent in each heart rate zone.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanlongOptional.longOptional.doubleOptional.doubleOptional.doubleOptional.static MetricsSummarystatic final com.google.protobuf.Descriptors.DescriptordoubleOptional.doubleOptional.Optional.Optional.Optional.Optional.com.google.protobuf.Parser<MetricsSummary>doubleOptional.intlonggetSteps()Optional.doubleOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.booleanOptional.inthashCode()booleanOptional.booleanOptional.booleanOptional.booleanhasSteps()Optional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic MetricsSummary.Builderstatic MetricsSummary.BuildernewBuilder(MetricsSummary prototype) protected MetricsSummary.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static MetricsSummaryparseDelimitedFrom(InputStream input) static MetricsSummaryparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsSummaryparseFrom(byte[] data) static MetricsSummaryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsSummaryparseFrom(com.google.protobuf.ByteString data) static MetricsSummaryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsSummaryparseFrom(com.google.protobuf.CodedInputStream input) static MetricsSummaryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsSummaryparseFrom(InputStream input) static MetricsSummaryparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static MetricsSummaryparseFrom(ByteBuffer data) static MetricsSummaryparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<MetricsSummary>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CALORIES_KCAL_FIELD_NUMBER
public static final int CALORIES_KCAL_FIELD_NUMBER- See Also:
-
DISTANCE_MILLIMETERS_FIELD_NUMBER
public static final int DISTANCE_MILLIMETERS_FIELD_NUMBER- See Also:
-
STEPS_FIELD_NUMBER
public static final int STEPS_FIELD_NUMBER- See Also:
-
AVERAGE_SPEED_MILLIMETERS_PER_SECOND_FIELD_NUMBER
public static final int AVERAGE_SPEED_MILLIMETERS_PER_SECOND_FIELD_NUMBER- See Also:
-
AVERAGE_PACE_SECONDS_PER_METER_FIELD_NUMBER
public static final int AVERAGE_PACE_SECONDS_PER_METER_FIELD_NUMBER- See Also:
-
AVERAGE_HEART_RATE_BEATS_PER_MINUTE_FIELD_NUMBER
public static final int AVERAGE_HEART_RATE_BEATS_PER_MINUTE_FIELD_NUMBER- See Also:
-
ELEVATION_GAIN_MILLIMETERS_FIELD_NUMBER
public static final int ELEVATION_GAIN_MILLIMETERS_FIELD_NUMBER- See Also:
-
ACTIVE_ZONE_MINUTES_FIELD_NUMBER
public static final int ACTIVE_ZONE_MINUTES_FIELD_NUMBER- See Also:
-
RUN_VO2_MAX_FIELD_NUMBER
public static final int RUN_VO2_MAX_FIELD_NUMBER- See Also:
-
TOTAL_SWIM_LENGTHS_FIELD_NUMBER
public static final int TOTAL_SWIM_LENGTHS_FIELD_NUMBER- See Also:
-
HEART_RATE_ZONE_DURATIONS_FIELD_NUMBER
public static final int HEART_RATE_ZONE_DURATIONS_FIELD_NUMBER- See Also:
-
MOBILITY_METRICS_FIELD_NUMBER
public static final int MOBILITY_METRICS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasCaloriesKcal
public boolean hasCaloriesKcal()Optional. Total calories burned by the user during the exercise.
optional double calories_kcal = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCaloriesKcalin interfaceMetricsSummaryOrBuilder- Returns:
- Whether the caloriesKcal field is set.
-
getCaloriesKcal
public double getCaloriesKcal()Optional. Total calories burned by the user during the exercise.
optional double calories_kcal = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCaloriesKcalin interfaceMetricsSummaryOrBuilder- Returns:
- The caloriesKcal.
-
hasDistanceMillimeters
public boolean hasDistanceMillimeters()Optional. Total distance covered by the user during the exercise.
optional double distance_millimeters = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasDistanceMillimetersin interfaceMetricsSummaryOrBuilder- Returns:
- Whether the distanceMillimeters field is set.
-
getDistanceMillimeters
public double getDistanceMillimeters()Optional. Total distance covered by the user during the exercise.
optional double distance_millimeters = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getDistanceMillimetersin interfaceMetricsSummaryOrBuilder- Returns:
- The distanceMillimeters.
-
hasSteps
public boolean hasSteps()Optional. Total steps taken during the exercise.
optional int64 steps = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasStepsin interfaceMetricsSummaryOrBuilder- Returns:
- Whether the steps field is set.
-
getSteps
public long getSteps()Optional. Total steps taken during the exercise.
optional int64 steps = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getStepsin interfaceMetricsSummaryOrBuilder- Returns:
- The steps.
-
hasAverageSpeedMillimetersPerSecond
public boolean hasAverageSpeedMillimetersPerSecond()Optional. Average speed in millimeters per second.
optional double average_speed_millimeters_per_second = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAverageSpeedMillimetersPerSecondin interfaceMetricsSummaryOrBuilder- Returns:
- Whether the averageSpeedMillimetersPerSecond field is set.
-
getAverageSpeedMillimetersPerSecond
public double getAverageSpeedMillimetersPerSecond()Optional. Average speed in millimeters per second.
optional double average_speed_millimeters_per_second = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAverageSpeedMillimetersPerSecondin interfaceMetricsSummaryOrBuilder- Returns:
- The averageSpeedMillimetersPerSecond.
-
hasAveragePaceSecondsPerMeter
public boolean hasAveragePaceSecondsPerMeter()Optional. Average pace in seconds per meter.
optional double average_pace_seconds_per_meter = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasAveragePaceSecondsPerMeterin interfaceMetricsSummaryOrBuilder- Returns:
- Whether the averagePaceSecondsPerMeter field is set.
-
getAveragePaceSecondsPerMeter
public double getAveragePaceSecondsPerMeter()Optional. Average pace in seconds per meter.
optional double average_pace_seconds_per_meter = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getAveragePaceSecondsPerMeterin interfaceMetricsSummaryOrBuilder- Returns:
- The averagePaceSecondsPerMeter.
-
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];- Specified by:
hasAverageHeartRateBeatsPerMinutein interfaceMetricsSummaryOrBuilder- Returns:
- Whether the averageHeartRateBeatsPerMinute field is set.
-
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];- Specified by:
getAverageHeartRateBeatsPerMinutein interfaceMetricsSummaryOrBuilder- Returns:
- The averageHeartRateBeatsPerMinute.
-
hasElevationGainMillimeters
public boolean hasElevationGainMillimeters()Optional. Total elevation gain during the exercise.
optional double elevation_gain_millimeters = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasElevationGainMillimetersin interfaceMetricsSummaryOrBuilder- Returns:
- Whether the elevationGainMillimeters field is set.
-
getElevationGainMillimeters
public double getElevationGainMillimeters()Optional. Total elevation gain during the exercise.
optional double elevation_gain_millimeters = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getElevationGainMillimetersin interfaceMetricsSummaryOrBuilder- Returns:
- The elevationGainMillimeters.
-
hasActiveZoneMinutes
public boolean hasActiveZoneMinutes()Optional. Total active zone minutes for the exercise.
optional int64 active_zone_minutes = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasActiveZoneMinutesin interfaceMetricsSummaryOrBuilder- Returns:
- Whether the activeZoneMinutes field is set.
-
getActiveZoneMinutes
public long getActiveZoneMinutes()Optional. Total active zone minutes for the exercise.
optional int64 active_zone_minutes = 9 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getActiveZoneMinutesin interfaceMetricsSummaryOrBuilder- Returns:
- The activeZoneMinutes.
-
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];- Specified by:
hasRunVo2Maxin interfaceMetricsSummaryOrBuilder- Returns:
- Whether the runVo2Max field is set.
-
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];- Specified by:
getRunVo2Maxin interfaceMetricsSummaryOrBuilder- Returns:
- The runVo2Max.
-
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];- Specified by:
hasTotalSwimLengthsin interfaceMetricsSummaryOrBuilder- Returns:
- Whether the totalSwimLengths field is set.
-
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];- Specified by:
getTotalSwimLengthsin interfaceMetricsSummaryOrBuilder- Returns:
- The totalSwimLengths.
-
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];- Specified by:
hasHeartRateZoneDurationsin interfaceMetricsSummaryOrBuilder- Returns:
- Whether the heartRateZoneDurations field is set.
-
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];- Specified by:
getHeartRateZoneDurationsin interfaceMetricsSummaryOrBuilder- Returns:
- The heartRateZoneDurations.
-
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];- Specified by:
getHeartRateZoneDurationsOrBuilderin interfaceMetricsSummaryOrBuilder
-
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];- Specified by:
hasMobilityMetricsin interfaceMetricsSummaryOrBuilder- Returns:
- Whether the mobilityMetrics field is set.
-
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];- Specified by:
getMobilityMetricsin interfaceMetricsSummaryOrBuilder- Returns:
- The mobilityMetrics.
-
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];- Specified by:
getMobilityMetricsOrBuilderin interfaceMetricsSummaryOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static MetricsSummary parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetricsSummary parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetricsSummary parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetricsSummary parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetricsSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static MetricsSummary parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static MetricsSummary parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static MetricsSummary parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static MetricsSummary parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static MetricsSummary parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected MetricsSummary.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-