@java.lang.Override
  public float getConfidence() {
    return confidence_;
  }
<pre>
The confidence of the detection result for this language.
</pre>

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

@return The confidence.
java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectedLanguage.java