public static com.google.cloud.translate.v3beta1.DetectedLanguage parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }
<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