public class Gmail.Users.Threads.List extends GmailRequest<ListThreadsResponse>
com.google.api.client.util.GenericData.FlagsAbstractMap.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 |
setAlt(String alt)
Data format for the response.
|
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)
An opaque string that represents a user for quota purposes.
|
Gmail.Users.Threads.List |
setUserId(String userId)
The user's email address.
|
Gmail.Users.Threads.List |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, 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, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected 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>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<ListThreadsResponse>IOExceptionpublic Gmail.Users.Threads.List setAlt(String alt)
GmailRequestsetAlt in class GmailRequest<ListThreadsResponse>public Gmail.Users.Threads.List setFields(String fields)
GmailRequestsetFields in class GmailRequest<ListThreadsResponse>public Gmail.Users.Threads.List setKey(String key)
GmailRequestsetKey in class GmailRequest<ListThreadsResponse>public Gmail.Users.Threads.List setOauthToken(String oauthToken)
GmailRequestsetOauthToken in class GmailRequest<ListThreadsResponse>public Gmail.Users.Threads.List setPrettyPrint(Boolean prettyPrint)
GmailRequestsetPrettyPrint in class GmailRequest<ListThreadsResponse>public Gmail.Users.Threads.List setQuotaUser(String quotaUser)
GmailRequestsetQuotaUser in class GmailRequest<ListThreadsResponse>public Gmail.Users.Threads.List setUserIp(String userIp)
GmailRequestsetUserIp 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–2018 Google. All rights reserved.