public final RomanizeTextResponse romanizeText(String parent, List<String> contents) {
    RomanizeTextRequest request =
        RomanizeTextRequest.newBuilder().setParent(parent).addAllContents(contents).build();
    return romanizeText(request);
  }
Romanize input text written in non-Latin scripts to Latin text.

<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()) {
  String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
  List<String> contents = new ArrayList<>();
  RomanizeTextResponse response = translationServiceClient.romanizeText(parent, contents);
}
}</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}/locations/{location-id}` or
    `projects/{project-number-or-id}`.
    <p>For global calls, use `projects/{project-number-or-id}/locations/global` or
    `projects/{project-number-or-id}`.
@param contents Required. The content of the input in string format.
@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