Class InputController.StreamEventsRequest.Events.Builder

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

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

    • getControl

      public String getControl()
       Name of a control (button or axis)
       
      string control = 1 [json_name = "control"];
      Specified by:
      getControl in interface InputController.StreamEventsRequest.EventsOrBuilder
      Returns:
      The control.
    • getControlBytes

      public com.google.protobuf.ByteString getControlBytes()
       Name of a control (button or axis)
       
      string control = 1 [json_name = "control"];
      Specified by:
      getControlBytes in interface InputController.StreamEventsRequest.EventsOrBuilder
      Returns:
      The bytes for control.
    • setControl

       Name of a control (button or axis)
       
      string control = 1 [json_name = "control"];
      Parameters:
      value - The control to set.
      Returns:
      This builder for chaining.
    • clearControl

       Name of a control (button or axis)
       
      string control = 1 [json_name = "control"];
      Returns:
      This builder for chaining.
    • setControlBytes

      public InputController.StreamEventsRequest.Events.Builder setControlBytes(com.google.protobuf.ByteString value)
       Name of a control (button or axis)
       
      string control = 1 [json_name = "control"];
      Parameters:
      value - The bytes for control to set.
      Returns:
      This builder for chaining.
    • getEventsList

      public List<String> getEventsList()
       Specify which event types to recieve events for
       
      repeated string events = 2 [json_name = "events"];
      Specified by:
      getEventsList in interface InputController.StreamEventsRequest.EventsOrBuilder
      Returns:
      A list containing the events.
    • getEventsCount

      public int getEventsCount()
       Specify which event types to recieve events for
       
      repeated string events = 2 [json_name = "events"];
      Specified by:
      getEventsCount in interface InputController.StreamEventsRequest.EventsOrBuilder
      Returns:
      The count of events.
    • getEvents

      public String getEvents(int index)
       Specify which event types to recieve events for
       
      repeated string events = 2 [json_name = "events"];
      Specified by:
      getEvents in interface InputController.StreamEventsRequest.EventsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The events at the given index.
    • getEventsBytes

      public com.google.protobuf.ByteString getEventsBytes(int index)
       Specify which event types to recieve events for
       
      repeated string events = 2 [json_name = "events"];
      Specified by:
      getEventsBytes in interface InputController.StreamEventsRequest.EventsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the events at the given index.
    • setEvents

      public InputController.StreamEventsRequest.Events.Builder setEvents(int index, String value)
       Specify which event types to recieve events for
       
      repeated string events = 2 [json_name = "events"];
      Parameters:
      index - The index to set the value at.
      value - The events to set.
      Returns:
      This builder for chaining.
    • addEvents

       Specify which event types to recieve events for
       
      repeated string events = 2 [json_name = "events"];
      Parameters:
      value - The events to add.
      Returns:
      This builder for chaining.
    • addAllEvents

       Specify which event types to recieve events for
       
      repeated string events = 2 [json_name = "events"];
      Parameters:
      values - The events to add.
      Returns:
      This builder for chaining.
    • clearEvents

       Specify which event types to recieve events for
       
      repeated string events = 2 [json_name = "events"];
      Returns:
      This builder for chaining.
    • addEventsBytes

      public InputController.StreamEventsRequest.Events.Builder addEventsBytes(com.google.protobuf.ByteString value)
       Specify which event types to recieve events for
       
      repeated string events = 2 [json_name = "events"];
      Parameters:
      value - The bytes of the events to add.
      Returns:
      This builder for chaining.
    • getCancelledEventsList

      public List<String> getCancelledEventsList()
       Specify which event types to stop recieving events for
       This can be an empty list
       
      repeated string cancelled_events = 3 [json_name = "cancelledEvents"];
      Specified by:
      getCancelledEventsList in interface InputController.StreamEventsRequest.EventsOrBuilder
      Returns:
      A list containing the cancelledEvents.
    • getCancelledEventsCount

      public int getCancelledEventsCount()
       Specify which event types to stop recieving events for
       This can be an empty list
       
      repeated string cancelled_events = 3 [json_name = "cancelledEvents"];
      Specified by:
      getCancelledEventsCount in interface InputController.StreamEventsRequest.EventsOrBuilder
      Returns:
      The count of cancelledEvents.
    • getCancelledEvents

      public String getCancelledEvents(int index)
       Specify which event types to stop recieving events for
       This can be an empty list
       
      repeated string cancelled_events = 3 [json_name = "cancelledEvents"];
      Specified by:
      getCancelledEvents in interface InputController.StreamEventsRequest.EventsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The cancelledEvents at the given index.
    • getCancelledEventsBytes

      public com.google.protobuf.ByteString getCancelledEventsBytes(int index)
       Specify which event types to stop recieving events for
       This can be an empty list
       
      repeated string cancelled_events = 3 [json_name = "cancelledEvents"];
      Specified by:
      getCancelledEventsBytes in interface InputController.StreamEventsRequest.EventsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the cancelledEvents at the given index.
    • setCancelledEvents

      public InputController.StreamEventsRequest.Events.Builder setCancelledEvents(int index, String value)
       Specify which event types to stop recieving events for
       This can be an empty list
       
      repeated string cancelled_events = 3 [json_name = "cancelledEvents"];
      Parameters:
      index - The index to set the value at.
      value - The cancelledEvents to set.
      Returns:
      This builder for chaining.
    • addCancelledEvents

       Specify which event types to stop recieving events for
       This can be an empty list
       
      repeated string cancelled_events = 3 [json_name = "cancelledEvents"];
      Parameters:
      value - The cancelledEvents to add.
      Returns:
      This builder for chaining.
    • addAllCancelledEvents

      public InputController.StreamEventsRequest.Events.Builder addAllCancelledEvents(Iterable<String> values)
       Specify which event types to stop recieving events for
       This can be an empty list
       
      repeated string cancelled_events = 3 [json_name = "cancelledEvents"];
      Parameters:
      values - The cancelledEvents to add.
      Returns:
      This builder for chaining.
    • clearCancelledEvents

       Specify which event types to stop recieving events for
       This can be an empty list
       
      repeated string cancelled_events = 3 [json_name = "cancelledEvents"];
      Returns:
      This builder for chaining.
    • addCancelledEventsBytes

      public InputController.StreamEventsRequest.Events.Builder addCancelledEventsBytes(com.google.protobuf.ByteString value)
       Specify which event types to stop recieving events for
       This can be an empty list
       
      repeated string cancelled_events = 3 [json_name = "cancelledEvents"];
      Parameters:
      value - The bytes of the cancelledEvents to add.
      Returns:
      This builder for chaining.