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:
  • 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:
      internalGetFieldAccessorTable in class com.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:
      hasCaloriesKcal in interface MetricsSummaryOrBuilder
      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:
      getCaloriesKcal in interface MetricsSummaryOrBuilder
      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:
      hasDistanceMillimeters in interface MetricsSummaryOrBuilder
      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:
      getDistanceMillimeters in interface MetricsSummaryOrBuilder
      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:
      hasSteps in interface MetricsSummaryOrBuilder
      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:
      getSteps in interface MetricsSummaryOrBuilder
      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:
      hasAverageSpeedMillimetersPerSecond in interface MetricsSummaryOrBuilder
      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:
      getAverageSpeedMillimetersPerSecond in interface MetricsSummaryOrBuilder
      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:
      hasAveragePaceSecondsPerMeter in interface MetricsSummaryOrBuilder
      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:
      getAveragePaceSecondsPerMeter in interface MetricsSummaryOrBuilder
      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:
      hasAverageHeartRateBeatsPerMinute in interface MetricsSummaryOrBuilder
      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:
      getAverageHeartRateBeatsPerMinute in interface MetricsSummaryOrBuilder
      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:
      hasElevationGainMillimeters in interface MetricsSummaryOrBuilder
      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:
      getElevationGainMillimeters in interface MetricsSummaryOrBuilder
      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:
      hasActiveZoneMinutes in interface MetricsSummaryOrBuilder
      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:
      getActiveZoneMinutes in interface MetricsSummaryOrBuilder
      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:
      hasRunVo2Max in interface MetricsSummaryOrBuilder
      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:
      getRunVo2Max in interface MetricsSummaryOrBuilder
      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:
      hasTotalSwimLengths in interface MetricsSummaryOrBuilder
      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:
      getTotalSwimLengths in interface MetricsSummaryOrBuilder
      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:
      hasHeartRateZoneDurations in interface MetricsSummaryOrBuilder
      Returns:
      Whether the heartRateZoneDurations field is set.
    • 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];
      Specified by:
      getHeartRateZoneDurations in interface MetricsSummaryOrBuilder
      Returns:
      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];
      Specified by:
      getHeartRateZoneDurationsOrBuilder in interface MetricsSummaryOrBuilder
    • 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:
      hasMobilityMetrics in interface MetricsSummaryOrBuilder
      Returns:
      Whether the mobilityMetrics field is set.
    • 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];
      Specified by:
      getMobilityMetrics in interface MetricsSummaryOrBuilder
      Returns:
      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];
      Specified by:
      getMobilityMetricsOrBuilder in interface MetricsSummaryOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static MetricsSummary parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MetricsSummary parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static MetricsSummary parseDelimitedFrom(InputStream input) throws IOException
      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

      public MetricsSummary.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static MetricsSummary.Builder newBuilder()
    • newBuilder

      public static MetricsSummary.Builder newBuilder(MetricsSummary prototype)
    • toBuilder

      public MetricsSummary.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected MetricsSummary.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static MetricsSummary getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<MetricsSummary> parser()
    • getParserForType

      public com.google.protobuf.Parser<MetricsSummary> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public MetricsSummary getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder