Class Motor.GetPositionResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Motor.GetPositionResponse,Motor.GetPositionResponse.Builder>
com.viam.component.motor.v1.Motor.GetPositionResponse.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Motor.GetPositionResponseOrBuilder, Cloneable
Enclosing class:
Motor.GetPositionResponse

public static final class Motor.GetPositionResponse.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Motor.GetPositionResponse,Motor.GetPositionResponse.Builder> implements Motor.GetPositionResponseOrBuilder
Protobuf type viam.component.motor.v1.GetPositionResponse
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    Current position of the motor relative to its home
    double
    Current position of the motor relative to its home
    setPosition(double value)
    Current position of the motor relative to its home

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getPosition

      public double getPosition()
       Current position of the motor relative to its home
       
      double position = 1 [json_name = "position"];
      Specified by:
      getPosition in interface Motor.GetPositionResponseOrBuilder
      Returns:
      The position.
    • setPosition

      public Motor.GetPositionResponse.Builder setPosition(double value)
       Current position of the motor relative to its home
       
      double position = 1 [json_name = "position"];
      Parameters:
      value - The position to set.
      Returns:
      This builder for chaining.
    • clearPosition

      public Motor.GetPositionResponse.Builder clearPosition()
       Current position of the motor relative to its home
       
      double position = 1 [json_name = "position"];
      Returns:
      This builder for chaining.