Class ProtobufEllipse2d
java.lang.Object
us.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>
org.wpilib.math.proto.ProtobufEllipse2d
- All Implemented Interfaces:
Cloneable
public final class ProtobufEllipse2d
extends us.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>
implements Cloneable
Protobuf type
ProtobufEllipse2d-
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 xSemiAxis = 2;optional double ySemiAxis = 3;clone()protected intcopyFrom(ProtobufEllipse2d other) booleanoptional .wpi.proto.ProtobufPose2d center = 1;This method returns the internal storage object without modifying any has state.static us.hebi.quickbuf.Descriptors.Descriptorstatic us.hebi.quickbuf.MessageFactory<ProtobufEllipse2d> optional .wpi.proto.ProtobufPose2d center = 1;This method returns the internal storage object and sets the corresponding has state.doubleoptional double xSemiAxis = 2;doubleoptional double ySemiAxis = 3;booleanoptional .wpi.proto.ProtobufPose2d center = 1;booleanoptional double xSemiAxis = 2;booleanoptional double ySemiAxis = 3;booleanisEmpty()mergeFrom(ProtobufEllipse2d other) mergeFrom(us.hebi.quickbuf.JsonSource input) mergeFrom(us.hebi.quickbuf.ProtoSource input) static ProtobufEllipse2dstatic ProtobufEllipse2dparseFrom(byte[] data) static ProtobufEllipse2dparseFrom(us.hebi.quickbuf.JsonSource input) static ProtobufEllipse2dparseFrom(us.hebi.quickbuf.ProtoSource input) setCenter(ProtobufPose2d value) optional .wpi.proto.ProtobufPose2d center = 1;setXSemiAxis(double value) optional double xSemiAxis = 2;setYSemiAxis(double value) optional double ySemiAxis = 3;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
ProtobufEllipse2d
-
hasXSemiAxis
optional double xSemiAxis = 2;- Returns:
- whether the xSemiAxis field is set
-
clearXSemiAxis
-
getXSemiAxis
-
setXSemiAxis
optional double xSemiAxis = 2;- Parameters:
value- the xSemiAxis to set- Returns:
- this
-
hasYSemiAxis
optional double ySemiAxis = 3;- Returns:
- whether the ySemiAxis field is set
-
clearYSemiAxis
-
getYSemiAxis
-
setYSemiAxis
optional double ySemiAxis = 3;- Parameters:
value- the ySemiAxis to set- Returns:
- this
-
hasCenter
optional .wpi.proto.ProtobufPose2d center = 1;- Returns:
- whether the center field is set
-
clearCenter
-
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:
copyFromin classus.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>
-
clear
- Specified by:
clearin classus.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>
-
clearQuick
- Overrides:
clearQuickin classus.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>
-
equals
- Specified by:
equalsin classus.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>
-
writeTo
- Specified by:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>- Throws:
IOException
-
computeSerializedSize
- Specified by:
computeSerializedSizein classus.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>
-
mergeFrom
- Specified by:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>- Throws:
IOException
-
writeTo
- Overrides:
writeToin classus.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFromin classus.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>- Throws:
IOException
-
clone
- Specified by:
clonein classus.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>
-
isEmpty
- Overrides:
isEmptyin classus.hebi.quickbuf.ProtoMessage<ProtobufEllipse2d>
-
parseFrom
public static ProtobufEllipse2d parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
- Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufEllipse2d messages
-
getDescriptor
- Returns:
- this type's descriptor.
-