Class Motor.Status.Builder

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

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

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

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns true if the motor is moving
    Returns true if the motor is powered
    Returns current position of the motor relative to its home
    boolean
    Returns true if the motor is moving
    boolean
    Returns true if the motor is powered
    double
    Returns current position of the motor relative to its home
    setIsMoving(boolean value)
    Returns true if the motor is moving
    setIsPowered(boolean value)
    Returns true if the motor is powered
    setPosition(double value)
    Returns 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

    • getIsPowered

      public boolean getIsPowered()
       Returns true if the motor is powered
       
      bool is_powered = 1 [json_name = "isPowered"];
      Specified by:
      getIsPowered in interface Motor.StatusOrBuilder
      Returns:
      The isPowered.
    • setIsPowered

      public Motor.Status.Builder setIsPowered(boolean value)
       Returns true if the motor is powered
       
      bool is_powered = 1 [json_name = "isPowered"];
      Parameters:
      value - The isPowered to set.
      Returns:
      This builder for chaining.
    • clearIsPowered

      public Motor.Status.Builder clearIsPowered()
       Returns true if the motor is powered
       
      bool is_powered = 1 [json_name = "isPowered"];
      Returns:
      This builder for chaining.
    • getPosition

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

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

      public Motor.Status.Builder clearPosition()
       Returns current position of the motor relative to its home
       
      double position = 3 [json_name = "position"];
      Returns:
      This builder for chaining.
    • getIsMoving

      public boolean getIsMoving()
       Returns true if the motor is moving
       
      bool is_moving = 4 [json_name = "isMoving"];
      Specified by:
      getIsMoving in interface Motor.StatusOrBuilder
      Returns:
      The isMoving.
    • setIsMoving

      public Motor.Status.Builder setIsMoving(boolean value)
       Returns true if the motor is moving
       
      bool is_moving = 4 [json_name = "isMoving"];
      Parameters:
      value - The isMoving to set.
      Returns:
      This builder for chaining.
    • clearIsMoving

      public Motor.Status.Builder clearIsMoving()
       Returns true if the motor is moving
       
      bool is_moving = 4 [json_name = "isMoving"];
      Returns:
      This builder for chaining.