public class Gmail.Users.Messages.Get extends GmailRequest<Message>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Get(String userId,
String id)
Gets the specified message.
|
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 message in.
|
String |
getId()
The ID of the message to retrieve.
|
List<String> |
getMetadataHeaders()
When given and format is `METADATA`, only include headers specified.
|
String |
getUserId()
The user's email address.
|
Gmail.Users.Messages.Get |
set(String parameterName,
Object value) |
Gmail.Users.Messages.Get |
set$Xgafv(String $Xgafv)
V1 error format.
|
Gmail.Users.Messages.Get |
setAccessToken(String accessToken)
OAuth access token.
|
Gmail.Users.Messages.Get |
setAlt(String alt)
Data format for response.
|
Gmail.Users.Messages.Get |
setCallback(String callback)
JSONP
|
Gmail.Users.Messages.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.Messages.Get |
setFormat(String format)
The format to return the message in.
|
Gmail.Users.Messages.Get |
setId(String id)
The ID of the message to retrieve.
|
Gmail.Users.Messages.Get |
setKey(String key)
API key.
|
Gmail.Users.Messages.Get |
setMetadataHeaders(List<String> metadataHeaders)
When given and format is `METADATA`, only include headers specified.
|
Gmail.Users.Messages.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.Messages.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.Messages.Get |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Gmail.Users.Messages.Get |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Gmail.Users.Messages.Get |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
Gmail.Users.Messages.Get |
setUserId(String userId)
The user's email address.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected 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 message to retrieve. This ID is usually retrieved using `messages.list`. The ID is
also contained in the result when a message is inserted (`messages.insert`) or imported
(`messages.import`).public com.google.api.client.http.HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Message>
IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<Message>
IOException
public Gmail.Users.Messages.Get set$Xgafv(String $Xgafv)
GmailRequest
set$Xgafv
in class GmailRequest<Message>
public Gmail.Users.Messages.Get setAccessToken(String accessToken)
GmailRequest
setAccessToken
in class GmailRequest<Message>
public Gmail.Users.Messages.Get setAlt(String alt)
GmailRequest
setAlt
in class GmailRequest<Message>
public Gmail.Users.Messages.Get setCallback(String callback)
GmailRequest
setCallback
in class GmailRequest<Message>
public Gmail.Users.Messages.Get setFields(String fields)
GmailRequest
setFields
in class GmailRequest<Message>
public Gmail.Users.Messages.Get setKey(String key)
GmailRequest
setKey
in class GmailRequest<Message>
public Gmail.Users.Messages.Get setOauthToken(String oauthToken)
GmailRequest
setOauthToken
in class GmailRequest<Message>
public Gmail.Users.Messages.Get setPrettyPrint(Boolean prettyPrint)
GmailRequest
setPrettyPrint
in class GmailRequest<Message>
public Gmail.Users.Messages.Get setQuotaUser(String quotaUser)
GmailRequest
setQuotaUser
in class GmailRequest<Message>
public Gmail.Users.Messages.Get setUploadType(String uploadType)
GmailRequest
setUploadType
in class GmailRequest<Message>
public Gmail.Users.Messages.Get setUploadProtocol(String uploadProtocol)
GmailRequest
setUploadProtocol
in class GmailRequest<Message>
public String getUserId()
public Gmail.Users.Messages.Get setUserId(String userId)
public String getId()
public Gmail.Users.Messages.Get setId(String id)
public String getFormat()
public Gmail.Users.Messages.Get setFormat(String format)
public List<String> getMetadataHeaders()
public Gmail.Users.Messages.Get setMetadataHeaders(List<String> metadataHeaders)
public Gmail.Users.Messages.Get set(String parameterName, Object value)
set
in class GmailRequest<Message>
Copyright © 2011–2024 Google. All rights reserved.