Class InputController.GetControlsResponse.Builder

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

public static final class InputController.GetControlsResponse.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<InputController.GetControlsResponse,InputController.GetControlsResponse.Builder> implements InputController.GetControlsResponseOrBuilder
Protobuf type viam.component.inputcontroller.v1.GetControlsResponse
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a list of all the controls (buttons and axes) that are available to a given Input Controller
    Returns a list of all the controls (buttons and axes) that are available to a given Input Controller
    addControlsBytes(com.google.protobuf.ByteString value)
    Returns a list of all the controls (buttons and axes) that are available to a given Input Controller
    Returns a list of all the controls (buttons and axes) that are available to a given Input Controller
    getControls(int index)
    Returns a list of all the controls (buttons and axes) that are available to a given Input Controller
    com.google.protobuf.ByteString
    getControlsBytes(int index)
    Returns a list of all the controls (buttons and axes) that are available to a given Input Controller
    int
    Returns a list of all the controls (buttons and axes) that are available to a given Input Controller
    Returns a list of all the controls (buttons and axes) that are available to a given Input Controller
    setControls(int index, String value)
    Returns a list of all the controls (buttons and axes) that are available to a given Input Controller

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getControlsList

      public List<String> getControlsList()
       Returns a list of all the controls (buttons and axes) that are
       available to a given Input Controller
       
      repeated string controls = 1 [json_name = "controls"];
      Specified by:
      getControlsList in interface InputController.GetControlsResponseOrBuilder
      Returns:
      A list containing the controls.
    • getControlsCount

      public int getControlsCount()
       Returns a list of all the controls (buttons and axes) that are
       available to a given Input Controller
       
      repeated string controls = 1 [json_name = "controls"];
      Specified by:
      getControlsCount in interface InputController.GetControlsResponseOrBuilder
      Returns:
      The count of controls.
    • getControls

      public String getControls(int index)
       Returns a list of all the controls (buttons and axes) that are
       available to a given Input Controller
       
      repeated string controls = 1 [json_name = "controls"];
      Specified by:
      getControls in interface InputController.GetControlsResponseOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The controls at the given index.
    • getControlsBytes

      public com.google.protobuf.ByteString getControlsBytes(int index)
       Returns a list of all the controls (buttons and axes) that are
       available to a given Input Controller
       
      repeated string controls = 1 [json_name = "controls"];
      Specified by:
      getControlsBytes in interface InputController.GetControlsResponseOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the controls at the given index.
    • setControls

      public InputController.GetControlsResponse.Builder setControls(int index, String value)
       Returns a list of all the controls (buttons and axes) that are
       available to a given Input Controller
       
      repeated string controls = 1 [json_name = "controls"];
      Parameters:
      index - The index to set the value at.
      value - The controls to set.
      Returns:
      This builder for chaining.
    • addControls

       Returns a list of all the controls (buttons and axes) that are
       available to a given Input Controller
       
      repeated string controls = 1 [json_name = "controls"];
      Parameters:
      value - The controls to add.
      Returns:
      This builder for chaining.
    • addAllControls

       Returns a list of all the controls (buttons and axes) that are
       available to a given Input Controller
       
      repeated string controls = 1 [json_name = "controls"];
      Parameters:
      values - The controls to add.
      Returns:
      This builder for chaining.
    • clearControls

       Returns a list of all the controls (buttons and axes) that are
       available to a given Input Controller
       
      repeated string controls = 1 [json_name = "controls"];
      Returns:
      This builder for chaining.
    • addControlsBytes

      public InputController.GetControlsResponse.Builder addControlsBytes(com.google.protobuf.ByteString value)
       Returns a list of all the controls (buttons and axes) that are
       available to a given Input Controller
       
      repeated string controls = 1 [json_name = "controls"];
      Parameters:
      value - The bytes of the controls to add.
      Returns:
      This builder for chaining.