public final SupportedLanguages getSupportedLanguages(
      LocationName parent, String model, String displayLanguageCode) {
    GetSupportedLanguagesRequest request =
        GetSupportedLanguagesRequest.newBuilder()
            .setParent(parent == null ? null : parent.toString())
            .setModel(model)
            .setDisplayLanguageCode(displayLanguageCode)
            .build();
    return getSupportedLanguages(request);
  }
Returns a list of supported languages for translation.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
  LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  String model = "model104069929";
  String displayLanguageCode = "displayLanguageCode-1457478841";
  SupportedLanguages response =
      translationServiceClient.getSupportedLanguages(parent, model, displayLanguageCode);
}
}</pre>

@param parent Required. Project or location to make a call. Must refer to a caller's project.
    <p>Format: `projects/{project-number-or-id}` or
    `projects/{project-number-or-id}/locations/{location-id}`.
    <p>For global calls, use `projects/{project-number-or-id}/locations/global` or
    `projects/{project-number-or-id}`.
    <p>Non-global location is required for AutoML models.
    <p>Only models within the same region (have same location-id) can be used, otherwise an
    INVALID_ARGUMENT (400) error is returned.
@param model Optional. Get supported languages of this model.
    <p>The format depends on model type:
    <p>- AutoML Translation models:
    `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}`
    <p>- General (built-in) models:
    `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`,
    <p>Returns languages supported by the specified model. If missing, we get supported
    languages of Google general NMT model.
@param displayLanguageCode Optional. The language to use to return localized, human readable
    names of supported languages. If missing, then display names are not returned in a
    response.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-translate/google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java