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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Revision() |
| Modifier and Type | Method and Description |
|---|---|
Revision |
clone() |
Map<String,String> |
getExportLinks()
Links for exporting Docs Editors files to specific formats.
|
String |
getId()
The ID of the revision.
|
Boolean |
getKeepForever()
Whether to keep this revision forever, even if it is no longer the head revision.
|
String |
getKind()
Identifies what kind of resource this is.
|
User |
getLastModifyingUser()
The last user to modify this revision.
|
String |
getMd5Checksum()
The MD5 checksum of the revision's content.
|
String |
getMimeType()
The MIME type of the revision.
|
DateTime |
getModifiedTime()
The last time the revision was modified (RFC 3339 date-time).
|
String |
getOriginalFilename()
The original filename used to create this revision.
|
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.
|
Long |
getSize()
The size of the revision's content in bytes.
|
Revision |
set(String fieldName,
Object value) |
Revision |
setExportLinks(Map<String,String> exportLinks)
Links for exporting Docs Editors files to specific formats.
|
Revision |
setId(String id)
The ID of the revision.
|
Revision |
setKeepForever(Boolean keepForever)
Whether to keep this revision forever, even if it is no longer the head revision.
|
Revision |
setKind(String kind)
Identifies what kind of resource this is.
|
Revision |
setLastModifyingUser(User lastModifyingUser)
The last user to modify this revision.
|
Revision |
setMd5Checksum(String md5Checksum)
The MD5 checksum of the revision's content.
|
Revision |
setMimeType(String mimeType)
The MIME type of the revision.
|
Revision |
setModifiedTime(DateTime modifiedTime)
The last time the revision was modified (RFC 3339 date-time).
|
Revision |
setOriginalFilename(String originalFilename)
The original filename used to create this revision.
|
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 |
setSize(Long size)
The size of the revision's content in bytes.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Map<String,String> getExportLinks()
null for nonepublic Revision setExportLinks(Map<String,String> exportLinks)
exportLinks - exportLinks or null for nonepublic String getId()
null for nonepublic Boolean getKeepForever()
null for nonepublic Revision setKeepForever(Boolean keepForever)
keepForever - keepForever or 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 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 getModifiedTime()
null for nonepublic Revision setModifiedTime(DateTime modifiedTime)
modifiedTime - modifiedTime or null for nonepublic String getOriginalFilename()
null for nonepublic Revision setOriginalFilename(String originalFilename)
originalFilename - originalFilename 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 Long getSize()
null for nonepublic Revision setSize(Long size)
size - size or null for nonepublic Revision set(String fieldName, Object value)
set in class GenericJsonpublic Revision clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.