public class Gmail.Users.Messages.GmailImport extends GmailRequest<Message>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
GmailImport(String userId,
Message content)
Imports a message into only this user's mailbox, with standard email delivery scanning and
classification similar to receiving via SMTP.
|
protected |
GmailImport(String userId,
Message content,
com.google.api.client.http.AbstractInputStreamContent mediaContent)
Imports a message into only this user's mailbox, with standard email delivery scanning and
classification similar to receiving via SMTP.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getDeleted()
Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault
administrator.
|
String |
getInternalDateSource()
Source for Gmail's internal date of the message.
|
Boolean |
getNeverMarkSpam()
Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.
|
Boolean |
getProcessForCalendar()
Process calendar invites in the email and add any extracted meetings to the Google Calendar for
this user.
|
String |
getUserId()
The user's email address.
|
boolean |
isDeleted()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isNeverMarkSpam()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isProcessForCalendar()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
Gmail.Users.Messages.GmailImport |
set(String parameterName,
Object value) |
Gmail.Users.Messages.GmailImport |
set$Xgafv(String $Xgafv)
V1 error format.
|
Gmail.Users.Messages.GmailImport |
setAccessToken(String accessToken)
OAuth access token.
|
Gmail.Users.Messages.GmailImport |
setAlt(String alt)
Data format for response.
|
Gmail.Users.Messages.GmailImport |
setCallback(String callback)
JSONP
|
Gmail.Users.Messages.GmailImport |
setDeleted(Boolean deleted)
Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a
Vault administrator.
|
Gmail.Users.Messages.GmailImport |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.Messages.GmailImport |
setInternalDateSource(String internalDateSource)
Source for Gmail's internal date of the message.
|
Gmail.Users.Messages.GmailImport |
setKey(String key)
API key.
|
Gmail.Users.Messages.GmailImport |
setNeverMarkSpam(Boolean neverMarkSpam)
Ignore the Gmail spam classifier decision and never mark this email as SPAM in the
mailbox.
|
Gmail.Users.Messages.GmailImport |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.Messages.GmailImport |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.Messages.GmailImport |
setProcessForCalendar(Boolean processForCalendar)
Process calendar invites in the email and add any extracted meetings to the Google
Calendar for this user.
|
Gmail.Users.Messages.GmailImport |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Gmail.Users.Messages.GmailImport |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Gmail.Users.Messages.GmailImport |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
Gmail.Users.Messages.GmailImport |
setUserId(String userId)
The user's email address.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, 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, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStream
clone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toString
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
protected GmailImport(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 Message
protected GmailImport(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.public Gmail.Users.Messages.GmailImport set$Xgafv(String $Xgafv)
GmailRequest
set$Xgafv
in class GmailRequest<Message>
public Gmail.Users.Messages.GmailImport setAccessToken(String accessToken)
GmailRequest
setAccessToken
in class GmailRequest<Message>
public Gmail.Users.Messages.GmailImport setAlt(String alt)
GmailRequest
setAlt
in class GmailRequest<Message>
public Gmail.Users.Messages.GmailImport setCallback(String callback)
GmailRequest
setCallback
in class GmailRequest<Message>
public Gmail.Users.Messages.GmailImport setFields(String fields)
GmailRequest
setFields
in class GmailRequest<Message>
public Gmail.Users.Messages.GmailImport setKey(String key)
GmailRequest
setKey
in class GmailRequest<Message>
public Gmail.Users.Messages.GmailImport setOauthToken(String oauthToken)
GmailRequest
setOauthToken
in class GmailRequest<Message>
public Gmail.Users.Messages.GmailImport setPrettyPrint(Boolean prettyPrint)
GmailRequest
setPrettyPrint
in class GmailRequest<Message>
public Gmail.Users.Messages.GmailImport setQuotaUser(String quotaUser)
GmailRequest
setQuotaUser
in class GmailRequest<Message>
public Gmail.Users.Messages.GmailImport setUploadType(String uploadType)
GmailRequest
setUploadType
in class GmailRequest<Message>
public Gmail.Users.Messages.GmailImport setUploadProtocol(String uploadProtocol)
GmailRequest
setUploadProtocol
in class GmailRequest<Message>
public String getUserId()
public Gmail.Users.Messages.GmailImport setUserId(String userId)
public Boolean getDeleted()
public Gmail.Users.Messages.GmailImport setDeleted(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 Google Workspace accounts.
public String getInternalDateSource()
public Gmail.Users.Messages.GmailImport setInternalDateSource(String internalDateSource)
public Boolean getNeverMarkSpam()
public Gmail.Users.Messages.GmailImport setNeverMarkSpam(Boolean neverMarkSpam)
public boolean isNeverMarkSpam()
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
.
Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.
public Boolean getProcessForCalendar()
public Gmail.Users.Messages.GmailImport setProcessForCalendar(Boolean processForCalendar)
public boolean isProcessForCalendar()
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
.
Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user.
public Gmail.Users.Messages.GmailImport set(String parameterName, Object value)
set
in class GmailRequest<Message>
Copyright © 2011–2024 Google. All rights reserved.