@Override
  public String toString() {
    return MoreObjects.toStringHelper(this)
        .add("language", language)
        .add("confidence", confidence)
        .toString();
  }
Returns an optional confidence value in the interval [0,1]. The closer this value is to 1, the
higher the confidence level for the language detection. Note that this value is not always
available.
java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/Detection.java