Drive API v2 (revision 1)



com.google.api.services.drive.model
Class Change

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.drive.model.Change
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class Change
extends GenericJson

Representation of a change to a file.

This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Drive API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json

Author:
Google, Inc.

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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Change()
           
 
Method Summary
 Boolean getDeleted()
          Whether the file has been deleted.
 File getFile()
          The updated state of the file.
 String getFileId()
          The ID of the file associated with this change.
 BigInteger getId()
          The ID of the change.
 String getKind()
          This is always drive#change.
 HttpHeaders getResponseHeaders()
          Returns the HTTP headers that were returned with the server response, or null.
 String getSelfLink()
          A link back to this change.
 Change setDeleted(Boolean deleted)
          Whether the file has been deleted.
 Change setFile(File file)
          The updated state of the file.
 Change setFileId(String fileId)
          The ID of the file associated with this change.
 Change setId(BigInteger id)
          The ID of the change.
 Change setKind(String kind)
          This is always drive#change.
 void setResponseHeaders(HttpHeaders responseHeaders)
          Sets the HTTP headers returned with the server response, or null.
 Change setSelfLink(String selfLink)
          A link back to this change.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Change

public Change()
Method Detail

getKind

public String getKind()
This is always drive#change. The value returned may be null.


setKind

public Change setKind(String kind)
This is always drive#change. The value set may be null.


getDeleted

public Boolean getDeleted()
Whether the file has been deleted. The value returned may be null.


setDeleted

public Change setDeleted(Boolean deleted)
Whether the file has been deleted. The value set may be null.


getFile

public File getFile()
The updated state of the file. Present if the file has not been deleted. The value returned may be null.


setFile

public Change setFile(File file)
The updated state of the file. Present if the file has not been deleted. The value set may be null.


getId

public BigInteger getId()
The ID of the change. The value returned may be null.


setId

public Change setId(BigInteger id)
The ID of the change. The value set may be null.


getSelfLink

public String getSelfLink()
A link back to this change. The value returned may be null.


setSelfLink

public Change setSelfLink(String selfLink)
A link back to this change. The value set may be null.


getFileId

public String getFileId()
The ID of the file associated with this change. The value returned may be null.


setFileId

public Change setFileId(String fileId)
The ID of the file associated with this change. The value set may be null.


setResponseHeaders

public void setResponseHeaders(HttpHeaders responseHeaders)
Sets the HTTP headers returned with the server response, or null. This member should only be non-null if this object was the top level element of a response. For example, a request that returns a single Change would include the response headers, while a request which returns an array of Change, would have a non-null response header in the enclosing object only.


getResponseHeaders

public HttpHeaders getResponseHeaders()
Returns the HTTP headers that were returned with the server response, or null.