Class MetricsSummary.TimeInHeartRateZones

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.devicesandservices.health.v4.MetricsSummary.TimeInHeartRateZones
All Implemented Interfaces:
MetricsSummary.TimeInHeartRateZonesOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
MetricsSummary

public static final class MetricsSummary.TimeInHeartRateZones extends com.google.protobuf.GeneratedMessage implements MetricsSummary.TimeInHeartRateZonesOrBuilder
 Time spent in each heart rate zone.
 
Protobuf type google.devicesandservices.health.v4.MetricsSummary.TimeInHeartRateZones
See Also:
  • Field Details

    • LIGHT_TIME_FIELD_NUMBER

      public static final int LIGHT_TIME_FIELD_NUMBER
      See Also:
    • MODERATE_TIME_FIELD_NUMBER

      public static final int MODERATE_TIME_FIELD_NUMBER
      See Also:
    • VIGOROUS_TIME_FIELD_NUMBER

      public static final int VIGOROUS_TIME_FIELD_NUMBER
      See Also:
    • PEAK_TIME_FIELD_NUMBER

      public static final int PEAK_TIME_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
    • hasLightTime

      public boolean hasLightTime()
       Optional. Time spent in light heart rate zone.
       
      .google.protobuf.Duration light_time = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasLightTime in interface MetricsSummary.TimeInHeartRateZonesOrBuilder
      Returns:
      Whether the lightTime field is set.
    • getLightTime

      public com.google.protobuf.Duration getLightTime()
       Optional. Time spent in light heart rate zone.
       
      .google.protobuf.Duration light_time = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLightTime in interface MetricsSummary.TimeInHeartRateZonesOrBuilder
      Returns:
      The lightTime.
    • getLightTimeOrBuilder

      public com.google.protobuf.DurationOrBuilder getLightTimeOrBuilder()
       Optional. Time spent in light heart rate zone.
       
      .google.protobuf.Duration light_time = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLightTimeOrBuilder in interface MetricsSummary.TimeInHeartRateZonesOrBuilder
    • hasModerateTime

      public boolean hasModerateTime()
       Optional. Time spent in moderate heart rate zone.
       
      .google.protobuf.Duration moderate_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasModerateTime in interface MetricsSummary.TimeInHeartRateZonesOrBuilder
      Returns:
      Whether the moderateTime field is set.
    • getModerateTime

      public com.google.protobuf.Duration getModerateTime()
       Optional. Time spent in moderate heart rate zone.
       
      .google.protobuf.Duration moderate_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModerateTime in interface MetricsSummary.TimeInHeartRateZonesOrBuilder
      Returns:
      The moderateTime.
    • getModerateTimeOrBuilder

      public com.google.protobuf.DurationOrBuilder getModerateTimeOrBuilder()
       Optional. Time spent in moderate heart rate zone.
       
      .google.protobuf.Duration moderate_time = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getModerateTimeOrBuilder in interface MetricsSummary.TimeInHeartRateZonesOrBuilder
    • hasVigorousTime

      public boolean hasVigorousTime()
       Optional. Time spent in vigorous heart rate zone.
       
      .google.protobuf.Duration vigorous_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasVigorousTime in interface MetricsSummary.TimeInHeartRateZonesOrBuilder
      Returns:
      Whether the vigorousTime field is set.
    • getVigorousTime

      public com.google.protobuf.Duration getVigorousTime()
       Optional. Time spent in vigorous heart rate zone.
       
      .google.protobuf.Duration vigorous_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVigorousTime in interface MetricsSummary.TimeInHeartRateZonesOrBuilder
      Returns:
      The vigorousTime.
    • getVigorousTimeOrBuilder

      public com.google.protobuf.DurationOrBuilder getVigorousTimeOrBuilder()
       Optional. Time spent in vigorous heart rate zone.
       
      .google.protobuf.Duration vigorous_time = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVigorousTimeOrBuilder in interface MetricsSummary.TimeInHeartRateZonesOrBuilder
    • hasPeakTime

      public boolean hasPeakTime()
       Optional. Time spent in peak heart rate zone.
       
      .google.protobuf.Duration peak_time = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasPeakTime in interface MetricsSummary.TimeInHeartRateZonesOrBuilder
      Returns:
      Whether the peakTime field is set.
    • getPeakTime

      public com.google.protobuf.Duration getPeakTime()
       Optional. Time spent in peak heart rate zone.
       
      .google.protobuf.Duration peak_time = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPeakTime in interface MetricsSummary.TimeInHeartRateZonesOrBuilder
      Returns:
      The peakTime.
    • getPeakTimeOrBuilder

      public com.google.protobuf.DurationOrBuilder getPeakTimeOrBuilder()
       Optional. Time spent in peak heart rate zone.
       
      .google.protobuf.Duration peak_time = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getPeakTimeOrBuilder in interface MetricsSummary.TimeInHeartRateZonesOrBuilder
    • 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.TimeInHeartRateZones parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricsSummary.TimeInHeartRateZones parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricsSummary.TimeInHeartRateZones parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricsSummary.TimeInHeartRateZones 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.TimeInHeartRateZones parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static MetricsSummary.TimeInHeartRateZones parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static MetricsSummary.TimeInHeartRateZones parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static MetricsSummary.TimeInHeartRateZones parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static MetricsSummary.TimeInHeartRateZones parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static MetricsSummary.TimeInHeartRateZones.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static MetricsSummary.TimeInHeartRateZones getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<MetricsSummary.TimeInHeartRateZones> 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.TimeInHeartRateZones getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder