[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\DriveActivity;
|
---|
| 19 |
|
---|
| 20 | class DriveItem extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | protected $driveFileType = DriveFile::class;
|
---|
| 23 | protected $driveFileDataType = '';
|
---|
| 24 | protected $driveFolderType = DriveFolder::class;
|
---|
| 25 | protected $driveFolderDataType = '';
|
---|
| 26 | protected $fileType = DriveactivityFile::class;
|
---|
| 27 | protected $fileDataType = '';
|
---|
| 28 | protected $folderType = Folder::class;
|
---|
| 29 | protected $folderDataType = '';
|
---|
| 30 | /**
|
---|
| 31 | * @var string
|
---|
| 32 | */
|
---|
| 33 | public $mimeType;
|
---|
| 34 | /**
|
---|
| 35 | * @var string
|
---|
| 36 | */
|
---|
| 37 | public $name;
|
---|
| 38 | protected $ownerType = Owner::class;
|
---|
| 39 | protected $ownerDataType = '';
|
---|
| 40 | /**
|
---|
| 41 | * @var string
|
---|
| 42 | */
|
---|
| 43 | public $title;
|
---|
| 44 |
|
---|
| 45 | /**
|
---|
| 46 | * @param DriveFile
|
---|
| 47 | */
|
---|
| 48 | public function setDriveFile(DriveFile $driveFile)
|
---|
| 49 | {
|
---|
| 50 | $this->driveFile = $driveFile;
|
---|
| 51 | }
|
---|
| 52 | /**
|
---|
| 53 | * @return DriveFile
|
---|
| 54 | */
|
---|
| 55 | public function getDriveFile()
|
---|
| 56 | {
|
---|
| 57 | return $this->driveFile;
|
---|
| 58 | }
|
---|
| 59 | /**
|
---|
| 60 | * @param DriveFolder
|
---|
| 61 | */
|
---|
| 62 | public function setDriveFolder(DriveFolder $driveFolder)
|
---|
| 63 | {
|
---|
| 64 | $this->driveFolder = $driveFolder;
|
---|
| 65 | }
|
---|
| 66 | /**
|
---|
| 67 | * @return DriveFolder
|
---|
| 68 | */
|
---|
| 69 | public function getDriveFolder()
|
---|
| 70 | {
|
---|
| 71 | return $this->driveFolder;
|
---|
| 72 | }
|
---|
| 73 | /**
|
---|
| 74 | * @param DriveactivityFile
|
---|
| 75 | */
|
---|
| 76 | public function setFile(DriveactivityFile $file)
|
---|
| 77 | {
|
---|
| 78 | $this->file = $file;
|
---|
| 79 | }
|
---|
| 80 | /**
|
---|
| 81 | * @return DriveactivityFile
|
---|
| 82 | */
|
---|
| 83 | public function getFile()
|
---|
| 84 | {
|
---|
| 85 | return $this->file;
|
---|
| 86 | }
|
---|
| 87 | /**
|
---|
| 88 | * @param Folder
|
---|
| 89 | */
|
---|
| 90 | public function setFolder(Folder $folder)
|
---|
| 91 | {
|
---|
| 92 | $this->folder = $folder;
|
---|
| 93 | }
|
---|
| 94 | /**
|
---|
| 95 | * @return Folder
|
---|
| 96 | */
|
---|
| 97 | public function getFolder()
|
---|
| 98 | {
|
---|
| 99 | return $this->folder;
|
---|
| 100 | }
|
---|
| 101 | /**
|
---|
| 102 | * @param string
|
---|
| 103 | */
|
---|
| 104 | public function setMimeType($mimeType)
|
---|
| 105 | {
|
---|
| 106 | $this->mimeType = $mimeType;
|
---|
| 107 | }
|
---|
| 108 | /**
|
---|
| 109 | * @return string
|
---|
| 110 | */
|
---|
| 111 | public function getMimeType()
|
---|
| 112 | {
|
---|
| 113 | return $this->mimeType;
|
---|
| 114 | }
|
---|
| 115 | /**
|
---|
| 116 | * @param string
|
---|
| 117 | */
|
---|
| 118 | public function setName($name)
|
---|
| 119 | {
|
---|
| 120 | $this->name = $name;
|
---|
| 121 | }
|
---|
| 122 | /**
|
---|
| 123 | * @return string
|
---|
| 124 | */
|
---|
| 125 | public function getName()
|
---|
| 126 | {
|
---|
| 127 | return $this->name;
|
---|
| 128 | }
|
---|
| 129 | /**
|
---|
| 130 | * @param Owner
|
---|
| 131 | */
|
---|
| 132 | public function setOwner(Owner $owner)
|
---|
| 133 | {
|
---|
| 134 | $this->owner = $owner;
|
---|
| 135 | }
|
---|
| 136 | /**
|
---|
| 137 | * @return Owner
|
---|
| 138 | */
|
---|
| 139 | public function getOwner()
|
---|
| 140 | {
|
---|
| 141 | return $this->owner;
|
---|
| 142 | }
|
---|
| 143 | /**
|
---|
| 144 | * @param string
|
---|
| 145 | */
|
---|
| 146 | public function setTitle($title)
|
---|
| 147 | {
|
---|
| 148 | $this->title = $title;
|
---|
| 149 | }
|
---|
| 150 | /**
|
---|
| 151 | * @return string
|
---|
| 152 | */
|
---|
| 153 | public function getTitle()
|
---|
| 154 | {
|
---|
| 155 | return $this->title;
|
---|
| 156 | }
|
---|
| 157 | }
|
---|
| 158 |
|
---|
| 159 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 160 | class_alias(DriveItem::class, 'Google_Service_DriveActivity_DriveItem');
|
---|