Package edu.wpi.first.math.proto
Class Geometry3D.ProtobufRotation3d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
edu.wpi.first.math.proto.Geometry3D.ProtobufRotation3d
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Geometry3D
public static final class Geometry3D.ProtobufRotation3d extends us.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d> implements Cloneable
Protobuf type
ProtobufRotation3d
-
Field Summary
-
Method Summary
Modifier and Type Method Description Geometry3D.ProtobufRotation3d
clear()
Geometry3D.ProtobufRotation3d
clearQ()
optional .wpi.proto.ProtobufQuaternion q = 1;
Geometry3D.ProtobufRotation3d
clearQuick()
Geometry3D.ProtobufRotation3d
clone()
protected int
computeSerializedSize()
Geometry3D.ProtobufRotation3d
copyFrom(Geometry3D.ProtobufRotation3d other)
boolean
equals(Object o)
static us.hebi.quickbuf.Descriptors.Descriptor
getDescriptor()
static us.hebi.quickbuf.MessageFactory<Geometry3D.ProtobufRotation3d>
getFactory()
Geometry3D.ProtobufQuaternion
getMutableQ()
optional .wpi.proto.ProtobufQuaternion q = 1;
This method returns the internal storage object and sets the corresponding has state.Geometry3D.ProtobufQuaternion
getQ()
optional .wpi.proto.ProtobufQuaternion q = 1;
This method returns the internal storage object without modifying any has state.boolean
hasQ()
optional .wpi.proto.ProtobufQuaternion q = 1;
boolean
isEmpty()
Geometry3D.ProtobufRotation3d
mergeFrom(Geometry3D.ProtobufRotation3d other)
Geometry3D.ProtobufRotation3d
mergeFrom(us.hebi.quickbuf.JsonSource input)
Geometry3D.ProtobufRotation3d
mergeFrom(us.hebi.quickbuf.ProtoSource input)
static Geometry3D.ProtobufRotation3d
newInstance()
static Geometry3D.ProtobufRotation3d
parseFrom(byte[] data)
static Geometry3D.ProtobufRotation3d
parseFrom(us.hebi.quickbuf.JsonSource input)
static Geometry3D.ProtobufRotation3d
parseFrom(us.hebi.quickbuf.ProtoSource input)
Geometry3D.ProtobufRotation3d
setQ(Geometry3D.ProtobufQuaternion value)
optional .wpi.proto.ProtobufQuaternion q = 1;
void
writeTo(us.hebi.quickbuf.JsonSink output)
void
writeTo(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
optional .wpi.proto.ProtobufQuaternion q = 1;
- Returns:
- this
-
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:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
-
mergeFrom
public Geometry3D.ProtobufRotation3d mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
- Throws:
IOException
-
mergeFrom
public Geometry3D.ProtobufRotation3d mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
-
isEmpty
- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Geometry3D.ProtobufRotation3d>
-
parseFrom
public static Geometry3D.ProtobufRotation3d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException- Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Geometry3D.ProtobufRotation3d parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException- Throws:
IOException
-
parseFrom
public static Geometry3D.ProtobufRotation3d parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufRotation3d messages
-
getDescriptor
- Returns:
- this type's descriptor.
-