public final class TranslateTextRequest
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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TranslateTextRequest() |
| Modifier and Type | Method and Description |
|---|---|
TranslateTextRequest |
clone() |
String |
getFormat()
The format of the source text, in either HTML (default) or plain-text.
|
String |
getModel()
The `model` type requested for this translation.
|
List<String> |
getQ()
The input text to translate.
|
String |
getSource()
The language of the source text, set to one of the language codes listed in Language Support.
|
String |
getTarget()
The language to use for translation of the input text, set to one of the language codes listed
in Language Support.
|
TranslateTextRequest |
set(String fieldName,
Object value) |
TranslateTextRequest |
setFormat(String format)
The format of the source text, in either HTML (default) or plain-text.
|
TranslateTextRequest |
setModel(String model)
The `model` type requested for this translation.
|
TranslateTextRequest |
setQ(List<String> q)
The input text to translate.
|
TranslateTextRequest |
setSource(String source)
The language of the source text, set to one of the language codes listed in Language Support.
|
TranslateTextRequest |
setTarget(String target)
The language to use for translation of the input text, set to one of the language codes listed
in Language Support.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getFormat()
null for nonepublic TranslateTextRequest setFormat(String format)
format - format or null for nonepublic String getModel()
null for nonepublic TranslateTextRequest setModel(String model)
model - model or null for nonepublic List<String> getQ()
null for nonepublic TranslateTextRequest setQ(List<String> q)
q - q or null for nonepublic String getSource()
null for nonepublic TranslateTextRequest setSource(String source)
source - source or null for nonepublic String getTarget()
null for nonepublic TranslateTextRequest setTarget(String target)
target - target or null for nonepublic TranslateTextRequest set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic TranslateTextRequest clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2018 Google. All rights reserved.