Class Encoder.GetPositionResponse.Builder

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

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

    • getValue

      public float getValue()
      float value = 1 [json_name = "value"];
      Specified by:
      getValue in interface Encoder.GetPositionResponseOrBuilder
      Returns:
      The value.
    • setValue

      public Encoder.GetPositionResponse.Builder setValue(float value)
      float value = 1 [json_name = "value"];
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      float value = 1 [json_name = "value"];
      Returns:
      This builder for chaining.
    • getPositionTypeValue

      public int getPositionTypeValue()
      .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"];
      Specified by:
      getPositionTypeValue in interface Encoder.GetPositionResponseOrBuilder
      Returns:
      The enum numeric value on the wire for positionType.
    • setPositionTypeValue

      public Encoder.GetPositionResponse.Builder setPositionTypeValue(int value)
      .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()
      .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"];
      Specified by:
      getPositionType in interface Encoder.GetPositionResponseOrBuilder
      Returns:
      The positionType.
    • setPositionType

      .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.GetPositionResponse.Builder clearPositionType()
      .viam.component.encoder.v1.PositionType position_type = 2 [json_name = "positionType"];
      Returns:
      This builder for chaining.