public final class DocumentTranslation 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 |
|---|
DocumentTranslation() |
| Modifier and Type | Method and Description |
|---|---|
DocumentTranslation |
clone() |
List<String> |
getByteStreamOutputs()
The array of translated documents.
|
String |
getDetectedLanguageCode()
The detected language for the input document.
|
String |
getMimeType()
The translated document's mime type.
|
DocumentTranslation |
set(String fieldName,
Object value) |
DocumentTranslation |
setByteStreamOutputs(List<String> byteStreamOutputs)
The array of translated documents.
|
DocumentTranslation |
setDetectedLanguageCode(String detectedLanguageCode)
The detected language for the input document.
|
DocumentTranslation |
setMimeType(String mimeType)
The translated document's mime type.
|
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 List<String> getByteStreamOutputs()
null for nonepublic DocumentTranslation setByteStreamOutputs(List<String> byteStreamOutputs)
byteStreamOutputs - byteStreamOutputs or null for nonepublic String getDetectedLanguageCode()
null for nonepublic DocumentTranslation setDetectedLanguageCode(String detectedLanguageCode)
detectedLanguageCode - detectedLanguageCode or null for nonepublic String getMimeType()
null for nonepublic DocumentTranslation setMimeType(String mimeType)
mimeType - mimeType or null for nonepublic DocumentTranslation set(String fieldName, Object value)
set in class GenericJsonpublic DocumentTranslation clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.