Class Rectangle2dProto
java.lang.Object
edu.wpi.first.math.geometry.proto.Rectangle2dProto
- All Implemented Interfaces:
Protobuf<Rectangle2d,
Geometry2D.ProtobufRectangle2d>
public class Rectangle2dProto
extends Object
implements Protobuf<Rectangle2d,Geometry2D.ProtobufRectangle2d>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCreates protobuf message.us.hebi.quickbuf.Descriptors.Descriptor
Gets the protobuf descriptor.Gets the Class object for the stored value.void
pack
(Geometry2D.ProtobufRectangle2d msg, Rectangle2d 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, wait
Methods inherited from interface edu.wpi.first.util.protobuf.Protobuf
clone, forEachDescriptor, getTypeString, isCloneable, isImmutable, unpackInto
-
Constructor Details
-
Rectangle2dProto
public Rectangle2dProto()
-
-
Method Details
-
getTypeClass
Description copied from interface:Protobuf
Gets the Class object for the stored value.- Specified by:
getTypeClass
in interfaceProtobuf<Rectangle2d,
Geometry2D.ProtobufRectangle2d> - Returns:
- Class
-
getDescriptor
Description copied from interface:Protobuf
Gets the protobuf descriptor.- Specified by:
getDescriptor
in interfaceProtobuf<Rectangle2d,
Geometry2D.ProtobufRectangle2d> - Returns:
- descriptor
-
createMessage
Description copied from interface:Protobuf
Creates protobuf message.- Specified by:
createMessage
in interfaceProtobuf<Rectangle2d,
Geometry2D.ProtobufRectangle2d> - Returns:
- protobuf message
-
unpack
Description copied from interface:Protobuf
Deserializes an object from a protobuf message.- Specified by:
unpack
in interfaceProtobuf<Rectangle2d,
Geometry2D.ProtobufRectangle2d> - Parameters:
msg
- protobuf message- Returns:
- New object
-
pack
Description copied from interface:Protobuf
Copies the object contents into a protobuf message. Implementations should call either msg.setMember(member) or member.copyToProto(msg.getMutableMember()) for each member.- Specified by:
pack
in interfaceProtobuf<Rectangle2d,
Geometry2D.ProtobufRectangle2d> - Parameters:
msg
- protobuf messagevalue
- object to serialize
-