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 TypeMethodDescriptionaddAllControls(Iterable<String> values) Returns a list of all the controls (buttons and axes) that are available to a given Input ControlleraddControls(String value) Returns a list of all the controls (buttons and axes) that are available to a given Input ControlleraddControlsBytes(com.google.protobuf.ByteString value) Returns a list of all the controls (buttons and axes) that are available to a given Input ControllerReturns a list of all the controls (buttons and axes) that are available to a given Input ControllergetControls(int index) Returns a list of all the controls (buttons and axes) that are available to a given Input Controllercom.google.protobuf.ByteStringgetControlsBytes(int index) Returns a list of all the controls (buttons and axes) that are available to a given Input ControllerintReturns a list of all the controls (buttons and axes) that are available to a given Input ControllerReturns a list of all the controls (buttons and axes) that are available to a given Input ControllersetControls(int index, String value) Returns a list of all the controls (buttons and axes) that are available to a given Input ControllerMethods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
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:
getControlsListin interfaceInputController.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:
getControlsCountin interfaceInputController.GetControlsResponseOrBuilder- Returns:
- The count of controls.
-
getControls
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:
getControlsin interfaceInputController.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:
getControlsBytesin interfaceInputController.GetControlsResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the controls at the given index.
-
setControls
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.
-