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: https://developers.google.com/api-client-library/java/google-http-java-client/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()
Identifies what kind of resource this is.
|
java.lang.Boolean |
getRemoved()
Whether the file or Team Drive has been removed from this list of changes, for example by
deletion or loss of access.
|
TeamDrive |
getTeamDrive()
The updated state of the Team Drive.
|
java.lang.String |
getTeamDriveId()
The ID of the Team Drive associated with this change.
|
com.google.api.client.util.DateTime |
getTime()
The time of this change (RFC 3339 date-time).
|
java.lang.String |
getType()
The type of the change.
|
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)
Identifies what kind of resource this is.
|
Change |
setRemoved(java.lang.Boolean removed)
Whether the file or Team Drive has been removed from this list of changes, for example by
deletion or loss of access.
|
Change |
setTeamDrive(TeamDrive teamDrive)
The updated state of the Team Drive.
|
Change |
setTeamDriveId(java.lang.String teamDriveId)
The ID of the Team Drive associated with this change.
|
Change |
setTime(com.google.api.client.util.DateTime time)
The time of this change (RFC 3339 date-time).
|
Change |
setType(java.lang.String type)
The type of the change.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic 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 TeamDrive getTeamDrive()
null for nonepublic Change setTeamDrive(TeamDrive teamDrive)
teamDrive - teamDrive or null for nonepublic java.lang.String getTeamDriveId()
null for nonepublic Change setTeamDriveId(java.lang.String teamDriveId)
teamDriveId - teamDriveId 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 java.lang.String getType()
null for nonepublic Change setType(java.lang.String type)
type - type or null for nonepublic Change set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Change clone()
clone in class com.google.api.client.json.GenericJson