public final class TranslationsResource extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Translate API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TranslationsResource() |
| Modifier and Type | Method and Description |
|---|---|
TranslationsResource |
clone() |
String |
getDetectedSourceLanguage()
Detected source language if source parameter is unspecified.
|
String |
getTranslatedText()
The translation.
|
TranslationsResource |
set(String fieldName,
Object value) |
TranslationsResource |
setDetectedSourceLanguage(String detectedSourceLanguage)
Detected source language if source parameter is unspecified.
|
TranslationsResource |
setTranslatedText(String translatedText)
The translation.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String getDetectedSourceLanguage()
null for nonepublic TranslationsResource setDetectedSourceLanguage(String detectedSourceLanguage)
detectedSourceLanguage - detectedSourceLanguage or null for nonepublic String getTranslatedText()
null for nonepublic TranslationsResource setTranslatedText(String translatedText)
translatedText - translatedText or null for nonepublic TranslationsResource set(String fieldName, Object value)
set in class GenericJsonpublic TranslationsResource clone()
clone in class GenericJson