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 Google Cloud Translation API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TranslationsResource() |
| Modifier and Type | Method and Description |
|---|---|
TranslationsResource |
clone() |
String |
getDetectedSourceLanguage()
The source language of the initial request, detected automatically, if no source language was
passed within the initial request.
|
String |
getModel()
The `model` type used for this translation.
|
String |
getTranslatedText()
Text translated into the target language.
|
TranslationsResource |
set(String fieldName,
Object value) |
TranslationsResource |
setDetectedSourceLanguage(String detectedSourceLanguage)
The source language of the initial request, detected automatically, if no source language was
passed within the initial request.
|
TranslationsResource |
setModel(String model)
The `model` type used for this translation.
|
TranslationsResource |
setTranslatedText(String translatedText)
Text translated into the target language.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getDetectedSourceLanguage()
null for nonepublic TranslationsResource setDetectedSourceLanguage(String detectedSourceLanguage)
detectedSourceLanguage - detectedSourceLanguage or null for nonepublic String getModel()
null for nonepublic TranslationsResource setModel(String model)
model - model 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 GenericJsonCopyright © 2011–2019 Google. All rights reserved.