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
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionA control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)An event type (eg: ButtonPress, ButtonRelease)Timestamp of event0 or 1 for buttons, -1.0 to +1.0 for axesA control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)com.google.protobuf.ByteString
A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)getEvent()
An event type (eg: ButtonPress, ButtonRelease)com.google.protobuf.ByteString
An event type (eg: ButtonPress, ButtonRelease)com.google.protobuf.Timestamp
getTime()
Timestamp of eventdouble
getValue()
0 or 1 for buttons, -1.0 to +1.0 for axesboolean
hasTime()
Timestamp of eventmergeTime
(com.google.protobuf.Timestamp value) Timestamp of eventsetControl
(String value) A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)setControlBytes
(com.google.protobuf.ByteString value) A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)An event type (eg: ButtonPress, ButtonRelease)setEventBytes
(com.google.protobuf.ByteString value) An event type (eg: ButtonPress, ButtonRelease)setTime
(com.google.protobuf.Timestamp value) Timestamp of eventsetTime
(com.google.protobuf.Timestamp.Builder builderForValue) Timestamp of eventsetValue
(double value) 0 or 1 for buttons, -1.0 to +1.0 for axesMethods 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
-
hasTime
public boolean hasTime()Timestamp of event
.google.protobuf.Timestamp time = 1 [json_name = "time"];
- Specified by:
hasTime
in interfaceInputController.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 interfaceInputController.EventOrBuilder
- Returns:
- The time.
-
setTime
Timestamp of event
.google.protobuf.Timestamp time = 1 [json_name = "time"];
-
setTime
Timestamp of event
.google.protobuf.Timestamp time = 1 [json_name = "time"];
-
mergeTime
Timestamp of event
.google.protobuf.Timestamp time = 1 [json_name = "time"];
-
clearTime
Timestamp of event
.google.protobuf.Timestamp time = 1 [json_name = "time"];
-
getEvent
An event type (eg: ButtonPress, ButtonRelease)
string event = 2 [json_name = "event"];
- Specified by:
getEvent
in interfaceInputController.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 interfaceInputController.EventOrBuilder
- Returns:
- The bytes for event.
-
setEvent
An event type (eg: ButtonPress, ButtonRelease)
string event = 2 [json_name = "event"];
- Parameters:
value
- The event to set.- Returns:
- This builder for chaining.
-
clearEvent
An event type (eg: ButtonPress, ButtonRelease)
string event = 2 [json_name = "event"];
- Returns:
- This builder for chaining.
-
setEventBytes
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
A control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)
string control = 3 [json_name = "control"];
- Specified by:
getControl
in interfaceInputController.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 interfaceInputController.EventOrBuilder
- Returns:
- The bytes for control.
-
setControl
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
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
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 interfaceInputController.EventOrBuilder
- Returns:
- The value.
-
setValue
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
0 or 1 for buttons, -1.0 to +1.0 for axes
double value = 4 [json_name = "value"];
- Returns:
- This builder for chaining.
-