Package org.photonvision.proto
Class Photon.ProtobufTargetCorner
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
org.photonvision.proto.Photon.ProtobufTargetCorner
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Photon
public static final class Photon.ProtobufTargetCorner
extends us.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
implements Cloneable
Protobuf type
ProtobufTargetCorner
-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName
-
Method Summary
Modifier and TypeMethodDescriptionclear()
clearX()
optional double x = 1;
clearY()
optional double y = 2;
clone()
protected int
boolean
static us.hebi.quickbuf.Descriptors.Descriptor
static us.hebi.quickbuf.MessageFactory<Photon.ProtobufTargetCorner>
double
getX()
optional double x = 1;
double
getY()
optional double y = 2;
boolean
hasX()
optional double x = 1;
boolean
hasY()
optional double y = 2;
boolean
isEmpty()
mergeFrom
(us.hebi.quickbuf.JsonSource input) mergeFrom
(us.hebi.quickbuf.ProtoSource input) static Photon.ProtobufTargetCorner
static Photon.ProtobufTargetCorner
parseFrom
(byte[] data) static Photon.ProtobufTargetCorner
parseFrom
(us.hebi.quickbuf.JsonSource input) static Photon.ProtobufTargetCorner
parseFrom
(us.hebi.quickbuf.ProtoSource input) setX
(double value) optional double x = 1;
setY
(double value) optional double y = 2;
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
ProtobufTargetCorner
-
hasX
public boolean hasX()optional double x = 1;
- Returns:
- whether the x field is set
-
clearX
optional double x = 1;
- Returns:
- this
-
getX
public double getX()optional double x = 1;
- Returns:
- the x
-
setX
optional double x = 1;
- Parameters:
value
- the x to set- Returns:
- this
-
hasY
public boolean hasY()optional double y = 2;
- Returns:
- whether the y field is set
-
clearY
optional double y = 2;
- Returns:
- this
-
getY
public double getY()optional double y = 2;
- Returns:
- the y
-
setY
optional double y = 2;
- Parameters:
value
- the y to set- Returns:
- this
-
copyFrom
- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
- Throws:
IOException
-
computeSerializedSize
protected int computeSerializedSize()- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
-
mergeFrom
- Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
- Throws:
IOException
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufTargetCorner>
-
parseFrom
public static Photon.ProtobufTargetCorner parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Photon.ProtobufTargetCorner parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static Photon.ProtobufTargetCorner parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufTargetCorner messages
-
getDescriptor
public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Returns:
- this type's descriptor.
-