public interface TranslateRpc
extends com.google.cloud.ServiceRpc
Modifier and Type | Interface and Description |
---|---|
static class |
TranslateRpc.Option |
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.
|
List<com.google.api.services.translate.model.LanguagesResource> listSupportedLanguages(Map<TranslateRpc.Option,?> optionMap)
optionMap
- options to listing language translationsList<List<com.google.api.services.translate.model.DetectionsResourceItems>> detect(List<String> texts)
texts
- the texts to translateList<com.google.api.services.translate.model.TranslationsResource> translate(List<String> texts, Map<TranslateRpc.Option,?> optionMap)
texts
- the texts to translateoptionMap
- options to text translationCopyright © 2022 Google LLC. All rights reserved.