Class MetricsSummary.MobilityMetrics.Builder

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

public static final class MetricsSummary.MobilityMetrics.Builder extends com.google.protobuf.GeneratedMessage.Builder<MetricsSummary.MobilityMetrics.Builder> implements MetricsSummary.MobilityMetricsOrBuilder
 Mobility workouts specific metrics
 
Protobuf type google.devicesandservices.health.v4.MetricsSummary.MobilityMetrics
  • 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<MetricsSummary.MobilityMetrics.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<MetricsSummary.MobilityMetrics.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<MetricsSummary.MobilityMetrics.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public MetricsSummary.MobilityMetrics.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<MetricsSummary.MobilityMetrics.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<MetricsSummary.MobilityMetrics.Builder>
    • mergeFrom

      public MetricsSummary.MobilityMetrics.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<MetricsSummary.MobilityMetrics.Builder>
      Throws:
      IOException
    • hasAvgCadenceStepsPerMinute

      public boolean hasAvgCadenceStepsPerMinute()
       Optional. Cadence is a measure of the frequency of your foot strikes.
       Steps / min in real time during workout.
       
      optional double avg_cadence_steps_per_minute = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAvgCadenceStepsPerMinute in interface MetricsSummary.MobilityMetricsOrBuilder
      Returns:
      Whether the avgCadenceStepsPerMinute field is set.
    • getAvgCadenceStepsPerMinute

      public double getAvgCadenceStepsPerMinute()
       Optional. Cadence is a measure of the frequency of your foot strikes.
       Steps / min in real time during workout.
       
      optional double avg_cadence_steps_per_minute = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAvgCadenceStepsPerMinute in interface MetricsSummary.MobilityMetricsOrBuilder
      Returns:
      The avgCadenceStepsPerMinute.
    • setAvgCadenceStepsPerMinute

      public MetricsSummary.MobilityMetrics.Builder setAvgCadenceStepsPerMinute(double value)
       Optional. Cadence is a measure of the frequency of your foot strikes.
       Steps / min in real time during workout.
       
      optional double avg_cadence_steps_per_minute = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The avgCadenceStepsPerMinute to set.
      Returns:
      This builder for chaining.
    • clearAvgCadenceStepsPerMinute

      public MetricsSummary.MobilityMetrics.Builder clearAvgCadenceStepsPerMinute()
       Optional. Cadence is a measure of the frequency of your foot strikes.
       Steps / min in real time during workout.
       
      optional double avg_cadence_steps_per_minute = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasAvgStrideLengthMillimeters

      public boolean hasAvgStrideLengthMillimeters()
       Optional. Stride length is a measure of the distance covered by a single
       stride
       
      optional int64 avg_stride_length_millimeters = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAvgStrideLengthMillimeters in interface MetricsSummary.MobilityMetricsOrBuilder
      Returns:
      Whether the avgStrideLengthMillimeters field is set.
    • getAvgStrideLengthMillimeters

      public long getAvgStrideLengthMillimeters()
       Optional. Stride length is a measure of the distance covered by a single
       stride
       
      optional int64 avg_stride_length_millimeters = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAvgStrideLengthMillimeters in interface MetricsSummary.MobilityMetricsOrBuilder
      Returns:
      The avgStrideLengthMillimeters.
    • setAvgStrideLengthMillimeters

      public MetricsSummary.MobilityMetrics.Builder setAvgStrideLengthMillimeters(long value)
       Optional. Stride length is a measure of the distance covered by a single
       stride
       
      optional int64 avg_stride_length_millimeters = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The avgStrideLengthMillimeters to set.
      Returns:
      This builder for chaining.
    • clearAvgStrideLengthMillimeters

      public MetricsSummary.MobilityMetrics.Builder clearAvgStrideLengthMillimeters()
       Optional. Stride length is a measure of the distance covered by a single
       stride
       
      optional int64 avg_stride_length_millimeters = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasAvgVerticalOscillationMillimeters

      public boolean hasAvgVerticalOscillationMillimeters()
       Optional. Distance off the ground your center of mass moves with each
       stride while running
       
      optional int64 avg_vertical_oscillation_millimeters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAvgVerticalOscillationMillimeters in interface MetricsSummary.MobilityMetricsOrBuilder
      Returns:
      Whether the avgVerticalOscillationMillimeters field is set.
    • getAvgVerticalOscillationMillimeters

      public long getAvgVerticalOscillationMillimeters()
       Optional. Distance off the ground your center of mass moves with each
       stride while running
       
      optional int64 avg_vertical_oscillation_millimeters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAvgVerticalOscillationMillimeters in interface MetricsSummary.MobilityMetricsOrBuilder
      Returns:
      The avgVerticalOscillationMillimeters.
    • setAvgVerticalOscillationMillimeters

      public MetricsSummary.MobilityMetrics.Builder setAvgVerticalOscillationMillimeters(long value)
       Optional. Distance off the ground your center of mass moves with each
       stride while running
       
      optional int64 avg_vertical_oscillation_millimeters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The avgVerticalOscillationMillimeters to set.
      Returns:
      This builder for chaining.
    • clearAvgVerticalOscillationMillimeters

      public MetricsSummary.MobilityMetrics.Builder clearAvgVerticalOscillationMillimeters()
       Optional. Distance off the ground your center of mass moves with each
       stride while running
       
      optional int64 avg_vertical_oscillation_millimeters = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasAvgVerticalRatio

      public boolean hasAvgVerticalRatio()
       Optional. Vertical oscillation/stride length between [5.0, 11.0].
       
      optional double avg_vertical_ratio = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAvgVerticalRatio in interface MetricsSummary.MobilityMetricsOrBuilder
      Returns:
      Whether the avgVerticalRatio field is set.
    • getAvgVerticalRatio

      public double getAvgVerticalRatio()
       Optional. Vertical oscillation/stride length between [5.0, 11.0].
       
      optional double avg_vertical_ratio = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAvgVerticalRatio in interface MetricsSummary.MobilityMetricsOrBuilder
      Returns:
      The avgVerticalRatio.
    • setAvgVerticalRatio

      public MetricsSummary.MobilityMetrics.Builder setAvgVerticalRatio(double value)
       Optional. Vertical oscillation/stride length between [5.0, 11.0].
       
      optional double avg_vertical_ratio = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The avgVerticalRatio to set.
      Returns:
      This builder for chaining.
    • clearAvgVerticalRatio

      public MetricsSummary.MobilityMetrics.Builder clearAvgVerticalRatio()
       Optional. Vertical oscillation/stride length between [5.0, 11.0].
       
      optional double avg_vertical_ratio = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasAvgGroundContactTimeDuration

      public boolean hasAvgGroundContactTimeDuration()
       Optional. The ground contact time for a particular stride is the amount
       of time for which the foot was in contact with the ground on that stride
       
      .google.protobuf.Duration avg_ground_contact_time_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasAvgGroundContactTimeDuration in interface MetricsSummary.MobilityMetricsOrBuilder
      Returns:
      Whether the avgGroundContactTimeDuration field is set.
    • getAvgGroundContactTimeDuration

      public com.google.protobuf.Duration getAvgGroundContactTimeDuration()
       Optional. The ground contact time for a particular stride is the amount
       of time for which the foot was in contact with the ground on that stride
       
      .google.protobuf.Duration avg_ground_contact_time_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAvgGroundContactTimeDuration in interface MetricsSummary.MobilityMetricsOrBuilder
      Returns:
      The avgGroundContactTimeDuration.
    • setAvgGroundContactTimeDuration

      public MetricsSummary.MobilityMetrics.Builder setAvgGroundContactTimeDuration(com.google.protobuf.Duration value)
       Optional. The ground contact time for a particular stride is the amount
       of time for which the foot was in contact with the ground on that stride
       
      .google.protobuf.Duration avg_ground_contact_time_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
    • setAvgGroundContactTimeDuration

      public MetricsSummary.MobilityMetrics.Builder setAvgGroundContactTimeDuration(com.google.protobuf.Duration.Builder builderForValue)
       Optional. The ground contact time for a particular stride is the amount
       of time for which the foot was in contact with the ground on that stride
       
      .google.protobuf.Duration avg_ground_contact_time_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
    • mergeAvgGroundContactTimeDuration

      public MetricsSummary.MobilityMetrics.Builder mergeAvgGroundContactTimeDuration(com.google.protobuf.Duration value)
       Optional. The ground contact time for a particular stride is the amount
       of time for which the foot was in contact with the ground on that stride
       
      .google.protobuf.Duration avg_ground_contact_time_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
    • clearAvgGroundContactTimeDuration

      public MetricsSummary.MobilityMetrics.Builder clearAvgGroundContactTimeDuration()
       Optional. The ground contact time for a particular stride is the amount
       of time for which the foot was in contact with the ground on that stride
       
      .google.protobuf.Duration avg_ground_contact_time_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getAvgGroundContactTimeDurationBuilder

      public com.google.protobuf.Duration.Builder getAvgGroundContactTimeDurationBuilder()
       Optional. The ground contact time for a particular stride is the amount
       of time for which the foot was in contact with the ground on that stride
       
      .google.protobuf.Duration avg_ground_contact_time_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
    • getAvgGroundContactTimeDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getAvgGroundContactTimeDurationOrBuilder()
       Optional. The ground contact time for a particular stride is the amount
       of time for which the foot was in contact with the ground on that stride
       
      .google.protobuf.Duration avg_ground_contact_time_duration = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAvgGroundContactTimeDurationOrBuilder in interface MetricsSummary.MobilityMetricsOrBuilder