Class VectorProto<R extends Num>
java.lang.Object
org.wpilib.math.linalg.proto.VectorProto<R>
- All Implemented Interfaces:
Protobuf<Vector<R>, ProtobufVector>
public final class VectorProto<R extends Num>
extends Object
implements Protobuf<Vector<R>, ProtobufVector>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates protobuf message.us.hebi.quickbuf.Descriptors.DescriptorGets the protobuf descriptor.Gets the Class object for the stored value.voidpack(ProtobufVector msg, Vector<R> value) Copies the object contents into a protobuf message.unpack(ProtobufVector msg) Deserializes an object from a protobuf message.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Protobuf
clone, forEachDescriptor, getTypeString, isCloneable, isImmutable, unpackInto
-
Constructor Details
-
VectorProto
Constructs theProtobufimplementation.- Parameters:
rows- The number of rows of the vectors this serializer processes.
-
-
Method Details
-
getTypeClass
Description copied from interface:ProtobufGets the Class object for the stored value.- Specified by:
getTypeClassin interfaceProtobuf<Vector<R extends Num>, ProtobufVector>- Returns:
- Class
-
getDescriptor
Description copied from interface:ProtobufGets the protobuf descriptor.- Specified by:
getDescriptorin interfaceProtobuf<Vector<R extends Num>, ProtobufVector>- Returns:
- descriptor
-
createMessage
Description copied from interface:ProtobufCreates protobuf message.- Specified by:
createMessagein interfaceProtobuf<Vector<R extends Num>, ProtobufVector>- Returns:
- protobuf message
-
unpack
-
pack
Description copied from interface:ProtobufCopies the object contents into a protobuf message. Implementations should call either msg.setMember(member) or member.copyToProto(msg.getMutableMember()) for each member.
-