public class Drive.Changes.Watch extends DriveRequest<Channel>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Drive.Changes.Watch(Channel content)
Subscribe to changes for a user.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getIncludeCorpusRemovals()
Whether changes should include the file resource if the file is still accessible by the user at the
time of the request, even when a file was removed from the list of changes and there will be no
further change entries for this file.
|
java.lang.Boolean |
getIncludeDeleted()
Whether to include changes indicating that items have been removed from the list of changes, for
example by deletion or loss of access.
|
java.lang.Boolean |
getIncludeSubscribed()
Whether to include public files the user has opened and shared files.
|
java.lang.Boolean |
getIncludeTeamDriveItems()
Whether Team Drive files or changes should be included in results.
|
java.lang.Integer |
getMaxResults()
Maximum number of changes to return.
|
java.lang.String |
getPageToken()
The token for continuing a previous list request on the next page.
|
java.lang.String |
getSpaces()
A comma-separated list of spaces to query.
|
java.lang.Long |
getStartChangeId()
Change ID to start listing changes from.
|
java.lang.Boolean |
getSupportsTeamDrives()
Whether the requesting application supports Team Drives.
|
java.lang.String |
getTeamDriveId()
The Team Drive from which changes will be returned.
|
boolean |
isIncludeCorpusRemovals()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isIncludeDeleted()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isIncludeSubscribed()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isIncludeTeamDriveItems()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isSupportsTeamDrives()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
Drive.Changes.Watch |
set(java.lang.String parameterName,
java.lang.Object value) |
Drive.Changes.Watch |
setAlt(java.lang.String alt)
Data format for the response.
|
Drive.Changes.Watch |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Changes.Watch |
setIncludeCorpusRemovals(java.lang.Boolean includeCorpusRemovals)
Whether changes should include the file resource if the file is still accessible by the
user at the time of the request, even when a file was removed from the list of changes and
there will be no further change entries for this file.
|
Drive.Changes.Watch |
setIncludeDeleted(java.lang.Boolean includeDeleted)
Whether to include changes indicating that items have been removed from the list of
changes, for example by deletion or loss of access.
|
Drive.Changes.Watch |
setIncludeSubscribed(java.lang.Boolean includeSubscribed)
Whether to include public files the user has opened and shared files.
|
Drive.Changes.Watch |
setIncludeTeamDriveItems(java.lang.Boolean includeTeamDriveItems)
Whether Team Drive files or changes should be included in results.
|
Drive.Changes.Watch |
setKey(java.lang.String key)
API key.
|
Drive.Changes.Watch |
setMaxResults(java.lang.Integer maxResults)
Maximum number of changes to return.
|
Drive.Changes.Watch |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Changes.Watch |
setPageToken(java.lang.String pageToken)
The token for continuing a previous list request on the next page.
|
Drive.Changes.Watch |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Drive.Changes.Watch |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Drive.Changes.Watch |
setSpaces(java.lang.String spaces)
A comma-separated list of spaces to query.
|
Drive.Changes.Watch |
setStartChangeId(java.lang.Long startChangeId)
Change ID to start listing changes from.
|
Drive.Changes.Watch |
setSupportsTeamDrives(java.lang.Boolean supportsTeamDrives)
Whether the requesting application supports Team Drives.
|
Drive.Changes.Watch |
setTeamDriveId(java.lang.String teamDriveId)
The Team Drive from which changes will be returned.
|
Drive.Changes.Watch |
setUserIp(java.lang.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
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(java.lang.String alt)
DriveRequest
setAlt
in class DriveRequest<Channel>
public Drive.Changes.Watch setFields(java.lang.String fields)
DriveRequest
setFields
in class DriveRequest<Channel>
public Drive.Changes.Watch setKey(java.lang.String key)
DriveRequest
setKey
in class DriveRequest<Channel>
public Drive.Changes.Watch setOauthToken(java.lang.String oauthToken)
DriveRequest
setOauthToken
in class DriveRequest<Channel>
public Drive.Changes.Watch setPrettyPrint(java.lang.Boolean prettyPrint)
DriveRequest
setPrettyPrint
in class DriveRequest<Channel>
public Drive.Changes.Watch setQuotaUser(java.lang.String quotaUser)
DriveRequest
setQuotaUser
in class DriveRequest<Channel>
public Drive.Changes.Watch setUserIp(java.lang.String userIp)
DriveRequest
setUserIp
in class DriveRequest<Channel>
public java.lang.Boolean getIncludeCorpusRemovals()
public Drive.Changes.Watch setIncludeCorpusRemovals(java.lang.Boolean includeCorpusRemovals)
public boolean isIncludeCorpusRemovals()
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 changes should include the file resource if the file is still accessible by the user at the time of the request, even when a file was removed from the list of changes and there will be no further change entries for this file.
public java.lang.Boolean getIncludeDeleted()
public Drive.Changes.Watch setIncludeDeleted(java.lang.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 changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.
public java.lang.Boolean getIncludeSubscribed()
public Drive.Changes.Watch setIncludeSubscribed(java.lang.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 java.lang.Boolean getIncludeTeamDriveItems()
public Drive.Changes.Watch setIncludeTeamDriveItems(java.lang.Boolean includeTeamDriveItems)
public boolean isIncludeTeamDriveItems()
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 Team Drive files or changes should be included in results.
public java.lang.Integer getMaxResults()
public Drive.Changes.Watch setMaxResults(java.lang.Integer maxResults)
public java.lang.String getPageToken()
public Drive.Changes.Watch setPageToken(java.lang.String pageToken)
public java.lang.String getSpaces()
public Drive.Changes.Watch setSpaces(java.lang.String spaces)
public java.lang.Long getStartChangeId()
public Drive.Changes.Watch setStartChangeId(java.lang.Long startChangeId)
public java.lang.Boolean getSupportsTeamDrives()
public Drive.Changes.Watch setSupportsTeamDrives(java.lang.Boolean supportsTeamDrives)
public boolean isSupportsTeamDrives()
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 the requesting application supports Team Drives.
public java.lang.String getTeamDriveId()
public Drive.Changes.Watch setTeamDriveId(java.lang.String teamDriveId)
public Drive.Changes.Watch set(java.lang.String parameterName, java.lang.Object value)
set
in class DriveRequest<Channel>