Class InputController.Event.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<InputController.Event,InputController.Event.Builder>
com.viam.component.inputcontroller.v1.InputController.Event.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, InputController.EventOrBuilder, Cloneable
Enclosing class:
InputController.Event

public static final class InputController.Event.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<InputController.Event,InputController.Event.Builder> implements InputController.EventOrBuilder
Protobuf type viam.component.inputcontroller.v1.Event
  • Method Details

    • hasTime

      public boolean hasTime()
       Timestamp of event
       
      .google.protobuf.Timestamp time = 1 [json_name = "time"];
      Specified by:
      hasTime in interface InputController.EventOrBuilder
      Returns:
      Whether the time field is set.
    • getTime

      public com.google.protobuf.Timestamp getTime()
       Timestamp of event
       
      .google.protobuf.Timestamp time = 1 [json_name = "time"];
      Specified by:
      getTime in interface InputController.EventOrBuilder
      Returns:
      The time.
    • setTime

      public InputController.Event.Builder setTime(com.google.protobuf.Timestamp value)
       Timestamp of event
       
      .google.protobuf.Timestamp time = 1 [json_name = "time"];
    • setTime

      public InputController.Event.Builder setTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp of event
       
      .google.protobuf.Timestamp time = 1 [json_name = "time"];
    • mergeTime

      public InputController.Event.Builder mergeTime(com.google.protobuf.Timestamp value)
       Timestamp of event
       
      .google.protobuf.Timestamp time = 1 [json_name = "time"];
    • clearTime

      public InputController.Event.Builder clearTime()
       Timestamp of event
       
      .google.protobuf.Timestamp time = 1 [json_name = "time"];
    • getEvent

      public String getEvent()
       An event type (eg: ButtonPress, ButtonRelease)
       
      string event = 2 [json_name = "event"];
      Specified by:
      getEvent in interface InputController.EventOrBuilder
      Returns:
      The event.
    • getEventBytes

      public com.google.protobuf.ByteString getEventBytes()
       An event type (eg: ButtonPress, ButtonRelease)
       
      string event = 2 [json_name = "event"];
      Specified by:
      getEventBytes in interface InputController.EventOrBuilder
      Returns:
      The bytes for event.
    • setEvent

      public InputController.Event.Builder setEvent(String value)
       An event type (eg: ButtonPress, ButtonRelease)
       
      string event = 2 [json_name = "event"];
      Parameters:
      value - The event to set.
      Returns:
      This builder for chaining.
    • clearEvent

      public InputController.Event.Builder clearEvent()
       An event type (eg: ButtonPress, ButtonRelease)
       
      string event = 2 [json_name = "event"];
      Returns:
      This builder for chaining.
    • setEventBytes

      public InputController.Event.Builder setEventBytes(com.google.protobuf.ByteString value)
       An event type (eg: ButtonPress, ButtonRelease)
       
      string event = 2 [json_name = "event"];
      Parameters:
      value - The bytes for event to set.
      Returns:
      This builder for chaining.
    • getControl

      public String getControl()
       A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)
       
      string control = 3 [json_name = "control"];
      Specified by:
      getControl in interface InputController.EventOrBuilder
      Returns:
      The control.
    • getControlBytes

      public com.google.protobuf.ByteString getControlBytes()
       A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)
       
      string control = 3 [json_name = "control"];
      Specified by:
      getControlBytes in interface InputController.EventOrBuilder
      Returns:
      The bytes for control.
    • setControl

      public InputController.Event.Builder setControl(String value)
       A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)
       
      string control = 3 [json_name = "control"];
      Parameters:
      value - The control to set.
      Returns:
      This builder for chaining.
    • clearControl

      public InputController.Event.Builder clearControl()
       A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)
       
      string control = 3 [json_name = "control"];
      Returns:
      This builder for chaining.
    • setControlBytes

      public InputController.Event.Builder setControlBytes(com.google.protobuf.ByteString value)
       A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)
       
      string control = 3 [json_name = "control"];
      Parameters:
      value - The bytes for control to set.
      Returns:
      This builder for chaining.
    • getValue

      public double getValue()
       0 or 1 for buttons, -1.0 to +1.0 for axes
       
      double value = 4 [json_name = "value"];
      Specified by:
      getValue in interface InputController.EventOrBuilder
      Returns:
      The value.
    • setValue

      public InputController.Event.Builder setValue(double value)
       0 or 1 for buttons, -1.0 to +1.0 for axes
       
      double value = 4 [json_name = "value"];
      Parameters:
      value - The value to set.
      Returns:
      This builder for chaining.
    • clearValue

      public InputController.Event.Builder clearValue()
       0 or 1 for buttons, -1.0 to +1.0 for axes
       
      double value = 4 [json_name = "value"];
      Returns:
      This builder for chaining.