public class Gmail.Users.Messages.Attachments.Get extends GmailRequest<MessagePartBody>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Get(String userId,
String messageId,
String id)
Gets the specified message attachment.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getId()
The ID of the attachment.
|
String |
getMessageId()
The ID of the message containing the attachment.
|
String |
getUserId()
The user's email address.
|
Gmail.Users.Messages.Attachments.Get |
set(String parameterName,
Object value) |
Gmail.Users.Messages.Attachments.Get |
setAlt(String alt)
Data format for the response.
|
Gmail.Users.Messages.Attachments.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.Messages.Attachments.Get |
setId(String id)
The ID of the attachment.
|
Gmail.Users.Messages.Attachments.Get |
setKey(String key)
API key.
|
Gmail.Users.Messages.Attachments.Get |
setMessageId(String messageId)
The ID of the message containing the attachment.
|
Gmail.Users.Messages.Attachments.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.Messages.Attachments.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.Messages.Attachments.Get |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Gmail.Users.Messages.Attachments.Get |
setUserId(String userId)
The user's email address.
|
Gmail.Users.Messages.Attachments.Get |
setUserIp(String userIp)
Deprecated.
|
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, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Get(String userId, String messageId, 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]messageId - The ID of the message containing the attachment.id - The ID of the attachment.public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<MessagePartBody>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<MessagePartBody>IOExceptionpublic Gmail.Users.Messages.Attachments.Get setAlt(String alt)
GmailRequestsetAlt in class GmailRequest<MessagePartBody>public Gmail.Users.Messages.Attachments.Get setFields(String fields)
GmailRequestsetFields in class GmailRequest<MessagePartBody>public Gmail.Users.Messages.Attachments.Get setKey(String key)
GmailRequestsetKey in class GmailRequest<MessagePartBody>public Gmail.Users.Messages.Attachments.Get setOauthToken(String oauthToken)
GmailRequestsetOauthToken in class GmailRequest<MessagePartBody>public Gmail.Users.Messages.Attachments.Get setPrettyPrint(Boolean prettyPrint)
GmailRequestsetPrettyPrint in class GmailRequest<MessagePartBody>public Gmail.Users.Messages.Attachments.Get setQuotaUser(String quotaUser)
GmailRequestsetQuotaUser in class GmailRequest<MessagePartBody>public Gmail.Users.Messages.Attachments.Get setUserIp(String userIp)
GmailRequestsetUserIp in class GmailRequest<MessagePartBody>public String getUserId()
public Gmail.Users.Messages.Attachments.Get setUserId(String userId)
public String getMessageId()
public Gmail.Users.Messages.Attachments.Get setMessageId(String messageId)
public String getId()
public Gmail.Users.Messages.Attachments.Get setId(String id)
public Gmail.Users.Messages.Attachments.Get set(String parameterName, Object value)
set in class GmailRequest<MessagePartBody>Copyright © 2011–2018 Google. All rights reserved.