public class Drive.Changes.List extends DriveRequest<ChangeList>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Drive.Changes.List(String pageToken)
Lists changes for a user.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
Boolean |
getIncludeRemoved()
Whether to include changes indicating that items have left the view of the changes list, for
example by deletion or lost access.
|
Integer |
getPageSize()
The maximum number of changes to return per page.
|
String |
getPageToken()
The token for continuing a previous list request on the next page.
|
Boolean |
getRestrictToMyDrive()
Whether to restrict the results to changes inside the My Drive hierarchy.
|
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.List |
set(String parameterName,
Object value) |
Drive.Changes.List |
setAlt(String alt)
Data format for the response.
|
Drive.Changes.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Drive.Changes.List |
setIncludeRemoved(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.List |
setKey(String key)
API key.
|
Drive.Changes.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Drive.Changes.List |
setPageSize(Integer pageSize)
The maximum number of changes to return per page.
|
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)
Available to use for quota purposes for server-side applications.
|
Drive.Changes.List |
setRestrictToMyDrive(Boolean restrictToMyDrive)
Whether to restrict the results to changes inside the My Drive hierarchy.
|
Drive.Changes.List |
setSpaces(String spaces)
A comma-separated list of spaces to query within the user corpus.
|
Drive.Changes.List |
setUserIp(String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesprotected Drive.Changes.List(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 HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<ChangeList>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<ChangeList>IOExceptionpublic Drive.Changes.List setAlt(String alt)
DriveRequestsetAlt in class DriveRequest<ChangeList>public Drive.Changes.List setFields(String fields)
DriveRequestsetFields in class DriveRequest<ChangeList>public Drive.Changes.List setKey(String key)
DriveRequestsetKey in class DriveRequest<ChangeList>public Drive.Changes.List setOauthToken(String oauthToken)
DriveRequestsetOauthToken in class DriveRequest<ChangeList>public Drive.Changes.List setPrettyPrint(Boolean prettyPrint)
DriveRequestsetPrettyPrint in class DriveRequest<ChangeList>public Drive.Changes.List setQuotaUser(String quotaUser)
DriveRequestsetQuotaUser in class DriveRequest<ChangeList>public Drive.Changes.List setUserIp(String userIp)
DriveRequestsetUserIp in class DriveRequest<ChangeList>public String getPageToken()
public Drive.Changes.List setPageToken(String pageToken)
public Boolean getIncludeRemoved()
public Drive.Changes.List setIncludeRemoved(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 Integer getPageSize()
public Drive.Changes.List setPageSize(Integer pageSize)
public Boolean getRestrictToMyDrive()
public Drive.Changes.List setRestrictToMyDrive(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 String getSpaces()
public Drive.Changes.List setSpaces(String spaces)
public Drive.Changes.List set(String parameterName, Object value)
set in class DriveRequest<ChangeList>