public class Translate.Translations
extends java.lang.Object
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(java.util.List<java.lang.String> q,
java.lang.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(java.util.List<java.lang.String> q, java.lang.String target) throws java.io.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.java.io.IOException
public Translate.Translations.TranslateOperation translate(TranslateTextRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.content
- the TranslateTextRequest
java.io.IOException