Drive API v2 (revision 1)



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

java.lang.Object
  extended by java.util.AbstractMap<String,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:
Cloneable, Map<String,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

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>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
Revision()
           
 
Method Summary
 String getDownloadUrl()
          Short term download URL for the file.
 String getEtag()
          The ETag of the revision.
 Map<String,String> getExportLinks()
          Links for exporting Google Docs 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.
 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.
 HttpHeaders getResponseHeaders()
          Returns the HTTP headers that were returned with the server response, or null.
 String getSelfLink()
          A link back to this revision.
 Revision setDownloadUrl(String downloadUrl)
          Short term download URL for the file.
 Revision setEtag(String etag)
          The ETag of the revision.
 Revision setExportLinks(Map<String,String> exportLinks)
          Links for exporting Google Docs 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 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.
 void setResponseHeaders(HttpHeaders responseHeaders)
          Sets the HTTP headers returned with the server response, or null.
 Revision setSelfLink(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

getMimeType

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


setMimeType

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


getPinned

public Boolean getPinned()
Whether this revision is pinned to prevent automatic purging. This will only be populated on files with content stored in Drive. The value returned may be null.


setPinned

public Revision setPinned(Boolean pinned)
Whether this revision is pinned to prevent automatic purging. This will only be populated on files with content stored in Drive. The value set may be null.


getKind

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


setKind

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


getPublishedLink

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


setPublishedLink

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


getPublishedOutsideDomain

public Boolean getPublishedOutsideDomain()
Whether this revision is published outside the domain. The value returned may be null.


setPublishedOutsideDomain

public Revision setPublishedOutsideDomain(Boolean publishedOutsideDomain)
Whether this revision is published outside the domain. The value set may be null.


getPublishAuto

public Boolean getPublishAuto()
Whether subsequent revisions will be automatically republished. The value returned may be null.


setPublishAuto

public Revision setPublishAuto(Boolean publishAuto)
Whether subsequent revisions will be automatically republished. The value set may be null.


getPublished

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


setPublished

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


getDownloadUrl

public 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(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.


getSelfLink

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


setSelfLink

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


getEtag

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


setEtag

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


getFileSize

public 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(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.


getExportLinks

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


setExportLinks

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


getLastModifyingUserName

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


setLastModifyingUserName

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


getOriginalFilename

public 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(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.


getId

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


setId

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


getMd5Checksum

public 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(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.


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.


setResponseHeaders

public void setResponseHeaders(HttpHeaders responseHeaders)
Sets the HTTP headers returned with the server response, or null. This member should only be non-null if this object was the top level element of a response. For example, a request that returns a single Revision would include the response headers, while a request which returns an array of Revision, would have a non-null response header in the enclosing object only.


getResponseHeaders

public HttpHeaders getResponseHeaders()
Returns the HTTP headers that were returned with the server response, or null.