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\Books;
19
20class VolumeUserInfo extends \Google\Model
21{
22  /**
23   * @var string
24   */
25  public $acquiredTime;
26  /**
27   * @var int
28   */
29  public $acquisitionType;
30  protected $copyType = VolumeUserInfoCopy::class;
31  protected $copyDataType = '';
32  /**
33   * @var int
34   */
35  public $entitlementType;
36  protected $familySharingType = VolumeUserInfoFamilySharing::class;
37  protected $familySharingDataType = '';
38  /**
39   * @var bool
40   */
41  public $isFamilySharedFromUser;
42  /**
43   * @var bool
44   */
45  public $isFamilySharedToUser;
46  /**
47   * @var bool
48   */
49  public $isFamilySharingAllowed;
50  /**
51   * @var bool
52   */
53  public $isFamilySharingDisabledByFop;
54  /**
55   * @var bool
56   */
57  public $isInMyBooks;
58  /**
59   * @var bool
60   */
61  public $isPreordered;
62  /**
63   * @var bool
64   */
65  public $isPurchased;
66  /**
67   * @var bool
68   */
69  public $isUploaded;
70  protected $readingPositionType = ReadingPosition::class;
71  protected $readingPositionDataType = '';
72  protected $rentalPeriodType = VolumeUserInfoRentalPeriod::class;
73  protected $rentalPeriodDataType = '';
74  /**
75   * @var string
76   */
77  public $rentalState;
78  protected $reviewType = Review::class;
79  protected $reviewDataType = '';
80  /**
81   * @var string
82   */
83  public $updated;
84  protected $userUploadedVolumeInfoType = VolumeUserInfoUserUploadedVolumeInfo::class;
85  protected $userUploadedVolumeInfoDataType = '';
86
87  /**
88   * @param string
89   */
90  public function setAcquiredTime($acquiredTime)
91  {
92    $this->acquiredTime = $acquiredTime;
93  }
94  /**
95   * @return string
96   */
97  public function getAcquiredTime()
98  {
99    return $this->acquiredTime;
100  }
101  /**
102   * @param int
103   */
104  public function setAcquisitionType($acquisitionType)
105  {
106    $this->acquisitionType = $acquisitionType;
107  }
108  /**
109   * @return int
110   */
111  public function getAcquisitionType()
112  {
113    return $this->acquisitionType;
114  }
115  /**
116   * @param VolumeUserInfoCopy
117   */
118  public function setCopy(VolumeUserInfoCopy $copy)
119  {
120    $this->copy = $copy;
121  }
122  /**
123   * @return VolumeUserInfoCopy
124   */
125  public function getCopy()
126  {
127    return $this->copy;
128  }
129  /**
130   * @param int
131   */
132  public function setEntitlementType($entitlementType)
133  {
134    $this->entitlementType = $entitlementType;
135  }
136  /**
137   * @return int
138   */
139  public function getEntitlementType()
140  {
141    return $this->entitlementType;
142  }
143  /**
144   * @param VolumeUserInfoFamilySharing
145   */
146  public function setFamilySharing(VolumeUserInfoFamilySharing $familySharing)
147  {
148    $this->familySharing = $familySharing;
149  }
150  /**
151   * @return VolumeUserInfoFamilySharing
152   */
153  public function getFamilySharing()
154  {
155    return $this->familySharing;
156  }
157  /**
158   * @param bool
159   */
160  public function setIsFamilySharedFromUser($isFamilySharedFromUser)
161  {
162    $this->isFamilySharedFromUser = $isFamilySharedFromUser;
163  }
164  /**
165   * @return bool
166   */
167  public function getIsFamilySharedFromUser()
168  {
169    return $this->isFamilySharedFromUser;
170  }
171  /**
172   * @param bool
173   */
174  public function setIsFamilySharedToUser($isFamilySharedToUser)
175  {
176    $this->isFamilySharedToUser = $isFamilySharedToUser;
177  }
178  /**
179   * @return bool
180   */
181  public function getIsFamilySharedToUser()
182  {
183    return $this->isFamilySharedToUser;
184  }
185  /**
186   * @param bool
187   */
188  public function setIsFamilySharingAllowed($isFamilySharingAllowed)
189  {
190    $this->isFamilySharingAllowed = $isFamilySharingAllowed;
191  }
192  /**
193   * @return bool
194   */
195  public function getIsFamilySharingAllowed()
196  {
197    return $this->isFamilySharingAllowed;
198  }
199  /**
200   * @param bool
201   */
202  public function setIsFamilySharingDisabledByFop($isFamilySharingDisabledByFop)
203  {
204    $this->isFamilySharingDisabledByFop = $isFamilySharingDisabledByFop;
205  }
206  /**
207   * @return bool
208   */
209  public function getIsFamilySharingDisabledByFop()
210  {
211    return $this->isFamilySharingDisabledByFop;
212  }
213  /**
214   * @param bool
215   */
216  public function setIsInMyBooks($isInMyBooks)
217  {
218    $this->isInMyBooks = $isInMyBooks;
219  }
220  /**
221   * @return bool
222   */
223  public function getIsInMyBooks()
224  {
225    return $this->isInMyBooks;
226  }
227  /**
228   * @param bool
229   */
230  public function setIsPreordered($isPreordered)
231  {
232    $this->isPreordered = $isPreordered;
233  }
234  /**
235   * @return bool
236   */
237  public function getIsPreordered()
238  {
239    return $this->isPreordered;
240  }
241  /**
242   * @param bool
243   */
244  public function setIsPurchased($isPurchased)
245  {
246    $this->isPurchased = $isPurchased;
247  }
248  /**
249   * @return bool
250   */
251  public function getIsPurchased()
252  {
253    return $this->isPurchased;
254  }
255  /**
256   * @param bool
257   */
258  public function setIsUploaded($isUploaded)
259  {
260    $this->isUploaded = $isUploaded;
261  }
262  /**
263   * @return bool
264   */
265  public function getIsUploaded()
266  {
267    return $this->isUploaded;
268  }
269  /**
270   * @param ReadingPosition
271   */
272  public function setReadingPosition(ReadingPosition $readingPosition)
273  {
274    $this->readingPosition = $readingPosition;
275  }
276  /**
277   * @return ReadingPosition
278   */
279  public function getReadingPosition()
280  {
281    return $this->readingPosition;
282  }
283  /**
284   * @param VolumeUserInfoRentalPeriod
285   */
286  public function setRentalPeriod(VolumeUserInfoRentalPeriod $rentalPeriod)
287  {
288    $this->rentalPeriod = $rentalPeriod;
289  }
290  /**
291   * @return VolumeUserInfoRentalPeriod
292   */
293  public function getRentalPeriod()
294  {
295    return $this->rentalPeriod;
296  }
297  /**
298   * @param string
299   */
300  public function setRentalState($rentalState)
301  {
302    $this->rentalState = $rentalState;
303  }
304  /**
305   * @return string
306   */
307  public function getRentalState()
308  {
309    return $this->rentalState;
310  }
311  /**
312   * @param Review
313   */
314  public function setReview(Review $review)
315  {
316    $this->review = $review;
317  }
318  /**
319   * @return Review
320   */
321  public function getReview()
322  {
323    return $this->review;
324  }
325  /**
326   * @param string
327   */
328  public function setUpdated($updated)
329  {
330    $this->updated = $updated;
331  }
332  /**
333   * @return string
334   */
335  public function getUpdated()
336  {
337    return $this->updated;
338  }
339  /**
340   * @param VolumeUserInfoUserUploadedVolumeInfo
341   */
342  public function setUserUploadedVolumeInfo(VolumeUserInfoUserUploadedVolumeInfo $userUploadedVolumeInfo)
343  {
344    $this->userUploadedVolumeInfo = $userUploadedVolumeInfo;
345  }
346  /**
347   * @return VolumeUserInfoUserUploadedVolumeInfo
348   */
349  public function getUserUploadedVolumeInfo()
350  {
351    return $this->userUploadedVolumeInfo;
352  }
353}
354
355// Adding a class alias for backwards compatibility with the previous class name.
356class_alias(VolumeUserInfo::class, 'Google_Service_Books_VolumeUserInfo');
357