Package com.viam.component.motor.v1
Interface Motor.GoForRequestOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
Motor.GoForRequest
,Motor.GoForRequest.Builder
- Enclosing class:
- Motor
public static interface Motor.GoForRequestOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.Struct
getExtra()
Additional arguments to the methodgetName()
Name of a motorcom.google.protobuf.ByteString
Name of a motordouble
Number of revolutions relative to motor's start positiondouble
getRpm()
Speed of motor travel in rotations per minuteboolean
hasExtra()
Additional arguments to the methodMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getName
String getName()Name of a motor
string name = 1 [json_name = "name"];
- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Name of a motor
string name = 1 [json_name = "name"];
- Returns:
- The bytes for name.
-
getRpm
double getRpm()Speed of motor travel in rotations per minute
double rpm = 2 [json_name = "rpm"];
- Returns:
- The rpm.
-
getRevolutions
double getRevolutions()Number of revolutions relative to motor's start position
double revolutions = 3 [json_name = "revolutions"];
- Returns:
- The revolutions.
-
hasExtra
boolean hasExtra()Additional arguments to the method
.google.protobuf.Struct extra = 99 [json_name = "extra"];
- Returns:
- Whether the extra field is set.
-
getExtra
com.google.protobuf.Struct getExtra()Additional arguments to the method
.google.protobuf.Struct extra = 99 [json_name = "extra"];
- Returns:
- The extra.
-