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
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typeviam.component.inputcontroller.v1.EventNested 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(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.ByteStringA control, can be a button (eg: ButtonSouth) or an axis (eg: AbsoluteX)static InputController.EventgetEvent()An event type (eg: ButtonPress, ButtonRelease)com.google.protobuf.ByteStringAn event type (eg: ButtonPress, ButtonRelease)com.google.protobuf.TimestampgetTime()Timestamp of eventdoublegetValue()0 or 1 for buttons, -1.0 to +1.0 for axesbooleanhasTime()Timestamp of eventnewBuilder(InputController.Event prototype) static InputController.EventparseDelimitedFrom(InputStream input) static InputController.EventparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InputController.EventparseFrom(byte[] data) static InputController.EventparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InputController.EventparseFrom(com.google.protobuf.ByteString data) static InputController.EventparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InputController.EventparseFrom(com.google.protobuf.CodedInputStream input) static InputController.EventparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InputController.EventparseFrom(InputStream input) static InputController.EventparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static InputController.EventparseFrom(ByteBuffer data) static InputController.EventparseFrom(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, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
hasTimein 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:
getTimein interfaceInputController.EventOrBuilder- Returns:
- The time.
-
getEvent
An event type (eg: ButtonPress, ButtonRelease)
string event = 2 [json_name = "event"];- Specified by:
getEventin 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:
getEventBytesin 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:
getControlin 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:
getControlBytesin 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:
getValuein 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:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<InputController.Event,InputController.Event.Builder>
-
getDefaultInstance
-
parser
-