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
18namespace Google\Service\Drive;
19
20class DriveFile extends \Google\Collection
21{
22  protected $collection_key = 'spaces';
23  /**
24   * @var string[]
25   */
26  public $appProperties;
27  protected $capabilitiesType = DriveFileCapabilities::class;
28  protected $capabilitiesDataType = '';
29  protected $contentHintsType = DriveFileContentHints::class;
30  protected $contentHintsDataType = '';
31  protected $contentRestrictionsType = ContentRestriction::class;
32  protected $contentRestrictionsDataType = 'array';
33  /**
34   * @var bool
35   */
36  public $copyRequiresWriterPermission;
37  /**
38   * @var string
39   */
40  public $createdTime;
41  /**
42   * @var string
43   */
44  public $description;
45  /**
46   * @var string
47   */
48  public $driveId;
49  /**
50   * @var bool
51   */
52  public $explicitlyTrashed;
53  /**
54   * @var string[]
55   */
56  public $exportLinks;
57  /**
58   * @var string
59   */
60  public $fileExtension;
61  /**
62   * @var string
63   */
64  public $folderColorRgb;
65  /**
66   * @var string
67   */
68  public $fullFileExtension;
69  /**
70   * @var bool
71   */
72  public $hasAugmentedPermissions;
73  /**
74   * @var bool
75   */
76  public $hasThumbnail;
77  /**
78   * @var string
79   */
80  public $headRevisionId;
81  /**
82   * @var string
83   */
84  public $iconLink;
85  /**
86   * @var string
87   */
88  public $id;
89  protected $imageMediaMetadataType = DriveFileImageMediaMetadata::class;
90  protected $imageMediaMetadataDataType = '';
91  /**
92   * @var bool
93   */
94  public $isAppAuthorized;
95  /**
96   * @var string
97   */
98  public $kind;
99  protected $lastModifyingUserType = User::class;
100  protected $lastModifyingUserDataType = '';
101  protected $linkShareMetadataType = DriveFileLinkShareMetadata::class;
102  protected $linkShareMetadataDataType = '';
103  /**
104   * @var string
105   */
106  public $md5Checksum;
107  /**
108   * @var string
109   */
110  public $mimeType;
111  /**
112   * @var bool
113   */
114  public $modifiedByMe;
115  /**
116   * @var string
117   */
118  public $modifiedByMeTime;
119  /**
120   * @var string
121   */
122  public $modifiedTime;
123  /**
124   * @var string
125   */
126  public $name;
127  /**
128   * @var string
129   */
130  public $originalFilename;
131  /**
132   * @var bool
133   */
134  public $ownedByMe;
135  protected $ownersType = User::class;
136  protected $ownersDataType = 'array';
137  /**
138   * @var string[]
139   */
140  public $parents;
141  /**
142   * @var string[]
143   */
144  public $permissionIds;
145  protected $permissionsType = Permission::class;
146  protected $permissionsDataType = 'array';
147  /**
148   * @var string[]
149   */
150  public $properties;
151  /**
152   * @var string
153   */
154  public $quotaBytesUsed;
155  /**
156   * @var string
157   */
158  public $resourceKey;
159  /**
160   * @var bool
161   */
162  public $shared;
163  /**
164   * @var string
165   */
166  public $sharedWithMeTime;
167  protected $sharingUserType = User::class;
168  protected $sharingUserDataType = '';
169  protected $shortcutDetailsType = DriveFileShortcutDetails::class;
170  protected $shortcutDetailsDataType = '';
171  /**
172   * @var string
173   */
174  public $size;
175  /**
176   * @var string[]
177   */
178  public $spaces;
179  /**
180   * @var bool
181   */
182  public $starred;
183  /**
184   * @var string
185   */
186  public $teamDriveId;
187  /**
188   * @var string
189   */
190  public $thumbnailLink;
191  /**
192   * @var string
193   */
194  public $thumbnailVersion;
195  /**
196   * @var bool
197   */
198  public $trashed;
199  /**
200   * @var string
201   */
202  public $trashedTime;
203  protected $trashingUserType = User::class;
204  protected $trashingUserDataType = '';
205  /**
206   * @var string
207   */
208  public $version;
209  protected $videoMediaMetadataType = DriveFileVideoMediaMetadata::class;
210  protected $videoMediaMetadataDataType = '';
211  /**
212   * @var bool
213   */
214  public $viewedByMe;
215  /**
216   * @var string
217   */
218  public $viewedByMeTime;
219  /**
220   * @var bool
221   */
222  public $viewersCanCopyContent;
223  /**
224   * @var string
225   */
226  public $webContentLink;
227  /**
228   * @var string
229   */
230  public $webViewLink;
231  /**
232   * @var bool
233   */
234  public $writersCanShare;
235
236  /**
237   * @param string[]
238   */
239  public function setAppProperties($appProperties)
240  {
241    $this->appProperties = $appProperties;
242  }
243  /**
244   * @return string[]
245   */
246  public function getAppProperties()
247  {
248    return $this->appProperties;
249  }
250  /**
251   * @param DriveFileCapabilities
252   */
253  public function setCapabilities(DriveFileCapabilities $capabilities)
254  {
255    $this->capabilities = $capabilities;
256  }
257  /**
258   * @return DriveFileCapabilities
259   */
260  public function getCapabilities()
261  {
262    return $this->capabilities;
263  }
264  /**
265   * @param DriveFileContentHints
266   */
267  public function setContentHints(DriveFileContentHints $contentHints)
268  {
269    $this->contentHints = $contentHints;
270  }
271  /**
272   * @return DriveFileContentHints
273   */
274  public function getContentHints()
275  {
276    return $this->contentHints;
277  }
278  /**
279   * @param ContentRestriction[]
280   */
281  public function setContentRestrictions($contentRestrictions)
282  {
283    $this->contentRestrictions = $contentRestrictions;
284  }
285  /**
286   * @return ContentRestriction[]
287   */
288  public function getContentRestrictions()
289  {
290    return $this->contentRestrictions;
291  }
292  /**
293   * @param bool
294   */
295  public function setCopyRequiresWriterPermission($copyRequiresWriterPermission)
296  {
297    $this->copyRequiresWriterPermission = $copyRequiresWriterPermission;
298  }
299  /**
300   * @return bool
301   */
302  public function getCopyRequiresWriterPermission()
303  {
304    return $this->copyRequiresWriterPermission;
305  }
306  /**
307   * @param string
308   */
309  public function setCreatedTime($createdTime)
310  {
311    $this->createdTime = $createdTime;
312  }
313  /**
314   * @return string
315   */
316  public function getCreatedTime()
317  {
318    return $this->createdTime;
319  }
320  /**
321   * @param string
322   */
323  public function setDescription($description)
324  {
325    $this->description = $description;
326  }
327  /**
328   * @return string
329   */
330  public function getDescription()
331  {
332    return $this->description;
333  }
334  /**
335   * @param string
336   */
337  public function setDriveId($driveId)
338  {
339    $this->driveId = $driveId;
340  }
341  /**
342   * @return string
343   */
344  public function getDriveId()
345  {
346    return $this->driveId;
347  }
348  /**
349   * @param bool
350   */
351  public function setExplicitlyTrashed($explicitlyTrashed)
352  {
353    $this->explicitlyTrashed = $explicitlyTrashed;
354  }
355  /**
356   * @return bool
357   */
358  public function getExplicitlyTrashed()
359  {
360    return $this->explicitlyTrashed;
361  }
362  /**
363   * @param string[]
364   */
365  public function setExportLinks($exportLinks)
366  {
367    $this->exportLinks = $exportLinks;
368  }
369  /**
370   * @return string[]
371   */
372  public function getExportLinks()
373  {
374    return $this->exportLinks;
375  }
376  /**
377   * @param string
378   */
379  public function setFileExtension($fileExtension)
380  {
381    $this->fileExtension = $fileExtension;
382  }
383  /**
384   * @return string
385   */
386  public function getFileExtension()
387  {
388    return $this->fileExtension;
389  }
390  /**
391   * @param string
392   */
393  public function setFolderColorRgb($folderColorRgb)
394  {
395    $this->folderColorRgb = $folderColorRgb;
396  }
397  /**
398   * @return string
399   */
400  public function getFolderColorRgb()
401  {
402    return $this->folderColorRgb;
403  }
404  /**
405   * @param string
406   */
407  public function setFullFileExtension($fullFileExtension)
408  {
409    $this->fullFileExtension = $fullFileExtension;
410  }
411  /**
412   * @return string
413   */
414  public function getFullFileExtension()
415  {
416    return $this->fullFileExtension;
417  }
418  /**
419   * @param bool
420   */
421  public function setHasAugmentedPermissions($hasAugmentedPermissions)
422  {
423    $this->hasAugmentedPermissions = $hasAugmentedPermissions;
424  }
425  /**
426   * @return bool
427   */
428  public function getHasAugmentedPermissions()
429  {
430    return $this->hasAugmentedPermissions;
431  }
432  /**
433   * @param bool
434   */
435  public function setHasThumbnail($hasThumbnail)
436  {
437    $this->hasThumbnail = $hasThumbnail;
438  }
439  /**
440   * @return bool
441   */
442  public function getHasThumbnail()
443  {
444    return $this->hasThumbnail;
445  }
446  /**
447   * @param string
448   */
449  public function setHeadRevisionId($headRevisionId)
450  {
451    $this->headRevisionId = $headRevisionId;
452  }
453  /**
454   * @return string
455   */
456  public function getHeadRevisionId()
457  {
458    return $this->headRevisionId;
459  }
460  /**
461   * @param string
462   */
463  public function setIconLink($iconLink)
464  {
465    $this->iconLink = $iconLink;
466  }
467  /**
468   * @return string
469   */
470  public function getIconLink()
471  {
472    return $this->iconLink;
473  }
474  /**
475   * @param string
476   */
477  public function setId($id)
478  {
479    $this->id = $id;
480  }
481  /**
482   * @return string
483   */
484  public function getId()
485  {
486    return $this->id;
487  }
488  /**
489   * @param DriveFileImageMediaMetadata
490   */
491  public function setImageMediaMetadata(DriveFileImageMediaMetadata $imageMediaMetadata)
492  {
493    $this->imageMediaMetadata = $imageMediaMetadata;
494  }
495  /**
496   * @return DriveFileImageMediaMetadata
497   */
498  public function getImageMediaMetadata()
499  {
500    return $this->imageMediaMetadata;
501  }
502  /**
503   * @param bool
504   */
505  public function setIsAppAuthorized($isAppAuthorized)
506  {
507    $this->isAppAuthorized = $isAppAuthorized;
508  }
509  /**
510   * @return bool
511   */
512  public function getIsAppAuthorized()
513  {
514    return $this->isAppAuthorized;
515  }
516  /**
517   * @param string
518   */
519  public function setKind($kind)
520  {
521    $this->kind = $kind;
522  }
523  /**
524   * @return string
525   */
526  public function getKind()
527  {
528    return $this->kind;
529  }
530  /**
531   * @param User
532   */
533  public function setLastModifyingUser(User $lastModifyingUser)
534  {
535    $this->lastModifyingUser = $lastModifyingUser;
536  }
537  /**
538   * @return User
539   */
540  public function getLastModifyingUser()
541  {
542    return $this->lastModifyingUser;
543  }
544  /**
545   * @param DriveFileLinkShareMetadata
546   */
547  public function setLinkShareMetadata(DriveFileLinkShareMetadata $linkShareMetadata)
548  {
549    $this->linkShareMetadata = $linkShareMetadata;
550  }
551  /**
552   * @return DriveFileLinkShareMetadata
553   */
554  public function getLinkShareMetadata()
555  {
556    return $this->linkShareMetadata;
557  }
558  /**
559   * @param string
560   */
561  public function setMd5Checksum($md5Checksum)
562  {
563    $this->md5Checksum = $md5Checksum;
564  }
565  /**
566   * @return string
567   */
568  public function getMd5Checksum()
569  {
570    return $this->md5Checksum;
571  }
572  /**
573   * @param string
574   */
575  public function setMimeType($mimeType)
576  {
577    $this->mimeType = $mimeType;
578  }
579  /**
580   * @return string
581   */
582  public function getMimeType()
583  {
584    return $this->mimeType;
585  }
586  /**
587   * @param bool
588   */
589  public function setModifiedByMe($modifiedByMe)
590  {
591    $this->modifiedByMe = $modifiedByMe;
592  }
593  /**
594   * @return bool
595   */
596  public function getModifiedByMe()
597  {
598    return $this->modifiedByMe;
599  }
600  /**
601   * @param string
602   */
603  public function setModifiedByMeTime($modifiedByMeTime)
604  {
605    $this->modifiedByMeTime = $modifiedByMeTime;
606  }
607  /**
608   * @return string
609   */
610  public function getModifiedByMeTime()
611  {
612    return $this->modifiedByMeTime;
613  }
614  /**
615   * @param string
616   */
617  public function setModifiedTime($modifiedTime)
618  {
619    $this->modifiedTime = $modifiedTime;
620  }
621  /**
622   * @return string
623   */
624  public function getModifiedTime()
625  {
626    return $this->modifiedTime;
627  }
628  /**
629   * @param string
630   */
631  public function setName($name)
632  {
633    $this->name = $name;
634  }
635  /**
636   * @return string
637   */
638  public function getName()
639  {
640    return $this->name;
641  }
642  /**
643   * @param string
644   */
645  public function setOriginalFilename($originalFilename)
646  {
647    $this->originalFilename = $originalFilename;
648  }
649  /**
650   * @return string
651   */
652  public function getOriginalFilename()
653  {
654    return $this->originalFilename;
655  }
656  /**
657   * @param bool
658   */
659  public function setOwnedByMe($ownedByMe)
660  {
661    $this->ownedByMe = $ownedByMe;
662  }
663  /**
664   * @return bool
665   */
666  public function getOwnedByMe()
667  {
668    return $this->ownedByMe;
669  }
670  /**
671   * @param User[]
672   */
673  public function setOwners($owners)
674  {
675    $this->owners = $owners;
676  }
677  /**
678   * @return User[]
679   */
680  public function getOwners()
681  {
682    return $this->owners;
683  }
684  /**
685   * @param string[]
686   */
687  public function setParents($parents)
688  {
689    $this->parents = $parents;
690  }
691  /**
692   * @return string[]
693   */
694  public function getParents()
695  {
696    return $this->parents;
697  }
698  /**
699   * @param string[]
700   */
701  public function setPermissionIds($permissionIds)
702  {
703    $this->permissionIds = $permissionIds;
704  }
705  /**
706   * @return string[]
707   */
708  public function getPermissionIds()
709  {
710    return $this->permissionIds;
711  }
712  /**
713   * @param Permission[]
714   */
715  public function setPermissions($permissions)
716  {
717    $this->permissions = $permissions;
718  }
719  /**
720   * @return Permission[]
721   */
722  public function getPermissions()
723  {
724    return $this->permissions;
725  }
726  /**
727   * @param string[]
728   */
729  public function setProperties($properties)
730  {
731    $this->properties = $properties;
732  }
733  /**
734   * @return string[]
735   */
736  public function getProperties()
737  {
738    return $this->properties;
739  }
740  /**
741   * @param string
742   */
743  public function setQuotaBytesUsed($quotaBytesUsed)
744  {
745    $this->quotaBytesUsed = $quotaBytesUsed;
746  }
747  /**
748   * @return string
749   */
750  public function getQuotaBytesUsed()
751  {
752    return $this->quotaBytesUsed;
753  }
754  /**
755   * @param string
756   */
757  public function setResourceKey($resourceKey)
758  {
759    $this->resourceKey = $resourceKey;
760  }
761  /**
762   * @return string
763   */
764  public function getResourceKey()
765  {
766    return $this->resourceKey;
767  }
768  /**
769   * @param bool
770   */
771  public function setShared($shared)
772  {
773    $this->shared = $shared;
774  }
775  /**
776   * @return bool
777   */
778  public function getShared()
779  {
780    return $this->shared;
781  }
782  /**
783   * @param string
784   */
785  public function setSharedWithMeTime($sharedWithMeTime)
786  {
787    $this->sharedWithMeTime = $sharedWithMeTime;
788  }
789  /**
790   * @return string
791   */
792  public function getSharedWithMeTime()
793  {
794    return $this->sharedWithMeTime;
795  }
796  /**
797   * @param User
798   */
799  public function setSharingUser(User $sharingUser)
800  {
801    $this->sharingUser = $sharingUser;
802  }
803  /**
804   * @return User
805   */
806  public function getSharingUser()
807  {
808    return $this->sharingUser;
809  }
810  /**
811   * @param DriveFileShortcutDetails
812   */
813  public function setShortcutDetails(DriveFileShortcutDetails $shortcutDetails)
814  {
815    $this->shortcutDetails = $shortcutDetails;
816  }
817  /**
818   * @return DriveFileShortcutDetails
819   */
820  public function getShortcutDetails()
821  {
822    return $this->shortcutDetails;
823  }
824  /**
825   * @param string
826   */
827  public function setSize($size)
828  {
829    $this->size = $size;
830  }
831  /**
832   * @return string
833   */
834  public function getSize()
835  {
836    return $this->size;
837  }
838  /**
839   * @param string[]
840   */
841  public function setSpaces($spaces)
842  {
843    $this->spaces = $spaces;
844  }
845  /**
846   * @return string[]
847   */
848  public function getSpaces()
849  {
850    return $this->spaces;
851  }
852  /**
853   * @param bool
854   */
855  public function setStarred($starred)
856  {
857    $this->starred = $starred;
858  }
859  /**
860   * @return bool
861   */
862  public function getStarred()
863  {
864    return $this->starred;
865  }
866  /**
867   * @param string
868   */
869  public function setTeamDriveId($teamDriveId)
870  {
871    $this->teamDriveId = $teamDriveId;
872  }
873  /**
874   * @return string
875   */
876  public function getTeamDriveId()
877  {
878    return $this->teamDriveId;
879  }
880  /**
881   * @param string
882   */
883  public function setThumbnailLink($thumbnailLink)
884  {
885    $this->thumbnailLink = $thumbnailLink;
886  }
887  /**
888   * @return string
889   */
890  public function getThumbnailLink()
891  {
892    return $this->thumbnailLink;
893  }
894  /**
895   * @param string
896   */
897  public function setThumbnailVersion($thumbnailVersion)
898  {
899    $this->thumbnailVersion = $thumbnailVersion;
900  }
901  /**
902   * @return string
903   */
904  public function getThumbnailVersion()
905  {
906    return $this->thumbnailVersion;
907  }
908  /**
909   * @param bool
910   */
911  public function setTrashed($trashed)
912  {
913    $this->trashed = $trashed;
914  }
915  /**
916   * @return bool
917   */
918  public function getTrashed()
919  {
920    return $this->trashed;
921  }
922  /**
923   * @param string
924   */
925  public function setTrashedTime($trashedTime)
926  {
927    $this->trashedTime = $trashedTime;
928  }
929  /**
930   * @return string
931   */
932  public function getTrashedTime()
933  {
934    return $this->trashedTime;
935  }
936  /**
937   * @param User
938   */
939  public function setTrashingUser(User $trashingUser)
940  {
941    $this->trashingUser = $trashingUser;
942  }
943  /**
944   * @return User
945   */
946  public function getTrashingUser()
947  {
948    return $this->trashingUser;
949  }
950  /**
951   * @param string
952   */
953  public function setVersion($version)
954  {
955    $this->version = $version;
956  }
957  /**
958   * @return string
959   */
960  public function getVersion()
961  {
962    return $this->version;
963  }
964  /**
965   * @param DriveFileVideoMediaMetadata
966   */
967  public function setVideoMediaMetadata(DriveFileVideoMediaMetadata $videoMediaMetadata)
968  {
969    $this->videoMediaMetadata = $videoMediaMetadata;
970  }
971  /**
972   * @return DriveFileVideoMediaMetadata
973   */
974  public function getVideoMediaMetadata()
975  {
976    return $this->videoMediaMetadata;
977  }
978  /**
979   * @param bool
980   */
981  public function setViewedByMe($viewedByMe)
982  {
983    $this->viewedByMe = $viewedByMe;
984  }
985  /**
986   * @return bool
987   */
988  public function getViewedByMe()
989  {
990    return $this->viewedByMe;
991  }
992  /**
993   * @param string
994   */
995  public function setViewedByMeTime($viewedByMeTime)
996  {
997    $this->viewedByMeTime = $viewedByMeTime;
998  }
999  /**
1000   * @return string
1001   */
1002  public function getViewedByMeTime()
1003  {
1004    return $this->viewedByMeTime;
1005  }
1006  /**
1007   * @param bool
1008   */
1009  public function setViewersCanCopyContent($viewersCanCopyContent)
1010  {
1011    $this->viewersCanCopyContent = $viewersCanCopyContent;
1012  }
1013  /**
1014   * @return bool
1015   */
1016  public function getViewersCanCopyContent()
1017  {
1018    return $this->viewersCanCopyContent;
1019  }
1020  /**
1021   * @param string
1022   */
1023  public function setWebContentLink($webContentLink)
1024  {
1025    $this->webContentLink = $webContentLink;
1026  }
1027  /**
1028   * @return string
1029   */
1030  public function getWebContentLink()
1031  {
1032    return $this->webContentLink;
1033  }
1034  /**
1035   * @param string
1036   */
1037  public function setWebViewLink($webViewLink)
1038  {
1039    $this->webViewLink = $webViewLink;
1040  }
1041  /**
1042   * @return string
1043   */
1044  public function getWebViewLink()
1045  {
1046    return $this->webViewLink;
1047  }
1048  /**
1049   * @param bool
1050   */
1051  public function setWritersCanShare($writersCanShare)
1052  {
1053    $this->writersCanShare = $writersCanShare;
1054  }
1055  /**
1056   * @return bool
1057   */
1058  public function getWritersCanShare()
1059  {
1060    return $this->writersCanShare;
1061  }
1062}
1063
1064// Adding a class alias for backwards compatibility with the previous class name.
1065class_alias(DriveFile::class, 'Google_Service_Drive_DriveFile');
1066