Package com.viam.component.motor.v1
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 TypeMethodDescriptionReturns true if the motor is movingReturns true if the motor is poweredReturns current position of the motor relative to its homeboolean
Returns true if the motor is movingboolean
Returns true if the motor is powereddouble
Returns current position of the motor relative to its homesetIsMoving
(boolean value) Returns true if the motor is movingsetIsPowered
(boolean value) Returns true if the motor is poweredsetPosition
(double value) Returns current position of the motor relative to its homeMethods 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 interfaceMotor.StatusOrBuilder
- Returns:
- The isPowered.
-
setIsPowered
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
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 interfaceMotor.StatusOrBuilder
- Returns:
- The position.
-
setPosition
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
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 interfaceMotor.StatusOrBuilder
- Returns:
- The isMoving.
-
setIsMoving
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
Returns true if the motor is moving
bool is_moving = 4 [json_name = "isMoving"];
- Returns:
- This builder for chaining.
-