Package com.viam.component.motor.v1
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 TypeMethodDescriptionCurrent position of the motor relative to its homedouble
Current position of the motor relative to its homesetPosition
(double value) 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
-
getPosition
public double getPosition()Current position of the motor relative to its home
double position = 1 [json_name = "position"];
- Specified by:
getPosition
in interfaceMotor.GetPositionResponseOrBuilder
- Returns:
- The position.
-
setPosition
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
Current position of the motor relative to its home
double position = 1 [json_name = "position"];
- Returns:
- This builder for chaining.
-