Skip navigation links

Package com.google.cloud.translate.v3beta1

A client to Cloud Translation API.

See: Description

Package com.google.cloud.translate.v3beta1 Description

A client to Cloud Translation API.

The interfaces provided are listed below, along with usage samples.

======================== TranslationServiceClient ========================

Service Description: Provides natural language translation operations.

Sample for TranslationServiceClient:

 
 try (TranslationServiceClient translationServiceClient = TranslationServiceClient.create()) {
   String formattedParent = TranslationServiceClient.formatLocationName("[PROJECT]", "[LOCATION]");
   String model = "";
   String mimeType = "";
   DetectLanguageResponse response = translationServiceClient.detectLanguage(formattedParent, model, mimeType);
 }
 
 
Skip navigation links

Copyright © 2019 Google LLC. All rights reserved.