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 Google Cloud Translation 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()
The source language of the initial request, detected automatically, if no source language was
passed within the initial request.
|
java.lang.String |
getModel()
The `model` type used for this translation.
|
java.lang.String |
getTranslatedText()
Text translated into the target language.
|
TranslationsResource |
set(java.lang.String fieldName,
java.lang.Object value) |
TranslationsResource |
setDetectedSourceLanguage(java.lang.String detectedSourceLanguage)
The source language of the initial request, detected automatically, if no source language was
passed within the initial request.
|
TranslationsResource |
setModel(java.lang.String model)
The `model` type used for this translation.
|
TranslationsResource |
setTranslatedText(java.lang.String translatedText)
Text translated into the target language.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public java.lang.String getDetectedSourceLanguage()
null
for nonepublic TranslationsResource setDetectedSourceLanguage(java.lang.String detectedSourceLanguage)
detectedSourceLanguage
- detectedSourceLanguage or null
for nonepublic java.lang.String getModel()
null
for nonepublic TranslationsResource setModel(java.lang.String model)
model
- model 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.GenericJson
public TranslationsResource clone()
clone
in class com.google.api.client.json.GenericJson