public class Gmail.Users.Drafts.Update extends GmailRequest<Draft>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
Update(java.lang.String userId,
java.lang.String id,
Draft content)
Replaces a draft's content.
|
protected |
Update(java.lang.String userId,
java.lang.String id,
Draft content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Replaces a draft's content.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId()
The ID of the draft to update.
|
java.lang.String |
getUserId()
The user's email address.
|
Gmail.Users.Drafts.Update |
set(java.lang.String parameterName,
java.lang.Object value) |
Gmail.Users.Drafts.Update |
setAlt(java.lang.String alt)
Data format for the response.
|
Gmail.Users.Drafts.Update |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.Drafts.Update |
setId(java.lang.String id)
The ID of the draft to update.
|
Gmail.Users.Drafts.Update |
setKey(java.lang.String key)
API key.
|
Gmail.Users.Drafts.Update |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.Drafts.Update |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.Drafts.Update |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
Gmail.Users.Drafts.Update |
setUserId(java.lang.String userId)
The user's email address.
|
Gmail.Users.Drafts.Update |
setUserIp(java.lang.String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, 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, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesprotected Update(java.lang.String userId,
java.lang.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(java.lang.String userId,
java.lang.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 or null if none.public Gmail.Users.Drafts.Update setAlt(java.lang.String alt)
GmailRequestsetAlt in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setFields(java.lang.String fields)
GmailRequestsetFields in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setKey(java.lang.String key)
GmailRequestsetKey in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setOauthToken(java.lang.String oauthToken)
GmailRequestsetOauthToken in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setPrettyPrint(java.lang.Boolean prettyPrint)
GmailRequestsetPrettyPrint in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setQuotaUser(java.lang.String quotaUser)
GmailRequestsetQuotaUser in class GmailRequest<Draft>public Gmail.Users.Drafts.Update setUserIp(java.lang.String userIp)
GmailRequestsetUserIp in class GmailRequest<Draft>public java.lang.String getUserId()
public Gmail.Users.Drafts.Update setUserId(java.lang.String userId)
public java.lang.String getId()
public Gmail.Users.Drafts.Update setId(java.lang.String id)
public Gmail.Users.Drafts.Update set(java.lang.String parameterName, java.lang.Object value)
set in class GmailRequest<Draft>