public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
<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-v3/src/main/java/com/google/cloud/translate/v3/DetectedLanguage.java