Package org.photonvision.proto
Class Photon.ProtobufPhotonPipelineResult
java.lang.Object
us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
org.photonvision.proto.Photon.ProtobufPhotonPipelineResult
- All Implemented Interfaces:
Cloneable
- Enclosing class:
- Photon
public static final class Photon.ProtobufPhotonPipelineResult
extends us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
implements Cloneable
Protobuf type
ProtobufPhotonPipelineResult
-
Field Summary
Fields inherited from class us.hebi.quickbuf.ProtoMessage
bitField0_, cachedSize, unknownBytesFieldName
-
Method Summary
Modifier and TypeMethodDescriptionaddAllTargets
(Photon.ProtobufPhotonTrackedTarget... values) repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
clear()
optional int64 capture_timestamp_micros = 5;
Deprecated.optional .photonvision.proto.ProtobufMultiTargetPNPResult multi_target_result = 3;
optional int64 nt_publish_timestamp_micros = 6;
optional int64 sequence_id = 4;
repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
optional int64 time_since_last_pong_micros = 7;
clone()
protected int
boolean
long
optional int64 capture_timestamp_micros = 5;
static us.hebi.quickbuf.Descriptors.Descriptor
static us.hebi.quickbuf.MessageFactory<Photon.ProtobufPhotonPipelineResult>
double
Deprecated.optional .photonvision.proto.ProtobufMultiTargetPNPResult multi_target_result = 3;
This method returns the internal storage object without modifying any has state.optional .photonvision.proto.ProtobufMultiTargetPNPResult multi_target_result = 3;
This method returns the internal storage object and sets the corresponding has state.us.hebi.quickbuf.RepeatedMessage<Photon.ProtobufPhotonTrackedTarget>
repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
This method returns the internal storage object and sets the corresponding has state.long
optional int64 nt_publish_timestamp_micros = 6;
long
optional int64 sequence_id = 4;
us.hebi.quickbuf.RepeatedMessage<Photon.ProtobufPhotonTrackedTarget>
repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
This method returns the internal storage object without modifying any has state.long
optional int64 time_since_last_pong_micros = 7;
boolean
optional int64 capture_timestamp_micros = 5;
boolean
Deprecated.boolean
optional .photonvision.proto.ProtobufMultiTargetPNPResult multi_target_result = 3;
boolean
optional int64 nt_publish_timestamp_micros = 6;
boolean
optional int64 sequence_id = 4;
boolean
repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
boolean
optional int64 time_since_last_pong_micros = 7;
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) setCaptureTimestampMicros
(long value) optional int64 capture_timestamp_micros = 5;
setLatencyMs
(double value) Deprecated.optional .photonvision.proto.ProtobufMultiTargetPNPResult multi_target_result = 3;
setNtPublishTimestampMicros
(long value) optional int64 nt_publish_timestamp_micros = 6;
setSequenceId
(long value) optional int64 sequence_id = 4;
setTimeSinceLastPongMicros
(long value) optional int64 time_since_last_pong_micros = 7;
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
ProtobufPhotonPipelineResult
-
hasLatencyMs
Deprecated.optional double latency_ms = 1;
- Returns:
- whether the latencyMs field is set
-
clearLatencyMs
Deprecated.optional double latency_ms = 1;
- Returns:
- this
-
getLatencyMs
Deprecated.optional double latency_ms = 1;
- Returns:
- the latencyMs
-
setLatencyMs
Deprecated.optional double latency_ms = 1;
- Parameters:
value
- the latencyMs to set- Returns:
- this
-
hasSequenceId
public boolean hasSequenceId()optional int64 sequence_id = 4;
- Returns:
- whether the sequenceId field is set
-
clearSequenceId
optional int64 sequence_id = 4;
- Returns:
- this
-
getSequenceId
public long getSequenceId()optional int64 sequence_id = 4;
- Returns:
- the sequenceId
-
setSequenceId
optional int64 sequence_id = 4;
- Parameters:
value
- the sequenceId to set- Returns:
- this
-
hasCaptureTimestampMicros
public boolean hasCaptureTimestampMicros()optional int64 capture_timestamp_micros = 5;
- Returns:
- whether the captureTimestampMicros field is set
-
clearCaptureTimestampMicros
optional int64 capture_timestamp_micros = 5;
- Returns:
- this
-
getCaptureTimestampMicros
public long getCaptureTimestampMicros()optional int64 capture_timestamp_micros = 5;
- Returns:
- the captureTimestampMicros
-
setCaptureTimestampMicros
optional int64 capture_timestamp_micros = 5;
- Parameters:
value
- the captureTimestampMicros to set- Returns:
- this
-
hasNtPublishTimestampMicros
public boolean hasNtPublishTimestampMicros()optional int64 nt_publish_timestamp_micros = 6;
- Returns:
- whether the ntPublishTimestampMicros field is set
-
clearNtPublishTimestampMicros
optional int64 nt_publish_timestamp_micros = 6;
- Returns:
- this
-
getNtPublishTimestampMicros
public long getNtPublishTimestampMicros()optional int64 nt_publish_timestamp_micros = 6;
- Returns:
- the ntPublishTimestampMicros
-
setNtPublishTimestampMicros
optional int64 nt_publish_timestamp_micros = 6;
- Parameters:
value
- the ntPublishTimestampMicros to set- Returns:
- this
-
hasTimeSinceLastPongMicros
public boolean hasTimeSinceLastPongMicros()optional int64 time_since_last_pong_micros = 7;
- Returns:
- whether the timeSinceLastPongMicros field is set
-
clearTimeSinceLastPongMicros
optional int64 time_since_last_pong_micros = 7;
- Returns:
- this
-
getTimeSinceLastPongMicros
public long getTimeSinceLastPongMicros()optional int64 time_since_last_pong_micros = 7;
- Returns:
- the timeSinceLastPongMicros
-
setTimeSinceLastPongMicros
optional int64 time_since_last_pong_micros = 7;
- Parameters:
value
- the timeSinceLastPongMicros to set- Returns:
- this
-
hasMultiTargetResult
public boolean hasMultiTargetResult()optional .photonvision.proto.ProtobufMultiTargetPNPResult multi_target_result = 3;
- Returns:
- whether the multiTargetResult field is set
-
clearMultiTargetResult
optional .photonvision.proto.ProtobufMultiTargetPNPResult multi_target_result = 3;
- Returns:
- this
-
getMultiTargetResult
optional .photonvision.proto.ProtobufMultiTargetPNPResult multi_target_result = 3;
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. UsegetMutableMultiTargetResult()
if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableMultiTargetResult
optional .photonvision.proto.ProtobufMultiTargetPNPResult multi_target_result = 3;
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
-
setMultiTargetResult
public Photon.ProtobufPhotonPipelineResult setMultiTargetResult(Photon.ProtobufMultiTargetPNPResult value) optional .photonvision.proto.ProtobufMultiTargetPNPResult multi_target_result = 3;
- Parameters:
value
- the multiTargetResult to set- Returns:
- this
-
hasTargets
public boolean hasTargets()repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
- Returns:
- whether the targets field is set
-
clearTargets
repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
- Returns:
- this
-
getTargets
repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
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. UsegetMutableTargets()
if you want to modify it.- Returns:
- internal storage object for reading
-
getMutableTargets
repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
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
-
addTargets
repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
- Parameters:
value
- the targets to add- Returns:
- this
-
addAllTargets
public Photon.ProtobufPhotonPipelineResult addAllTargets(Photon.ProtobufPhotonTrackedTarget... values) repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
- Parameters:
values
- the targets to add- Returns:
- this
-
copyFrom
- Specified by:
copyFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
-
mergeFrom
- Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
-
clear
- Specified by:
clear
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
-
clearQuick
- Overrides:
clearQuick
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
-
equals
- Specified by:
equals
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
-
writeTo
- Specified by:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
- Throws:
IOException
-
computeSerializedSize
protected int computeSerializedSize()- Specified by:
computeSerializedSize
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
-
mergeFrom
public Photon.ProtobufPhotonPipelineResult mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Specified by:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
- Throws:
IOException
-
writeTo
- Overrides:
writeTo
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
- Throws:
IOException
-
mergeFrom
public Photon.ProtobufPhotonPipelineResult mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Overrides:
mergeFrom
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
- Throws:
IOException
-
clone
- Specified by:
clone
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classus.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
-
parseFrom
public static Photon.ProtobufPhotonPipelineResult parseFrom(byte[] data) throws us.hebi.quickbuf.InvalidProtocolBufferException - Throws:
us.hebi.quickbuf.InvalidProtocolBufferException
-
parseFrom
public static Photon.ProtobufPhotonPipelineResult parseFrom(us.hebi.quickbuf.ProtoSource input) throws IOException - Throws:
IOException
-
parseFrom
public static Photon.ProtobufPhotonPipelineResult parseFrom(us.hebi.quickbuf.JsonSource input) throws IOException - Throws:
IOException
-
getFactory
- Returns:
- factory for creating ProtobufPhotonPipelineResult messages
-
getDescriptor
public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()- Returns:
- this type's descriptor.
-