Class Servo.GetPositionResponse.Builder

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

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

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

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    the degrees from neutral by which the servo is currently rotated.
    int
    the degrees from neutral by which the servo is currently rotated.
    setPositionDeg(int value)
    the degrees from neutral by which the servo is currently rotated.

    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

    • getPositionDeg

      public int getPositionDeg()
       the degrees from neutral by which the servo is currently rotated.
       
      uint32 position_deg = 1 [json_name = "positionDeg"];
      Specified by:
      getPositionDeg in interface Servo.GetPositionResponseOrBuilder
      Returns:
      The positionDeg.
    • setPositionDeg

      public Servo.GetPositionResponse.Builder setPositionDeg(int value)
       the degrees from neutral by which the servo is currently rotated.
       
      uint32 position_deg = 1 [json_name = "positionDeg"];
      Parameters:
      value - The positionDeg to set.
      Returns:
      This builder for chaining.
    • clearPositionDeg

      public Servo.GetPositionResponse.Builder clearPositionDeg()
       the degrees from neutral by which the servo is currently rotated.
       
      uint32 position_deg = 1 [json_name = "positionDeg"];
      Returns:
      This builder for chaining.