public Builder setLanguages(
        int index, com.google.cloud.translate.v3beta1.DetectedLanguage value) {
      if (languagesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureLanguagesIsMutable();
        languages_.set(index, value);
        onChanged();
      } else {
        languagesBuilder_.setMessage(index, value);
      }
      return this;
    }
<pre>
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
</pre>

<code>repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;</code>
java-translate/proto-google-cloud-translate-v3beta1/src/main/java/com/google/cloud/translate/v3beta1/DetectLanguageResponse.java