public class HttpTranslateRpc extends Object implements TranslateRpc
TranslateRpc.Option| Constructor and Description |
|---|
HttpTranslateRpc(TranslateOptions options) |
| Modifier and Type | Method and Description |
|---|---|
List<List<com.google.api.services.translate.model.DetectionsResourceItems>> |
detect(List<String> texts)
Detects the language of the provided texts.
|
List<com.google.api.services.translate.model.LanguagesResource> |
listSupportedLanguages(Map<TranslateRpc.Option,?> optionMap)
Returns a list of the languages supported by Google Translation.
|
List<com.google.api.services.translate.model.TranslationsResource> |
translate(List<String> texts,
Map<TranslateRpc.Option,?> optionMap)
Translates the provided texts.
|
public HttpTranslateRpc(TranslateOptions options)
public List<List<com.google.api.services.translate.model.DetectionsResourceItems>> detect(List<String> texts)
TranslateRpcdetect in interface TranslateRpctexts - the texts to translatepublic List<com.google.api.services.translate.model.LanguagesResource> listSupportedLanguages(Map<TranslateRpc.Option,?> optionMap)
TranslateRpclistSupportedLanguages in interface TranslateRpcoptionMap - options to listing language translationspublic List<com.google.api.services.translate.model.TranslationsResource> translate(List<String> texts, Map<TranslateRpc.Option,?> optionMap)
TranslateRpctranslate in interface TranslateRpctexts - the texts to translateoptionMap - options to text translationCopyright © 2019 Google LLC. All rights reserved.