| Modifier and Type | Class and Description |
|---|---|
class |
Translate.Translations.List |
class |
Translate.Translations.TranslateOperation |
| Constructor and Description |
|---|
Translations() |
| Modifier and Type | Method and Description |
|---|---|
Translate.Translations.List |
list(List<String> q,
String target)
Translates input text, returning translated text.
|
Translate.Translations.TranslateOperation |
translate(TranslateTextRequest content)
Translates input text, returning translated text.
|
public Translate.Translations.List list(List<String> q, String target) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.q - The input text to translate. Repeat this parameter to perform translation
operations on multiple
text inputs.target - The language to use for translation of the input text, set to one of the
language codes listed in
Language Support.IOExceptionpublic Translate.Translations.TranslateOperation translate(TranslateTextRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the TranslateTextRequestIOExceptionCopyright © 2011–2021 Google. All rights reserved.