target.apidocs.com.google.api.services.drive.model.Revision.html Maven / Gradle / Ivy
Revision (Drive API v3-rev20210612-1.31.5)
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 GenericJson
The metadata for a revision to a file.
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
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()
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.
-
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
-
getExportLinks
public Map<String,String> getExportLinks()
Links for exporting Docs Editors files to specific formats.
- Returns:
- value or
null
for none
-
setExportLinks
public Revision setExportLinks(Map<String,String> exportLinks)
Links for exporting Docs Editors files to specific formats.
- Parameters:
exportLinks
- exportLinks or null
for none
-
getId
public String getId()
The ID of the revision.
- Returns:
- value or
null
for none
-
getKeepForever
public Boolean getKeepForever()
Whether to keep this revision forever, even if it is no longer the head revision. If not set,
the revision will be automatically purged 30 days after newer content is uploaded. This can be
set on a maximum of 200 revisions for a file. This field is only applicable to files with
binary content in Drive.
- Returns:
- value or
null
for none
-
setKeepForever
public Revision setKeepForever(Boolean keepForever)
Whether to keep this revision forever, even if it is no longer the head revision. If not set,
the revision will be automatically purged 30 days after newer content is uploaded. This can be
set on a maximum of 200 revisions for a file. This field is only applicable to files with
binary content in Drive.
- Parameters:
keepForever
- keepForever or null
for none
-
getKind
public String getKind()
Identifies what kind of resource this is. Value: the fixed string "drive#revision".
- Returns:
- value or
null
for none
-
setKind
public Revision setKind(String kind)
Identifies what kind of resource this is. Value: the fixed string "drive#revision".
- Parameters:
kind
- kind or null
for none
-
getLastModifyingUser
public User getLastModifyingUser()
The last user to modify this revision.
- Returns:
- value or
null
for none
-
setLastModifyingUser
public Revision setLastModifyingUser(User lastModifyingUser)
The last user to modify this revision.
- Parameters:
lastModifyingUser
- lastModifyingUser or null
for none
-
getMd5Checksum
public String getMd5Checksum()
The MD5 checksum of the revision's content. This is only applicable to files with binary
content in Drive.
- Returns:
- value or
null
for none
-
setMd5Checksum
public Revision setMd5Checksum(String md5Checksum)
The MD5 checksum of the revision's content. This is only applicable to files with binary
content in Drive.
- Parameters:
md5Checksum
- md5Checksum or null
for none
-
getMimeType
public String getMimeType()
The MIME type of the revision.
- Returns:
- value or
null
for none
-
setMimeType
public Revision setMimeType(String mimeType)
The MIME type of the revision.
- Parameters:
mimeType
- mimeType or null
for none
-
getModifiedTime
public DateTime getModifiedTime()
The last time the revision was modified (RFC 3339 date-time).
- Returns:
- value or
null
for none
-
setModifiedTime
public Revision setModifiedTime(DateTime modifiedTime)
The last time the revision was modified (RFC 3339 date-time).
- Parameters:
modifiedTime
- modifiedTime or null
for none
-
getOriginalFilename
public String getOriginalFilename()
The original filename used to create this revision. This is only applicable to files with
binary content in Drive.
- Returns:
- value or
null
for none
-
setOriginalFilename
public Revision setOriginalFilename(String originalFilename)
The original filename used to create this revision. This is only applicable to files with
binary content in Drive.
- Parameters:
originalFilename
- originalFilename or null
for none
-
getPublishAuto
public Boolean getPublishAuto()
Whether subsequent revisions will be automatically republished. This is only applicable to 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 applicable to Docs
Editors files.
- Parameters:
publishAuto
- publishAuto or null
for none
-
getPublished
public Boolean getPublished()
Whether this revision is published. This is only applicable to Docs Editors files.
- Returns:
- value or
null
for none
-
setPublished
public Revision setPublished(Boolean published)
Whether this revision is published. This is only applicable to Docs Editors files.
- Parameters:
published
- published or null
for none
-
getPublishedLink
public String getPublishedLink()
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)
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 applicable to 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 applicable to Docs Editors
files.
- Parameters:
publishedOutsideDomain
- publishedOutsideDomain or null
for none
-
getSize
public Long getSize()
The size of the revision's content in bytes. This is only applicable to files with binary
content in Drive.
- Returns:
- value or
null
for none
-
setSize
public Revision setSize(Long size)
The size of the revision's content in bytes. This is only applicable to files with binary
content in Drive.
- Parameters:
size
- size or null
for none
-
set
public Revision set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Revision clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.