Drive API v2 (revision 47)



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

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.json.GenericJson
              extended by com.google.api.services.drive.model.Change
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.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

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

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
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>
 
Constructor Summary
Change()
           
 
Method Summary
 java.lang.Boolean getDeleted()
          Whether the file has been deleted.
 File getFile()
          The updated state of the file.
 java.lang.String getFileId()
          The ID of the file associated with this change.
 java.lang.Long getId()
          The ID of the change.
 java.lang.String getKind()
          This is always drive#change.
 java.lang.String getSelfLink()
          A link back to this change.
 Change setDeleted(java.lang.Boolean deleted)
          Whether the file has been deleted.
 Change setFile(File file)
          The updated state of the file.
 Change setFileId(java.lang.String fileId)
          The ID of the file associated with this change.
 Change setId(java.lang.Long id)
          The ID of the change.
 Change setKind(java.lang.String kind)
          This is always drive#change.
 Change setSelfLink(java.lang.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

getDeleted

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


setDeleted

public Change setDeleted(java.lang.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.


getFileId

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


setFileId

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


getId

public java.lang.Long getId()
The ID of the change. The value returned may be null.


setId

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


getKind

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


setKind

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


getSelfLink

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


setSelfLink

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