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

      if (!getLanguageCode().equals(other.getLanguageCode())) 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 of detected language. Range [0, 1].
</pre>

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

@return The confidence.
java-vision/proto-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/TextAnnotation.java