Class Encoder.GetPositionRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Encoder.GetPositionRequest,Encoder.GetPositionRequest.Builder>
com.viam.component.encoder.v1.Encoder.GetPositionRequest.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Encoder.GetPositionRequestOrBuilder, Cloneable
Enclosing class:
Encoder.GetPositionRequest

public static final class Encoder.GetPositionRequest.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Encoder.GetPositionRequest,Encoder.GetPositionRequest.Builder> implements Encoder.GetPositionRequestOrBuilder
Protobuf type viam.component.encoder.v1.GetPositionRequest
  • Method Details

    • getName

      public String getName()
       Name of encoder
       
      string name = 1 [json_name = "name"];
      Specified by:
      getName in interface Encoder.GetPositionRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

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

       Name of encoder
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Name of encoder
       
      string name = 1 [json_name = "name"];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Encoder.GetPositionRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of encoder
       
      string name = 1 [json_name = "name"];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasPositionType

      public boolean hasPositionType()
       If supplied, the response will return the specified
       position type. If the driver does not implement
       the requested type, this call will return an error.
       If position type is not specified, the response
       will return a default according to the driver.
       
      optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"];
      Specified by:
      hasPositionType in interface Encoder.GetPositionRequestOrBuilder
      Returns:
      Whether the positionType field is set.
    • getPositionTypeValue

      public int getPositionTypeValue()
       If supplied, the response will return the specified
       position type. If the driver does not implement
       the requested type, this call will return an error.
       If position type is not specified, the response
       will return a default according to the driver.
       
      optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"];
      Specified by:
      getPositionTypeValue in interface Encoder.GetPositionRequestOrBuilder
      Returns:
      The enum numeric value on the wire for positionType.
    • setPositionTypeValue

      public Encoder.GetPositionRequest.Builder setPositionTypeValue(int value)
       If supplied, the response will return the specified
       position type. If the driver does not implement
       the requested type, this call will return an error.
       If position type is not specified, the response
       will return a default according to the driver.
       
      optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"];
      Parameters:
      value - The positionType to set.
      Returns:
      This builder for chaining.
    • getPositionType

      public Encoder.PositionType getPositionType()
       If supplied, the response will return the specified
       position type. If the driver does not implement
       the requested type, this call will return an error.
       If position type is not specified, the response
       will return a default according to the driver.
       
      optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"];
      Specified by:
      getPositionType in interface Encoder.GetPositionRequestOrBuilder
      Returns:
      The positionType.
    • setPositionType

       If supplied, the response will return the specified
       position type. If the driver does not implement
       the requested type, this call will return an error.
       If position type is not specified, the response
       will return a default according to the driver.
       
      optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"];
      Parameters:
      value - The enum numeric value on the wire for positionType to set.
      Returns:
      This builder for chaining.
    • clearPositionType

      public Encoder.GetPositionRequest.Builder clearPositionType()
       If supplied, the response will return the specified
       position type. If the driver does not implement
       the requested type, this call will return an error.
       If position type is not specified, the response
       will return a default according to the driver.
       
      optional .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"];
      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 Encoder.GetPositionRequestOrBuilder
      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 Encoder.GetPositionRequestOrBuilder
      Returns:
      The extra.
    • setExtra

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

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

      public Encoder.GetPositionRequest.Builder mergeExtra(com.google.protobuf.Struct value)
       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"];