public final class Revision extends 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Revision() |
Modifier and Type | Method and Description |
---|---|
Revision |
clone() |
String |
getDownloadUrl() |
String |
getEtag()
The ETag of the revision.
|
Map<String,String> |
getExportLinks()
Links for exporting Docs Editors files to specific formats.
|
Long |
getFileSize()
The size of the revision in bytes.
|
String |
getId()
The ID of the revision.
|
String |
getKind()
This is always drive#revision.
|
User |
getLastModifyingUser()
The last user to modify this revision.
|
String |
getLastModifyingUserName()
Name of the last user to modify this revision.
|
String |
getMd5Checksum()
An MD5 checksum for the content of this revision.
|
String |
getMimeType()
The MIME type of the revision.
|
DateTime |
getModifiedDate()
Last time this revision was modified (formatted RFC 3339 timestamp).
|
String |
getOriginalFilename()
The original filename when this revision was created.
|
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()
A link to the published revision.
|
Boolean |
getPublishedOutsideDomain()
Whether this revision is published outside the domain.
|
String |
getSelfLink()
A link back to this revision.
|
Revision |
set(String fieldName,
Object value) |
Revision |
setDownloadUrl(String downloadUrl) |
Revision |
setEtag(String etag)
The ETag of the revision.
|
Revision |
setExportLinks(Map<String,String> exportLinks)
Links for exporting Docs Editors files to specific formats.
|
Revision |
setFileSize(Long fileSize)
The size of the revision in bytes.
|
Revision |
setId(String id)
The ID of the revision.
|
Revision |
setKind(String kind)
This is always drive#revision.
|
Revision |
setLastModifyingUser(User lastModifyingUser)
The last user to modify this revision.
|
Revision |
setLastModifyingUserName(String lastModifyingUserName)
Name of the last user to modify this revision.
|
Revision |
setMd5Checksum(String md5Checksum)
An MD5 checksum for the content of this revision.
|
Revision |
setMimeType(String mimeType)
The MIME type of the revision.
|
Revision |
setModifiedDate(DateTime modifiedDate)
Last time this revision was modified (formatted RFC 3339 timestamp).
|
Revision |
setOriginalFilename(String originalFilename)
The original filename when this revision was created.
|
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)
A link to the published revision.
|
Revision |
setPublishedOutsideDomain(Boolean publishedOutsideDomain)
Whether this revision is published outside the domain.
|
Revision |
setSelfLink(String selfLink)
A link back to this revision.
|
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 getDownloadUrl()
null
for nonepublic Revision setDownloadUrl(String downloadUrl)
downloadUrl
- downloadUrl or null
for nonepublic String getEtag()
null
for nonepublic Revision setEtag(String etag)
etag
- etag or null
for nonepublic Map<String,String> getExportLinks()
null
for nonepublic Revision setExportLinks(Map<String,String> exportLinks)
exportLinks
- exportLinks or null
for nonepublic Long getFileSize()
null
for nonepublic Revision setFileSize(Long fileSize)
fileSize
- fileSize or null
for nonepublic String getId()
null
for nonepublic String getKind()
null
for nonepublic Revision setKind(String kind)
kind
- kind or null
for nonepublic User getLastModifyingUser()
null
for nonepublic Revision setLastModifyingUser(User lastModifyingUser)
lastModifyingUser
- lastModifyingUser or null
for nonepublic String getLastModifyingUserName()
null
for nonepublic Revision setLastModifyingUserName(String lastModifyingUserName)
lastModifyingUserName
- lastModifyingUserName or null
for nonepublic String getMd5Checksum()
null
for nonepublic Revision setMd5Checksum(String md5Checksum)
md5Checksum
- md5Checksum or null
for nonepublic String getMimeType()
null
for nonepublic Revision setMimeType(String mimeType)
mimeType
- mimeType or null
for nonepublic DateTime getModifiedDate()
null
for nonepublic Revision setModifiedDate(DateTime modifiedDate)
modifiedDate
- modifiedDate or null
for nonepublic String getOriginalFilename()
null
for nonepublic Revision setOriginalFilename(String originalFilename)
originalFilename
- originalFilename or null
for nonepublic Boolean getPinned()
null
for nonepublic Revision setPinned(Boolean pinned)
pinned
- pinned or null
for nonepublic Boolean getPublishAuto()
null
for nonepublic Revision setPublishAuto(Boolean publishAuto)
publishAuto
- publishAuto or null
for nonepublic Boolean getPublished()
null
for nonepublic Revision setPublished(Boolean published)
published
- published or null
for nonepublic String getPublishedLink()
null
for nonepublic Revision setPublishedLink(String publishedLink)
publishedLink
- publishedLink or null
for nonepublic Boolean getPublishedOutsideDomain()
null
for nonepublic Revision setPublishedOutsideDomain(Boolean publishedOutsideDomain)
publishedOutsideDomain
- publishedOutsideDomain or null
for nonepublic String getSelfLink()
null
for nonepublic Revision setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic Revision set(String fieldName, Object value)
set
in class GenericJson
public Revision clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.