![JAR search and dependency download from the Maven repository](/logo.png)
target.apidocs.com.google.api.services.drive.model.Revision.html Maven / Gradle / Ivy
Revision (Google Drive API v2-rev20240809-2.0.0)
com.google.api.services.drive.model
Class Revision
- 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.Revision
-
public final class Revision
extends com.google.api.client.json.GenericJson
A revision of a file. Some resource methods (such as `revisions.update`) require a `revisionId`.
Use the `revisions.list` method to retrieve the ID for a revision.
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
Revision()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Revision
clone()
String
getDownloadUrl()
Output only.
String
getEtag()
Output only.
Map<String,String>
getExportLinks()
Output only.
Long
getFileSize()
Output only.
String
getId()
Output only.
String
getKind()
Output only.
User
getLastModifyingUser()
Output only.
String
getLastModifyingUserName()
Output only.
String
getMd5Checksum()
Output only.
String
getMimeType()
Output only.
com.google.api.client.util.DateTime
getModifiedDate()
Last time this revision was modified (formatted RFC 3339 timestamp).
String
getOriginalFilename()
Output only.
Boolean
getPinned()
Whether this revision is pinned to prevent automatic purging.
Boolean
getPublishAuto()
Whether subsequent revisions will be automatically republished.
Boolean
getPublished()
Whether this revision is published.
String
getPublishedLink()
Output only.
Boolean
getPublishedOutsideDomain()
Whether this revision is published outside the domain.
String
getSelfLink()
Output only.
Revision
set(String fieldName,
Object value)
Revision
setDownloadUrl(String downloadUrl)
Output only.
Revision
setEtag(String etag)
Output only.
Revision
setExportLinks(Map<String,String> exportLinks)
Output only.
Revision
setFileSize(Long fileSize)
Output only.
Revision
setId(String id)
Output only.
Revision
setKind(String kind)
Output only.
Revision
setLastModifyingUser(User lastModifyingUser)
Output only.
Revision
setLastModifyingUserName(String lastModifyingUserName)
Output only.
Revision
setMd5Checksum(String md5Checksum)
Output only.
Revision
setMimeType(String mimeType)
Output only.
Revision
setModifiedDate(com.google.api.client.util.DateTime modifiedDate)
Last time this revision was modified (formatted RFC 3339 timestamp).
Revision
setOriginalFilename(String originalFilename)
Output only.
Revision
setPinned(Boolean pinned)
Whether this revision is pinned to prevent automatic purging.
Revision
setPublishAuto(Boolean publishAuto)
Whether subsequent revisions will be automatically republished.
Revision
setPublished(Boolean published)
Whether this revision is published.
Revision
setPublishedLink(String publishedLink)
Output only.
Revision
setPublishedOutsideDomain(Boolean publishedOutsideDomain)
Whether this revision is published outside the domain.
Revision
setSelfLink(String selfLink)
Output only.
-
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
-
getDownloadUrl
public String getDownloadUrl()
Output only. Short term download URL for the file. This will only be populated on files with
content stored in Drive.
- Returns:
- value or
null
for none
-
setDownloadUrl
public Revision setDownloadUrl(String downloadUrl)
Output only. Short term download URL for the file. This will only be populated on files with
content stored in Drive.
- Parameters:
downloadUrl
- downloadUrl or null
for none
-
getEtag
public String getEtag()
Output only. The ETag of the revision.
- Returns:
- value or
null
for none
-
setEtag
public Revision setEtag(String etag)
Output only. The ETag of the revision.
- Parameters:
etag
- etag or null
for none
-
getExportLinks
public Map<String,String> getExportLinks()
Output only. Links for exporting Docs Editors files to specific formats.
- Returns:
- value or
null
for none
-
setExportLinks
public Revision setExportLinks(Map<String,String> exportLinks)
Output only. Links for exporting Docs Editors files to specific formats.
- Parameters:
exportLinks
- exportLinks or null
for none
-
getFileSize
public Long getFileSize()
Output only. The size of the revision in bytes. This will only be populated on files with
content stored in Drive.
- Returns:
- value or
null
for none
-
setFileSize
public Revision setFileSize(Long fileSize)
Output only. The size of the revision in bytes. This will only be populated on files with
content stored in Drive.
- Parameters:
fileSize
- fileSize or null
for none
-
getId
public String getId()
Output only. The ID of the revision.
- Returns:
- value or
null
for none
-
setId
public Revision setId(String id)
Output only. The ID of the revision.
- Parameters:
id
- id or null
for none
-
getKind
public String getKind()
Output only. This is always `drive#revision`.
- Returns:
- value or
null
for none
-
setKind
public Revision setKind(String kind)
Output only. This is always `drive#revision`.
- Parameters:
kind
- kind or null
for none
-
getLastModifyingUser
public User getLastModifyingUser()
Output only. The last user to modify this revision. This field is only populated when the last
modification was performed by a signed-in user.
- Returns:
- value or
null
for none
-
setLastModifyingUser
public Revision setLastModifyingUser(User lastModifyingUser)
Output only. The last user to modify this revision. This field is only populated when the last
modification was performed by a signed-in user.
- Parameters:
lastModifyingUser
- lastModifyingUser or null
for none
-
getLastModifyingUserName
public String getLastModifyingUserName()
Output only. Name of the last user to modify this revision.
- Returns:
- value or
null
for none
-
setLastModifyingUserName
public Revision setLastModifyingUserName(String lastModifyingUserName)
Output only. Name of the last user to modify this revision.
- Parameters:
lastModifyingUserName
- lastModifyingUserName or null
for none
-
getMd5Checksum
public String getMd5Checksum()
Output only. An MD5 checksum for the content of this revision. This will only be populated on
files with content stored in Drive.
- Returns:
- value or
null
for none
-
setMd5Checksum
public Revision setMd5Checksum(String md5Checksum)
Output only. An MD5 checksum for the content of this revision. This will only be populated on
files with content stored in Drive.
- Parameters:
md5Checksum
- md5Checksum or null
for none
-
getMimeType
public String getMimeType()
Output only. The MIME type of the revision.
- Returns:
- value or
null
for none
-
setMimeType
public Revision setMimeType(String mimeType)
Output only. The MIME type of the revision.
- Parameters:
mimeType
- mimeType or null
for none
-
getModifiedDate
public com.google.api.client.util.DateTime getModifiedDate()
Last time this revision was modified (formatted RFC 3339 timestamp).
- Returns:
- value or
null
for none
-
setModifiedDate
public Revision setModifiedDate(com.google.api.client.util.DateTime modifiedDate)
Last time this revision was modified (formatted RFC 3339 timestamp).
- Parameters:
modifiedDate
- modifiedDate or null
for none
-
getOriginalFilename
public String getOriginalFilename()
Output only. The original filename when this revision was created. This will only be populated
on files with content stored in Drive.
- Returns:
- value or
null
for none
-
setOriginalFilename
public Revision setOriginalFilename(String originalFilename)
Output only. The original filename when this revision was created. This will only be populated
on files with content stored in Drive.
- Parameters:
originalFilename
- originalFilename or null
for none
-
getPinned
public Boolean getPinned()
Whether this revision is pinned to prevent automatic purging. If not set, the revision is
automatically purged 30 days after newer content is uploaded. This field can only be modified
on files with content stored in Drive, excluding Docs Editors files. Revisions can also be
pinned when they are created through the drive.files.insert/update/copy by using the pinned
query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to
a maximum of 200 revisions.
- Returns:
- value or
null
for none
-
setPinned
public Revision setPinned(Boolean pinned)
Whether this revision is pinned to prevent automatic purging. If not set, the revision is
automatically purged 30 days after newer content is uploaded. This field can only be modified
on files with content stored in Drive, excluding Docs Editors files. Revisions can also be
pinned when they are created through the drive.files.insert/update/copy by using the pinned
query parameter. Pinned revisions are stored indefinitely using additional storage quota, up to
a maximum of 200 revisions.
- Parameters:
pinned
- pinned or null
for none
-
getPublishAuto
public Boolean getPublishAuto()
Whether subsequent revisions will be automatically republished. This is only populated and can
only be modified for Docs Editors files.
- Returns:
- value or
null
for none
-
setPublishAuto
public Revision setPublishAuto(Boolean publishAuto)
Whether subsequent revisions will be automatically republished. This is only populated and can
only be modified for Docs Editors files.
- Parameters:
publishAuto
- publishAuto or null
for none
-
getPublished
public Boolean getPublished()
Whether this revision is published. This is only populated and can only be modified for Docs
Editors files.
- Returns:
- value or
null
for none
-
setPublished
public Revision setPublished(Boolean published)
Whether this revision is published. This is only populated and can only be modified for Docs
Editors files.
- Parameters:
published
- published or null
for none
-
getPublishedLink
public String getPublishedLink()
Output only. A link to the published revision. This is only populated for Google Sites files.
- Returns:
- value or
null
for none
-
setPublishedLink
public Revision setPublishedLink(String publishedLink)
Output only. A link to the published revision. This is only populated for Google Sites files.
- Parameters:
publishedLink
- publishedLink or null
for none
-
getPublishedOutsideDomain
public Boolean getPublishedOutsideDomain()
Whether this revision is published outside the domain. This is only populated and can only be
modified for Docs Editors files.
- Returns:
- value or
null
for none
-
setPublishedOutsideDomain
public Revision setPublishedOutsideDomain(Boolean publishedOutsideDomain)
Whether this revision is published outside the domain. This is only populated and can only be
modified for Docs Editors files.
- Parameters:
publishedOutsideDomain
- publishedOutsideDomain or null
for none
-
getSelfLink
public String getSelfLink()
Output only. A link back to this revision.
- Returns:
- value or
null
for none
-
setSelfLink
public Revision setSelfLink(String selfLink)
Output only. A link back to this revision.
- Parameters:
selfLink
- selfLink or null
for none
-
set
public Revision set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Revision clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy