Drive API v2 (revision 47)



com.google.api.services.drive
Class Drive.Changes.List

java.lang.Object
  extended by java.util.AbstractMap<java.lang.String,java.lang.Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.googleapis.services.AbstractGoogleClientRequest<T>
              extended by com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest<T>
                  extended by com.google.api.services.drive.DriveRequest<ChangeList>
                      extended by com.google.api.services.drive.Drive.Changes.List
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>
Enclosing class:
Drive.Changes

public class Drive.Changes.List
extends DriveRequest<ChangeList>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Method Summary
 HttpRequest buildHttpRequestUsingHead()
           
 HttpResponse executeUsingHead()
           
 java.lang.Boolean getIncludeDeleted()
          Whether to include deleted items.
 java.lang.Boolean getIncludeSubscribed()
          Whether to include shared files and public files the user has opened.
 java.lang.Integer getMaxResults()
          Maximum number of changes to return.
 java.lang.String getPageToken()
          Page token for changes.
 java.lang.Long getStartChangeId()
          Change ID to start listing changes from.
 boolean isIncludeDeleted()
          Convenience method that returns only Boolean.TRUE or Boolean.FALSE.
 boolean isIncludeSubscribed()
          Convenience method that returns only Boolean.TRUE or Boolean.FALSE.
 Drive.Changes.List setAlt(java.lang.String alt)
          Data format for the response.
 Drive.Changes.List setFields(java.lang.String fields)
          Selector specifying which fields to include in a partial response.
 Drive.Changes.List setIncludeDeleted(java.lang.Boolean includeDeleted)
          Whether to include deleted items.
 Drive.Changes.List setIncludeSubscribed(java.lang.Boolean includeSubscribed)
          Whether to include shared files and public files the user has opened.
 Drive.Changes.List setKey(java.lang.String key)
          API key.
 Drive.Changes.List setMaxResults(java.lang.Integer maxResults)
          Maximum number of changes to return.
 Drive.Changes.List setOauthToken(java.lang.String oauthToken)
          OAuth 2.0 token for the current user.
 Drive.Changes.List setPageToken(java.lang.String pageToken)
          Page token for changes.
 Drive.Changes.List setPrettyPrint(java.lang.Boolean prettyPrint)
          Returns response with indentations and line breaks.
 Drive.Changes.List setQuotaUser(java.lang.String quotaUser)
          Available to use for quota purposes for server-side applications.
 Drive.Changes.List setStartChangeId(java.lang.Long startChangeId)
          Change ID to start listing changes from.
 Drive.Changes.List setUserIp(java.lang.String userIp)
          IP address of the site where the request originates.
 
Methods inherited from class com.google.api.services.drive.DriveRequest
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
 
Methods inherited from class com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest
getJsonContent, newExceptionOnError, queue
 
Methods inherited from class com.google.api.client.googleapis.services.AbstractGoogleClientRequest
buildHttpRequest, buildHttpRequestUrl, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
 
Methods inherited from class com.google.api.client.util.GenericData
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

executeUsingHead

public HttpResponse executeUsingHead()
                              throws java.io.IOException
Overrides:
executeUsingHead in class AbstractGoogleClientRequest<ChangeList>
Throws:
java.io.IOException

buildHttpRequestUsingHead

public HttpRequest buildHttpRequestUsingHead()
                                      throws java.io.IOException
Overrides:
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<ChangeList>
Throws:
java.io.IOException

setAlt

public Drive.Changes.List setAlt(java.lang.String alt)
Description copied from class: DriveRequest
Data format for the response.

Overrides:
setAlt in class DriveRequest<ChangeList>

setFields

public Drive.Changes.List setFields(java.lang.String fields)
Description copied from class: DriveRequest
Selector specifying which fields to include in a partial response.

Overrides:
setFields in class DriveRequest<ChangeList>

setKey

public Drive.Changes.List setKey(java.lang.String key)
Description copied from class: DriveRequest
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

Overrides:
setKey in class DriveRequest<ChangeList>

setOauthToken

public Drive.Changes.List setOauthToken(java.lang.String oauthToken)
Description copied from class: DriveRequest
OAuth 2.0 token for the current user.

Overrides:
setOauthToken in class DriveRequest<ChangeList>

setPrettyPrint

public Drive.Changes.List setPrettyPrint(java.lang.Boolean prettyPrint)
Description copied from class: DriveRequest
Returns response with indentations and line breaks.

Overrides:
setPrettyPrint in class DriveRequest<ChangeList>

setQuotaUser

public Drive.Changes.List setQuotaUser(java.lang.String quotaUser)
Description copied from class: DriveRequest
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

Overrides:
setQuotaUser in class DriveRequest<ChangeList>

setUserIp

public Drive.Changes.List setUserIp(java.lang.String userIp)
Description copied from class: DriveRequest
IP address of the site where the request originates. Use this if you want to enforce per-user limits.

Overrides:
setUserIp in class DriveRequest<ChangeList>

getIncludeSubscribed

public java.lang.Boolean getIncludeSubscribed()
Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive. [default: true]


setIncludeSubscribed

public Drive.Changes.List setIncludeSubscribed(java.lang.Boolean includeSubscribed)
Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive.


isIncludeSubscribed

public boolean isIncludeSubscribed()
Convenience method that returns only 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 shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive.


getStartChangeId

public java.lang.Long getStartChangeId()
Change ID to start listing changes from.


setStartChangeId

public Drive.Changes.List setStartChangeId(java.lang.Long startChangeId)
Change ID to start listing changes from.


getIncludeDeleted

public java.lang.Boolean getIncludeDeleted()
Whether to include deleted items. [default: true]


setIncludeDeleted

public Drive.Changes.List setIncludeDeleted(java.lang.Boolean includeDeleted)
Whether to include deleted items.


isIncludeDeleted

public boolean isIncludeDeleted()
Convenience method that returns only 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 deleted items.


getMaxResults

public java.lang.Integer getMaxResults()
Maximum number of changes to return. [default: 100] [minimum: 0]


setMaxResults

public Drive.Changes.List setMaxResults(java.lang.Integer maxResults)
Maximum number of changes to return.


getPageToken

public java.lang.String getPageToken()
Page token for changes.


setPageToken

public Drive.Changes.List setPageToken(java.lang.String pageToken)
Page token for changes.