public final class Change extends GenericJson
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-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Change() |
Modifier and Type | Method and Description |
---|---|
Change |
clone() |
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.
|
Long |
getId()
The ID of the change.
|
String |
getKind()
This is always drive#change.
|
DateTime |
getModificationDate()
The time of this modification.
|
String |
getSelfLink()
A link back to this change.
|
Change |
set(String fieldName,
Object value) |
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(Long id)
The ID of the change.
|
Change |
setKind(String kind)
This is always drive#change.
|
Change |
setModificationDate(DateTime modificationDate)
The time of this modification.
|
Change |
setSelfLink(String selfLink)
A link back to this change.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public Boolean getDeleted()
null
for nonepublic Change setDeleted(Boolean deleted)
deleted
- deleted or null
for nonepublic File getFile()
null
for nonepublic Change setFile(File file)
file
- file or null
for nonepublic String getFileId()
null
for nonepublic Change setFileId(String fileId)
fileId
- fileId or null
for nonepublic Long getId()
null
for nonepublic String getKind()
null
for nonepublic Change setKind(String kind)
kind
- kind or null
for nonepublic DateTime getModificationDate()
null
for nonepublic Change setModificationDate(DateTime modificationDate)
modificationDate
- modificationDate or null
for nonepublic String getSelfLink()
null
for nonepublic Change setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic Change set(String fieldName, Object value)
set
in class GenericJson
public Change clone()
clone
in class GenericJson