public class Drive.Changes.List extends DriveRequest<ChangeList>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
List(java.lang.String pageToken)
Lists the changes for a user or shared drive.
|
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getDriveId()
The shared drive from which changes will be returned.
|
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 |
getIncludeItemsFromAllDrives()
Deprecated - Whether both My Drive and shared drive items should be included in results.
|
java.lang.Boolean |
getIncludeRemoved()
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 |
getIncludeTeamDriveItems()
Deprecated use includeItemsFromAllDrives instead.
|
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.
|
java.lang.Boolean |
getSupportsAllDrives()
Deprecated - Whether the requesting application supports both My Drives and shared drives.
|
java.lang.Boolean |
getSupportsTeamDrives()
Deprecated use supportsAllDrives instead.
|
java.lang.String |
getTeamDriveId()
Deprecated use driveId instead.
|
boolean |
isIncludeCorpusRemovals()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isIncludeItemsFromAllDrives()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isIncludeRemoved()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isIncludeTeamDriveItems()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isRestrictToMyDrive()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isSupportsAllDrives()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
boolean |
isSupportsTeamDrives()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE . |
Drive.Changes.List |
set(java.lang.String parameterName,
java.lang.Object value) |
Drive.Changes.List |
setAlt(java.lang.String alt)
Data format for the response.
|
Drive.Changes.List |
setDriveId(java.lang.String driveId)
The shared drive from which changes will be returned.
|
Drive.Changes.List |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Changes.List |
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.List |
setIncludeItemsFromAllDrives(java.lang.Boolean includeItemsFromAllDrives)
Deprecated - Whether both My Drive and shared drive items should be included in results.
|
Drive.Changes.List |
setIncludeRemoved(java.lang.Boolean includeRemoved)
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.List |
setIncludeTeamDriveItems(java.lang.Boolean includeTeamDriveItems)
Deprecated use includeItemsFromAllDrives instead.
|
Drive.Changes.List |
setKey(java.lang.String key)
API key.
|
Drive.Changes.List |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Changes.List |
setPageSize(java.lang.Integer pageSize)
The maximum number of changes to return per page.
|
Drive.Changes.List |
setPageToken(java.lang.String pageToken)
The token for continuing a previous list request on the next page.
|
Drive.Changes.List |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Drive.Changes.List |
setQuotaUser(java.lang.String quotaUser)
An opaque string that represents a user for quota purposes.
|
Drive.Changes.List |
setRestrictToMyDrive(java.lang.Boolean restrictToMyDrive)
Whether to restrict the results to changes inside the My Drive hierarchy.
|
Drive.Changes.List |
setSpaces(java.lang.String spaces)
A comma-separated list of spaces to query within the user corpus.
|
Drive.Changes.List |
setSupportsAllDrives(java.lang.Boolean supportsAllDrives)
Deprecated - Whether the requesting application supports both My Drives and shared drives.
|
Drive.Changes.List |
setSupportsTeamDrives(java.lang.Boolean supportsTeamDrives)
Deprecated use supportsAllDrives instead.
|
Drive.Changes.List |
setTeamDriveId(java.lang.String teamDriveId)
Deprecated use driveId instead.
|
Drive.Changes.List |
setUserIp(java.lang.String userIp)
Deprecated.
|
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 List(java.lang.String pageToken)
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.public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException
executeUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<ChangeList>
java.io.IOException
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException
buildHttpRequestUsingHead
in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<ChangeList>
java.io.IOException
public Drive.Changes.List setAlt(java.lang.String alt)
DriveRequest
setAlt
in class DriveRequest<ChangeList>
public Drive.Changes.List setFields(java.lang.String fields)
DriveRequest
setFields
in class DriveRequest<ChangeList>
public Drive.Changes.List setKey(java.lang.String key)
DriveRequest
setKey
in class DriveRequest<ChangeList>
public Drive.Changes.List setOauthToken(java.lang.String oauthToken)
DriveRequest
setOauthToken
in class DriveRequest<ChangeList>
public Drive.Changes.List setPrettyPrint(java.lang.Boolean prettyPrint)
DriveRequest
setPrettyPrint
in class DriveRequest<ChangeList>
public Drive.Changes.List setQuotaUser(java.lang.String quotaUser)
DriveRequest
setQuotaUser
in class DriveRequest<ChangeList>
public Drive.Changes.List setUserIp(java.lang.String userIp)
DriveRequest
setUserIp
in class DriveRequest<ChangeList>
public java.lang.String getPageToken()
public Drive.Changes.List setPageToken(java.lang.String pageToken)
public java.lang.String getDriveId()
public Drive.Changes.List setDriveId(java.lang.String driveId)
public java.lang.Boolean getIncludeCorpusRemovals()
public Drive.Changes.List 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 getIncludeItemsFromAllDrives()
public Drive.Changes.List setIncludeItemsFromAllDrives(java.lang.Boolean includeItemsFromAllDrives)
public boolean isIncludeItemsFromAllDrives()
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
.
Deprecated - Whether both My Drive and shared drive items should be included in results. This parameter will only be effective until June 1, 2020. Afterwards shared drive items will be included in the results.
public java.lang.Boolean getIncludeRemoved()
public Drive.Changes.List 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 been removed from the list of changes, for example by deletion or loss of access.
public java.lang.Boolean getIncludeTeamDriveItems()
public Drive.Changes.List 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
.
Deprecated use includeItemsFromAllDrives instead.
public java.lang.Integer getPageSize()
public Drive.Changes.List setPageSize(java.lang.Integer pageSize)
public java.lang.Boolean getRestrictToMyDrive()
public Drive.Changes.List 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 java.lang.String getSpaces()
public Drive.Changes.List setSpaces(java.lang.String spaces)
public java.lang.Boolean getSupportsAllDrives()
public Drive.Changes.List setSupportsAllDrives(java.lang.Boolean supportsAllDrives)
public boolean isSupportsAllDrives()
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
.
Deprecated - Whether the requesting application supports both My Drives and shared drives. This parameter will only be effective until June 1, 2020. Afterwards all applications are assumed to support shared drives.
public java.lang.Boolean getSupportsTeamDrives()
public Drive.Changes.List 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
.
Deprecated use supportsAllDrives instead.
public java.lang.String getTeamDriveId()
public Drive.Changes.List setTeamDriveId(java.lang.String teamDriveId)
public Drive.Changes.List set(java.lang.String parameterName, java.lang.Object value)
set
in class DriveRequest<ChangeList>