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\Books;
|
---|
19 |
|
---|
20 | class ConcurrentAccessRestriction extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var bool
|
---|
24 | */
|
---|
25 | public $deviceAllowed;
|
---|
26 | /**
|
---|
27 | * @var string
|
---|
28 | */
|
---|
29 | public $kind;
|
---|
30 | /**
|
---|
31 | * @var int
|
---|
32 | */
|
---|
33 | public $maxConcurrentDevices;
|
---|
34 | /**
|
---|
35 | * @var string
|
---|
36 | */
|
---|
37 | public $message;
|
---|
38 | /**
|
---|
39 | * @var string
|
---|
40 | */
|
---|
41 | public $nonce;
|
---|
42 | /**
|
---|
43 | * @var string
|
---|
44 | */
|
---|
45 | public $reasonCode;
|
---|
46 | /**
|
---|
47 | * @var bool
|
---|
48 | */
|
---|
49 | public $restricted;
|
---|
50 | /**
|
---|
51 | * @var string
|
---|
52 | */
|
---|
53 | public $signature;
|
---|
54 | /**
|
---|
55 | * @var string
|
---|
56 | */
|
---|
57 | public $source;
|
---|
58 | /**
|
---|
59 | * @var int
|
---|
60 | */
|
---|
61 | public $timeWindowSeconds;
|
---|
62 | /**
|
---|
63 | * @var string
|
---|
64 | */
|
---|
65 | public $volumeId;
|
---|
66 |
|
---|
67 | /**
|
---|
68 | * @param bool
|
---|
69 | */
|
---|
70 | public function setDeviceAllowed($deviceAllowed)
|
---|
71 | {
|
---|
72 | $this->deviceAllowed = $deviceAllowed;
|
---|
73 | }
|
---|
74 | /**
|
---|
75 | * @return bool
|
---|
76 | */
|
---|
77 | public function getDeviceAllowed()
|
---|
78 | {
|
---|
79 | return $this->deviceAllowed;
|
---|
80 | }
|
---|
81 | /**
|
---|
82 | * @param string
|
---|
83 | */
|
---|
84 | public function setKind($kind)
|
---|
85 | {
|
---|
86 | $this->kind = $kind;
|
---|
87 | }
|
---|
88 | /**
|
---|
89 | * @return string
|
---|
90 | */
|
---|
91 | public function getKind()
|
---|
92 | {
|
---|
93 | return $this->kind;
|
---|
94 | }
|
---|
95 | /**
|
---|
96 | * @param int
|
---|
97 | */
|
---|
98 | public function setMaxConcurrentDevices($maxConcurrentDevices)
|
---|
99 | {
|
---|
100 | $this->maxConcurrentDevices = $maxConcurrentDevices;
|
---|
101 | }
|
---|
102 | /**
|
---|
103 | * @return int
|
---|
104 | */
|
---|
105 | public function getMaxConcurrentDevices()
|
---|
106 | {
|
---|
107 | return $this->maxConcurrentDevices;
|
---|
108 | }
|
---|
109 | /**
|
---|
110 | * @param string
|
---|
111 | */
|
---|
112 | public function setMessage($message)
|
---|
113 | {
|
---|
114 | $this->message = $message;
|
---|
115 | }
|
---|
116 | /**
|
---|
117 | * @return string
|
---|
118 | */
|
---|
119 | public function getMessage()
|
---|
120 | {
|
---|
121 | return $this->message;
|
---|
122 | }
|
---|
123 | /**
|
---|
124 | * @param string
|
---|
125 | */
|
---|
126 | public function setNonce($nonce)
|
---|
127 | {
|
---|
128 | $this->nonce = $nonce;
|
---|
129 | }
|
---|
130 | /**
|
---|
131 | * @return string
|
---|
132 | */
|
---|
133 | public function getNonce()
|
---|
134 | {
|
---|
135 | return $this->nonce;
|
---|
136 | }
|
---|
137 | /**
|
---|
138 | * @param string
|
---|
139 | */
|
---|
140 | public function setReasonCode($reasonCode)
|
---|
141 | {
|
---|
142 | $this->reasonCode = $reasonCode;
|
---|
143 | }
|
---|
144 | /**
|
---|
145 | * @return string
|
---|
146 | */
|
---|
147 | public function getReasonCode()
|
---|
148 | {
|
---|
149 | return $this->reasonCode;
|
---|
150 | }
|
---|
151 | /**
|
---|
152 | * @param bool
|
---|
153 | */
|
---|
154 | public function setRestricted($restricted)
|
---|
155 | {
|
---|
156 | $this->restricted = $restricted;
|
---|
157 | }
|
---|
158 | /**
|
---|
159 | * @return bool
|
---|
160 | */
|
---|
161 | public function getRestricted()
|
---|
162 | {
|
---|
163 | return $this->restricted;
|
---|
164 | }
|
---|
165 | /**
|
---|
166 | * @param string
|
---|
167 | */
|
---|
168 | public function setSignature($signature)
|
---|
169 | {
|
---|
170 | $this->signature = $signature;
|
---|
171 | }
|
---|
172 | /**
|
---|
173 | * @return string
|
---|
174 | */
|
---|
175 | public function getSignature()
|
---|
176 | {
|
---|
177 | return $this->signature;
|
---|
178 | }
|
---|
179 | /**
|
---|
180 | * @param string
|
---|
181 | */
|
---|
182 | public function setSource($source)
|
---|
183 | {
|
---|
184 | $this->source = $source;
|
---|
185 | }
|
---|
186 | /**
|
---|
187 | * @return string
|
---|
188 | */
|
---|
189 | public function getSource()
|
---|
190 | {
|
---|
191 | return $this->source;
|
---|
192 | }
|
---|
193 | /**
|
---|
194 | * @param int
|
---|
195 | */
|
---|
196 | public function setTimeWindowSeconds($timeWindowSeconds)
|
---|
197 | {
|
---|
198 | $this->timeWindowSeconds = $timeWindowSeconds;
|
---|
199 | }
|
---|
200 | /**
|
---|
201 | * @return int
|
---|
202 | */
|
---|
203 | public function getTimeWindowSeconds()
|
---|
204 | {
|
---|
205 | return $this->timeWindowSeconds;
|
---|
206 | }
|
---|
207 | /**
|
---|
208 | * @param string
|
---|
209 | */
|
---|
210 | public function setVolumeId($volumeId)
|
---|
211 | {
|
---|
212 | $this->volumeId = $volumeId;
|
---|
213 | }
|
---|
214 | /**
|
---|
215 | * @return string
|
---|
216 | */
|
---|
217 | public function getVolumeId()
|
---|
218 | {
|
---|
219 | return $this->volumeId;
|
---|
220 | }
|
---|
221 | }
|
---|
222 |
|
---|
223 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
224 | class_alias(ConcurrentAccessRestriction::class, 'Google_Service_Books_ConcurrentAccessRestriction');
|
---|