Drive API v2 (revision 47)



com.google.api.services.drive.model
Class Revision

java.lang.Object
  extended by java.util.AbstractMap<java.lang.String,java.lang.Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.drive.model.Revision
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>

public final class Revision
extends GenericJson

A single revision of 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: http://code.google.com/p/google-api-java-client/wiki/Json

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

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
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
Revision()
           
 
Method Summary
 java.lang.String getDownloadUrl()
          Short term download URL for the file.
 java.lang.String getEtag()
          The ETag of the revision.
 java.util.Map<java.lang.String,java.lang.String> getExportLinks()
          Links for exporting Google Docs to specific formats.
 java.lang.Long getFileSize()
          The size of the revision in bytes.
 java.lang.String getId()
          The ID of the revision.
 java.lang.String getKind()
          This is always drive#revision.
 java.lang.String getLastModifyingUserName()
          Name of the last user to modify this revision.
 java.lang.String getMd5Checksum()
          An MD5 checksum for the content of this revision.
 java.lang.String getMimeType()
          The MIME type of the revision.
 DateTime getModifiedDate()
          Last time this revision was modified (formatted RFC 3339 timestamp).
 java.lang.String getOriginalFilename()
          The original filename when this revision was created.
 java.lang.Boolean getPinned()
          Whether this revision is pinned to prevent automatic purging.
 java.lang.Boolean getPublishAuto()
          Whether subsequent revisions will be automatically republished.
 java.lang.Boolean getPublished()
          Whether this revision is published.
 java.lang.String getPublishedLink()
          A link to the published revision.
 java.lang.Boolean getPublishedOutsideDomain()
          Whether this revision is published outside the domain.
 java.lang.String getSelfLink()
          A link back to this revision.
 Revision setDownloadUrl(java.lang.String downloadUrl)
          Short term download URL for the file.
 Revision setEtag(java.lang.String etag)
          The ETag of the revision.
 Revision setExportLinks(java.util.Map<java.lang.String,java.lang.String> exportLinks)
          Links for exporting Google Docs to specific formats.
 Revision setFileSize(java.lang.Long fileSize)
          The size of the revision in bytes.
 Revision setId(java.lang.String id)
          The ID of the revision.
 Revision setKind(java.lang.String kind)
          This is always drive#revision.
 Revision setLastModifyingUserName(java.lang.String lastModifyingUserName)
          Name of the last user to modify this revision.
 Revision setMd5Checksum(java.lang.String md5Checksum)
          An MD5 checksum for the content of this revision.
 Revision setMimeType(java.lang.String mimeType)
          The MIME type of the revision.
 Revision setModifiedDate(DateTime modifiedDate)
          Last time this revision was modified (formatted RFC 3339 timestamp).
 Revision setOriginalFilename(java.lang.String originalFilename)
          The original filename when this revision was created.
 Revision setPinned(java.lang.Boolean pinned)
          Whether this revision is pinned to prevent automatic purging.
 Revision setPublishAuto(java.lang.Boolean publishAuto)
          Whether subsequent revisions will be automatically republished.
 Revision setPublished(java.lang.Boolean published)
          Whether this revision is published.
 Revision setPublishedLink(java.lang.String publishedLink)
          A link to the published revision.
 Revision setPublishedOutsideDomain(java.lang.Boolean publishedOutsideDomain)
          Whether this revision is published outside the domain.
 Revision setSelfLink(java.lang.String selfLink)
          A link back to this revision.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Revision

public Revision()
Method Detail

getDownloadUrl

public java.lang.String getDownloadUrl()
Short term download URL for the file. This will only be populated on files with content stored in Drive. The value returned may be null.


setDownloadUrl

public Revision setDownloadUrl(java.lang.String downloadUrl)
Short term download URL for the file. This will only be populated on files with content stored in Drive. The value set may be null.


getEtag

public java.lang.String getEtag()
The ETag of the revision. The value returned may be null.


setEtag

public Revision setEtag(java.lang.String etag)
The ETag of the revision. The value set may be null.


getExportLinks

public java.util.Map<java.lang.String,java.lang.String> getExportLinks()
Links for exporting Google Docs to specific formats. The value returned may be null.


setExportLinks

public Revision setExportLinks(java.util.Map<java.lang.String,java.lang.String> exportLinks)
Links for exporting Google Docs to specific formats. The value set may be null.


getFileSize

public java.lang.Long getFileSize()
The size of the revision in bytes. This will only be populated on files with content stored in Drive. The value returned may be null.


setFileSize

public Revision setFileSize(java.lang.Long fileSize)
The size of the revision in bytes. This will only be populated on files with content stored in Drive. The value set may be null.


getId

public java.lang.String getId()
The ID of the revision. The value returned may be null.


setId

public Revision setId(java.lang.String id)
The ID of the revision. The value set may be null.


getKind

public java.lang.String getKind()
This is always drive#revision. The value returned may be null.


setKind

public Revision setKind(java.lang.String kind)
This is always drive#revision. The value set may be null.


getLastModifyingUserName

public java.lang.String getLastModifyingUserName()
Name of the last user to modify this revision. The value returned may be null.


setLastModifyingUserName

public Revision setLastModifyingUserName(java.lang.String lastModifyingUserName)
Name of the last user to modify this revision. The value set may be null.


getMd5Checksum

public java.lang.String getMd5Checksum()
An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive. The value returned may be null.


setMd5Checksum

public Revision setMd5Checksum(java.lang.String md5Checksum)
An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive. The value set may be null.


getMimeType

public java.lang.String getMimeType()
The MIME type of the revision. The value returned may be null.


setMimeType

public Revision setMimeType(java.lang.String mimeType)
The MIME type of the revision. The value set may be null.


getModifiedDate

public DateTime getModifiedDate()
Last time this revision was modified (formatted RFC 3339 timestamp). The value returned may be null.


setModifiedDate

public Revision setModifiedDate(DateTime modifiedDate)
Last time this revision was modified (formatted RFC 3339 timestamp). The value set may be null.


getOriginalFilename

public java.lang.String getOriginalFilename()
The original filename when this revision was created. This will only be populated on files with content stored in Drive. The value returned may be null.


setOriginalFilename

public Revision setOriginalFilename(java.lang.String originalFilename)
The original filename when this revision was created. This will only be populated on files with content stored in Drive. The value set may be null.


getPinned

public java.lang.Boolean getPinned()
Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. The value returned may be null.


setPinned

public Revision setPinned(java.lang.Boolean pinned)
Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter. The value set may be null.


getPublishAuto

public java.lang.Boolean getPublishAuto()
Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs. The value returned may be null.


setPublishAuto

public Revision setPublishAuto(java.lang.Boolean publishAuto)
Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs. The value set may be null.


getPublished

public java.lang.Boolean getPublished()
Whether this revision is published. This is only populated and can only be modified for Google Docs. The value returned may be null.


setPublished

public Revision setPublished(java.lang.Boolean published)
Whether this revision is published. This is only populated and can only be modified for Google Docs. The value set may be null.


getPublishedLink

public java.lang.String getPublishedLink()
A link to the published revision. The value returned may be null.


setPublishedLink

public Revision setPublishedLink(java.lang.String publishedLink)
A link to the published revision. The value set may be null.


getPublishedOutsideDomain

public java.lang.Boolean getPublishedOutsideDomain()
Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs. The value returned may be null.


setPublishedOutsideDomain

public Revision setPublishedOutsideDomain(java.lang.Boolean publishedOutsideDomain)
Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs. The value set may be null.


getSelfLink

public java.lang.String getSelfLink()
A link back to this revision. The value returned may be null.


setSelfLink

public Revision setSelfLink(java.lang.String selfLink)
A link back to this revision. The value set may be null.