public class Drive.Changes.List extends DriveRequest<ChangeList>
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
USER_AGENT_SUFFIX
Modifier | Constructor and Description |
---|---|
protected |
List()
Lists the changes for a user or shared drive.
|
Modifier and Type | Method and Description |
---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getDriveId()
The shared drive from which changes are returned.
|
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.
|
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.
|
Boolean |
getIncludeItemsFromAllDrives()
Whether both My Drive and shared drive items should be included in results.
|
String |
getIncludePermissionsForView()
Specifies which additional view's permissions to include in the response.
|
Boolean |
getIncludeSubscribed()
Whether to include changes outside the My Drive hierarchy in the result.
|
Boolean |
getIncludeTeamDriveItems()
Deprecated use includeItemsFromAllDrives instead.
|
Integer |
getMaxResults()
Maximum number of changes to return.
|
String |
getPageToken()
The token for continuing a previous list request on the next page.
|
String |
getSpaces()
A comma-separated list of spaces to query.
|
Long |
getStartChangeId()
Deprecated - use pageToken instead.
|
Boolean |
getSupportsAllDrives()
Whether the requesting application supports both My Drives and shared drives.
|
Boolean |
getSupportsTeamDrives()
Deprecated use supportsAllDrives instead.
|
String |
getTeamDriveId()
Deprecated use driveId instead.
|
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 |
isIncludeItemsFromAllDrives()
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 |
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(String parameterName,
Object value) |
Drive.Changes.List |
setAlt(String alt)
Data format for the response.
|
Drive.Changes.List |
setDriveId(String driveId)
The shared drive from which changes are returned.
|
Drive.Changes.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Changes.List |
setIncludeCorpusRemovals(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 |
setIncludeDeleted(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.List |
setIncludeItemsFromAllDrives(Boolean includeItemsFromAllDrives)
Whether both My Drive and shared drive items should be included in results.
|
Drive.Changes.List |
setIncludePermissionsForView(String includePermissionsForView)
Specifies which additional view's permissions to include in the response.
|
Drive.Changes.List |
setIncludeSubscribed(Boolean includeSubscribed)
Whether to include changes outside the My Drive hierarchy in the result.
|
Drive.Changes.List |
setIncludeTeamDriveItems(Boolean includeTeamDriveItems)
Deprecated use includeItemsFromAllDrives instead.
|
Drive.Changes.List |
setKey(String key)
API key.
|
Drive.Changes.List |
setMaxResults(Integer maxResults)
Maximum number of changes to return.
|
Drive.Changes.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Changes.List |
setPageToken(String pageToken)
The token for continuing a previous list request on the next page.
|
Drive.Changes.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Drive.Changes.List |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Drive.Changes.List |
setSpaces(String spaces)
A comma-separated list of spaces to query.
|
Drive.Changes.List |
setStartChangeId(Long startChangeId)
Deprecated - use pageToken instead.
|
Drive.Changes.List |
setSupportsAllDrives(Boolean supportsAllDrives)
Whether the requesting application supports both My Drives and shared drives.
|
Drive.Changes.List |
setSupportsTeamDrives(Boolean supportsTeamDrives)
Deprecated use supportsAllDrives instead.
|
Drive.Changes.List |
setTeamDriveId(String teamDriveId)
Deprecated use driveId instead.
|
Drive.Changes.List |
setUserIp(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, 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 List()
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.
public HttpResponse executeUsingHead() throws IOException
executeUsingHead
in class AbstractGoogleClientRequest<ChangeList>
IOException
public HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead
in class AbstractGoogleClientRequest<ChangeList>
IOException
public Drive.Changes.List setAlt(String alt)
DriveRequest
setAlt
in class DriveRequest<ChangeList>
public Drive.Changes.List setFields(String fields)
DriveRequest
setFields
in class DriveRequest<ChangeList>
public Drive.Changes.List setKey(String key)
DriveRequest
setKey
in class DriveRequest<ChangeList>
public Drive.Changes.List setOauthToken(String oauthToken)
DriveRequest
setOauthToken
in class DriveRequest<ChangeList>
public Drive.Changes.List setPrettyPrint(Boolean prettyPrint)
DriveRequest
setPrettyPrint
in class DriveRequest<ChangeList>
public Drive.Changes.List setQuotaUser(String quotaUser)
DriveRequest
setQuotaUser
in class DriveRequest<ChangeList>
public Drive.Changes.List setUserIp(String userIp)
DriveRequest
setUserIp
in class DriveRequest<ChangeList>
public String getDriveId()
public Drive.Changes.List setDriveId(String driveId)
public Boolean getIncludeCorpusRemovals()
public Drive.Changes.List setIncludeCorpusRemovals(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 Boolean getIncludeDeleted()
public Drive.Changes.List 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 changes indicating that items have been removed from the list of changes, for example by deletion or loss of access.
public Boolean getIncludeItemsFromAllDrives()
public Drive.Changes.List setIncludeItemsFromAllDrives(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
.
Whether both My Drive and shared drive items should be included in results.
public String getIncludePermissionsForView()
public Drive.Changes.List setIncludePermissionsForView(String includePermissionsForView)
public Boolean getIncludeSubscribed()
public Drive.Changes.List 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 changes outside the My Drive hierarchy in the result. When set to false, changes to files such as those in the Application Data folder or shared files which have not been added to My Drive are omitted from the result.
public Boolean getIncludeTeamDriveItems()
public Drive.Changes.List setIncludeTeamDriveItems(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 Integer getMaxResults()
public Drive.Changes.List setMaxResults(Integer maxResults)
public String getPageToken()
public Drive.Changes.List setPageToken(String pageToken)
public String getSpaces()
public Drive.Changes.List setSpaces(String spaces)
public Long getStartChangeId()
public Drive.Changes.List setStartChangeId(Long startChangeId)
public Boolean getSupportsAllDrives()
public Drive.Changes.List setSupportsAllDrives(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
.
Whether the requesting application supports both My Drives and shared drives.
public Boolean getSupportsTeamDrives()
public Drive.Changes.List setSupportsTeamDrives(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 String getTeamDriveId()
public Drive.Changes.List setTeamDriveId(String teamDriveId)
public Drive.Changes.List set(String parameterName, Object value)
set
in class DriveRequest<ChangeList>
Copyright © 2011–2021 Google. All rights reserved.