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
  • Method Details

    • newInstance

      public static Photon.ProtobufPhotonPipelineResult newInstance()
      Returns:
      a new empty instance of ProtobufPhotonPipelineResult
    • hasLatencyMs

      @Deprecated public boolean 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 public double getLatencyMs()
      Deprecated.
      optional double latency_ms = 1;
      Returns:
      the latencyMs
    • setLatencyMs

      @Deprecated public Photon.ProtobufPhotonPipelineResult setLatencyMs(double value)
      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

      public Photon.ProtobufPhotonPipelineResult clearSequenceId()
      optional int64 sequence_id = 4;
      Returns:
      this
    • getSequenceId

      public long getSequenceId()
      optional int64 sequence_id = 4;
      Returns:
      the sequenceId
    • setSequenceId

      public Photon.ProtobufPhotonPipelineResult setSequenceId(long value)
      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

      public Photon.ProtobufPhotonPipelineResult clearCaptureTimestampMicros()
      optional int64 capture_timestamp_micros = 5;
      Returns:
      this
    • getCaptureTimestampMicros

      public long getCaptureTimestampMicros()
      optional int64 capture_timestamp_micros = 5;
      Returns:
      the captureTimestampMicros
    • setCaptureTimestampMicros

      public Photon.ProtobufPhotonPipelineResult setCaptureTimestampMicros(long value)
      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

      public Photon.ProtobufPhotonPipelineResult 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

      public Photon.ProtobufPhotonPipelineResult setNtPublishTimestampMicros(long value)
      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

      public Photon.ProtobufPhotonPipelineResult 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

      public Photon.ProtobufPhotonPipelineResult setTimeSinceLastPongMicros(long value)
      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

      public Photon.ProtobufPhotonPipelineResult clearMultiTargetResult()
      optional .photonvision.proto.ProtobufMultiTargetPNPResult multi_target_result = 3;
      Returns:
      this
    • getMultiTargetResult

      public Photon.ProtobufMultiTargetPNPResult 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. Use getMutableMultiTargetResult() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableMultiTargetResult

      public Photon.ProtobufMultiTargetPNPResult 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

      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

      public Photon.ProtobufPhotonPipelineResult clearTargets()
      repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
      Returns:
      this
    • getTargets

      public us.hebi.quickbuf.RepeatedMessage<Photon.ProtobufPhotonTrackedTarget> 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. Use getMutableTargets() if you want to modify it.
      Returns:
      internal storage object for reading
    • getMutableTargets

      public us.hebi.quickbuf.RepeatedMessage<Photon.ProtobufPhotonTrackedTarget> 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

      repeated .photonvision.proto.ProtobufPhotonTrackedTarget targets = 2;
      Parameters:
      values - the targets to add
      Returns:
      this
    • copyFrom

      Specified by:
      copyFrom in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
    • mergeFrom

      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
    • clear

      Specified by:
      clear in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
    • clearQuick

      Overrides:
      clearQuick in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
    • writeTo

      public void writeTo(us.hebi.quickbuf.ProtoSink output) throws IOException
      Specified by:
      writeTo in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
      Throws:
      IOException
    • computeSerializedSize

      protected int computeSerializedSize()
      Specified by:
      computeSerializedSize in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
    • mergeFrom

      public Photon.ProtobufPhotonPipelineResult mergeFrom(us.hebi.quickbuf.ProtoSource input) throws IOException
      Specified by:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
      Throws:
      IOException
    • writeTo

      public void writeTo(us.hebi.quickbuf.JsonSink output) throws IOException
      Overrides:
      writeTo in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
      Throws:
      IOException
    • mergeFrom

      public Photon.ProtobufPhotonPipelineResult mergeFrom(us.hebi.quickbuf.JsonSource input) throws IOException
      Overrides:
      mergeFrom in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
      Throws:
      IOException
    • clone

      Specified by:
      clone in class us.hebi.quickbuf.ProtoMessage<Photon.ProtobufPhotonPipelineResult>
    • isEmpty

      public boolean isEmpty()
      Overrides:
      isEmpty in class us.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

      public static us.hebi.quickbuf.MessageFactory<Photon.ProtobufPhotonPipelineResult> getFactory()
      Returns:
      factory for creating ProtobufPhotonPipelineResult messages
    • getDescriptor

      public static us.hebi.quickbuf.Descriptors.Descriptor getDescriptor()
      Returns:
      this type's descriptor.