target.apidocs.com.google.api.services.drive.model.Change.html Maven / Gradle / Ivy
Change (Google Drive API v3-rev20240809-2.0.0)
com.google.api.services.drive.model
Class Change
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.Change
-
public final class Change
extends com.google.api.client.json.GenericJson
A change to a file or shared drive.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Change()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getChangeType
public String getChangeType()
The type of the change. Possible values are `file` and `drive`.
- Returns:
- value or
null
for none
-
setChangeType
public Change setChangeType(String changeType)
The type of the change. Possible values are `file` and `drive`.
- Parameters:
changeType
- changeType or null
for none
-
getDrive
public Drive getDrive()
The updated state of the shared drive. Present if the changeType is drive, the user is still a
member of the shared drive, and the shared drive has not been deleted.
- Returns:
- value or
null
for none
-
setDrive
public Change setDrive(Drive drive)
The updated state of the shared drive. Present if the changeType is drive, the user is still a
member of the shared drive, and the shared drive has not been deleted.
- Parameters:
drive
- drive or null
for none
-
getDriveId
public String getDriveId()
The ID of the shared drive associated with this change.
- Returns:
- value or
null
for none
-
setDriveId
public Change setDriveId(String driveId)
The ID of the shared drive associated with this change.
- Parameters:
driveId
- driveId or null
for none
-
getFile
public File getFile()
The updated state of the file. Present if the type is file and the file has not been removed
from this list of changes.
- Returns:
- value or
null
for none
-
setFile
public Change setFile(File file)
The updated state of the file. Present if the type is file and the file has not been removed
from this list of changes.
- Parameters:
file
- file or null
for none
-
getFileId
public String getFileId()
The ID of the file which has changed.
- Returns:
- value or
null
for none
-
setFileId
public Change setFileId(String fileId)
The ID of the file which has changed.
- Parameters:
fileId
- fileId or null
for none
-
getKind
public String getKind()
Identifies what kind of resource this is. Value: the fixed string `"drive#change"`.
- Returns:
- value or
null
for none
-
setKind
public Change setKind(String kind)
Identifies what kind of resource this is. Value: the fixed string `"drive#change"`.
- Parameters:
kind
- kind or null
for none
-
getRemoved
public Boolean getRemoved()
Whether the file or shared drive has been removed from this list of changes, for example by
deletion or loss of access.
- Returns:
- value or
null
for none
-
setRemoved
public 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.
- Parameters:
removed
- removed or null
for none
-
getTeamDrive
public TeamDrive getTeamDrive()
Deprecated: Use `drive` instead.
- Returns:
- value or
null
for none
-
setTeamDrive
public Change setTeamDrive(TeamDrive teamDrive)
Deprecated: Use `drive` instead.
- Parameters:
teamDrive
- teamDrive or null
for none
-
getTeamDriveId
public String getTeamDriveId()
Deprecated: Use `driveId` instead.
- Returns:
- value or
null
for none
-
setTeamDriveId
public Change setTeamDriveId(String teamDriveId)
Deprecated: Use `driveId` instead.
- Parameters:
teamDriveId
- teamDriveId or null
for none
-
getTime
public com.google.api.client.util.DateTime getTime()
The time of this change (RFC 3339 date-time).
- Returns:
- value or
null
for none
-
setTime
public Change setTime(com.google.api.client.util.DateTime time)
The time of this change (RFC 3339 date-time).
- Parameters:
time
- time or null
for none
-
getType
public String getType()
Deprecated: Use `changeType` instead.
- Returns:
- value or
null
for none
-
setType
public Change setType(String type)
Deprecated: Use `changeType` instead.
- Parameters:
type
- type or null
for none
-
set
public Change set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Change clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.