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: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Revision() |
Modifier and Type | Method and Description |
---|---|
Revision |
clone() |
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.
|
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 |
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 |
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, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 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 GenericJson
public Revision clone()
clone
in class GenericJson