public class Gmail.Users.Threads.List extends GmailRequest<ListThreadsResponse>
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 threads 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 threads from `SPAM` and `TRASH` in the results.
|
List<String> |
getLabelIds()
Only return threads with labels that match all of the specified label IDs.
|
Long |
getMaxResults()
Maximum number of threads to return.
|
String |
getPageToken()
Page token to retrieve a specific page of results in the list.
|
String |
getQ()
Only return threads 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.Threads.List |
set(String parameterName,
Object value) |
Gmail.Users.Threads.List |
set$Xgafv(String $Xgafv)
V1 error format.
|
Gmail.Users.Threads.List |
setAccessToken(String accessToken)
OAuth access token.
|
Gmail.Users.Threads.List |
setAlt(String alt)
Data format for response.
|
Gmail.Users.Threads.List |
setCallback(String callback)
JSONP
|
Gmail.Users.Threads.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.Threads.List |
setIncludeSpamTrash(Boolean includeSpamTrash)
Include threads from `SPAM` and `TRASH` in the results.
|
Gmail.Users.Threads.List |
setKey(String key)
API key.
|
Gmail.Users.Threads.List |
setLabelIds(List<String> labelIds)
Only return threads with labels that match all of the specified label IDs.
|
Gmail.Users.Threads.List |
setMaxResults(Long maxResults)
Maximum number of threads to return.
|
Gmail.Users.Threads.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.Threads.List |
setPageToken(String pageToken)
Page token to retrieve a specific page of results in the list.
|
Gmail.Users.Threads.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.Threads.List |
setQ(String q)
Only return threads matching the specified query.
|
Gmail.Users.Threads.List |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Gmail.Users.Threads.List |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Gmail.Users.Threads.List |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
Gmail.Users.Threads.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<ListThreadsResponse>
IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<ListThreadsResponse>
IOException
public Gmail.Users.Threads.List set$Xgafv(String $Xgafv)
GmailRequest
set$Xgafv
in class GmailRequest<ListThreadsResponse>
public Gmail.Users.Threads.List setAccessToken(String accessToken)
GmailRequest
setAccessToken
in class GmailRequest<ListThreadsResponse>
public Gmail.Users.Threads.List setAlt(String alt)
GmailRequest
setAlt
in class GmailRequest<ListThreadsResponse>
public Gmail.Users.Threads.List setCallback(String callback)
GmailRequest
setCallback
in class GmailRequest<ListThreadsResponse>
public Gmail.Users.Threads.List setFields(String fields)
GmailRequest
setFields
in class GmailRequest<ListThreadsResponse>
public Gmail.Users.Threads.List setKey(String key)
GmailRequest
setKey
in class GmailRequest<ListThreadsResponse>
public Gmail.Users.Threads.List setOauthToken(String oauthToken)
GmailRequest
setOauthToken
in class GmailRequest<ListThreadsResponse>
public Gmail.Users.Threads.List setPrettyPrint(Boolean prettyPrint)
GmailRequest
setPrettyPrint
in class GmailRequest<ListThreadsResponse>
public Gmail.Users.Threads.List setQuotaUser(String quotaUser)
GmailRequest
setQuotaUser
in class GmailRequest<ListThreadsResponse>
public Gmail.Users.Threads.List setUploadType(String uploadType)
GmailRequest
setUploadType
in class GmailRequest<ListThreadsResponse>
public Gmail.Users.Threads.List setUploadProtocol(String uploadProtocol)
GmailRequest
setUploadProtocol
in class GmailRequest<ListThreadsResponse>
public String getUserId()
public Gmail.Users.Threads.List setUserId(String userId)
public Boolean getIncludeSpamTrash()
public Gmail.Users.Threads.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 threads from `SPAM` and `TRASH` in the results.
public List<String> getLabelIds()
public Gmail.Users.Threads.List setLabelIds(List<String> labelIds)
public Long getMaxResults()
public Gmail.Users.Threads.List setMaxResults(Long maxResults)
public String getPageToken()
public Gmail.Users.Threads.List setPageToken(String pageToken)
public String getQ()
public Gmail.Users.Threads.List setQ(String q)
public Gmail.Users.Threads.List set(String parameterName, Object value)
set
in class GmailRequest<ListThreadsResponse>
Copyright © 2011–2024 Google. All rights reserved.