public class Translate.Translations.List extends TranslateRequest<TranslationsListResponse>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
List(List<String> q,
String target)
Translates input text, returning translated text.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
List<String> |
getCid()
The customization id for translate
|
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.
|
Translate.Translations.List |
set(String parameterName,
Object value) |
Translate.Translations.List |
set$Xgafv(String $Xgafv)
V1 error format.
|
Translate.Translations.List |
setAccessToken(String accessToken)
OAuth access token.
|
Translate.Translations.List |
setAlt(String alt)
Data format for response.
|
Translate.Translations.List |
setBearerToken(String bearerToken)
OAuth bearer token.
|
Translate.Translations.List |
setCallback(String callback)
JSONP
|
Translate.Translations.List |
setCid(List<String> cid)
The customization id for translate
|
Translate.Translations.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Translate.Translations.List |
setFormat(String format)
The format of the source text, in either HTML (default) or plain-text.
|
Translate.Translations.List |
setKey(String key)
API key.
|
Translate.Translations.List |
setModel(String model)
The `model` type requested for this translation.
|
Translate.Translations.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Translate.Translations.List |
setPp(Boolean pp)
Pretty-print response.
|
Translate.Translations.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Translate.Translations.List |
setQ(List<String> q)
The input text to translate.
|
Translate.Translations.List |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Translate.Translations.List |
setSource(String source)
The language of the source text, set to one of the language codes listed in Language
Support.
|
Translate.Translations.List |
setTarget(String target)
The language to use for translation of the input text, set to one of the language codes
listed in Language Support.
|
Translate.Translations.List |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Translate.Translations.List |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getBearerToken, getCallback, getFields, getKey, getOauthToken, getPp, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected List(List<String> q, String target)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
Translate.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
q - The input text to translate. Repeat this parameter to perform translation
operations on multiple
text inputs.target - The language to use for translation of the input text, set to one of the
language codes listed in
Language Support.public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<TranslationsListResponse>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<TranslationsListResponse>IOExceptionpublic Translate.Translations.List set$Xgafv(String $Xgafv)
TranslateRequestset$Xgafv in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setAccessToken(String accessToken)
TranslateRequestsetAccessToken in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setAlt(String alt)
TranslateRequestsetAlt in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setBearerToken(String bearerToken)
TranslateRequestsetBearerToken in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setCallback(String callback)
TranslateRequestsetCallback in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setFields(String fields)
TranslateRequestsetFields in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setKey(String key)
TranslateRequestsetKey in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setOauthToken(String oauthToken)
TranslateRequestsetOauthToken in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setPp(Boolean pp)
TranslateRequestsetPp in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setPrettyPrint(Boolean prettyPrint)
TranslateRequestsetPrettyPrint in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setQuotaUser(String quotaUser)
TranslateRequestsetQuotaUser in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setUploadType(String uploadType)
TranslateRequestsetUploadType in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setUploadProtocol(String uploadProtocol)
TranslateRequestsetUploadProtocol in class TranslateRequest<TranslationsListResponse>public List<String> getQ()
public Translate.Translations.List setQ(List<String> q)
public String getTarget()
public Translate.Translations.List setTarget(String target)
public Translate.Translations.List setCid(List<String> cid)
public String getFormat()
public Translate.Translations.List setFormat(String format)
public String getModel()
public Translate.Translations.List setModel(String model)
public String getSource()
public Translate.Translations.List setSource(String source)
public Translate.Translations.List set(String parameterName, Object value)
set in class TranslateRequest<TranslationsListResponse>Copyright © 2011–2021 Google. All rights reserved.