public class Gmail.Users.Threads.Get extends GmailRequest<Thread>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Get(String userId,
String id)
Gets the specified thread.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getFormat()
The format to return the messages in.
|
String |
getId()
The ID of the thread to retrieve.
|
List<String> |
getMetadataHeaders()
When given and format is METADATA, only include headers specified.
|
String |
getUserId()
The user's email address.
|
Gmail.Users.Threads.Get |
set(String parameterName,
Object value) |
Gmail.Users.Threads.Get |
set$Xgafv(String $Xgafv)
V1 error format.
|
Gmail.Users.Threads.Get |
setAccessToken(String accessToken)
OAuth access token.
|
Gmail.Users.Threads.Get |
setAlt(String alt)
Data format for response.
|
Gmail.Users.Threads.Get |
setCallback(String callback)
JSONP
|
Gmail.Users.Threads.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.Threads.Get |
setFormat(String format)
The format to return the messages in.
|
Gmail.Users.Threads.Get |
setId(String id)
The ID of the thread to retrieve.
|
Gmail.Users.Threads.Get |
setKey(String key)
API key.
|
Gmail.Users.Threads.Get |
setMetadataHeaders(List<String> metadataHeaders)
When given and format is METADATA, only include headers specified.
|
Gmail.Users.Threads.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.Threads.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.Threads.Get |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Gmail.Users.Threads.Get |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Gmail.Users.Threads.Get |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
Gmail.Users.Threads.Get |
setUserId(String userId)
The user's email address.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, 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 Get(String userId, String id)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Gmail.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be
called to initialize this instance immediately after invoking the constructor.
userId - The user's email address. The special value `me` can be used to indicate the authenticated user.
[default: me]id - The ID of the thread to retrieve.public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Thread>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Thread>IOExceptionpublic Gmail.Users.Threads.Get set$Xgafv(String $Xgafv)
GmailRequestset$Xgafv in class GmailRequest<Thread>public Gmail.Users.Threads.Get setAccessToken(String accessToken)
GmailRequestsetAccessToken in class GmailRequest<Thread>public Gmail.Users.Threads.Get setAlt(String alt)
GmailRequestsetAlt in class GmailRequest<Thread>public Gmail.Users.Threads.Get setCallback(String callback)
GmailRequestsetCallback in class GmailRequest<Thread>public Gmail.Users.Threads.Get setFields(String fields)
GmailRequestsetFields in class GmailRequest<Thread>public Gmail.Users.Threads.Get setKey(String key)
GmailRequestsetKey in class GmailRequest<Thread>public Gmail.Users.Threads.Get setOauthToken(String oauthToken)
GmailRequestsetOauthToken in class GmailRequest<Thread>public Gmail.Users.Threads.Get setPrettyPrint(Boolean prettyPrint)
GmailRequestsetPrettyPrint in class GmailRequest<Thread>public Gmail.Users.Threads.Get setQuotaUser(String quotaUser)
GmailRequestsetQuotaUser in class GmailRequest<Thread>public Gmail.Users.Threads.Get setUploadType(String uploadType)
GmailRequestsetUploadType in class GmailRequest<Thread>public Gmail.Users.Threads.Get setUploadProtocol(String uploadProtocol)
GmailRequestsetUploadProtocol in class GmailRequest<Thread>public String getUserId()
public Gmail.Users.Threads.Get setUserId(String userId)
public String getId()
public Gmail.Users.Threads.Get setId(String id)
public String getFormat()
public Gmail.Users.Threads.Get setFormat(String format)
public List<String> getMetadataHeaders()
public Gmail.Users.Threads.Get setMetadataHeaders(List<String> metadataHeaders)
public Gmail.Users.Threads.Get set(String parameterName, Object value)
set in class GmailRequest<Thread>Copyright © 2011–2025 Google. All rights reserved.