All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.drive.model.Revision.html Maven / Gradle / Ivy

There is a newer version: v3-rev20240903-2.0.0
Show newest version






Revision (Drive API v2-rev20180830-1.26.0)












com.google.api.services.drive.model

Class Revision

    • Constructor Detail

      • Revision

        public Revision()
    • Method Detail

      • getDownloadUrl

        public String getDownloadUrl()
        Short term download URL for the file. This will only be populated on files with content stored in Drive.
        Returns:
        value or null for none
      • 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.
        Parameters:
        downloadUrl - downloadUrl or null for none
      • getEtag

        public String getEtag()
        The ETag of the revision.
        Returns:
        value or null for none
      • setEtag

        public Revision setEtag(String etag)
        The ETag of the revision.
        Parameters:
        etag - etag or null for none
      • getExportLinks

        public Map<String,String> getExportLinks()
        Links for exporting Google Docs to specific formats.
        Returns:
        value or null for none
      • setExportLinks

        public Revision setExportLinks(Map<String,String> exportLinks)
        Links for exporting Google Docs to specific formats.
        Parameters:
        exportLinks - exportLinks or null for none
      • getFileSize

        public Long getFileSize()
        The size of the revision in bytes. This will only be populated on files with content stored in Drive.
        Returns:
        value or null for none
      • 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.
        Parameters:
        fileSize - fileSize or null for none
      • getId

        public String getId()
        The ID of the revision.
        Returns:
        value or null for none
      • setId

        public Revision setId(String id)
        The ID of the revision.
        Parameters:
        id - id or null for none
      • getKind

        public String getKind()
        This is always drive#revision.
        Returns:
        value or null for none
      • setKind

        public Revision setKind(String kind)
        This is always 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
      • getLastModifyingUserName

        public String getLastModifyingUserName()
        Name of the last user to modify this revision.
        Returns:
        value or null for none
      • setLastModifyingUserName

        public Revision setLastModifyingUserName(String lastModifyingUserName)
        Name of the last user to modify this revision.
        Parameters:
        lastModifyingUserName - lastModifyingUserName or null for none
      • 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.
        Returns:
        value or null for none
      • 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.
        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
      • getModifiedDate

        public com.google.api.client.util.DateTime getModifiedDate()
        Last time this revision was modified (formatted RFC 3339 timestamp).
        Returns:
        value or null for none
      • setModifiedDate

        public Revision setModifiedDate(com.google.api.client.util.DateTime modifiedDate)
        Last time this revision was modified (formatted RFC 3339 timestamp).
        Parameters:
        modifiedDate - modifiedDate or null for none
      • getOriginalFilename

        public String getOriginalFilename()
        The original filename when this revision was created. This will only be populated on files with content stored in Drive.
        Returns:
        value or null for none
      • 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.
        Parameters:
        originalFilename - originalFilename or null for none
      • getPinned

        public 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.
        Returns:
        value or null for none
      • setPinned

        public Revision setPinned(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.
        Parameters:
        pinned - pinned or null for none
      • getPublishAuto

        public Boolean getPublishAuto()
        Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
        Returns:
        value or null for none
      • setPublishAuto

        public Revision setPublishAuto(Boolean publishAuto)
        Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
        Parameters:
        publishAuto - publishAuto or null for none
      • getPublished

        public Boolean getPublished()
        Whether this revision is published. This is only populated and can only be modified for Google Docs.
        Returns:
        value or null for none
      • setPublished

        public Revision setPublished(Boolean published)
        Whether this revision is published. This is only populated and can only be modified for Google Docs.
        Parameters:
        published - published or null for none
      • getPublishedLink

        public String getPublishedLink()
        A link to the published revision.
        Returns:
        value or null for none
      • setPublishedLink

        public Revision setPublishedLink(String publishedLink)
        A link to the published revision.
        Parameters:
        publishedLink - publishedLink or null for none
      • getPublishedOutsideDomain

        public Boolean getPublishedOutsideDomain()
        Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
        Returns:
        value or null for none
      • setPublishedOutsideDomain

        public Revision setPublishedOutsideDomain(Boolean publishedOutsideDomain)
        Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
        Parameters:
        publishedOutsideDomain - publishedOutsideDomain or null for none
      • getSelfLink

        public String getSelfLink()
        A link back to this revision.
        Returns:
        value or null for none
      • setSelfLink

        public Revision setSelfLink(String selfLink)
        A link back to this revision.
        Parameters:
        selfLink - selfLink or null for none
      • set

        public Revision set(String fieldName,
                            Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public Revision clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2018 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy