public class Gmail.Users.Drafts.Update extends GmailRequest<Draft>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Update(String userId,
String id,
Draft content)
Replaces a draft's content.
|
protected |
Update(String userId,
String id,
Draft content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Replaces a draft's content.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
The ID of the draft to update.
|
String |
getUserId()
The user's email address.
|
Gmail.Users.Drafts.Update |
set(String parameterName,
Object value) |
Gmail.Users.Drafts.Update |
set$Xgafv(String $Xgafv)
V1 error format.
|
Gmail.Users.Drafts.Update |
setAccessToken(String accessToken)
OAuth access token.
|
Gmail.Users.Drafts.Update |
setAlt(String alt)
Data format for response.
|
Gmail.Users.Drafts.Update |
setCallback(String callback)
JSONP
|
Gmail.Users.Drafts.Update |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.Drafts.Update |
setId(String id)
The ID of the draft to update.
|
Gmail.Users.Drafts.Update |
setKey(String key)
API key.
|
Gmail.Users.Drafts.Update |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.Drafts.Update |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.Drafts.Update |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Gmail.Users.Drafts.Update |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Gmail.Users.Drafts.Update |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
Gmail.Users.Drafts.Update |
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, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, 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 Update(String userId, String id, Draft content)
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 draft to update.content - the Draftprotected Update(String userId, String id, Draft content, com.google.api.client.http.AbstractInputStreamContent mediaContent)
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.
This constructor should be used for uploading media content.
userId - The user's email address. The special value `me` can be used to indicate the authenticated user.
[default: me]@param id The ID of the draft to update.content - the Draft media metadata or null if nonemediaContent - The media HTTP content.public Gmail.Users.Drafts.Update set$Xgafv(String $Xgafv)
GmailRequestset$Xgafv in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setAccessToken(String accessToken)
GmailRequestsetAccessToken in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setAlt(String alt)
GmailRequestsetAlt in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setCallback(String callback)
GmailRequestsetCallback in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setFields(String fields)
GmailRequestsetFields in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setKey(String key)
GmailRequestsetKey in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setOauthToken(String oauthToken)
GmailRequestsetOauthToken in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setPrettyPrint(Boolean prettyPrint)
GmailRequestsetPrettyPrint in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setQuotaUser(String quotaUser)
GmailRequestsetQuotaUser in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setUploadType(String uploadType)
GmailRequestsetUploadType in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setUploadProtocol(String uploadProtocol)
GmailRequestsetUploadProtocol in class GmailRequest<Draft>public String getUserId()
public Gmail.Users.Drafts.Update setUserId(String userId)
public String getId()
public Gmail.Users.Drafts.Update setId(String id)
public Gmail.Users.Drafts.Update set(String parameterName, Object value)
set in class GmailRequest<Draft>Copyright © 2011–2025 Google. All rights reserved.