public class Gmail.Users.Watch extends GmailRequest<WatchResponse>
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Watch(String userId,
WatchRequest content)
Set up or update a push notification watch on the given user mailbox.
|
Modifier and Type | Method and Description |
---|---|
String |
getUserId()
The user's email address.
|
Gmail.Users.Watch |
set(String parameterName,
Object value) |
Gmail.Users.Watch |
set$Xgafv(String $Xgafv)
V1 error format.
|
Gmail.Users.Watch |
setAccessToken(String accessToken)
OAuth access token.
|
Gmail.Users.Watch |
setAlt(String alt)
Data format for response.
|
Gmail.Users.Watch |
setCallback(String callback)
JSONP
|
Gmail.Users.Watch |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Gmail.Users.Watch |
setKey(String key)
API key.
|
Gmail.Users.Watch |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Gmail.Users.Watch |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Gmail.Users.Watch |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Gmail.Users.Watch |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Gmail.Users.Watch |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
Gmail.Users.Watch |
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 Watch(String userId, WatchRequest 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 WatchRequest
public Gmail.Users.Watch set$Xgafv(String $Xgafv)
GmailRequest
set$Xgafv
in class GmailRequest<WatchResponse>
public Gmail.Users.Watch setAccessToken(String accessToken)
GmailRequest
setAccessToken
in class GmailRequest<WatchResponse>
public Gmail.Users.Watch setAlt(String alt)
GmailRequest
setAlt
in class GmailRequest<WatchResponse>
public Gmail.Users.Watch setCallback(String callback)
GmailRequest
setCallback
in class GmailRequest<WatchResponse>
public Gmail.Users.Watch setFields(String fields)
GmailRequest
setFields
in class GmailRequest<WatchResponse>
public Gmail.Users.Watch setKey(String key)
GmailRequest
setKey
in class GmailRequest<WatchResponse>
public Gmail.Users.Watch setOauthToken(String oauthToken)
GmailRequest
setOauthToken
in class GmailRequest<WatchResponse>
public Gmail.Users.Watch setPrettyPrint(Boolean prettyPrint)
GmailRequest
setPrettyPrint
in class GmailRequest<WatchResponse>
public Gmail.Users.Watch setQuotaUser(String quotaUser)
GmailRequest
setQuotaUser
in class GmailRequest<WatchResponse>
public Gmail.Users.Watch setUploadType(String uploadType)
GmailRequest
setUploadType
in class GmailRequest<WatchResponse>
public Gmail.Users.Watch setUploadProtocol(String uploadProtocol)
GmailRequest
setUploadProtocol
in class GmailRequest<WatchResponse>
public String getUserId()
public Gmail.Users.Watch setUserId(String userId)
public Gmail.Users.Watch set(String parameterName, Object value)
set
in class GmailRequest<WatchResponse>
Copyright © 2011–2024 Google. All rights reserved.