Class Exercise.SplitSummary.Builder

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

public static final class Exercise.SplitSummary.Builder extends com.google.protobuf.GeneratedMessage.Builder<Exercise.SplitSummary.Builder> 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
  • 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.Builder<Exercise.SplitSummary.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Exercise.SplitSummary.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Exercise.SplitSummary.Builder>
    • getDefaultInstanceForType

      public Exercise.SplitSummary getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public Exercise.SplitSummary.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Exercise.SplitSummary.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Exercise.SplitSummary.Builder>
    • mergeFrom

      public Exercise.SplitSummary.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Exercise.SplitSummary.Builder>
      Throws:
      IOException
    • 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.
    • setStartTime

      public Exercise.SplitSummary.Builder setStartTime(com.google.protobuf.Timestamp value)
       Required. Lap start time
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • setStartTime

      public Exercise.SplitSummary.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. Lap start time
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeStartTime

      public Exercise.SplitSummary.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Required. Lap start time
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearStartTime

      public Exercise.SplitSummary.Builder clearStartTime()
       Required. Lap start time
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Required. Lap start time
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • 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.
    • setStartUtcOffset

      public Exercise.SplitSummary.Builder setStartUtcOffset(com.google.protobuf.Duration value)
       Required. Lap start time offset from UTC
       
      .google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • setStartUtcOffset

      public Exercise.SplitSummary.Builder setStartUtcOffset(com.google.protobuf.Duration.Builder builderForValue)
       Required. Lap start time offset from UTC
       
      .google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeStartUtcOffset

      public Exercise.SplitSummary.Builder mergeStartUtcOffset(com.google.protobuf.Duration value)
       Required. Lap start time offset from UTC
       
      .google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearStartUtcOffset

      public Exercise.SplitSummary.Builder clearStartUtcOffset()
       Required. Lap start time offset from UTC
       
      .google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • getStartUtcOffsetBuilder

      public com.google.protobuf.Duration.Builder getStartUtcOffsetBuilder()
       Required. Lap start time offset from UTC
       
      .google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • 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.
    • setEndTime

      public Exercise.SplitSummary.Builder setEndTime(com.google.protobuf.Timestamp value)
       Required. Lap end time
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • setEndTime

      public Exercise.SplitSummary.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. Lap end time
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeEndTime

      public Exercise.SplitSummary.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       Required. Lap end time
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearEndTime

      public Exercise.SplitSummary.Builder clearEndTime()
       Required. Lap end time
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       Required. Lap end time
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • 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.
    • setEndUtcOffset

      public Exercise.SplitSummary.Builder setEndUtcOffset(com.google.protobuf.Duration value)
       Required. Lap end time offset from UTC
       
      .google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
    • setEndUtcOffset

      public Exercise.SplitSummary.Builder setEndUtcOffset(com.google.protobuf.Duration.Builder builderForValue)
       Required. Lap end time offset from UTC
       
      .google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergeEndUtcOffset

      public Exercise.SplitSummary.Builder mergeEndUtcOffset(com.google.protobuf.Duration value)
       Required. Lap end time offset from UTC
       
      .google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearEndUtcOffset

      public Exercise.SplitSummary.Builder clearEndUtcOffset()
       Required. Lap end time offset from UTC
       
      .google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
    • getEndUtcOffsetBuilder

      public com.google.protobuf.Duration.Builder getEndUtcOffsetBuilder()
       Required. Lap end time offset from UTC
       
      .google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
    • 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.
    • setActiveDuration

      public Exercise.SplitSummary.Builder setActiveDuration(com.google.protobuf.Duration value)
       Output only. Lap time excluding the pauses.
       
      .google.protobuf.Duration active_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setActiveDuration

      public Exercise.SplitSummary.Builder setActiveDuration(com.google.protobuf.Duration.Builder builderForValue)
       Output only. Lap time excluding the pauses.
       
      .google.protobuf.Duration active_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeActiveDuration

      public Exercise.SplitSummary.Builder mergeActiveDuration(com.google.protobuf.Duration value)
       Output only. Lap time excluding the pauses.
       
      .google.protobuf.Duration active_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearActiveDuration

      public Exercise.SplitSummary.Builder clearActiveDuration()
       Output only. Lap time excluding the pauses.
       
      .google.protobuf.Duration active_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getActiveDurationBuilder

      public com.google.protobuf.Duration.Builder getActiveDurationBuilder()
       Output only. Lap time excluding the pauses.
       
      .google.protobuf.Duration active_duration = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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.
    • setMetricsSummary

      public Exercise.SplitSummary.Builder setMetricsSummary(MetricsSummary value)
       Required. Summary metrics for this split.
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 6 [(.google.api.field_behavior) = REQUIRED];
    • setMetricsSummary

      public Exercise.SplitSummary.Builder setMetricsSummary(MetricsSummary.Builder builderForValue)
       Required. Summary metrics for this split.
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 6 [(.google.api.field_behavior) = REQUIRED];
    • mergeMetricsSummary

      public Exercise.SplitSummary.Builder mergeMetricsSummary(MetricsSummary value)
       Required. Summary metrics for this split.
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 6 [(.google.api.field_behavior) = REQUIRED];
    • clearMetricsSummary

      public Exercise.SplitSummary.Builder clearMetricsSummary()
       Required. Summary metrics for this split.
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 6 [(.google.api.field_behavior) = REQUIRED];
    • getMetricsSummaryBuilder

      public MetricsSummary.Builder getMetricsSummaryBuilder()
       Required. Summary metrics for this split.
       
      .google.devicesandservices.health.v4.MetricsSummary metrics_summary = 6 [(.google.api.field_behavior) = REQUIRED];
    • 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.
    • setSplitTypeValue

      public Exercise.SplitSummary.Builder setSplitTypeValue(int value)
       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];
      Parameters:
      value - The enum numeric value on the wire for splitType to set.
      Returns:
      This builder for chaining.
    • 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.
    • setSplitType

       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];
      Parameters:
      value - The splitType to set.
      Returns:
      This builder for chaining.
    • clearSplitType

      public Exercise.SplitSummary.Builder clearSplitType()
       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];
      Returns:
      This builder for chaining.