public class Translation extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getModel()
Returns the translation model used to translate the text.
|
String |
getSourceLanguage()
Returns the language code of the source text.
|
String |
getTranslatedText()
Returns the translated text.
|
int |
hashCode() |
String |
toString() |
public String getTranslatedText()
public String getSourceLanguage()
public String getModel()
Translate.TranslateOption.model(String) was passed to Translate.translate(List, Translate.TranslateOption...).
Please note that you must be whitelisted to use the Translate.TranslateOption.model(String) option, otherwise translation will fail.
Copyright © 2019 Google LLC. All rights reserved.