Class Servo.Status.Builder

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

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

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

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    bool is_moving = 2 [json_name = "isMoving"];
    uint32 position_deg = 1 [json_name = "positionDeg"];
    boolean
    bool is_moving = 2 [json_name = "isMoving"];
    int
    uint32 position_deg = 1 [json_name = "positionDeg"];
    setIsMoving(boolean value)
    bool is_moving = 2 [json_name = "isMoving"];
    setPositionDeg(int value)
    uint32 position_deg = 1 [json_name = "positionDeg"];

    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()
      uint32 position_deg = 1 [json_name = "positionDeg"];
      Specified by:
      getPositionDeg in interface Servo.StatusOrBuilder
      Returns:
      The positionDeg.
    • setPositionDeg

      public Servo.Status.Builder setPositionDeg(int value)
      uint32 position_deg = 1 [json_name = "positionDeg"];
      Parameters:
      value - The positionDeg to set.
      Returns:
      This builder for chaining.
    • clearPositionDeg

      public Servo.Status.Builder clearPositionDeg()
      uint32 position_deg = 1 [json_name = "positionDeg"];
      Returns:
      This builder for chaining.
    • getIsMoving

      public boolean getIsMoving()
      bool is_moving = 2 [json_name = "isMoving"];
      Specified by:
      getIsMoving in interface Servo.StatusOrBuilder
      Returns:
      The isMoving.
    • setIsMoving

      public Servo.Status.Builder setIsMoving(boolean value)
      bool is_moving = 2 [json_name = "isMoving"];
      Parameters:
      value - The isMoving to set.
      Returns:
      This builder for chaining.
    • clearIsMoving

      public Servo.Status.Builder clearIsMoving()
      bool is_moving = 2 [json_name = "isMoving"];
      Returns:
      This builder for chaining.