Package edu.wpi.first.math.proto
Class Geometry2D.ProtobufRectangle2d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
edu.wpi.first.math.proto.Geometry2D.ProtobufRectangle2d
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Geometry2D
public static final class Geometry2D.ProtobufRectangle2d
extends us.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
implements Cloneable
Protobuf type
ProtobufRectangle2d
-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName
-
Method Summary
Modifier and TypeMethodDescriptionclear()
optional .wpi.proto.ProtobufPose2d center = 1;
optional double xWidth = 2;
optional double yWidth = 3;
clone()
protected int
boolean
optional .wpi.proto.ProtobufPose2d center = 1;
This method returns the internal storage object without modifying any has state.static us.hebi.quickbuf.Descriptors.Descriptor
static us.hebi.quickbuf.MessageFactory<Geometry2D.ProtobufRectangle2d>
optional .wpi.proto.ProtobufPose2d center = 1;
This method returns the internal storage object and sets the corresponding has state.double
optional double xWidth = 2;
double
optional double yWidth = 3;
boolean
optional .wpi.proto.ProtobufPose2d center = 1;
boolean
optional double xWidth = 2;
boolean
optional double yWidth = 3;
boolean
isEmpty()
mergeFrom
(us.hebi.quickbuf.JsonSource input) mergeFrom
(us.hebi.quickbuf.ProtoSource input) parseFrom
(byte[] data) parseFrom
(us.hebi.quickbuf.JsonSource input) parseFrom
(us.hebi.quickbuf.ProtoSource input) optional .wpi.proto.ProtobufPose2d center = 1;
setXWidth
(double value) optional double xWidth = 2;
setYWidth
(double value) optional double yWidth = 3;
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
ProtobufRectangle2d
-
hasXWidth
optional double xWidth = 2;
- Returns:
- whether the xWidth field is set
-
clearXWidth
optional double xWidth = 2;
- Returns:
- this
-
getXWidth
optional double xWidth = 2;
- Returns:
- the xWidth
-
setXWidth
optional double xWidth = 2;
- Parameters:
value
- the xWidth to set- Returns:
- this
-
hasYWidth
optional double yWidth = 3;
- Returns:
- whether the yWidth field is set
-
clearYWidth
optional double yWidth = 3;
- Returns:
- this
-
getYWidth
optional double yWidth = 3;
- Returns:
- the yWidth
-
setYWidth
optional double yWidth = 3;
- Parameters:
value
- the yWidth to set- Returns:
- this
-
hasCenter
optional .wpi.proto.ProtobufPose2d center = 1;
- Returns:
- whether the center field is set
-
clearCenter
optional .wpi.proto.ProtobufPose2d center = 1;
- Returns:
- this
-
getCenter
optional .wpi.proto.ProtobufPose2d center = 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. UsegetMutableCenter()
if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableCenter
optional .wpi.proto.ProtobufPose2d center = 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
-
setCenter
optional .wpi.proto.ProtobufPose2d center = 1;
- Parameters:
value
- the center to set- Returns:
- this
-
copyFrom
- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
-
mergeFrom
public Geometry2D.ProtobufRectangle2d mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
- Throws:
IOException
-
mergeFrom
public Geometry2D.ProtobufRectangle2d mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
-
isEmpty
- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Geometry2D.ProtobufRectangle2d>
-
parseFrom
public static Geometry2D.ProtobufRectangle2d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Geometry2D.ProtobufRectangle2d parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static Geometry2D.ProtobufRectangle2d parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufRectangle2d messages
-
getDescriptor
- Returns:
- this type's descriptor.
-