public class Drive.Changes.Watch extends DriveRequest<Channel>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
Drive.Changes.Watch(java.lang.String pageToken,
Channel content)
Subscribes to changes for a user.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getIncludeRemoved()
Whether to include changes indicating that items have left the view of the changes list, for
example by deletion or lost access.
|
java.lang.Integer |
getPageSize()
The maximum number of changes to return per page.
|
java.lang.String |
getPageToken()
The token for continuing a previous list request on the next page.
|
java.lang.Boolean |
getRestrictToMyDrive()
Whether to restrict the results to changes inside the My Drive hierarchy.
|
java.lang.String |
getSpaces()
A comma-separated list of spaces to query within the user corpus.
|
boolean |
isIncludeRemoved()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
boolean |
isRestrictToMyDrive()
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 |
setIncludeRemoved(java.lang.Boolean includeRemoved)
Whether to include changes indicating that items have left the view of the changes list,
for example by deletion or lost access.
|
Drive.Changes.Watch |
setKey(java.lang.String key)
API key.
|
Drive.Changes.Watch |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Changes.Watch |
setPageSize(java.lang.Integer pageSize)
The maximum number of changes to return per page.
|
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 |
setRestrictToMyDrive(java.lang.Boolean restrictToMyDrive)
Whether to restrict the results to changes inside the My Drive hierarchy.
|
Drive.Changes.Watch |
setSpaces(java.lang.String spaces)
A comma-separated list of spaces to query within the user corpus.
|
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, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysprotected Drive.Changes.Watch(java.lang.String pageToken,
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.
pageToken - The token for continuing a previous list request on the next page. This should be set to the value
of 'nextPageToken' from the previous response or to the response from the
getStartPageToken method.content - the Channelpublic Drive.Changes.Watch setAlt(java.lang.String alt)
DriveRequestsetAlt in class DriveRequest<Channel>public Drive.Changes.Watch setFields(java.lang.String fields)
DriveRequestsetFields in class DriveRequest<Channel>public Drive.Changes.Watch setKey(java.lang.String key)
DriveRequestsetKey in class DriveRequest<Channel>public Drive.Changes.Watch setOauthToken(java.lang.String oauthToken)
DriveRequestsetOauthToken in class DriveRequest<Channel>public Drive.Changes.Watch setPrettyPrint(java.lang.Boolean prettyPrint)
DriveRequestsetPrettyPrint in class DriveRequest<Channel>public Drive.Changes.Watch setQuotaUser(java.lang.String quotaUser)
DriveRequestsetQuotaUser in class DriveRequest<Channel>public Drive.Changes.Watch setUserIp(java.lang.String userIp)
DriveRequestsetUserIp in class DriveRequest<Channel>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.Integer getPageSize()
public Drive.Changes.Watch setPageSize(java.lang.Integer pageSize)
public java.lang.Boolean getIncludeRemoved()
public Drive.Changes.Watch setIncludeRemoved(java.lang.Boolean includeRemoved)
public boolean isIncludeRemoved()
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 left the view of the changes list, for example by deletion or lost access.
public java.lang.Boolean getRestrictToMyDrive()
public Drive.Changes.Watch setRestrictToMyDrive(java.lang.Boolean restrictToMyDrive)
public boolean isRestrictToMyDrive()
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 restrict the results to changes inside the My Drive hierarchy. This omits changes to files such as those in the Application Data folder or shared files which have not been added to My Drive.
public Drive.Changes.Watch set(java.lang.String parameterName, java.lang.Object value)
set in class DriveRequest<Channel>