public class Gmail.Users.Threads.List extends GmailRequest<ListThreadsResponse>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Gmail.Users.Threads.List(String userId)
Lists the threads in the user's mailbox.
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
buildHttpRequestUsingHead() |
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)
Available to use for quota purposes for server-side applications.
|
Gmail.Users.Threads.List |
setUserId(String userId)
The user's email address.
|
Gmail.Users.Threads.List |
setUserIp(String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, 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, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
protected Gmail.Users.Threads.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 HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class AbstractGoogleClientRequest<ListThreadsResponse>
IOException
public HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class AbstractGoogleClientRequest<ListThreadsResponse>
IOException
public Gmail.Users.Threads.List setAlt(String alt)
GmailRequest
setAlt
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 setUserIp(String userIp)
GmailRequest
setUserIp
in class GmailRequest<ListThreadsResponse>
public String getUserId()
public Gmail.Users.Threads.List setUserId(String userId)
public Long getMaxResults()
public Gmail.Users.Threads.List setMaxResults(Long maxResults)
public String getQ()
public Gmail.Users.Threads.List setQ(String q)
public String getPageToken()
public Gmail.Users.Threads.List setPageToken(String pageToken)
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 Gmail.Users.Threads.List set(String parameterName, Object value)
set
in class GmailRequest<ListThreadsResponse>