public final class TranslationsResource
extends com.google.api.client.json.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: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
TranslationsResource() |
| Modifier and Type | Method and Description |
|---|---|
TranslationsResource |
clone() |
java.lang.String |
getDetectedSourceLanguage()
Detected source language if source parameter is unspecified.
|
java.lang.String |
getTranslatedText()
The translation.
|
TranslationsResource |
set(java.lang.String fieldName,
java.lang.Object value) |
TranslationsResource |
setDetectedSourceLanguage(java.lang.String detectedSourceLanguage)
Detected source language if source parameter is unspecified.
|
TranslationsResource |
setTranslatedText(java.lang.String translatedText)
The translation.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getDetectedSourceLanguage()
null for nonepublic TranslationsResource setDetectedSourceLanguage(java.lang.String detectedSourceLanguage)
detectedSourceLanguage - detectedSourceLanguage or null for nonepublic java.lang.String getTranslatedText()
null for nonepublic TranslationsResource setTranslatedText(java.lang.String translatedText)
translatedText - translatedText or null for nonepublic TranslationsResource set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic TranslationsResource clone()
clone in class com.google.api.client.json.GenericJson