📂 File Browser

/AgentAI/vendor/google/apiclient-services/src/Drive
🌙 Dark Mode
🎯 Quick Launch:

📁 Directories

📁 Resource/ 🔓 Open

📄 Files

🐘 About.php
▶ Open 📄 View Source
🐘 AboutDriveThemes.php
▶ Open 📄 View Source
🐘 AboutStorageQuota.php
▶ Open 📄 View Source
🐘 AboutTeamDriveThemes.php
▶ Open 📄 View Source
🐘 AccessProposal.php
▶ Open 📄 View Source
🐘 AccessProposalRoleAndView.php
▶ Open 📄 View Source
🐘 App.php
▶ Open 📄 View Source
🐘 AppIcons.php
▶ Open 📄 View Source
🐘 AppList.php
▶ Open 📄 View Source
🐘 Approval.php
▶ Open 📄 View Source
🐘 ApprovalList.php
▶ Open 📄 View Source
🐘 Change.php
▶ Open 📄 View Source
🐘 ChangeList.php
▶ Open 📄 View Source
🐘 Channel.php
▶ Open 📄 View Source
🐘 ClientEncryptionDetails.php
▶ Open 📄 View Source
🐘 Comment.php
▶ Open 📄 View Source
🐘 CommentList.php
▶ Open 📄 View Source
🐘 CommentQuotedFileContent.php
▶ Open 📄 View Source
🐘 ContentRestriction.php
▶ Open 📄 View Source
🐘 DecryptionMetadata.php
▶ Open 📄 View Source
🐘 DownloadRestriction.php
▶ Open 📄 View Source
🐘 DownloadRestrictionsMetadata.php
▶ Open 📄 View Source
🐘 Drive.php
▶ Open 📄 View Source
🐘 DriveBackgroundImageFile.php
▶ Open 📄 View Source
🐘 DriveCapabilities.php
▶ Open 📄 View Source
🐘 DriveFile.php
▶ Open 📄 View Source
🐘 DriveFileCapabilities.php
▶ Open 📄 View Source
🐘 DriveFileContentHints.php
▶ Open 📄 View Source
🐘 DriveFileContentHintsThumbnail.php
▶ Open 📄 View Source
🐘 DriveFileImageMediaMetadata.php
▶ Open 📄 View Source
🐘 DriveFileImageMediaMetadataLocation.php
▶ Open 📄 View Source
🐘 DriveFileLabelInfo.php
▶ Open 📄 View Source
🐘 DriveFileLinkShareMetadata.php
▶ Open 📄 View Source
🐘 DriveFileShortcutDetails.php
▶ Open 📄 View Source
🐘 DriveFileVideoMediaMetadata.php
▶ Open 📄 View Source
🐘 DriveList.php
▶ Open 📄 View Source
🐘 DriveRestrictions.php
▶ Open 📄 View Source
🐘 FileList.php
▶ Open 📄 View Source
🐘 GenerateCseTokenResponse.php
▶ Open 📄 View Source
🐘 GeneratedIds.php
▶ Open 📄 View Source
🐘 Label.php
▶ Open 📄 View Source
🐘 LabelField.php
▶ Open 📄 View Source
🐘 LabelFieldModification.php
▶ Open 📄 View Source
🐘 LabelList.php
▶ Open 📄 View Source
🐘 LabelModification.php
▶ Open 📄 View Source
🐘 ListAccessProposalsResponse.php
▶ Open 📄 View Source
🐘 ListOperationsResponse.php
▶ Open 📄 View Source
🐘 ModifyLabelsRequest.php
▶ Open 📄 View Source
🐘 ModifyLabelsResponse.php
▶ Open 📄 View Source
🐘 Operation.php
▶ Open 📄 View Source
🐘 Permission.php
▶ Open 📄 View Source
🐘 PermissionList.php
▶ Open 📄 View Source
🐘 PermissionPermissionDetails.php
▶ Open 📄 View Source
🐘 PermissionTeamDrivePermissionDetails.php
▶ Open 📄 View Source
🐘 Reply.php
▶ Open 📄 View Source
🐘 ReplyList.php
▶ Open 📄 View Source
🐘 ResolveAccessProposalRequest.php
▶ Open 📄 View Source
🐘 ReviewerResponse.php
▶ Open 📄 View Source
🐘 Revision.php
▶ Open 📄 View Source
🐘 RevisionList.php
▶ Open 📄 View Source
🐘 StartPageToken.php
▶ Open 📄 View Source
🐘 Status.php
▶ Open 📄 View Source
🐘 TeamDrive.php
▶ Open 📄 View Source
🐘 TeamDriveBackgroundImageFile.php
▶ Open 📄 View Source
🐘 TeamDriveCapabilities.php
▶ Open 📄 View Source
🐘 TeamDriveList.php
▶ Open 📄 View Source
🐘 TeamDriveRestrictions.php
▶ Open 📄 View Source
🐘 User.php
▶ Open 📄 View Source

📄 Source: Revision.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\Drive;

class Revision extends \Google\Model
{
  /**
   * Output only. Links for exporting Docs Editors files to specific formats.
   *
   * @var string[]
   */
  public $exportLinks;
  /**
   * Output only. The ID of the revision.
   *
   * @var string
   */
  public $id;
  /**
   * 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.
   *
   * @var bool
   */
  public $keepForever;
  /**
   * Output only. Identifies what kind of resource this is. Value: the fixed
   * string `"drive#revision"`.
   *
   * @var string
   */
  public $kind;
  protected $lastModifyingUserType = User::class;
  protected $lastModifyingUserDataType = '';
  /**
   * Output only. The MD5 checksum of the revision's content. This is only
   * applicable to files with binary content in Drive.
   *
   * @var string
   */
  public $md5Checksum;
  /**
   * Output only. The MIME type of the revision.
   *
   * @var string
   */
  public $mimeType;
  /**
   * The last time the revision was modified (RFC 3339 date-time).
   *
   * @var string
   */
  public $modifiedTime;
  /**
   * Output only. The original filename used to create this revision. This is
   * only applicable to files with binary content in Drive.
   *
   * @var string
   */
  public $originalFilename;
  /**
   * Whether subsequent revisions will be automatically republished. This is
   * only applicable to Docs Editors files.
   *
   * @var bool
   */
  public $publishAuto;
  /**
   * Whether this revision is published. This is only applicable to Docs Editors
   * files.
   *
   * @var bool
   */
  public $published;
  /**
   * Output only. A link to the published revision. This is only populated for
   * Docs Editors files.
   *
   * @var string
   */
  public $publishedLink;
  /**
   * Whether this revision is published outside the domain. This is only
   * applicable to Docs Editors files.
   *
   * @var bool
   */
  public $publishedOutsideDomain;
  /**
   * Output only. The size of the revision's content in bytes. This is only
   * applicable to files with binary content in Drive.
   *
   * @var string
   */
  public $size;

  /**
   * Output only. Links for exporting Docs Editors files to specific formats.
   *
   * @param string[] $exportLinks
   */
  public function setExportLinks($exportLinks)
  {
    $this->exportLinks = $exportLinks;
  }
  /**
   * @return string[]
   */
  public function getExportLinks()
  {
    return $this->exportLinks;
  }
  /**
   * Output only. The ID of the revision.
   *
   * @param string $id
   */
  public function setId($id)
  {
    $this->id = $id;
  }
  /**
   * @return string
   */
  public function getId()
  {
    return $this->id;
  }
  /**
   * 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.
   *
   * @param bool $keepForever
   */
  public function setKeepForever($keepForever)
  {
    $this->keepForever = $keepForever;
  }
  /**
   * @return bool
   */
  public function getKeepForever()
  {
    return $this->keepForever;
  }
  /**
   * Output only. Identifies what kind of resource this is. Value: the fixed
   * string `"drive#revision"`.
   *
   * @param string $kind
   */
  public function setKind($kind)
  {
    $this->kind = $kind;
  }
  /**
   * @return string
   */
  public function getKind()
  {
    return $this->kind;
  }
  /**
   * Output only. The last user to modify this revision. This field is only
   * populated when the last modification was performed by a signed-in user.
   *
   * @param User $lastModifyingUser
   */
  public function setLastModifyingUser(User $lastModifyingUser)
  {
    $this->lastModifyingUser = $lastModifyingUser;
  }
  /**
   * @return User
   */
  public function getLastModifyingUser()
  {
    return $this->lastModifyingUser;
  }
  /**
   * Output only. The MD5 checksum of the revision's content. This is only
   * applicable to files with binary content in Drive.
   *
   * @param string $md5Checksum
   */
  public function setMd5Checksum($md5Checksum)
  {
    $this->md5Checksum = $md5Checksum;
  }
  /**
   * @return string
   */
  public function getMd5Checksum()
  {
    return $this->md5Checksum;
  }
  /**
   * Output only. The MIME type of the revision.
   *
   * @param string $mimeType
   */
  public function setMimeType($mimeType)
  {
    $this->mimeType = $mimeType;
  }
  /**
   * @return string
   */
  public function getMimeType()
  {
    return $this->mimeType;
  }
  /**
   * The last time the revision was modified (RFC 3339 date-time).
   *
   * @param string $modifiedTime
   */
  public function setModifiedTime($modifiedTime)
  {
    $this->modifiedTime = $modifiedTime;
  }
  /**
   * @return string
   */
  public function getModifiedTime()
  {
    return $this->modifiedTime;
  }
  /**
   * Output only. The original filename used to create this revision. This is
   * only applicable to files with binary content in Drive.
   *
   * @param string $originalFilename
   */
  public function setOriginalFilename($originalFilename)
  {
    $this->originalFilename = $originalFilename;
  }
  /**
   * @return string
   */
  public function getOriginalFilename()
  {
    return $this->originalFilename;
  }
  /**
   * Whether subsequent revisions will be automatically republished. This is
   * only applicable to Docs Editors files.
   *
   * @param bool $publishAuto
   */
  public function setPublishAuto($publishAuto)
  {
    $this->publishAuto = $publishAuto;
  }
  /**
   * @return bool
   */
  public function getPublishAuto()
  {
    return $this->publishAuto;
  }
  /**
   * Whether this revision is published. This is only applicable to Docs Editors
   * files.
   *
   * @param bool $published
   */
  public function setPublished($published)
  {
    $this->published = $published;
  }
  /**
   * @return bool
   */
  public function getPublished()
  {
    return $this->published;
  }
  /**
   * Output only. A link to the published revision. This is only populated for
   * Docs Editors files.
   *
   * @param string $publishedLink
   */
  public function setPublishedLink($publishedLink)
  {
    $this->publishedLink = $publishedLink;
  }
  /**
   * @return string
   */
  public function getPublishedLink()
  {
    return $this->publishedLink;
  }
  /**
   * Whether this revision is published outside the domain. This is only
   * applicable to Docs Editors files.
   *
   * @param bool $publishedOutsideDomain
   */
  public function setPublishedOutsideDomain($publishedOutsideDomain)
  {
    $this->publishedOutsideDomain = $publishedOutsideDomain;
  }
  /**
   * @return bool
   */
  public function getPublishedOutsideDomain()
  {
    return $this->publishedOutsideDomain;
  }
  /**
   * Output only. The size of the revision's content in bytes. This is only
   * applicable to files with binary content in Drive.
   *
   * @param string $size
   */
  public function setSize($size)
  {
    $this->size = $size;
  }
  /**
   * @return string
   */
  public function getSize()
  {
    return $this->size;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Revision::class, 'Google_Service_Drive_Revision');
← Back