public class Gmail.Users.Messages.List extends GmailRequest<ListMessagesResponse>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
List(String userId)
Lists the messages in the user's mailbox.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
Boolean |
getIncludeSpamTrash()
Include messages from `SPAM` and `TRASH` in the results.
|
List<String> |
getLabelIds()
Only return messages with labels that match all of the specified label IDs.
|
Long |
getMaxResults()
Maximum number of messages to return.
|
String |
getPageToken()
Page token to retrieve a specific page of results in the list.
|
String |
getQ()
Only return messages matching the specified query.
|
String |
getUserId()
The user's email address.
|
boolean |
isIncludeSpamTrash()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
Gmail.Users.Messages.List |
set(String parameterName,
Object value) |
Gmail.Users.Messages.List |
set$Xgafv(String $Xgafv)
V1 error format.
|
Gmail.Users.Messages.List |
setAccessToken(String accessToken)
OAuth access token.
|
Gmail.Users.Messages.List |
setAlt(String alt)
Data format for response.
|
Gmail.Users.Messages.List |
setCallback(String callback)
JSONP
|
Gmail.Users.Messages.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.Messages.List |
setIncludeSpamTrash(Boolean includeSpamTrash)
Include messages from `SPAM` and `TRASH` in the results.
|
Gmail.Users.Messages.List |
setKey(String key)
API key.
|
Gmail.Users.Messages.List |
setLabelIds(List<String> labelIds)
Only return messages with labels that match all of the specified label IDs.
|
Gmail.Users.Messages.List |
setMaxResults(Long maxResults)
Maximum number of messages to return.
|
Gmail.Users.Messages.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.Messages.List |
setPageToken(String pageToken)
Page token to retrieve a specific page of results in the list.
|
Gmail.Users.Messages.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.Messages.List |
setQ(String q)
Only return messages matching the specified query.
|
Gmail.Users.Messages.List |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Gmail.Users.Messages.List |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Gmail.Users.Messages.List |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
Gmail.Users.Messages.List |
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, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, 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 List(String userId)
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]public com.google.api.client.http.HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<ListMessagesResponse>
IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<ListMessagesResponse>
IOException
public Gmail.Users.Messages.List set$Xgafv(String $Xgafv)
GmailRequest
set$Xgafv
in class GmailRequest<ListMessagesResponse>
public Gmail.Users.Messages.List setAccessToken(String accessToken)
GmailRequest
setAccessToken
in class GmailRequest<ListMessagesResponse>
public Gmail.Users.Messages.List setAlt(String alt)
GmailRequest
setAlt
in class GmailRequest<ListMessagesResponse>
public Gmail.Users.Messages.List setCallback(String callback)
GmailRequest
setCallback
in class GmailRequest<ListMessagesResponse>
public Gmail.Users.Messages.List setFields(String fields)
GmailRequest
setFields
in class GmailRequest<ListMessagesResponse>
public Gmail.Users.Messages.List setKey(String key)
GmailRequest
setKey
in class GmailRequest<ListMessagesResponse>
public Gmail.Users.Messages.List setOauthToken(String oauthToken)
GmailRequest
setOauthToken
in class GmailRequest<ListMessagesResponse>
public Gmail.Users.Messages.List setPrettyPrint(Boolean prettyPrint)
GmailRequest
setPrettyPrint
in class GmailRequest<ListMessagesResponse>
public Gmail.Users.Messages.List setQuotaUser(String quotaUser)
GmailRequest
setQuotaUser
in class GmailRequest<ListMessagesResponse>
public Gmail.Users.Messages.List setUploadType(String uploadType)
GmailRequest
setUploadType
in class GmailRequest<ListMessagesResponse>
public Gmail.Users.Messages.List setUploadProtocol(String uploadProtocol)
GmailRequest
setUploadProtocol
in class GmailRequest<ListMessagesResponse>
public String getUserId()
public Gmail.Users.Messages.List setUserId(String userId)
public Boolean getIncludeSpamTrash()
public Gmail.Users.Messages.List setIncludeSpamTrash(Boolean includeSpamTrash)
public boolean isIncludeSpamTrash()
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
.
Include messages from `SPAM` and `TRASH` in the results.
public List<String> getLabelIds()
public Gmail.Users.Messages.List setLabelIds(List<String> labelIds)
public Long getMaxResults()
public Gmail.Users.Messages.List setMaxResults(Long maxResults)
public String getPageToken()
public Gmail.Users.Messages.List setPageToken(String pageToken)
public String getQ()
public Gmail.Users.Messages.List setQ(String q)
public Gmail.Users.Messages.List set(String parameterName, Object value)
set
in class GmailRequest<ListMessagesResponse>
Copyright © 2011–2024 Google. All rights reserved.