public final class TranslateDocumentResponse 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 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 |
|---|
TranslateDocumentResponse() |
| Modifier and Type | Method and Description |
|---|---|
TranslateDocumentResponse |
clone() |
DocumentTranslation |
getDocumentTranslation()
Translated document.
|
TranslateTextGlossaryConfig |
getGlossaryConfig()
The `glossary_config` used for this translation.
|
DocumentTranslation |
getGlossaryDocumentTranslation()
The document's translation output if a glossary is provided in the request.
|
String |
getModel()
Only present when 'model' is present in the request.
|
TranslateDocumentResponse |
set(String fieldName,
Object value) |
TranslateDocumentResponse |
setDocumentTranslation(DocumentTranslation documentTranslation)
Translated document.
|
TranslateDocumentResponse |
setGlossaryConfig(TranslateTextGlossaryConfig glossaryConfig)
The `glossary_config` used for this translation.
|
TranslateDocumentResponse |
setGlossaryDocumentTranslation(DocumentTranslation glossaryDocumentTranslation)
The document's translation output if a glossary is provided in the request.
|
TranslateDocumentResponse |
setModel(String model)
Only present when 'model' is present in the request.
|
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 DocumentTranslation getDocumentTranslation()
null for nonepublic TranslateDocumentResponse setDocumentTranslation(DocumentTranslation documentTranslation)
documentTranslation - documentTranslation or null for nonepublic TranslateTextGlossaryConfig getGlossaryConfig()
null for nonepublic TranslateDocumentResponse setGlossaryConfig(TranslateTextGlossaryConfig glossaryConfig)
glossaryConfig - glossaryConfig or null for nonepublic DocumentTranslation getGlossaryDocumentTranslation()
null for nonepublic TranslateDocumentResponse setGlossaryDocumentTranslation(DocumentTranslation glossaryDocumentTranslation)
glossaryDocumentTranslation - glossaryDocumentTranslation or null for nonepublic String getModel()
null for nonepublic TranslateDocumentResponse setModel(String model)
model - model or null for nonepublic TranslateDocumentResponse set(String fieldName, Object value)
set in class GenericJsonpublic TranslateDocumentResponse clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.