public class Gmail.Users.Drafts.Create extends GmailRequest<Draft>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Gmail.Users.Drafts.Create(java.lang.String userId,
Draft content)
Creates a new draft with the DRAFT label.
|
protected |
Gmail.Users.Drafts.Create(java.lang.String userId,
Draft content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Creates a new draft with the DRAFT label.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUserId()
The user's email address.
|
Gmail.Users.Drafts.Create |
set(java.lang.String parameterName,
java.lang.Object value) |
Gmail.Users.Drafts.Create |
setAlt(java.lang.String alt)
Data format for the response.
|
Gmail.Users.Drafts.Create |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.Drafts.Create |
setKey(java.lang.String key)
API key.
|
Gmail.Users.Drafts.Create |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.Drafts.Create |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.Drafts.Create |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Gmail.Users.Drafts.Create |
setUserId(java.lang.String userId)
The user's email address.
|
Gmail.Users.Drafts.Create |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
protected Gmail.Users.Drafts.Create(java.lang.String userId, 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]content
- the Draft
protected Gmail.Users.Drafts.Create(java.lang.String userId, 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]content
- the Draft
media metadata or null
if nonemediaContent
- The media HTTP content or null
if none.public Gmail.Users.Drafts.Create setAlt(java.lang.String alt)
GmailRequest
setAlt
in class GmailRequest<Draft>
public Gmail.Users.Drafts.Create setFields(java.lang.String fields)
GmailRequest
setFields
in class GmailRequest<Draft>
public Gmail.Users.Drafts.Create setKey(java.lang.String key)
GmailRequest
setKey
in class GmailRequest<Draft>
public Gmail.Users.Drafts.Create setOauthToken(java.lang.String oauthToken)
GmailRequest
setOauthToken
in class GmailRequest<Draft>
public Gmail.Users.Drafts.Create setPrettyPrint(java.lang.Boolean prettyPrint)
GmailRequest
setPrettyPrint
in class GmailRequest<Draft>
public Gmail.Users.Drafts.Create setQuotaUser(java.lang.String quotaUser)
GmailRequest
setQuotaUser
in class GmailRequest<Draft>
public Gmail.Users.Drafts.Create setUserIp(java.lang.String userIp)
GmailRequest
setUserIp
in class GmailRequest<Draft>
public java.lang.String getUserId()
public Gmail.Users.Drafts.Create setUserId(java.lang.String userId)
public Gmail.Users.Drafts.Create set(java.lang.String parameterName, java.lang.Object value)
set
in class GmailRequest<Draft>