public class Gmail.Users.Messages.Insert extends GmailRequest<Message>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
Insert(java.lang.String userId,
Message content)
Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most
scanning and classification.
|
protected |
Insert(java.lang.String userId,
Message content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most
scanning and classification.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getDeleted()
Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault
administrator.
|
java.lang.String |
getInternalDateSource()
Source for Gmail's internal date of the message.
|
java.lang.String |
getUserId()
The user's email address.
|
boolean |
isDeleted()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
Gmail.Users.Messages.Insert |
set(java.lang.String parameterName,
java.lang.Object value) |
Gmail.Users.Messages.Insert |
setAlt(java.lang.String alt)
Data format for the response.
|
Gmail.Users.Messages.Insert |
setDeleted(java.lang.Boolean deleted)
Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a
Vault administrator.
|
Gmail.Users.Messages.Insert |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.Messages.Insert |
setInternalDateSource(java.lang.String internalDateSource)
Source for Gmail's internal date of the message.
|
Gmail.Users.Messages.Insert |
setKey(java.lang.String key)
API key.
|
Gmail.Users.Messages.Insert |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.Messages.Insert |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.Messages.Insert |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
Gmail.Users.Messages.Insert |
setUserId(java.lang.String userId)
The user's email address.
|
Gmail.Users.Messages.Insert |
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 Insert(java.lang.String userId,
Message 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 Messageprotected Insert(java.lang.String userId,
Message 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 Message media metadata or null if nonemediaContent - The media HTTP content or null if none.public Gmail.Users.Messages.Insert setAlt(java.lang.String alt)
GmailRequestsetAlt in class GmailRequest<Message>public Gmail.Users.Messages.Insert setFields(java.lang.String fields)
GmailRequestsetFields in class GmailRequest<Message>public Gmail.Users.Messages.Insert setKey(java.lang.String key)
GmailRequestsetKey in class GmailRequest<Message>public Gmail.Users.Messages.Insert setOauthToken(java.lang.String oauthToken)
GmailRequestsetOauthToken in class GmailRequest<Message>public Gmail.Users.Messages.Insert setPrettyPrint(java.lang.Boolean prettyPrint)
GmailRequestsetPrettyPrint in class GmailRequest<Message>public Gmail.Users.Messages.Insert setQuotaUser(java.lang.String quotaUser)
GmailRequestsetQuotaUser in class GmailRequest<Message>public Gmail.Users.Messages.Insert setUserIp(java.lang.String userIp)
GmailRequestsetUserIp in class GmailRequest<Message>public java.lang.String getUserId()
public Gmail.Users.Messages.Insert setUserId(java.lang.String userId)
public java.lang.Boolean getDeleted()
public Gmail.Users.Messages.Insert setDeleted(java.lang.Boolean deleted)
public boolean isDeleted()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts.
public java.lang.String getInternalDateSource()
public Gmail.Users.Messages.Insert setInternalDateSource(java.lang.String internalDateSource)
public Gmail.Users.Messages.Insert set(java.lang.String parameterName, java.lang.Object value)
set in class GmailRequest<Message>