Class QuaternionProto
java.lang.Object
edu.wpi.first.math.geometry.proto.QuaternionProto
- All Implemented Interfaces:
Protobuf<Quaternion,Geometry3D.ProtobufQuaternion>
public class QuaternionProto
extends Object
implements Protobuf<Quaternion,Geometry3D.ProtobufQuaternion>
-
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.booleanReturns whether or not objects are immutable.voidpack(Geometry3D.ProtobufQuaternion msg, Quaternion value) Copies the object contents into a protobuf message.Deserializes an object from a protobuf message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.wpi.first.util.protobuf.Protobuf
clone, forEachDescriptor, getTypeString, isCloneable, unpackInto
-
Constructor Details
-
QuaternionProto
public QuaternionProto()
-
-
Method Details
-
getTypeClass
Description copied from interface:ProtobufGets the Class object for the stored value.- Specified by:
getTypeClassin interfaceProtobuf<Quaternion,Geometry3D.ProtobufQuaternion> - Returns:
- Class
-
getDescriptor
Description copied from interface:ProtobufGets the protobuf descriptor.- Specified by:
getDescriptorin interfaceProtobuf<Quaternion,Geometry3D.ProtobufQuaternion> - Returns:
- descriptor
-
createMessage
Description copied from interface:ProtobufCreates protobuf message.- Specified by:
createMessagein interfaceProtobuf<Quaternion,Geometry3D.ProtobufQuaternion> - Returns:
- protobuf message
-
unpack
Description copied from interface:ProtobufDeserializes an object from a protobuf message.- Specified by:
unpackin interfaceProtobuf<Quaternion,Geometry3D.ProtobufQuaternion> - Parameters:
msg- protobuf message- Returns:
- New object
-
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.- Specified by:
packin interfaceProtobuf<Quaternion,Geometry3D.ProtobufQuaternion> - Parameters:
msg- protobuf messagevalue- object to serialize
-
isImmutable
Description copied from interface:ProtobufReturns whether or not objects are immutable. Immutable objects must also be comparable using the equals() method. Default implementation returns false.- Specified by:
isImmutablein interfaceProtobuf<Quaternion,Geometry3D.ProtobufQuaternion> - Returns:
- True if object is immutable
-