public class Translate.Translations.List extends TranslateRequest<TranslationsListResponse>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Translate.Translations.List(List<String> q,
String target)
Returns text translations from one language to another.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
List<String> |
getCid()
The customization id for translate
|
String |
getFormat()
The format of the text
|
List<String> |
getQ()
The text to translate
|
String |
getSource()
The source language of the text
|
String |
getTarget()
The target language into which the text should be translated
|
Translate.Translations.List |
set(String parameterName,
Object value) |
Translate.Translations.List |
setAlt(String alt)
Data format for the response.
|
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 text
|
Translate.Translations.List |
setKey(String key)
API key.
|
Translate.Translations.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Translate.Translations.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Translate.Translations.List |
setQ(List<String> q)
The 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 source language of the text
|
Translate.Translations.List |
setTarget(String target)
The target language into which the text should be translated
|
Translate.Translations.List |
setUserIp(String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesprotected Translate.Translations.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 text to translatetarget - The target language into which the text should be translatedpublic HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<TranslationsListResponse>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<TranslationsListResponse>IOExceptionpublic Translate.Translations.List setAlt(String alt)
TranslateRequestsetAlt 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 setPrettyPrint(Boolean prettyPrint)
TranslateRequestsetPrettyPrint in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setQuotaUser(String quotaUser)
TranslateRequestsetQuotaUser in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setUserIp(String userIp)
TranslateRequestsetUserIp in class TranslateRequest<TranslationsListResponse>public Translate.Translations.List setQ(List<String> q)
public String getTarget()
public Translate.Translations.List setTarget(String target)
public String getSource()
public Translate.Translations.List setSource(String source)
public String getFormat()
public Translate.Translations.List setFormat(String format)
public Translate.Translations.List setCid(List<String> cid)
public Translate.Translations.List set(String parameterName, Object value)
set in class TranslateRequest<TranslationsListResponse>