public final class Change
extends com.google.api.client.json.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
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Change() |
Modifier and Type | Method and Description |
---|---|
Change |
clone() |
File |
getFile()
The updated state of the file.
|
java.lang.String |
getFileId()
The ID of the file which has changed.
|
java.lang.String |
getKind()
This is always drive#change.
|
java.lang.Boolean |
getRemoved()
Whether the file has been removed from the view of the changes list, for example by deletion or
lost access.
|
com.google.api.client.util.DateTime |
getTime()
The time of this change (RFC 3339 date-time).
|
Change |
set(java.lang.String fieldName,
java.lang.Object value) |
Change |
setFile(File file)
The updated state of the file.
|
Change |
setFileId(java.lang.String fileId)
The ID of the file which has changed.
|
Change |
setKind(java.lang.String kind)
This is always drive#change.
|
Change |
setRemoved(java.lang.Boolean removed)
Whether the file has been removed from the view of the changes list, for example by deletion or
lost access.
|
Change |
setTime(com.google.api.client.util.DateTime time)
The time of this change (RFC 3339 date-time).
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
public File getFile()
null
for nonepublic Change setFile(File file)
file
- file or null
for nonepublic java.lang.String getFileId()
null
for nonepublic Change setFileId(java.lang.String fileId)
fileId
- fileId or null
for nonepublic java.lang.String getKind()
null
for nonepublic Change setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.Boolean getRemoved()
null
for nonepublic Change setRemoved(java.lang.Boolean removed)
removed
- removed or null
for nonepublic com.google.api.client.util.DateTime getTime()
null
for nonepublic Change setTime(com.google.api.client.util.DateTime time)
time
- time or null
for nonepublic Change set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Change clone()
clone
in class com.google.api.client.json.GenericJson