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 18class Google_Service_Drive_ContentRestriction extends Google_Model 19{ 20 public $readOnly; 21 public $reason; 22 protected $restrictingUserType = 'Google_Service_Drive_User'; 23 protected $restrictingUserDataType = ''; 24 public $restrictionTime; 25 public $type; 26 27 public function setReadOnly($readOnly) 28 { 29 $this->readOnly = $readOnly; 30 } 31 public function getReadOnly() 32 { 33 return $this->readOnly; 34 } 35 public function setReason($reason) 36 { 37 $this->reason = $reason; 38 } 39 public function getReason() 40 { 41 return $this->reason; 42 } 43 /** 44 * @param Google_Service_Drive_User 45 */ 46 public function setRestrictingUser(Google_Service_Drive_User $restrictingUser) 47 { 48 $this->restrictingUser = $restrictingUser; 49 } 50 /** 51 * @return Google_Service_Drive_User 52 */ 53 public function getRestrictingUser() 54 { 55 return $this->restrictingUser; 56 } 57 public function setRestrictionTime($restrictionTime) 58 { 59 $this->restrictionTime = $restrictionTime; 60 } 61 public function getRestrictionTime() 62 { 63 return $this->restrictionTime; 64 } 65 public function setType($type) 66 { 67 $this->type = $type; 68 } 69 public function getType() 70 { 71 return $this->type; 72 } 73} 74