Class Motor.GoToRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Motor.GoToRequest,Motor.GoToRequest.Builder>
com.viam.component.motor.v1.Motor.GoToRequest.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Motor.GoToRequestOrBuilder, Cloneable
Enclosing class:
Motor.GoToRequest

public static final class Motor.GoToRequest.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Motor.GoToRequest,Motor.GoToRequest.Builder> implements Motor.GoToRequestOrBuilder
Protobuf type viam.component.motor.v1.GoToRequest
  • Method Details

    • getName

      public String getName()
       Name of a motor
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Motor.GoToRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of a motor
       
      string name = 1 [json_name = "name"];
      Specified by:
      getNameBytes in interface Motor.GoToRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Motor.GoToRequest.Builder setName(String value)
       Name of a motor
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Motor.GoToRequest.Builder clearName()
       Name of a motor
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Motor.GoToRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of a motor
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getRpm

      public double getRpm()
       Speed of motor travel in rotations per minute
       
      double rpm = 2 [json_name = "rpm"];
      Specified by:
      getRpm in interface Motor.GoToRequestOrBuilder
      Returns:
      The rpm.
    • setRpm

      public Motor.GoToRequest.Builder setRpm(double value)
       Speed of motor travel in rotations per minute
       
      double rpm = 2 [json_name = "rpm"];
      Parameters:
      value - The rpm to set.
      Returns:
      This builder for chaining.
    • clearRpm

      public Motor.GoToRequest.Builder clearRpm()
       Speed of motor travel in rotations per minute
       
      double rpm = 2 [json_name = "rpm"];
      Returns:
      This builder for chaining.
    • getPositionRevolutions

      public double getPositionRevolutions()
       Number of revolutions relative to motor's home home/zero
       
      double position_revolutions = 3 [json_name = "positionRevolutions"];
      Specified by:
      getPositionRevolutions in interface Motor.GoToRequestOrBuilder
      Returns:
      The positionRevolutions.
    • setPositionRevolutions

      public Motor.GoToRequest.Builder setPositionRevolutions(double value)
       Number of revolutions relative to motor's home home/zero
       
      double position_revolutions = 3 [json_name = "positionRevolutions"];
      Parameters:
      value - The positionRevolutions to set.
      Returns:
      This builder for chaining.
    • clearPositionRevolutions

      public Motor.GoToRequest.Builder clearPositionRevolutions()
       Number of revolutions relative to motor's home home/zero
       
      double position_revolutions = 3 [json_name = "positionRevolutions"];
      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 Motor.GoToRequestOrBuilder
      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 Motor.GoToRequestOrBuilder
      Returns:
      The extra.
    • setExtra

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

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

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

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