public class Drive.Changes.Watch extends DriveRequest<Channel>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier | Constructor and Description |
---|---|
protected |
Drive.Changes.Watch(Channel content)
Subscribe to changes for a user.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getIncludeDeleted()
Whether to include deleted items.
|
Boolean |
getIncludeSubscribed()
Whether to include public files the user has opened and shared files.
|
Integer |
getMaxResults()
Maximum number of changes to return.
|
String |
getPageToken()
Page token for changes.
|
Long |
getStartChangeId()
Change ID to start listing changes from.
|
boolean |
isIncludeDeleted()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isIncludeSubscribed()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
Drive.Changes.Watch |
set(String parameterName,
Object value) |
Drive.Changes.Watch |
setAlt(String alt)
Data format for the response.
|
Drive.Changes.Watch |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Changes.Watch |
setIncludeDeleted(Boolean includeDeleted)
Whether to include deleted items.
|
Drive.Changes.Watch |
setIncludeSubscribed(Boolean includeSubscribed)
Whether to include public files the user has opened and shared files.
|
Drive.Changes.Watch |
setKey(String key)
API key.
|
Drive.Changes.Watch |
setMaxResults(Integer maxResults)
Maximum number of changes to return.
|
Drive.Changes.Watch |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Changes.Watch |
setPageToken(String pageToken)
Page token for changes.
|
Drive.Changes.Watch |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Drive.Changes.Watch |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Drive.Changes.Watch |
setStartChangeId(Long startChangeId)
Change ID to start listing changes from.
|
Drive.Changes.Watch |
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, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, 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 Drive.Changes.Watch(Channel content)
AbstractGoogleClientRequest.execute()
method to invoke the remote operation. Drive.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must
be called to initialize this instance immediately after invoking the constructor.
content
- the Channel
public Drive.Changes.Watch setAlt(String alt)
DriveRequest
setAlt
in class DriveRequest<Channel>
public Drive.Changes.Watch setFields(String fields)
DriveRequest
setFields
in class DriveRequest<Channel>
public Drive.Changes.Watch setKey(String key)
DriveRequest
setKey
in class DriveRequest<Channel>
public Drive.Changes.Watch setOauthToken(String oauthToken)
DriveRequest
setOauthToken
in class DriveRequest<Channel>
public Drive.Changes.Watch setPrettyPrint(Boolean prettyPrint)
DriveRequest
setPrettyPrint
in class DriveRequest<Channel>
public Drive.Changes.Watch setQuotaUser(String quotaUser)
DriveRequest
setQuotaUser
in class DriveRequest<Channel>
public Drive.Changes.Watch setUserIp(String userIp)
DriveRequest
setUserIp
in class DriveRequest<Channel>
public Boolean getIncludeSubscribed()
public Drive.Changes.Watch setIncludeSubscribed(Boolean includeSubscribed)
public boolean isIncludeSubscribed()
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
.
Whether to include public files the user has opened and shared files. When set to false, the list only includes owned files plus any shared or public files the user has explicitly added to a folder they own.
public Long getStartChangeId()
public Drive.Changes.Watch setStartChangeId(Long startChangeId)
public Boolean getIncludeDeleted()
public Drive.Changes.Watch setIncludeDeleted(Boolean includeDeleted)
public boolean isIncludeDeleted()
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
.
Whether to include deleted items.
public Integer getMaxResults()
public Drive.Changes.Watch setMaxResults(Integer maxResults)
public String getPageToken()
public Drive.Changes.Watch setPageToken(String pageToken)
public Drive.Changes.Watch set(String parameterName, Object value)
set
in class DriveRequest<Channel>