Class ProtobufRotation3d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
org.wpilib.math.proto.ProtobufRotation3d
- All Implemented Interfaces:
Cloneable
public final class ProtobufRotation3d
extends us.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
implements Cloneable
Protobuf type
ProtobufRotation3d-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName -
Method Summary
Modifier and TypeMethodDescriptionclear()clearQ()optional .wpi.proto.ProtobufQuaternion q = 1;clone()protected intcopyFrom(ProtobufRotation3d other) booleanstatic us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufRotation3d> optional .wpi.proto.ProtobufQuaternion q = 1;This method returns the internal storage object and sets the corresponding has state.getQ()optional .wpi.proto.ProtobufQuaternion q = 1;This method returns the internal storage object without modifying any has state.booleanhasQ()optional .wpi.proto.ProtobufQuaternion q = 1;booleanisEmpty()mergeFrom(ProtobufRotation3d other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufRotation3dstatic ProtobufRotation3dparseFrom(byte[] data) static ProtobufRotation3dparseFrom(us.hebi.quickbuf.JsonSource input) static ProtobufRotation3dparseFrom(us.hebi.quickbuf.ProtoSource input) setQ(ProtobufQuaternion value) optional .wpi.proto.ProtobufQuaternion q = 1;voidwriteTo(us.hebi.quickbuf.JsonSink output) voidwriteTo(us.hebi.quickbuf.ProtoSink output) Methods inherited from class us.hebi.quickbuf.ProtoMessage
bytesDefaultValue, checkInitialized, getCachedSize, getMissingFields, getMissingFields, getMissingFields, getMissingFields, getSerializedSize, getUnknownBytes, hashCode, isInitialized, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, rethrowFromParent, toByteArray, toByteArray, toByteArray, toString, writeDelimitedTo
-
Method Details
-
newInstance
- Returns:
- a new empty instance of
ProtobufRotation3d
-
hasQ
optional .wpi.proto.ProtobufQuaternion q = 1;- Returns:
- whether the q field is set
-
clearQ
-
getQ
optional .wpi.proto.ProtobufQuaternion q = 1;This method returns the internal storage object without modifying any has state. The returned object should not be modified and be treated as read-only. UsegetMutableQ()if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableQ
optional .wpi.proto.ProtobufQuaternion q = 1;This method returns the internal storage object and sets the corresponding has state. The returned object will become part of this message and its contents may be modified as long as the has state is not cleared.- Returns:
- internal storage object for modifications
-
setQ
optional .wpi.proto.ProtobufQuaternion q = 1;- Parameters:
value- the q to set- Returns:
- this
-
copyFrom
- Specified by:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufRotation3d>
-
parseFrom
public static ProtobufRotation3d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufRotation3d messages
-
getDescriptor
- Returns:
- this type's descriptor.
-