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 Google 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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Change() |
Modifier and Type | Method and Description |
---|---|
Change |
clone() |
String |
getChangeType()
The type of the change.
|
Drive |
getDrive()
The updated state of the shared drive.
|
String |
getDriveId()
The ID of the shared drive associated with this change.
|
File |
getFile()
The updated state of the file.
|
String |
getFileId()
The ID of the file which has changed.
|
String |
getKind()
Identifies what kind of resource this is.
|
Boolean |
getRemoved()
Whether the file or shared drive has been removed from this list of changes, for example by
deletion or loss of access.
|
TeamDrive |
getTeamDrive()
Deprecated: Use `drive` instead.
|
String |
getTeamDriveId()
Deprecated: Use `driveId` instead.
|
com.google.api.client.util.DateTime |
getTime()
The time of this change (RFC 3339 date-time).
|
String |
getType()
Deprecated: Use `changeType` instead.
|
Change |
set(String fieldName,
Object value) |
Change |
setChangeType(String changeType)
The type of the change.
|
Change |
setDrive(Drive drive)
The updated state of the shared drive.
|
Change |
setDriveId(String driveId)
The ID of the shared drive associated with this change.
|
Change |
setFile(File file)
The updated state of the file.
|
Change |
setFileId(String fileId)
The ID of the file which has changed.
|
Change |
setKind(String kind)
Identifies what kind of resource this is.
|
Change |
setRemoved(Boolean removed)
Whether the file or shared drive has been removed from this list of changes, for example by
deletion or loss of access.
|
Change |
setTeamDrive(TeamDrive teamDrive)
Deprecated: Use `drive` instead.
|
Change |
setTeamDriveId(String teamDriveId)
Deprecated: Use `driveId` instead.
|
Change |
setTime(com.google.api.client.util.DateTime time)
The time of this change (RFC 3339 date-time).
|
Change |
setType(String type)
Deprecated: Use `changeType` instead.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getChangeType()
null
for nonepublic Change setChangeType(String changeType)
changeType
- changeType or null
for nonepublic Drive getDrive()
null
for nonepublic Change setDrive(Drive drive)
drive
- drive or null
for nonepublic String getDriveId()
null
for nonepublic Change setDriveId(String driveId)
driveId
- driveId 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 String getKind()
null
for nonepublic Change setKind(String kind)
kind
- kind or null
for nonepublic Boolean getRemoved()
null
for nonepublic Change setRemoved(Boolean removed)
removed
- removed or null
for nonepublic TeamDrive getTeamDrive()
null
for nonepublic Change setTeamDrive(TeamDrive teamDrive)
teamDrive
- teamDrive or null
for nonepublic String getTeamDriveId()
null
for nonepublic Change setTeamDriveId(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 String getType()
null
for nonepublic Change setType(String type)
type
- type or null
for nonepublic Change set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Change clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.