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
  • Method Details

    • getName

      public String getName()
       the name of the servo, as registered
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Servo.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 interface Servo.MoveRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Servo.MoveRequest.Builder setName(String value)
       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

      public Servo.MoveRequest.Builder clearName()
       the name of the servo, as registered
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Servo.MoveRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       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 interface Servo.MoveRequestOrBuilder
      Returns:
      The angleDeg.
    • setAngleDeg

      public Servo.MoveRequest.Builder setAngleDeg(int value)
       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

      public Servo.MoveRequest.Builder 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 interface Servo.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 interface Servo.MoveRequestOrBuilder
      Returns:
      The extra.
    • setExtra

      public Servo.MoveRequest.Builder setExtra(com.google.protobuf.Struct value)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • setExtra

      public Servo.MoveRequest.Builder setExtra(com.google.protobuf.Struct.Builder builderForValue)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • mergeExtra

      public Servo.MoveRequest.Builder mergeExtra(com.google.protobuf.Struct value)
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];
    • clearExtra

      public Servo.MoveRequest.Builder clearExtra()
       Additional arguments to the method
       
      .google.protobuf.Struct extra = 99 [json_name = "extra"];