Package com.viam.component.servo.v1
Class Servo.MoveRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Servo.MoveRequest,Servo.MoveRequest.Builder>
com.viam.component.servo.v1.Servo.MoveRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,Servo.MoveRequestOrBuilder
,Cloneable
- Enclosing class:
- Servo.MoveRequest
public static final class Servo.MoveRequest.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Servo.MoveRequest,Servo.MoveRequest.Builder>
implements Servo.MoveRequestOrBuilder
Protobuf type
viam.component.servo.v1.MoveRequest
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionthe degrees by which to rotate the servo.Additional arguments to the methodthe name of the servo, as registeredint
the degrees by which to rotate the servo.com.google.protobuf.Struct
getExtra()
Additional arguments to the methodgetName()
the name of the servo, as registeredcom.google.protobuf.ByteString
the name of the servo, as registeredboolean
hasExtra()
Additional arguments to the methodmergeExtra
(com.google.protobuf.Struct value) Additional arguments to the methodsetAngleDeg
(int value) the degrees by which to rotate the servo.setExtra
(com.google.protobuf.Struct value) Additional arguments to the methodsetExtra
(com.google.protobuf.Struct.Builder builderForValue) Additional arguments to the methodthe name of the servo, as registeredsetNameBytes
(com.google.protobuf.ByteString value) the name of the servo, as registeredMethods 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
-
getName
the name of the servo, as registered
string name = 1 [json_name = "name"];
- Specified by:
getName
in interfaceServo.MoveRequestOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()the name of the servo, as registered
string name = 1 [json_name = "name"];
- Specified by:
getNameBytes
in interfaceServo.MoveRequestOrBuilder
- Returns:
- The bytes for name.
-
setName
the name of the servo, as registered
string name = 1 [json_name = "name"];
- Parameters:
value
- The name to set.- Returns:
- This builder for chaining.
-
clearName
the name of the servo, as registered
string name = 1 [json_name = "name"];
- Returns:
- This builder for chaining.
-
setNameBytes
the name of the servo, as registered
string name = 1 [json_name = "name"];
- Parameters:
value
- The bytes for name to set.- Returns:
- This builder for chaining.
-
getAngleDeg
public int getAngleDeg()the degrees by which to rotate the servo.
uint32 angle_deg = 2 [json_name = "angleDeg"];
- Specified by:
getAngleDeg
in interfaceServo.MoveRequestOrBuilder
- Returns:
- The angleDeg.
-
setAngleDeg
the degrees by which to rotate the servo.
uint32 angle_deg = 2 [json_name = "angleDeg"];
- Parameters:
value
- The angleDeg to set.- Returns:
- This builder for chaining.
-
clearAngleDeg
the degrees by which to rotate the servo.
uint32 angle_deg = 2 [json_name = "angleDeg"];
- Returns:
- This builder for chaining.
-
hasExtra
public boolean hasExtra()Additional arguments to the method
.google.protobuf.Struct extra = 99 [json_name = "extra"];
- Specified by:
hasExtra
in interfaceServo.MoveRequestOrBuilder
- Returns:
- Whether the extra field is set.
-
getExtra
public com.google.protobuf.Struct getExtra()Additional arguments to the method
.google.protobuf.Struct extra = 99 [json_name = "extra"];
- Specified by:
getExtra
in interfaceServo.MoveRequestOrBuilder
- Returns:
- The extra.
-
setExtra
Additional arguments to the method
.google.protobuf.Struct extra = 99 [json_name = "extra"];
-
setExtra
Additional arguments to the method
.google.protobuf.Struct extra = 99 [json_name = "extra"];
-
mergeExtra
Additional arguments to the method
.google.protobuf.Struct extra = 99 [json_name = "extra"];
-
clearExtra
Additional arguments to the method
.google.protobuf.Struct extra = 99 [json_name = "extra"];
-