Class Exercise.SplitSummary

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

public static final class Exercise.SplitSummary extends com.google.protobuf.GeneratedMessage implements Exercise.SplitSummaryOrBuilder
 Represents splits or laps recorded within an exercise. Lap events
 partition a workout into segments based on criteria like distance, time, or
 calories.
 
Protobuf type google.devicesandservices.health.v4.Exercise.SplitSummary
See Also:
  • Field Details

    • START_TIME_FIELD_NUMBER

      public static final int START_TIME_FIELD_NUMBER
      See Also:
    • START_UTC_OFFSET_FIELD_NUMBER

      public static final int START_UTC_OFFSET_FIELD_NUMBER
      See Also:
    • END_TIME_FIELD_NUMBER

      public static final int END_TIME_FIELD_NUMBER
      See Also:
    • END_UTC_OFFSET_FIELD_NUMBER

      public static final int END_UTC_OFFSET_FIELD_NUMBER
      See Also:
    • ACTIVE_DURATION_FIELD_NUMBER

      public static final int ACTIVE_DURATION_FIELD_NUMBER
      See Also:
    • METRICS_SUMMARY_FIELD_NUMBER

      public static final int METRICS_SUMMARY_FIELD_NUMBER
      See Also:
    • SPLIT_TYPE_FIELD_NUMBER

      public static final int SPLIT_TYPE_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
    • hasStartTime

      public boolean hasStartTime()
       Required. Lap start time
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasStartTime in interface Exercise.SplitSummaryOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Required. Lap start time
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartTime in interface Exercise.SplitSummaryOrBuilder
      Returns:
      The startTime.
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Required. Lap start time
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartTimeOrBuilder in interface Exercise.SplitSummaryOrBuilder
    • hasStartUtcOffset

      public boolean hasStartUtcOffset()
       Required. Lap start time offset from UTC
       
      .google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasStartUtcOffset in interface Exercise.SplitSummaryOrBuilder
      Returns:
      Whether the startUtcOffset field is set.
    • getStartUtcOffset

      public com.google.protobuf.Duration getStartUtcOffset()
       Required. Lap start time offset from UTC
       
      .google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartUtcOffset in interface Exercise.SplitSummaryOrBuilder
      Returns:
      The startUtcOffset.
    • getStartUtcOffsetOrBuilder

      public com.google.protobuf.DurationOrBuilder getStartUtcOffsetOrBuilder()
       Required. Lap start time offset from UTC
       
      .google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartUtcOffsetOrBuilder in interface Exercise.SplitSummaryOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       Required. Lap end time
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEndTime in interface Exercise.SplitSummaryOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       Required. Lap end time
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndTime in interface Exercise.SplitSummaryOrBuilder
      Returns:
      The endTime.
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       Required. Lap end time
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndTimeOrBuilder in interface Exercise.SplitSummaryOrBuilder
    • hasEndUtcOffset

      public boolean hasEndUtcOffset()
       Required. Lap end time offset from UTC
       
      .google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEndUtcOffset in interface Exercise.SplitSummaryOrBuilder
      Returns:
      Whether the endUtcOffset field is set.
    • getEndUtcOffset

      public com.google.protobuf.Duration getEndUtcOffset()
       Required. Lap end time offset from UTC
       
      .google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndUtcOffset in interface Exercise.SplitSummaryOrBuilder
      Returns:
      The endUtcOffset.
    • getEndUtcOffsetOrBuilder

      public com.google.protobuf.DurationOrBuilder getEndUtcOffsetOrBuilder()
       Required. Lap end time offset from UTC
       
      .google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndUtcOffsetOrBuilder in interface Exercise.SplitSummaryOrBuilder
    • hasActiveDuration

      public boolean hasActiveDuration()
       Output only. Lap time excluding the pauses.
       
      .google.protobuf.Duration active_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasActiveDuration in interface Exercise.SplitSummaryOrBuilder
      Returns:
      Whether the activeDuration field is set.
    • getActiveDuration

      public com.google.protobuf.Duration getActiveDuration()
       Output only. Lap time excluding the pauses.
       
      .google.protobuf.Duration active_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getActiveDuration in interface Exercise.SplitSummaryOrBuilder
      Returns:
      The activeDuration.
    • getActiveDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getActiveDurationOrBuilder()
       Output only. Lap time excluding the pauses.
       
      .google.protobuf.Duration active_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getActiveDurationOrBuilder in interface Exercise.SplitSummaryOrBuilder
    • hasMetricsSummary

      public boolean hasMetricsSummary()
       Required. Summary metrics for this split.
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasMetricsSummary in interface Exercise.SplitSummaryOrBuilder
      Returns:
      Whether the metricsSummary field is set.
    • getMetricsSummary

      public MetricsSummary getMetricsSummary()
       Required. Summary metrics for this split.
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMetricsSummary in interface Exercise.SplitSummaryOrBuilder
      Returns:
      The metricsSummary.
    • getMetricsSummaryOrBuilder

      public MetricsSummaryOrBuilder getMetricsSummaryOrBuilder()
       Required. Summary metrics for this split.
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getMetricsSummaryOrBuilder in interface Exercise.SplitSummaryOrBuilder
    • getSplitTypeValue

      public int getSplitTypeValue()
       Required. Method used to split the exercise laps.
       Users may manually mark the lap as complete even if the tracking
       is automatic.
       
      .google.devicesandservices.health.v4.Exercise.SplitSummary.SplitType split_type = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSplitTypeValue in interface Exercise.SplitSummaryOrBuilder
      Returns:
      The enum numeric value on the wire for splitType.
    • getSplitType

      public Exercise.SplitSummary.SplitType getSplitType()
       Required. Method used to split the exercise laps.
       Users may manually mark the lap as complete even if the tracking
       is automatic.
       
      .google.devicesandservices.health.v4.Exercise.SplitSummary.SplitType split_type = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSplitType in interface Exercise.SplitSummaryOrBuilder
      Returns:
      The splitType.
    • 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 Exercise.SplitSummary parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Exercise.SplitSummary parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Exercise.SplitSummary parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

      public static Exercise.SplitSummary parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Exercise.SplitSummary parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Exercise.SplitSummary.Builder newBuilder()
    • newBuilder

      public static Exercise.SplitSummary.Builder newBuilder(Exercise.SplitSummary prototype)
    • toBuilder

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

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

      public static Exercise.SplitSummary getDefaultInstance()
    • parser

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

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