static Detection fromPb(DetectionsResourceItems detectionPb) {
    return new Detection(detectionPb.getLanguage(), detectionPb.getConfidence());
  }
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