@java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.videointelligence.v1beta2.LabelFrame)) {
      return super.equals(obj);
    }
    com.google.cloud.videointelligence.v1beta2.LabelFrame other =
        (com.google.cloud.videointelligence.v1beta2.LabelFrame) obj;

    if (hasTimeOffset() != other.hasTimeOffset()) return false;
    if (hasTimeOffset()) {
      if (!getTimeOffset().equals(other.getTimeOffset())) return false;
    }
    if (java.lang.Float.floatToIntBits(getConfidence())
        != java.lang.Float.floatToIntBits(other.getConfidence())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }
<pre>
Confidence that the label is accurate. Range: [0, 1].
</pre>

<code>float confidence = 2;</code>

@return The confidence.
java-video-intelligence/proto-google-cloud-video-intelligence-v1beta2/src/main/java/com/google/cloud/videointelligence/v1beta2/LabelFrame.java