Class InputController.Event
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<InputController.Event,InputController.Event.Builder>
com.viam.component.inputcontroller.v1.InputController.Event
- All Implemented Interfaces:
com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,InputController.EventOrBuilder
- Enclosing class:
- InputController
public static final class InputController.Event
extends com.google.protobuf.GeneratedMessageLite<InputController.Event,InputController.Event.Builder>
implements InputController.EventOrBuilder
Protobuf type
viam.component.inputcontroller.v1.Event
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Protobuf typeviam.component.inputcontroller.v1.Event
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,
?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) A 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)static InputController.Event
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 eventnewBuilder
(InputController.Event prototype) static InputController.Event
parseDelimitedFrom
(InputStream input) static InputController.Event
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InputController.Event
parseFrom
(byte[] data) static InputController.Event
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InputController.Event
parseFrom
(com.google.protobuf.ByteString data) static InputController.Event
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InputController.Event
parseFrom
(com.google.protobuf.CodedInputStream input) static InputController.Event
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InputController.Event
parseFrom
(InputStream input) static InputController.Event
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InputController.Event
parseFrom
(ByteBuffer data) static InputController.Event
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<InputController.Event>
parser()
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
TIME_FIELD_NUMBER
public static final int TIME_FIELD_NUMBER- See Also:
-
EVENT_FIELD_NUMBER
public static final int EVENT_FIELD_NUMBER- See Also:
-
CONTROL_FIELD_NUMBER
public static final int CONTROL_FIELD_NUMBER- See Also:
-
VALUE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
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.
-
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.
-
parseFrom
public static InputController.Event parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InputController.Event parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InputController.Event parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InputController.Event parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InputController.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static InputController.Event parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static InputController.Event parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static InputController.Event parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static InputController.Event parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static InputController.Event parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<InputController.Event,
InputController.Event.Builder>
-
getDefaultInstance
-
parser
-