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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllCancelledEvents(Iterable<String> values) Specify which event types to stop recieving events for This can be an empty listaddAllEvents(Iterable<String> values) Specify which event types to recieve events foraddCancelledEvents(String value) Specify which event types to stop recieving events for This can be an empty listaddCancelledEventsBytes(com.google.protobuf.ByteString value) Specify which event types to stop recieving events for This can be an empty listSpecify which event types to recieve events foraddEventsBytes(com.google.protobuf.ByteString value) Specify which event types to recieve events forSpecify which event types to stop recieving events for This can be an empty listName of a control (button or axis)Specify which event types to recieve events forgetCancelledEvents(int index) Specify which event types to stop recieving events for This can be an empty listcom.google.protobuf.ByteStringgetCancelledEventsBytes(int index) Specify which event types to stop recieving events for This can be an empty listintSpecify which event types to stop recieving events for This can be an empty listSpecify which event types to stop recieving events for This can be an empty listName of a control (button or axis)com.google.protobuf.ByteStringName of a control (button or axis)getEvents(int index) Specify which event types to recieve events forcom.google.protobuf.ByteStringgetEventsBytes(int index) Specify which event types to recieve events forintSpecify which event types to recieve events forSpecify which event types to recieve events forsetCancelledEvents(int index, String value) Specify which event types to stop recieving events for This can be an empty listsetControl(String value) Name of a control (button or axis)setControlBytes(com.google.protobuf.ByteString value) Name of a control (button or axis)Specify which event types to recieve events forMethods 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
-
getControl
Name of a control (button or axis)
string control = 1 [json_name = "control"];- Specified by:
getControlin interfaceInputController.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:
getControlBytesin interfaceInputController.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
Specify which event types to recieve events for
repeated string events = 2 [json_name = "events"];- Specified by:
getEventsListin interfaceInputController.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:
getEventsCountin interfaceInputController.StreamEventsRequest.EventsOrBuilder- Returns:
- The count of events.
-
getEvents
Specify which event types to recieve events for
repeated string events = 2 [json_name = "events"];- Specified by:
getEventsin interfaceInputController.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:
getEventsBytesin interfaceInputController.StreamEventsRequest.EventsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the events at the given index.
-
setEvents
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
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:
getCancelledEventsListin interfaceInputController.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:
getCancelledEventsCountin interfaceInputController.StreamEventsRequest.EventsOrBuilder- Returns:
- The count of cancelledEvents.
-
getCancelledEvents
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:
getCancelledEventsin interfaceInputController.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:
getCancelledEventsBytesin interfaceInputController.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.
-