target.apidocs.com.google.api.services.drive.model.Change.html Maven / Gradle / Ivy
Change (Drive API v2-rev20180830-1.26.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
Representation of a change to a file or Team 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 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()
Boolean
getDeleted()
Whether the file or Team Drive has been removed from this list of changes, for example by
deletion or loss of access.
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.
com.google.api.client.util.DateTime
getModificationDate()
The time of this modification.
String
getSelfLink()
A link back to this change.
TeamDrive
getTeamDrive()
The updated state of the Team Drive.
String
getTeamDriveId()
The ID of the Team Drive associated with this change.
String
getType()
The type of the change.
Change
set(String fieldName,
Object value)
Change
setDeleted(Boolean deleted)
Whether the file or Team Drive has been removed from this list of changes, for example by
deletion or loss of access.
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(com.google.api.client.util.DateTime modificationDate)
The time of this modification.
Change
setSelfLink(String selfLink)
A link back to this change.
Change
setTeamDrive(TeamDrive teamDrive)
The updated state of the Team Drive.
Change
setTeamDriveId(String teamDriveId)
The ID of the Team Drive associated with this change.
Change
setType(String type)
The type of the change.
-
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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, 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
-
getDeleted
public Boolean getDeleted()
Whether the file or Team Drive has been removed from this list of changes, for example by
deletion or loss of access.
- Returns:
- value or
null
for none
-
setDeleted
public Change setDeleted(Boolean deleted)
Whether the file or Team Drive has been removed from this list of changes, for example by
deletion or loss of access.
- Parameters:
deleted
- deleted 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 associated with this change.
- Returns:
- value or
null
for none
-
setFileId
public Change setFileId(String fileId)
The ID of the file associated with this change.
- Parameters:
fileId
- fileId or null
for none
-
getId
public Long getId()
The ID of the change.
- Returns:
- value or
null
for none
-
getKind
public String getKind()
This is always drive#change.
- Returns:
- value or
null
for none
-
setKind
public Change setKind(String kind)
This is always drive#change.
- Parameters:
kind
- kind or null
for none
-
getModificationDate
public com.google.api.client.util.DateTime getModificationDate()
The time of this modification.
- Returns:
- value or
null
for none
-
setModificationDate
public Change setModificationDate(com.google.api.client.util.DateTime modificationDate)
The time of this modification.
- Parameters:
modificationDate
- modificationDate or null
for none
-
getSelfLink
public String getSelfLink()
A link back to this change.
- Returns:
- value or
null
for none
-
setSelfLink
public Change setSelfLink(String selfLink)
A link back to this change.
- Parameters:
selfLink
- selfLink or null
for none
-
getTeamDrive
public TeamDrive getTeamDrive()
The updated state of the Team Drive. Present if the type is teamDrive, the user is still a
member of the Team Drive, and the Team Drive has not been deleted.
- Returns:
- value or
null
for none
-
setTeamDrive
public Change setTeamDrive(TeamDrive teamDrive)
The updated state of the Team Drive. Present if the type is teamDrive, the user is still a
member of the Team Drive, and the Team Drive has not been deleted.
- Parameters:
teamDrive
- teamDrive or null
for none
-
getTeamDriveId
public String getTeamDriveId()
The ID of the Team Drive associated with this change.
- Returns:
- value or
null
for none
-
setTeamDriveId
public Change setTeamDriveId(String teamDriveId)
The ID of the Team Drive associated with this change.
- Parameters:
teamDriveId
- teamDriveId or null
for none
-
getType
public String getType()
The type of the change. Possible values are file and teamDrive.
- Returns:
- value or
null
for none
-
setType
public Change setType(String type)
The type of the change. Possible values are file and teamDrive.
- 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–2018 Google. All rights reserved.