PageRenderTime 61ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/lib/google/contrib/Google_BooksService.php

https://bitbucket.org/synergylearning/campusconnect
PHP | 2793 lines | 2223 code | 83 blank | 487 comment | 46 complexity | 1d3ea79436b063f95f1b1995217ff105 MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-3.0, GPL-3.0, LGPL-2.1, Apache-2.0, BSD-3-Clause, AGPL-3.0
  1. <?php
  2. /*
  3. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. * use this file except in compliance with the License. You may obtain a copy of
  5. * the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. * License for the specific language governing permissions and limitations under
  13. * the License.
  14. */
  15. /**
  16. * The "layers" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $booksService = new Google_BooksService(...);
  20. * $layers = $booksService->layers;
  21. * </code>
  22. */
  23. class Google_LayersServiceResource extends Google_ServiceResource {
  24. /**
  25. * List the layer summaries for a volume. (layers.list)
  26. *
  27. * @param string $volumeId The volume to retrieve layers for.
  28. * @param array $optParams Optional parameters.
  29. *
  30. * @opt_param string pageToken The value of the nextToken from the previous page.
  31. * @opt_param string contentVersion The content version for the requested volume.
  32. * @opt_param string maxResults Maximum number of results to return
  33. * @opt_param string source String to identify the originator of this request.
  34. * @return Google_Layersummaries
  35. */
  36. public function listLayers($volumeId, $optParams = array()) {
  37. $params = array('volumeId' => $volumeId);
  38. $params = array_merge($params, $optParams);
  39. $data = $this->__call('list', array($params));
  40. if ($this->useObjects()) {
  41. return new Google_Layersummaries($data);
  42. } else {
  43. return $data;
  44. }
  45. }
  46. /**
  47. * Gets the layer summary for a volume. (layers.get)
  48. *
  49. * @param string $volumeId The volume to retrieve layers for.
  50. * @param string $summaryId The ID for the layer to get the summary for.
  51. * @param array $optParams Optional parameters.
  52. *
  53. * @opt_param string source String to identify the originator of this request.
  54. * @opt_param string contentVersion The content version for the requested volume.
  55. * @return Google_Layersummary
  56. */
  57. public function get($volumeId, $summaryId, $optParams = array()) {
  58. $params = array('volumeId' => $volumeId, 'summaryId' => $summaryId);
  59. $params = array_merge($params, $optParams);
  60. $data = $this->__call('get', array($params));
  61. if ($this->useObjects()) {
  62. return new Google_Layersummary($data);
  63. } else {
  64. return $data;
  65. }
  66. }
  67. }
  68. /**
  69. * The "annotationData" collection of methods.
  70. * Typical usage is:
  71. * <code>
  72. * $booksService = new Google_BooksService(...);
  73. * $annotationData = $booksService->annotationData;
  74. * </code>
  75. */
  76. class Google_LayersAnnotationDataServiceResource extends Google_ServiceResource {
  77. /**
  78. * Gets the annotation data for a volume and layer. (annotationData.list)
  79. *
  80. * @param string $volumeId The volume to retrieve annotation data for.
  81. * @param string $layerId The ID for the layer to get the annotation data.
  82. * @param string $contentVersion The content version for the requested volume.
  83. * @param array $optParams Optional parameters.
  84. *
  85. * @opt_param int scale The requested scale for the image.
  86. * @opt_param string source String to identify the originator of this request.
  87. * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
  88. * @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
  89. * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
  90. * @opt_param string maxResults Maximum number of results to return
  91. * @opt_param string annotationDataId The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set.
  92. * @opt_param string pageToken The value of the nextToken from the previous page.
  93. * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
  94. * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
  95. * @return Google_Annotationsdata
  96. */
  97. public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array()) {
  98. $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
  99. $params = array_merge($params, $optParams);
  100. $data = $this->__call('list', array($params));
  101. if ($this->useObjects()) {
  102. return new Google_Annotationsdata($data);
  103. } else {
  104. return $data;
  105. }
  106. }
  107. /**
  108. * Gets the annotation data. (annotationData.get)
  109. *
  110. * @param string $volumeId The volume to retrieve annotations for.
  111. * @param string $layerId The ID for the layer to get the annotations.
  112. * @param string $annotationDataId The ID of the annotation data to retrieve.
  113. * @param string $contentVersion The content version for the volume you are trying to retrieve.
  114. * @param array $optParams Optional parameters.
  115. *
  116. * @opt_param int scale The requested scale for the image.
  117. * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
  118. * @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
  119. * @opt_param string source String to identify the originator of this request.
  120. * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
  121. * @return Google_Annotationdata
  122. */
  123. public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = array()) {
  124. $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId, 'contentVersion' => $contentVersion);
  125. $params = array_merge($params, $optParams);
  126. $data = $this->__call('get', array($params));
  127. if ($this->useObjects()) {
  128. return new Google_Annotationdata($data);
  129. } else {
  130. return $data;
  131. }
  132. }
  133. }
  134. /**
  135. * The "volumeAnnotations" collection of methods.
  136. * Typical usage is:
  137. * <code>
  138. * $booksService = new Google_BooksService(...);
  139. * $volumeAnnotations = $booksService->volumeAnnotations;
  140. * </code>
  141. */
  142. class Google_LayersVolumeAnnotationsServiceResource extends Google_ServiceResource {
  143. /**
  144. * Gets the volume annotations for a volume and layer. (volumeAnnotations.list)
  145. *
  146. * @param string $volumeId The volume to retrieve annotations for.
  147. * @param string $layerId The ID for the layer to get the annotations.
  148. * @param string $contentVersion The content version for the requested volume.
  149. * @param array $optParams Optional parameters.
  150. *
  151. * @opt_param bool showDeleted Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
  152. * @opt_param string endPosition The end position to end retrieving data from.
  153. * @opt_param string endOffset The end offset to end retrieving data from.
  154. * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
  155. * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
  156. * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
  157. * @opt_param string maxResults Maximum number of results to return
  158. * @opt_param string pageToken The value of the nextToken from the previous page.
  159. * @opt_param string source String to identify the originator of this request.
  160. * @opt_param string startOffset The start offset to start retrieving data from.
  161. * @opt_param string startPosition The start position to start retrieving data from.
  162. * @return Google_Volumeannotations
  163. */
  164. public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array()) {
  165. $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
  166. $params = array_merge($params, $optParams);
  167. $data = $this->__call('list', array($params));
  168. if ($this->useObjects()) {
  169. return new Google_Volumeannotations($data);
  170. } else {
  171. return $data;
  172. }
  173. }
  174. /**
  175. * Gets the volume annotation. (volumeAnnotations.get)
  176. *
  177. * @param string $volumeId The volume to retrieve annotations for.
  178. * @param string $layerId The ID for the layer to get the annotations.
  179. * @param string $annotationId The ID of the volume annotation to retrieve.
  180. * @param array $optParams Optional parameters.
  181. *
  182. * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
  183. * @opt_param string source String to identify the originator of this request.
  184. * @return Google_Volumeannotation
  185. */
  186. public function get($volumeId, $layerId, $annotationId, $optParams = array()) {
  187. $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId);
  188. $params = array_merge($params, $optParams);
  189. $data = $this->__call('get', array($params));
  190. if ($this->useObjects()) {
  191. return new Google_Volumeannotation($data);
  192. } else {
  193. return $data;
  194. }
  195. }
  196. }
  197. /**
  198. * The "bookshelves" collection of methods.
  199. * Typical usage is:
  200. * <code>
  201. * $booksService = new Google_BooksService(...);
  202. * $bookshelves = $booksService->bookshelves;
  203. * </code>
  204. */
  205. class Google_BookshelvesServiceResource extends Google_ServiceResource {
  206. /**
  207. * Retrieves a list of public bookshelves for the specified user. (bookshelves.list)
  208. *
  209. * @param string $userId ID of user for whom to retrieve bookshelves.
  210. * @param array $optParams Optional parameters.
  211. *
  212. * @opt_param string source String to identify the originator of this request.
  213. * @return Google_Bookshelves
  214. */
  215. public function listBookshelves($userId, $optParams = array()) {
  216. $params = array('userId' => $userId);
  217. $params = array_merge($params, $optParams);
  218. $data = $this->__call('list', array($params));
  219. if ($this->useObjects()) {
  220. return new Google_Bookshelves($data);
  221. } else {
  222. return $data;
  223. }
  224. }
  225. /**
  226. * Retrieves metadata for a specific bookshelf for the specified user. (bookshelves.get)
  227. *
  228. * @param string $userId ID of user for whom to retrieve bookshelves.
  229. * @param string $shelf ID of bookshelf to retrieve.
  230. * @param array $optParams Optional parameters.
  231. *
  232. * @opt_param string source String to identify the originator of this request.
  233. * @return Google_Bookshelf
  234. */
  235. public function get($userId, $shelf, $optParams = array()) {
  236. $params = array('userId' => $userId, 'shelf' => $shelf);
  237. $params = array_merge($params, $optParams);
  238. $data = $this->__call('get', array($params));
  239. if ($this->useObjects()) {
  240. return new Google_Bookshelf($data);
  241. } else {
  242. return $data;
  243. }
  244. }
  245. }
  246. /**
  247. * The "volumes" collection of methods.
  248. * Typical usage is:
  249. * <code>
  250. * $booksService = new Google_BooksService(...);
  251. * $volumes = $booksService->volumes;
  252. * </code>
  253. */
  254. class Google_BookshelvesVolumesServiceResource extends Google_ServiceResource {
  255. /**
  256. * Retrieves volumes in a specific bookshelf for the specified user. (volumes.list)
  257. *
  258. * @param string $userId ID of user for whom to retrieve bookshelf volumes.
  259. * @param string $shelf ID of bookshelf to retrieve volumes.
  260. * @param array $optParams Optional parameters.
  261. *
  262. * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
  263. * @opt_param string maxResults Maximum number of results to return
  264. * @opt_param string source String to identify the originator of this request.
  265. * @opt_param string startIndex Index of the first element to return (starts at 0)
  266. * @return Google_Volumes
  267. */
  268. public function listBookshelvesVolumes($userId, $shelf, $optParams = array()) {
  269. $params = array('userId' => $userId, 'shelf' => $shelf);
  270. $params = array_merge($params, $optParams);
  271. $data = $this->__call('list', array($params));
  272. if ($this->useObjects()) {
  273. return new Google_Volumes($data);
  274. } else {
  275. return $data;
  276. }
  277. }
  278. }
  279. /**
  280. * The "myconfig" collection of methods.
  281. * Typical usage is:
  282. * <code>
  283. * $booksService = new Google_BooksService(...);
  284. * $myconfig = $booksService->myconfig;
  285. * </code>
  286. */
  287. class Google_MyconfigServiceResource extends Google_ServiceResource {
  288. /**
  289. * Release downloaded content access restriction. (myconfig.releaseDownloadAccess)
  290. *
  291. * @param string $volumeIds The volume(s) to release restrictions for.
  292. * @param string $cpksver The device/version ID from which to release the restriction.
  293. * @param array $optParams Optional parameters.
  294. *
  295. * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
  296. * @opt_param string source String to identify the originator of this request.
  297. * @return Google_DownloadAccesses
  298. */
  299. public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array()) {
  300. $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver);
  301. $params = array_merge($params, $optParams);
  302. $data = $this->__call('releaseDownloadAccess', array($params));
  303. if ($this->useObjects()) {
  304. return new Google_DownloadAccesses($data);
  305. } else {
  306. return $data;
  307. }
  308. }
  309. /**
  310. * Request concurrent and download access restrictions. (myconfig.requestAccess)
  311. *
  312. * @param string $source String to identify the originator of this request.
  313. * @param string $volumeId The volume to request concurrent/download restrictions for.
  314. * @param string $nonce The client nonce value.
  315. * @param string $cpksver The device/version ID from which to request the restrictions.
  316. * @param array $optParams Optional parameters.
  317. *
  318. * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
  319. * @return Google_RequestAccess
  320. */
  321. public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array()) {
  322. $params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver);
  323. $params = array_merge($params, $optParams);
  324. $data = $this->__call('requestAccess', array($params));
  325. if ($this->useObjects()) {
  326. return new Google_RequestAccess($data);
  327. } else {
  328. return $data;
  329. }
  330. }
  331. /**
  332. * Request downloaded content access for specified volumes on the My eBooks shelf.
  333. * (myconfig.syncVolumeLicenses)
  334. *
  335. * @param string $source String to identify the originator of this request.
  336. * @param string $nonce The client nonce value.
  337. * @param string $cpksver The device/version ID from which to release the restriction.
  338. * @param array $optParams Optional parameters.
  339. *
  340. * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
  341. * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
  342. * @opt_param string volumeIds The volume(s) to request download restrictions for.
  343. * @return Google_Volumes
  344. */
  345. public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array()) {
  346. $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver);
  347. $params = array_merge($params, $optParams);
  348. $data = $this->__call('syncVolumeLicenses', array($params));
  349. if ($this->useObjects()) {
  350. return new Google_Volumes($data);
  351. } else {
  352. return $data;
  353. }
  354. }
  355. }
  356. /**
  357. * The "volumes" collection of methods.
  358. * Typical usage is:
  359. * <code>
  360. * $booksService = new Google_BooksService(...);
  361. * $volumes = $booksService->volumes;
  362. * </code>
  363. */
  364. class Google_VolumesServiceResource extends Google_ServiceResource {
  365. /**
  366. * Performs a book search. (volumes.list)
  367. *
  368. * @param string $q Full-text search query string.
  369. * @param array $optParams Optional parameters.
  370. *
  371. * @opt_param string orderBy Sort search results.
  372. * @opt_param string projection Restrict information returned to a set of selected fields.
  373. * @opt_param string libraryRestrict Restrict search to this user's library.
  374. * @opt_param string langRestrict Restrict results to books with this language code.
  375. * @opt_param bool showPreorders Set to true to show books available for preorder. Defaults to false.
  376. * @opt_param string printType Restrict to books or magazines.
  377. * @opt_param string maxResults Maximum number of results to return.
  378. * @opt_param string filter Filter search results.
  379. * @opt_param string source String to identify the originator of this request.
  380. * @opt_param string startIndex Index of the first result to return (starts at 0)
  381. * @opt_param string download Restrict to volumes by download availability.
  382. * @opt_param string partner Restrict and brand results for partner ID.
  383. * @return Google_Volumes
  384. */
  385. public function listVolumes($q, $optParams = array()) {
  386. $params = array('q' => $q);
  387. $params = array_merge($params, $optParams);
  388. $data = $this->__call('list', array($params));
  389. if ($this->useObjects()) {
  390. return new Google_Volumes($data);
  391. } else {
  392. return $data;
  393. }
  394. }
  395. /**
  396. * Gets volume information for a single volume. (volumes.get)
  397. *
  398. * @param string $volumeId ID of volume to retrieve.
  399. * @param array $optParams Optional parameters.
  400. *
  401. * @opt_param string source String to identify the originator of this request.
  402. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  403. * @opt_param string projection Restrict information returned to a set of selected fields.
  404. * @opt_param string partner Brand results for partner ID.
  405. * @return Google_Volume
  406. */
  407. public function get($volumeId, $optParams = array()) {
  408. $params = array('volumeId' => $volumeId);
  409. $params = array_merge($params, $optParams);
  410. $data = $this->__call('get', array($params));
  411. if ($this->useObjects()) {
  412. return new Google_Volume($data);
  413. } else {
  414. return $data;
  415. }
  416. }
  417. }
  418. /**
  419. * The "associated" collection of methods.
  420. * Typical usage is:
  421. * <code>
  422. * $booksService = new Google_BooksService(...);
  423. * $associated = $booksService->associated;
  424. * </code>
  425. */
  426. class Google_VolumesAssociatedServiceResource extends Google_ServiceResource {
  427. /**
  428. * Return a list of associated books. (associated.list)
  429. *
  430. * @param string $volumeId ID of the source volume.
  431. * @param array $optParams Optional parameters.
  432. *
  433. * @opt_param string projection Restrict information returned to a set of selected fields.
  434. * @opt_param string maxResults Maximum number of results to return.
  435. * @opt_param string filter Filter search results.
  436. * @opt_param string source String to identify the originator of this request.
  437. * @opt_param string startIndex Index of the first result to return (starts at 0)
  438. * @opt_param string association Association type.
  439. * @return Google_Volumes
  440. */
  441. public function listVolumesAssociated($volumeId, $optParams = array()) {
  442. $params = array('volumeId' => $volumeId);
  443. $params = array_merge($params, $optParams);
  444. $data = $this->__call('list', array($params));
  445. if ($this->useObjects()) {
  446. return new Google_Volumes($data);
  447. } else {
  448. return $data;
  449. }
  450. }
  451. }
  452. /**
  453. * The "mylibrary" collection of methods.
  454. * Typical usage is:
  455. * <code>
  456. * $booksService = new Google_BooksService(...);
  457. * $mylibrary = $booksService->mylibrary;
  458. * </code>
  459. */
  460. class Google_MylibraryServiceResource extends Google_ServiceResource {
  461. }
  462. /**
  463. * The "bookshelves" collection of methods.
  464. * Typical usage is:
  465. * <code>
  466. * $booksService = new Google_BooksService(...);
  467. * $bookshelves = $booksService->bookshelves;
  468. * </code>
  469. */
  470. class Google_MylibraryBookshelvesServiceResource extends Google_ServiceResource {
  471. /**
  472. * Removes a volume from a bookshelf. (bookshelves.removeVolume)
  473. *
  474. * @param string $shelf ID of bookshelf from which to remove a volume.
  475. * @param string $volumeId ID of volume to remove.
  476. * @param array $optParams Optional parameters.
  477. *
  478. * @opt_param string source String to identify the originator of this request.
  479. */
  480. public function removeVolume($shelf, $volumeId, $optParams = array()) {
  481. $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
  482. $params = array_merge($params, $optParams);
  483. $data = $this->__call('removeVolume', array($params));
  484. return $data;
  485. }
  486. /**
  487. * Retrieves metadata for a specific bookshelf belonging to the authenticated user.
  488. * (bookshelves.get)
  489. *
  490. * @param string $shelf ID of bookshelf to retrieve.
  491. * @param array $optParams Optional parameters.
  492. *
  493. * @opt_param string source String to identify the originator of this request.
  494. * @return Google_Bookshelf
  495. */
  496. public function get($shelf, $optParams = array()) {
  497. $params = array('shelf' => $shelf);
  498. $params = array_merge($params, $optParams);
  499. $data = $this->__call('get', array($params));
  500. if ($this->useObjects()) {
  501. return new Google_Bookshelf($data);
  502. } else {
  503. return $data;
  504. }
  505. }
  506. /**
  507. * Clears all volumes from a bookshelf. (bookshelves.clearVolumes)
  508. *
  509. * @param string $shelf ID of bookshelf from which to remove a volume.
  510. * @param array $optParams Optional parameters.
  511. *
  512. * @opt_param string source String to identify the originator of this request.
  513. */
  514. public function clearVolumes($shelf, $optParams = array()) {
  515. $params = array('shelf' => $shelf);
  516. $params = array_merge($params, $optParams);
  517. $data = $this->__call('clearVolumes', array($params));
  518. return $data;
  519. }
  520. /**
  521. * Retrieves a list of bookshelves belonging to the authenticated user. (bookshelves.list)
  522. *
  523. * @param array $optParams Optional parameters.
  524. *
  525. * @opt_param string source String to identify the originator of this request.
  526. * @return Google_Bookshelves
  527. */
  528. public function listMylibraryBookshelves($optParams = array()) {
  529. $params = array();
  530. $params = array_merge($params, $optParams);
  531. $data = $this->__call('list', array($params));
  532. if ($this->useObjects()) {
  533. return new Google_Bookshelves($data);
  534. } else {
  535. return $data;
  536. }
  537. }
  538. /**
  539. * Adds a volume to a bookshelf. (bookshelves.addVolume)
  540. *
  541. * @param string $shelf ID of bookshelf to which to add a volume.
  542. * @param string $volumeId ID of volume to add.
  543. * @param array $optParams Optional parameters.
  544. *
  545. * @opt_param string source String to identify the originator of this request.
  546. */
  547. public function addVolume($shelf, $volumeId, $optParams = array()) {
  548. $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
  549. $params = array_merge($params, $optParams);
  550. $data = $this->__call('addVolume', array($params));
  551. return $data;
  552. }
  553. /**
  554. * Moves a volume within a bookshelf. (bookshelves.moveVolume)
  555. *
  556. * @param string $shelf ID of bookshelf with the volume.
  557. * @param string $volumeId ID of volume to move.
  558. * @param int $volumePosition Position on shelf to move the item (0 puts the item before the current first item, 1 puts it between the first and the second and so on.)
  559. * @param array $optParams Optional parameters.
  560. *
  561. * @opt_param string source String to identify the originator of this request.
  562. */
  563. public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = array()) {
  564. $params = array('shelf' => $shelf, 'volumeId' => $volumeId, 'volumePosition' => $volumePosition);
  565. $params = array_merge($params, $optParams);
  566. $data = $this->__call('moveVolume', array($params));
  567. return $data;
  568. }
  569. }
  570. /**
  571. * The "volumes" collection of methods.
  572. * Typical usage is:
  573. * <code>
  574. * $booksService = new Google_BooksService(...);
  575. * $volumes = $booksService->volumes;
  576. * </code>
  577. */
  578. class Google_MylibraryBookshelvesVolumesServiceResource extends Google_ServiceResource {
  579. /**
  580. * Gets volume information for volumes on a bookshelf. (volumes.list)
  581. *
  582. * @param string $shelf The bookshelf ID or name retrieve volumes for.
  583. * @param array $optParams Optional parameters.
  584. *
  585. * @opt_param string projection Restrict information returned to a set of selected fields.
  586. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  587. * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
  588. * @opt_param string maxResults Maximum number of results to return
  589. * @opt_param string q Full-text search query string in this bookshelf.
  590. * @opt_param string source String to identify the originator of this request.
  591. * @opt_param string startIndex Index of the first element to return (starts at 0)
  592. * @return Google_Volumes
  593. */
  594. public function listMylibraryBookshelvesVolumes($shelf, $optParams = array()) {
  595. $params = array('shelf' => $shelf);
  596. $params = array_merge($params, $optParams);
  597. $data = $this->__call('list', array($params));
  598. if ($this->useObjects()) {
  599. return new Google_Volumes($data);
  600. } else {
  601. return $data;
  602. }
  603. }
  604. }
  605. /**
  606. * The "readingpositions" collection of methods.
  607. * Typical usage is:
  608. * <code>
  609. * $booksService = new Google_BooksService(...);
  610. * $readingpositions = $booksService->readingpositions;
  611. * </code>
  612. */
  613. class Google_MylibraryReadingpositionsServiceResource extends Google_ServiceResource {
  614. /**
  615. * Sets my reading position information for a volume. (readingpositions.setPosition)
  616. *
  617. * @param string $volumeId ID of volume for which to update the reading position.
  618. * @param string $timestamp RFC 3339 UTC format timestamp associated with this reading position.
  619. * @param string $position Position string for the new volume reading position.
  620. * @param array $optParams Optional parameters.
  621. *
  622. * @opt_param string source String to identify the originator of this request.
  623. * @opt_param string contentVersion Volume content version for which this reading position applies.
  624. * @opt_param string action Action that caused this reading position to be set.
  625. */
  626. public function setPosition($volumeId, $timestamp, $position, $optParams = array()) {
  627. $params = array('volumeId' => $volumeId, 'timestamp' => $timestamp, 'position' => $position);
  628. $params = array_merge($params, $optParams);
  629. $data = $this->__call('setPosition', array($params));
  630. return $data;
  631. }
  632. /**
  633. * Retrieves my reading position information for a volume. (readingpositions.get)
  634. *
  635. * @param string $volumeId ID of volume for which to retrieve a reading position.
  636. * @param array $optParams Optional parameters.
  637. *
  638. * @opt_param string source String to identify the originator of this request.
  639. * @opt_param string contentVersion Volume content version for which this reading position is requested.
  640. * @return Google_ReadingPosition
  641. */
  642. public function get($volumeId, $optParams = array()) {
  643. $params = array('volumeId' => $volumeId);
  644. $params = array_merge($params, $optParams);
  645. $data = $this->__call('get', array($params));
  646. if ($this->useObjects()) {
  647. return new Google_ReadingPosition($data);
  648. } else {
  649. return $data;
  650. }
  651. }
  652. }
  653. /**
  654. * The "annotations" collection of methods.
  655. * Typical usage is:
  656. * <code>
  657. * $booksService = new Google_BooksService(...);
  658. * $annotations = $booksService->annotations;
  659. * </code>
  660. */
  661. class Google_MylibraryAnnotationsServiceResource extends Google_ServiceResource {
  662. /**
  663. * Inserts a new annotation. (annotations.insert)
  664. *
  665. * @param Google_Annotation $postBody
  666. * @param array $optParams Optional parameters.
  667. *
  668. * @opt_param string source String to identify the originator of this request.
  669. * @return Google_Annotation
  670. */
  671. public function insert(Google_Annotation $postBody, $optParams = array()) {
  672. $params = array('postBody' => $postBody);
  673. $params = array_merge($params, $optParams);
  674. $data = $this->__call('insert', array($params));
  675. if ($this->useObjects()) {
  676. return new Google_Annotation($data);
  677. } else {
  678. return $data;
  679. }
  680. }
  681. /**
  682. * Gets an annotation by its ID. (annotations.get)
  683. *
  684. * @param string $annotationId The ID for the annotation to retrieve.
  685. * @param array $optParams Optional parameters.
  686. *
  687. * @opt_param string source String to identify the originator of this request.
  688. * @return Google_Annotation
  689. */
  690. public function get($annotationId, $optParams = array()) {
  691. $params = array('annotationId' => $annotationId);
  692. $params = array_merge($params, $optParams);
  693. $data = $this->__call('get', array($params));
  694. if ($this->useObjects()) {
  695. return new Google_Annotation($data);
  696. } else {
  697. return $data;
  698. }
  699. }
  700. /**
  701. * Retrieves a list of annotations, possibly filtered. (annotations.list)
  702. *
  703. * @param array $optParams Optional parameters.
  704. *
  705. * @opt_param bool showDeleted Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
  706. * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
  707. * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
  708. * @opt_param string volumeId The volume to restrict annotations to.
  709. * @opt_param string maxResults Maximum number of results to return
  710. * @opt_param string pageToken The value of the nextToken from the previous page.
  711. * @opt_param string pageIds The page ID(s) for the volume that is being queried.
  712. * @opt_param string contentVersion The content version for the requested volume.
  713. * @opt_param string source String to identify the originator of this request.
  714. * @opt_param string layerId The layer ID to limit annotation by.
  715. * @return Google_Annotations
  716. */
  717. public function listMylibraryAnnotations($optParams = array()) {
  718. $params = array();
  719. $params = array_merge($params, $optParams);
  720. $data = $this->__call('list', array($params));
  721. if ($this->useObjects()) {
  722. return new Google_Annotations($data);
  723. } else {
  724. return $data;
  725. }
  726. }
  727. /**
  728. * Updates an existing annotation. (annotations.update)
  729. *
  730. * @param string $annotationId The ID for the annotation to update.
  731. * @param Google_Annotation $postBody
  732. * @param array $optParams Optional parameters.
  733. *
  734. * @opt_param string source String to identify the originator of this request.
  735. * @return Google_Annotation
  736. */
  737. public function update($annotationId, Google_Annotation $postBody, $optParams = array()) {
  738. $params = array('annotationId' => $annotationId, 'postBody' => $postBody);
  739. $params = array_merge($params, $optParams);
  740. $data = $this->__call('update', array($params));
  741. if ($this->useObjects()) {
  742. return new Google_Annotation($data);
  743. } else {
  744. return $data;
  745. }
  746. }
  747. /**
  748. * Deletes an annotation. (annotations.delete)
  749. *
  750. * @param string $annotationId The ID for the annotation to delete.
  751. * @param array $optParams Optional parameters.
  752. *
  753. * @opt_param string source String to identify the originator of this request.
  754. */
  755. public function delete($annotationId, $optParams = array()) {
  756. $params = array('annotationId' => $annotationId);
  757. $params = array_merge($params, $optParams);
  758. $data = $this->__call('delete', array($params));
  759. return $data;
  760. }
  761. }
  762. /**
  763. * Service definition for Google_Books (v1).
  764. *
  765. * <p>
  766. * Lets you search for books and manage your Google Books library.
  767. * </p>
  768. *
  769. * <p>
  770. * For more information about this service, see the
  771. * <a href="https://code.google.com/apis/books/docs/v1/getting_started.html" target="_blank">API Documentation</a>
  772. * </p>
  773. *
  774. * @author Google, Inc.
  775. */
  776. class Google_BooksService extends Google_Service {
  777. public $layers;
  778. public $layers_annotationData;
  779. public $layers_volumeAnnotations;
  780. public $bookshelves;
  781. public $bookshelves_volumes;
  782. public $myconfig;
  783. public $volumes;
  784. public $volumes_associated;
  785. public $mylibrary_bookshelves;
  786. public $mylibrary_bookshelves_volumes;
  787. public $mylibrary_readingpositions;
  788. public $mylibrary_annotations;
  789. /**
  790. * Constructs the internal representation of the Books service.
  791. *
  792. * @param Google_Client $client
  793. */
  794. public function __construct(Google_Client $client) {
  795. $this->servicePath = 'books/v1/';
  796. $this->version = 'v1';
  797. $this->serviceName = 'books';
  798. $client->addService($this->serviceName, $this->version);
  799. $this->layers = new Google_LayersServiceResource($this, $this->serviceName, 'layers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "200", "format": "uint32"}, "source": {"type": "string", "location": "query"}}, "id": "books.layers.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layersummary", "response": {"$ref": "Layersummaries"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "summaryId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layersummary/{summaryId}", "response": {"$ref": "Layersummary"}}}}', true));
  800. $this->layers_annotationData = new Google_LayersAnnotationDataServiceResource($this, $this->serviceName, 'annotationData', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"scale": {"minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "updatedMax": {"type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "h": {"type": "integer", "location": "query", "format": "int32"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "200", "format": "uint32"}, "annotationDataId": {"repeated": true, "type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "w": {"type": "integer", "location": "query", "format": "int32"}, "layerId": {"required": true, "type": "string", "location": "path"}, "updatedMin": {"type": "string", "location": "query"}}, "id": "books.layers.annotationData.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/data", "response": {"$ref": "Annotationsdata"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"scale": {"minimum": "0", "type": "integer", "location": "query", "format": "int32"}, "locale": {"type": "string", "location": "query"}, "h": {"type": "integer", "location": "query", "format": "int32"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "annotationDataId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "w": {"type": "integer", "location": "query", "format": "int32"}, "layerId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.annotationData.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}", "response": {"$ref": "Annotationdata"}}}}', true));
  801. $this->layers_volumeAnnotations = new Google_LayersVolumeAnnotationsServiceResource($this, $this->serviceName, 'volumeAnnotations', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"showDeleted": {"type": "boolean", "location": "query"}, "endPosition": {"type": "string", "location": "query"}, "endOffset": {"type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "200", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startOffset": {"type": "string", "location": "query"}, "layerId": {"required": true, "type": "string", "location": "path"}, "startPosition": {"type": "string", "location": "query"}}, "id": "books.layers.volumeAnnotations.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}", "response": {"$ref": "Volumeannotations"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "layerId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.volumeAnnotations.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}", "response": {"$ref": "Volumeannotation"}}}}', true));
  802. $this->bookshelves = new Google_BookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "books.bookshelves.list", "httpMethod": "GET", "path": "users/{userId}/bookshelves", "response": {"$ref": "Bookshelves"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.bookshelves.get", "httpMethod": "GET", "path": "users/{userId}/bookshelves/{shelf}", "response": {"$ref": "Bookshelf"}}}}', true));
  803. $this->bookshelves_volumes = new Google_BookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "showPreorders": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "books.bookshelves.volumes.list", "httpMethod": "GET", "path": "users/{userId}/bookshelves/{shelf}/volumes", "response": {"$ref": "Volumes"}}}}', true));
  804. $this->myconfig = new Google_MyconfigServiceResource($this, $this->serviceName, 'myconfig', json_decode('{"methods": {"releaseDownloadAccess": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "volumeIds": {"repeated": true, "required": true, "type": "string", "location": "query"}}, "id": "books.myconfig.releaseDownloadAccess", "httpMethod": "POST", "path": "myconfig/releaseDownloadAccess", "response": {"$ref": "DownloadAccesses"}}, "requestAccess": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "nonce": {"required": true, "type": "string", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"required": true, "type": "string", "location": "query"}}, "id": "books.myconfig.requestAccess", "httpMethod": "POST", "path": "myconfig/requestAccess", "response": {"$ref": "RequestAccess"}}, "syncVolumeLicenses": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"nonce": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "source": {"required": true, "type": "string", "location": "query"}, "volumeIds": {"repeated": true, "type": "string", "location": "query"}}, "id": "books.myconfig.syncVolumeLicenses", "httpMethod": "POST", "path": "myconfig/syncVolumeLicenses", "response": {"$ref": "Volumes"}}}}', true));
  805. $this->volumes = new Google_VolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"orderBy": {"enum": ["newest", "relevance"], "type": "string", "location": "query"}, "q": {"required": true, "type": "string", "location": "query"}, "projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "libraryRestrict": {"enum": ["my-library", "no-restrict"], "type": "string", "location": "query"}, "langRestrict": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "printType": {"enum": ["all", "books", "magazines"], "type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "40", "format": "uint32"}, "filter": {"enum": ["ebooks", "free-ebooks", "full", "paid-ebooks", "partial"], "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "download": {"enum": ["epub"], "type": "string", "location": "query"}, "partner": {"type": "string", "location": "query"}}, "id": "books.volumes.list", "httpMethod": "GET", "path": "volumes", "response": {"$ref": "Volumes"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"partner": {"type": "string", "location": "query"}, "country": {"type": "string", "location": "query"}, "projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.volumes.get", "httpMethod": "GET", "path": "volumes/{volumeId}", "response": {"$ref": "Volume"}}}}', true));
  806. $this->volumes_associated = new Google_VolumesAssociatedServiceResource($this, $this->serviceName, 'associated', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "40", "format": "uint32"}, "filter": {"enum": ["ebooks", "free-ebooks", "full", "paid-ebooks", "partial"], "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "association": {"enum": ["complementary"], "type": "string", "location": "query"}}, "id": "books.volumes.associated.list", "httpMethod": "GET", "path": "volumes/{volumeId}/associated", "response": {"$ref": "Volumes"}}}}', true));
  807. $this->mylibrary_bookshelves = new Google_MylibraryBookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"removeVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/removeVolume", "id": "books.mylibrary.bookshelves.removeVolume", "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.mylibrary.bookshelves.get", "httpMethod": "GET", "path": "mylibrary/bookshelves/{shelf}", "response": {"$ref": "Bookshelf"}}, "clearVolumes": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/clearVolumes", "id": "books.mylibrary.bookshelves.clearVolumes", "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST"}, "list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}}, "response": {"$ref": "Bookshelves"}, "httpMethod": "GET", "path": "mylibrary/bookshelves", "id": "books.mylibrary.bookshelves.list"}, "addVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/addVolume", "id": "books.mylibrary.bookshelves.addVolume", "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST"}, "moveVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/bookshelves/{shelf}/moveVolume", "id": "books.mylibrary.bookshelves.moveVolume", "parameters": {"source": {"type": "string", "location": "query"}, "volumePosition": {"required": true, "type": "integer", "location": "query", "format": "int32"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "shelf": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "POST"}}}', true));
  808. $this->mylibrary_bookshelves_volumes = new Google_MylibraryBookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "country": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "q": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}, "shelf": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.bookshelves.volumes.list", "httpMethod": "GET", "path": "mylibrary/bookshelves/{shelf}/volumes", "response": {"$ref": "Volumes"}}}}', true));
  809. $this->mylibrary_readingpositions = new Google_MylibraryReadingpositionsServiceResource($this, $this->serviceName, 'readingpositions', json_decode('{"methods": {"setPosition": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/readingpositions/{volumeId}/setPosition", "id": "books.mylibrary.readingpositions.setPosition", "parameters": {"timestamp": {"required": true, "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "action": {"enum": ["bookmark", "chapter", "next-page", "prev-page", "scroll", "search"], "type": "string", "location": "query"}, "position": {"required": true, "type": "string", "location": "query"}}, "httpMethod": "POST"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.readingpositions.get", "httpMethod": "GET", "path": "mylibrary/readingpositions/{volumeId}", "response": {"$ref": "ReadingPosition"}}}}', true));
  810. $this->mylibrary_annotations = new Google_MylibraryAnnotationsServiceResource($this, $this->serviceName, 'annotations', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}}, "request": {"$ref": "Annotation"}, "response": {"$ref": "Annotation"}, "httpMethod": "POST", "path": "mylibrary/annotations", "id": "books.mylibrary.annotations.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.annotations.get", "httpMethod": "GET", "path": "mylibrary/annotations/{annotationId}", "response": {"$ref": "Annotation"}}, "list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"showDeleted": {"type": "boolean", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "location": "query"}, "maxResults": {"location": "query", "minimum": "0", "type": "integer", "maximum": "40", "format": "uint32"}, "pageToken": {"type": "string", "location": "query"}, "pageIds": {"repeated": true, "type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "layerId": {"type": "string", "location": "query"}}, "response": {"$ref": "Annotations"}, "httpMethod": "GET", "path": "mylibrary/annotations", "id": "books.mylibrary.annotations.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Annotation"}, "response": {"$ref": "Annotation"}, "httpMethod": "PUT", "path": "mylibrary/annotations/{annotationId}", "id": "books.mylibrary.annotations.update"}, "delete": {"scopes": ["https://www.googleapis.com/auth/books"], "path": "mylibrary/annotations/{annotationId}", "id": "books.mylibrary.annotations.delete", "parameters": {"source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  811. }
  812. }
  813. class Google_Annotation extends Google_Model {
  814. public $kind;
  815. public $updated;
  816. public $created;
  817. public $deleted;
  818. public $beforeSelectedText;
  819. protected $__currentVersionRangesType = 'Google_AnnotationCurrentVersionRanges';
  820. protected $__currentVersionRangesDataType = '';
  821. public $currentVersionRanges;
  822. public $afterSelectedText;
  823. protected $__clientVersionRangesType = 'Google_AnnotationClientVersionRanges';
  824. protected $__clientVersionRangesDataType = '';
  825. public $clientVersionRanges;
  826. public $volumeId;
  827. public $pageIds;
  828. public $layerId;
  829. public $selectedText;
  830. public $highlightStyle;
  831. public $data;
  832. public $id;
  833. public $selfLink;
  834. public function setKind($kind) {
  835. $this->kind = $kind;
  836. }
  837. public function getKind() {
  838. return $this->kind;
  839. }
  840. public function setUpdated($updated) {
  841. $this->updated = $updated;
  842. }
  843. public function getUpdated() {
  844. return $this->updated;
  845. }
  846. public function setCreated($created) {
  847. $this->created = $created;
  848. }
  849. public function getCreated() {
  850. return $this->created;
  851. }
  852. public function setDeleted($deleted) {
  853. $this->deleted = $deleted;
  854. }
  855. public function getDeleted() {
  856. return $this->deleted;
  857. }
  858. public function setBeforeSelectedText($beforeSelectedText) {
  859. $this->beforeSelectedText = $beforeSelectedText;
  860. }
  861. public function getBeforeSelectedText() {
  862. return $this->beforeSelectedText;
  863. }
  864. public function setCurrentVersionRanges(Google_AnnotationCurrentVersionRanges $currentVersionRanges) {
  865. $this->currentVersionRanges = $currentVersionRanges;
  866. }
  867. public function getCurrentVersionRanges() {
  868. return $this->currentVersionRanges;
  869. }
  870. public function setAfterSelectedText($afterSelectedText) {
  871. $this->afterSelectedText = $afterSelectedText;
  872. }
  873. public function getAfterSelectedText() {
  874. return $this->afterSelectedText;
  875. }
  876. public function setClientVersionRanges(Google_AnnotationClientVersionRanges $clientVersionRanges) {
  877. $this->clientVersionRanges = $clientVersionRanges;
  878. }
  879. public function getClientVersionRanges() {
  880. return $this->clientVersionRanges;
  881. }
  882. public function setVolumeId($volumeId) {
  883. $this->volumeId = $volumeId;
  884. }
  885. public function getVolumeId() {
  886. return $this->volumeId;
  887. }
  888. public function setPageIds(/* array(Google_string) */ $pageIds) {
  889. $this->assertIsArray($pageIds, 'Google_string', __METHOD__);
  890. $this->pageIds = $pageIds;
  891. }
  892. public function getPageIds() {
  893. return $this->pageIds;
  894. }
  895. public function setLayerId($layerId) {
  896. $this->layerId = $layerId;
  897. }
  898. public function getLayerId() {
  899. return $this->layerId;
  900. }
  901. public function setSelectedText($selectedText) {
  902. $this->selectedText = $selectedText;
  903. }
  904. public function getSelectedText() {
  905. return $this->selectedText;
  906. }
  907. public function setHighlightStyle($highlightStyle) {
  908. $this->highlightStyle = $highlightStyle;
  909. }
  910. public function getHighlightStyle() {
  911. return $this->highlightStyle;
  912. }
  913. public function setData($data) {
  914. $this->data = $data;
  915. }
  916. public function getData() {
  917. return $this->data;
  918. }
  919. public function setId($id) {
  920. $this->id = $id;
  921. }
  922. public function getId() {
  923. return $this->id;
  924. }
  925. public function setSelfLink($selfLink) {
  926. $this->selfLink = $selfLink;
  927. }
  928. public function getSelfLink() {
  929. return $this->selfLink;
  930. }
  931. }
  932. class Google_AnnotationClientVersionRanges extends Google_Model {
  933. public $contentVersion;
  934. protected $__gbTextRangeType = 'Google_BooksAnnotationsRange';
  935. protected $__gbTextRangeDataType = '';
  936. public $gbTextRange;
  937. protected $__cfiRangeType = 'Google_BooksAnnotationsRange';
  938. protected $__cfiRangeDataType = '';
  939. public $cfiRange;
  940. protected $__gbImageRangeType = 'Google_BooksAnnotationsRange';
  941. protected $__gbImageRangeDataType = '';
  942. public $gbImageRange;
  943. public function setContentVersion($contentVersion) {
  944. $this->contentVersion = $contentVersion;
  945. }
  946. public function getContentVersion() {
  947. return $this->contentVersion;
  948. }
  949. public function setGbTextRange(Google_BooksAnnotationsRange $gbTextRange) {
  950. $this->gbTextRange = $gbTextRange;
  951. }
  952. public function getGbTextRange() {
  953. return $this->gbTextRange;
  954. }
  955. public function setCfiRange(Google_BooksAnnotationsRange $cfiRange) {
  956. $this->cfiRange = $cfiRange;
  957. }
  958. public function getCfiRange() {
  959. return $this->cfiRange;
  960. }
  961. public function setGbImageRange(Google_BooksAnnotationsRange $gbImageRange) {
  962. $this->gbImageRange = $gbImageRange;
  963. }
  964. public function getGbImageRange() {
  965. return $this->gbImageRange;
  966. }
  967. }
  968. class Google_AnnotationCurrentVersionRanges extends Google_Model {
  969. public $contentVersion;
  970. protected $__gbTextRangeType = 'Google_BooksAnnotationsRange';
  971. protected $__gbTextRangeDataType = '';
  972. public $gbTextRange;
  973. protected $__cfiRangeType = 'Google_BooksAnnotationsRange';
  974. protected $__cfiRangeDataType = '';
  975. public $cfiRange;
  976. protected $__gbImageRangeType = 'Google_BooksAnnotationsRange';
  977. protected $__gbImageRangeDataType = '';
  978. public $gbImageRange;
  979. public function setContentVersion($contentVersion) {
  980. $this->contentVersion = $contentVersion;
  981. }
  982. public function getContentVersion() {
  983. return $this->contentVersion;
  984. }
  985. public function setGbTextRange(Google_BooksAnnotationsRange $gbTextRange) {
  986. $this->gbTextRange = $gbTextRange;
  987. }
  988. public function getGbTextRange() {
  989. return $this->gbTextRange;
  990. }
  991. public function setCfiRange(Google_BooksAnnotationsRange $cfiRange) {
  992. $this->cfiRange = $cfiRange;
  993. }
  994. public function getCfiRange() {
  995. return $this->cfiRange;
  996. }
  997. public function setGbImageRange(Google_BooksAnnotationsRange $gbImageRange) {
  998. $this->gbImageRange = $gbImageRange;
  999. }
  1000. public function getGbImageRange() {
  1001. return $this->gbImageRange;
  1002. }
  1003. }
  1004. class Google_Annotationdata extends Google_Model {
  1005. public $annotationType;
  1006. public $kind;
  1007. public $updated;
  1008. public $volumeId;
  1009. public $encoded_data;
  1010. public $layerId;
  1011. protected $__dataType = 'Google_BooksLayerGeoData';
  1012. protected $__dataDataType = '';
  1013. public $data;
  1014. public $id;
  1015. public $selfLink;
  1016. public function setAnnotationType($annotationType) {
  1017. $this->annotationType = $annotationType;
  1018. }
  1019. public function getAnnotationType() {
  1020. return $this->annotationType;
  1021. }
  1022. public function setKind($kind) {
  1023. $this->kind = $kind;
  1024. }
  1025. public function getKind() {
  1026. return $this->kind;
  1027. }
  1028. public function setUpdated($updated) {
  1029. $this->updated = $updated;
  1030. }
  1031. public function getUpdated() {
  1032. return $this->updated;
  1033. }
  1034. public function setVolumeId($volumeId) {
  1035. $this->volumeId = $volumeId;
  1036. }
  1037. public function getVolumeId() {
  1038. return $this->volumeId;
  1039. }
  1040. public function setEncoded_data($encoded_data) {
  1041. $this->encoded_data = $encoded_data;
  1042. }
  1043. public function getEncoded_data() {
  1044. return $this->encoded_data;
  1045. }
  1046. public function setLayerId($layerId) {
  1047. $this->layerId = $layerId;
  1048. }
  1049. public function getLayerId() {
  1050. return $this->layerId;
  1051. }
  1052. public function setData(Google_BooksLayerGeoData $data) {
  1053. $this->data = $data;
  1054. }
  1055. public function getData() {
  1056. return $this->data;
  1057. }
  1058. public function setId($id) {
  1059. $this->id = $id;
  1060. }
  1061. public function getId() {
  1062. return $this->id;
  1063. }
  1064. public function setSelfLink($selfLink) {
  1065. $this->selfLink = $selfLink;
  1066. }
  1067. public function getSelfLink() {
  1068. return $this->selfLink;
  1069. }
  1070. }
  1071. class Google_Annotations extends Google_Model {
  1072. public $nextPageToken;
  1073. protected $__itemsType = 'Google_Annotation';
  1074. protected $__itemsDataType = 'array';
  1075. public $items;
  1076. public $kind;
  1077. public $totalItems;
  1078. public function setNextPageToken($nextPageToken) {
  1079. $this->nextPageToken = $nextPageToken;
  1080. }
  1081. public function getNextPageToken() {
  1082. return $this->nextPageToken;
  1083. }
  1084. public function setItems(/* array(Google_Annotation) */ $items) {
  1085. $this->assertIsArray($items, 'Google_Annotation', __METHOD__);
  1086. $this->items = $items;
  1087. }
  1088. public function getItems() {
  1089. return $this->items;
  1090. }
  1091. public function setKind($kind) {
  1092. $this->kind = $kind;
  1093. }
  1094. public function getKind() {
  1095. return $this->kind;
  1096. }
  1097. public function setTotalItems($totalItems) {
  1098. $this->totalItems = $totalItems;
  1099. }
  1100. public function getTotalItems() {
  1101. return $this->totalItems;
  1102. }
  1103. }
  1104. class Google_Annotationsdata extends Google_Model {
  1105. public $nextPageToken;
  1106. protected $__itemsType = 'Google_Annotationdata';
  1107. protected $__itemsDataType = 'array';
  1108. public $items;
  1109. public $kind;
  1110. public $totalItems;
  1111. public function setNextPageToken($nextPageToken) {
  1112. $this->nextPageToken = $nextPageToken;
  1113. }
  1114. public function getNextPageToken() {
  1115. return $this->nextPageToken;
  1116. }
  1117. public function setItems(/* array(Google_Annotationdata) */ $items) {
  1118. $this->assertIsArray($items, 'Google_Annotationdata', __METHOD__);
  1119. $this->items = $items;
  1120. }
  1121. public function getItems() {
  1122. return $this->items;
  1123. }
  1124. public function setKind($kind) {
  1125. $this->kind = $kind;
  1126. }
  1127. public function getKind() {
  1128. return $this->kind;
  1129. }
  1130. public function setTotalItems($totalItems) {
  1131. $this->totalItems = $totalItems;
  1132. }
  1133. public function getTotalItems() {
  1134. return $this->totalItems;
  1135. }
  1136. }
  1137. class Google_BooksAnnotationsRange extends Google_Model {
  1138. public $startPosition;
  1139. public $endPosition;
  1140. public $startOffset;
  1141. public $endOffset;
  1142. public function setStartPosition($startPosition) {
  1143. $this->startPosition = $startPosition;
  1144. }
  1145. public function getStartPosition() {
  1146. return $this->startPosition;
  1147. }
  1148. public function setEndPosition($endPosition) {
  1149. $this->endPosition = $endPosition;
  1150. }
  1151. public function getEndPosition() {
  1152. return $this->endPosition;
  1153. }
  1154. public function setStartOffset($startOffset) {
  1155. $this->startOffset = $startOffset;
  1156. }
  1157. public function getStartOffset() {
  1158. return $this->startOffset;
  1159. }
  1160. public function setEndOffset($endOffset) {
  1161. $this->endOffset = $endOffset;
  1162. }
  1163. public function getEndOffset() {
  1164. return $this->endOffset;
  1165. }
  1166. }
  1167. class Google_BooksLayerGeoData extends Google_Model {
  1168. protected $__geoType = 'Google_BooksLayerGeoDataGeo';
  1169. protected $__geoDataType = '';
  1170. public $geo;
  1171. protected $__commonType = 'Google_BooksLayerGeoDataCommon';
  1172. protected $__commonDataType = '';
  1173. public $common;
  1174. public function setGeo(Google_BooksLayerGeoDataGeo $geo) {
  1175. $this->geo = $geo;
  1176. }
  1177. public function getGeo() {
  1178. return $this->geo;
  1179. }
  1180. public function setCommon(Google_BooksLayerGeoDataCommon $common) {
  1181. $this->common = $common;
  1182. }
  1183. public function getCommon() {
  1184. return $this->common;
  1185. }
  1186. }
  1187. class Google_BooksLayerGeoDataCommon extends Google_Model {
  1188. public $lang;
  1189. public $previewImageUrl;
  1190. public $snippet;
  1191. public $snippetUrl;
  1192. public function setLang($lang) {
  1193. $this->lang = $lang;
  1194. }
  1195. public function getLang() {
  1196. return $this->lang;
  1197. }
  1198. public function setPreviewImageUrl($previewImageUrl) {
  1199. $this->previewImageUrl = $previewImageUrl;
  1200. }
  1201. public function getPreviewImageUrl() {
  1202. return $this->previewImageUrl;
  1203. }
  1204. public function setSnippet($snippet) {
  1205. $this->snippet = $snippet;
  1206. }
  1207. public function getSnippet() {
  1208. return $this->snippet;
  1209. }
  1210. public function setSnippetUrl($snippetUrl) {
  1211. $this->snippetUrl = $snippetUrl;
  1212. }
  1213. public function getSnippetUrl() {
  1214. return $this->snippetUrl;
  1215. }
  1216. }
  1217. class Google_BooksLayerGeoDataGeo extends Google_Model {
  1218. public $countryCode;
  1219. public $title;
  1220. public $zoom;
  1221. public $longitude;
  1222. public $mapType;
  1223. public $latitude;
  1224. protected $__boundaryType = 'Google_BooksLayerGeoDataGeoBoundary';
  1225. protected $__boundaryDataType = 'array';
  1226. public $boundary;
  1227. protected $__viewportType = 'Google_BooksLayerGeoDataGeoViewport';
  1228. protected $__viewportDataType = '';
  1229. public $viewport;
  1230. public $cachePolicy;
  1231. public function setCountryCode($countryCode) {
  1232. $this->countryCode = $countryCode;
  1233. }
  1234. public function getCountryCode() {
  1235. return $this->countryCode;
  1236. }
  1237. public function setTitle($title) {
  1238. $this->title = $title;
  1239. }
  1240. public function getTitle() {
  1241. return $this->title;
  1242. }
  1243. public function setZoom($zoom) {
  1244. $this->zoom = $zoom;
  1245. }
  1246. public function getZoom() {
  1247. return $this->zoom;
  1248. }
  1249. public function setLongitude($longitude) {
  1250. $this->longitude = $longitude;
  1251. }
  1252. public function getLongitude() {
  1253. return $this->longitude;
  1254. }
  1255. public function setMapType($mapType) {
  1256. $this->mapType = $mapType;
  1257. }
  1258. public function getMapType() {
  1259. return $this->mapType;
  1260. }
  1261. public function setLatitude($latitude) {
  1262. $this->latitude = $latitude;
  1263. }
  1264. public function getLatitude() {
  1265. return $this->latitude;
  1266. }
  1267. public function setBoundary(/* array(Google_BooksLayerGeoDataGeoBoundary) */ $boundary) {
  1268. $this->assertIsArray($boundary, 'Google_BooksLayerGeoDataGeoBoundary', __METHOD__);
  1269. $this->boundary = $boundary;
  1270. }
  1271. public function getBoundary() {
  1272. return $this->boundary;
  1273. }
  1274. public function setViewport(Google_BooksLayerGeoDataGeoViewport $viewport) {
  1275. $this->viewport = $viewport;
  1276. }
  1277. public function getViewport() {
  1278. return $this->viewport;
  1279. }
  1280. public function setCachePolicy($cachePolicy) {
  1281. $this->cachePolicy = $cachePolicy;
  1282. }
  1283. public function getCachePolicy() {
  1284. return $this->cachePolicy;
  1285. }
  1286. }
  1287. class Google_BooksLayerGeoDataGeoBoundary extends Google_Model {
  1288. public $latitude;
  1289. public $longitude;
  1290. public function setLatitude($latitude) {
  1291. $this->latitude = $latitude;
  1292. }
  1293. public function getLatitude() {
  1294. return $this->latitude;
  1295. }
  1296. public function setLongitude($longitude) {
  1297. $this->longitude = $longitude;
  1298. }
  1299. public function getLongitude() {
  1300. return $this->longitude;
  1301. }
  1302. }
  1303. class Google_BooksLayerGeoDataGeoViewport extends Google_Model {
  1304. protected $__loType = 'Google_BooksLayerGeoDataGeoViewportLo';
  1305. protected $__loDataType = '';
  1306. public $lo;
  1307. protected $__hiType = 'Google_BooksLayerGeoDataGeoViewportHi';
  1308. protected $__hiDataType = '';
  1309. public $hi;
  1310. public function setLo(Google_BooksLayerGeoDataGeoViewportLo $lo) {
  1311. $this->lo = $lo;
  1312. }
  1313. public function getLo() {
  1314. return $this->lo;
  1315. }
  1316. public function setHi(Google_BooksLayerGeoDataGeoViewportHi $hi) {
  1317. $this->hi = $hi;
  1318. }
  1319. public function getHi() {
  1320. return $this->hi;
  1321. }
  1322. }
  1323. class Google_BooksLayerGeoDataGeoViewportHi extends Google_Model {
  1324. public $latitude;
  1325. public $longitude;
  1326. public function setLatitude($latitude) {
  1327. $this->latitude = $latitude;
  1328. }
  1329. public function getLatitude() {
  1330. return $this->latitude;
  1331. }
  1332. public function setLongitude($longitude) {
  1333. $this->longitude = $longitude;
  1334. }
  1335. public function getLongitude() {
  1336. return $this->longitude;
  1337. }
  1338. }
  1339. class Google_BooksLayerGeoDataGeoViewportLo extends Google_Model {
  1340. public $latitude;
  1341. public $longitude;
  1342. public function setLatitude($latitude) {
  1343. $this->latitude = $latitude;
  1344. }
  1345. public function getLatitude() {
  1346. return $this->latitude;
  1347. }
  1348. public function setLongitude($longitude) {
  1349. $this->longitude = $longitude;
  1350. }
  1351. public function getLongitude() {
  1352. return $this->longitude;
  1353. }
  1354. }
  1355. class Google_Bookshelf extends Google_Model {
  1356. public $kind;
  1357. public $description;
  1358. public $created;
  1359. public $volumeCount;
  1360. public $title;
  1361. public $updated;
  1362. public $access;
  1363. public $volumesLastUpdated;
  1364. public $id;
  1365. public $selfLink;
  1366. public function setKind($kind) {
  1367. $this->kind = $kind;
  1368. }
  1369. public function getKind() {
  1370. return $this->kind;
  1371. }
  1372. public function setDescription($description) {
  1373. $this->description = $description;
  1374. }
  1375. public function getDescription() {
  1376. return $this->description;
  1377. }
  1378. public function setCreated($created) {
  1379. $this->created = $created;
  1380. }
  1381. public function getCreated() {
  1382. return $this->created;
  1383. }
  1384. public function setVolumeCount($volumeCount) {
  1385. $this->volumeCount = $volumeCount;
  1386. }
  1387. public function getVolumeCount() {
  1388. return $this->volumeCount;
  1389. }
  1390. public function setTitle($title) {
  1391. $this->title = $title;
  1392. }
  1393. public function getTitle() {
  1394. return $this->title;
  1395. }
  1396. public function setUpdated($updated) {
  1397. $this->updated = $updated;
  1398. }
  1399. public function getUpdated() {
  1400. return $this->updated;
  1401. }
  1402. public function setAccess($access) {
  1403. $this->access = $access;
  1404. }
  1405. public function getAccess() {
  1406. return $this->access;
  1407. }
  1408. public function setVolumesLastUpdated($volumesLastUpdated) {
  1409. $this->volumesLastUpdated = $volumesLastUpdated;
  1410. }
  1411. public function getVolumesLastUpdated() {
  1412. return $this->volumesLastUpdated;
  1413. }
  1414. public function setId($id) {
  1415. $this->id = $id;
  1416. }
  1417. public function getId() {
  1418. return $this->id;
  1419. }
  1420. public function setSelfLink($selfLink) {
  1421. $this->selfLink = $selfLink;
  1422. }
  1423. public function getSelfLink() {
  1424. return $this->selfLink;
  1425. }
  1426. }
  1427. class Google_Bookshelves extends Google_Model {
  1428. protected $__itemsType = 'Google_Bookshelf';
  1429. protected $__itemsDataType = 'array';
  1430. public $items;
  1431. public $kind;
  1432. public function setItems(/* array(Google_Bookshelf) */ $items) {
  1433. $this->assertIsArray($items, 'Google_Bookshelf', __METHOD__);
  1434. $this->items = $items;
  1435. }
  1436. public function getItems() {
  1437. return $this->items;
  1438. }
  1439. public function setKind($kind) {
  1440. $this->kind = $kind;
  1441. }
  1442. public function getKind() {
  1443. return $this->kind;
  1444. }
  1445. }
  1446. class Google_ConcurrentAccessRestriction extends Google_Model {
  1447. public $nonce;
  1448. public $kind;
  1449. public $restricted;
  1450. public $volumeId;
  1451. public $maxConcurrentDevices;
  1452. public $deviceAllowed;
  1453. public $source;
  1454. public $timeWindowSeconds;
  1455. public $signature;
  1456. public $reasonCode;
  1457. public $message;
  1458. public function setNonce($nonce) {
  1459. $this->nonce = $nonce;
  1460. }
  1461. public function getNonce() {
  1462. return $this->nonce;
  1463. }
  1464. public function setKind($kind) {
  1465. $this->kind = $kind;
  1466. }
  1467. public function getKind() {
  1468. return $this->kind;
  1469. }
  1470. public function setRestricted($restricted) {
  1471. $this->restricted = $restricted;
  1472. }
  1473. public function getRestricted() {
  1474. return $this->restricted;
  1475. }
  1476. public function setVolumeId($volumeId) {
  1477. $this->volumeId = $volumeId;
  1478. }
  1479. public function getVolumeId() {
  1480. return $this->volumeId;
  1481. }
  1482. public function setMaxConcurrentDevices($maxConcurrentDevices) {
  1483. $this->maxConcurrentDevices = $maxConcurrentDevices;
  1484. }
  1485. public function getMaxConcurrentDevices() {
  1486. return $this->maxConcurrentDevices;
  1487. }
  1488. public function setDeviceAllowed($deviceAllowed) {
  1489. $this->deviceAllowed = $deviceAllowed;
  1490. }
  1491. public function getDeviceAllowed() {
  1492. return $this->deviceAllowed;
  1493. }
  1494. public function setSource($source) {
  1495. $this->source = $source;
  1496. }
  1497. public function getSource() {
  1498. return $this->source;
  1499. }
  1500. public function setTimeWindowSeconds($timeWindowSeconds) {
  1501. $this->timeWindowSeconds = $timeWindowSeconds;
  1502. }
  1503. public function getTimeWindowSeconds() {
  1504. return $this->timeWindowSeconds;
  1505. }
  1506. public function setSignature($signature) {
  1507. $this->signature = $signature;
  1508. }
  1509. public function getSignature() {
  1510. return $this->signature;
  1511. }
  1512. public function setReasonCode($reasonCode) {
  1513. $this->reasonCode = $reasonCode;
  1514. }
  1515. public function getReasonCode() {
  1516. return $this->reasonCode;
  1517. }
  1518. public function setMessage($message) {
  1519. $this->message = $message;
  1520. }
  1521. public function getMessage() {
  1522. return $this->message;
  1523. }
  1524. }
  1525. class Google_DownloadAccessRestriction extends Google_Model {
  1526. public $nonce;
  1527. public $kind;
  1528. public $justAcquired;
  1529. public $maxDownloadDevices;
  1530. public $downloadsAcquired;
  1531. public $signature;
  1532. public $volumeId;
  1533. public $deviceAllowed;
  1534. public $source;
  1535. public $restricted;
  1536. public $reasonCode;
  1537. public $message;
  1538. public function setNonce($nonce) {
  1539. $this->nonce = $nonce;
  1540. }
  1541. public function getNonce() {
  1542. return $this->nonce;
  1543. }
  1544. public function setKind($kind) {
  1545. $this->kind = $kind;
  1546. }
  1547. public function getKind() {
  1548. return $this->kind;
  1549. }
  1550. public function setJustAcquired($justAcquired) {
  1551. $this->justAcquired = $justAcquired;
  1552. }
  1553. public function getJustAcquired() {
  1554. return $this->justAcquired;
  1555. }
  1556. public function setMaxDownloadDevices($maxDownloadDevices) {
  1557. $this->maxDownloadDevices = $maxDownloadDevices;
  1558. }
  1559. public function getMaxDownloadDevices() {
  1560. return $this->maxDownloadDevices;
  1561. }
  1562. public function setDownloadsAcquired($downloadsAcquired) {
  1563. $this->downloadsAcquired = $downloadsAcquired;
  1564. }
  1565. public function getDownloadsAcquired() {
  1566. return $this->downloadsAcquired;
  1567. }
  1568. public function setSignature($signature) {
  1569. $this->signature = $signature;
  1570. }
  1571. public function getSignature() {
  1572. return $this->signature;
  1573. }
  1574. public function setVolumeId($volumeId) {
  1575. $this->volumeId = $volumeId;
  1576. }
  1577. public function getVolumeId() {
  1578. return $this->volumeId;
  1579. }
  1580. public function setDeviceAllowed($deviceAllowed) {
  1581. $this->deviceAllowed = $deviceAllowed;
  1582. }
  1583. public function getDeviceAllowed() {
  1584. return $this->deviceAllowed;
  1585. }
  1586. public function setSource($source) {
  1587. $this->source = $source;
  1588. }
  1589. public function getSource() {
  1590. return $this->source;
  1591. }
  1592. public function setRestricted($restricted) {
  1593. $this->restricted = $restricted;
  1594. }
  1595. public function getRestricted() {
  1596. return $this->restricted;
  1597. }
  1598. public function setReasonCode($reasonCode) {
  1599. $this->reasonCode = $reasonCode;
  1600. }
  1601. public function getReasonCode() {
  1602. return $this->reasonCode;
  1603. }
  1604. public function setMessage($message) {
  1605. $this->message = $message;
  1606. }
  1607. public function getMessage() {
  1608. return $this->message;
  1609. }
  1610. }
  1611. class Google_DownloadAccesses extends Google_Model {
  1612. protected $__downloadAccessListType = 'Google_DownloadAccessRestriction';
  1613. protected $__downloadAccessListDataType = 'array';
  1614. public $downloadAccessList;
  1615. public $kind;
  1616. public function setDownloadAccessList(/* array(Google_DownloadAccessRestriction) */ $downloadAccessList) {
  1617. $this->assertIsArray($downloadAccessList, 'Google_DownloadAccessRestriction', __METHOD__);
  1618. $this->downloadAccessList = $downloadAccessList;
  1619. }
  1620. public function getDownloadAccessList() {
  1621. return $this->downloadAccessList;
  1622. }
  1623. public function setKind($kind) {
  1624. $this->kind = $kind;
  1625. }
  1626. public function getKind() {
  1627. return $this->kind;
  1628. }
  1629. }
  1630. class Google_Layersummaries extends Google_Model {
  1631. public $totalItems;
  1632. protected $__itemsType = 'Google_Layersummary';
  1633. protected $__itemsDataType = 'array';
  1634. public $items;
  1635. public $kind;
  1636. public function setTotalItems($totalItems) {
  1637. $this->totalItems = $totalItems;
  1638. }
  1639. public function getTotalItems() {
  1640. return $this->totalItems;
  1641. }
  1642. public function setItems(/* array(Google_Layersummary) */ $items) {
  1643. $this->assertIsArray($items, 'Google_Layersummary', __METHOD__);
  1644. $this->items = $items;
  1645. }
  1646. public function getItems() {
  1647. return $this->items;
  1648. }
  1649. public function setKind($kind) {
  1650. $this->kind = $kind;
  1651. }
  1652. public function getKind() {
  1653. return $this->kind;
  1654. }
  1655. }
  1656. class Google_Layersummary extends Google_Model {
  1657. public $kind;
  1658. public $annotationCount;
  1659. public $dataCount;
  1660. public $annotationsLink;
  1661. public $updated;
  1662. public $volumeId;
  1663. public $id;
  1664. public $annotationTypes;
  1665. public $contentVersion;
  1666. public $layerId;
  1667. public $annotationsDataLink;
  1668. public $selfLink;
  1669. public function setKind($kind) {
  1670. $this->kind = $kind;
  1671. }
  1672. public function getKind() {
  1673. return $this->kind;
  1674. }
  1675. public function setAnnotationCount($annotationCount) {
  1676. $this->annotationCount = $annotationCount;
  1677. }
  1678. public function getAnnotationCount() {
  1679. return $this->annotationCount;
  1680. }
  1681. public function setDataCount($dataCount) {
  1682. $this->dataCount = $dataCount;
  1683. }
  1684. public function getDataCount() {
  1685. return $this->dataCount;
  1686. }
  1687. public function setAnnotationsLink($annotationsLink) {
  1688. $this->annotationsLink = $annotationsLink;
  1689. }
  1690. public function getAnnotationsLink() {
  1691. return $this->annotationsLink;
  1692. }
  1693. public function setUpdated($updated) {
  1694. $this->updated = $updated;
  1695. }
  1696. public function getUpdated() {
  1697. return $this->updated;
  1698. }
  1699. public function setVolumeId($volumeId) {
  1700. $this->volumeId = $volumeId;
  1701. }
  1702. public function getVolumeId() {
  1703. return $this->volumeId;
  1704. }
  1705. public function setId($id) {
  1706. $this->id = $id;
  1707. }
  1708. public function getId() {
  1709. return $this->id;
  1710. }
  1711. public function setAnnotationTypes(/* array(Google_string) */ $annotationTypes) {
  1712. $this->assertIsArray($annotationTypes, 'Google_string', __METHOD__);
  1713. $this->annotationTypes = $annotationTypes;
  1714. }
  1715. public function getAnnotationTypes() {
  1716. return $this->annotationTypes;
  1717. }
  1718. public function setContentVersion($contentVersion) {
  1719. $this->contentVersion = $contentVersion;
  1720. }
  1721. public function getContentVersion() {
  1722. return $this->contentVersion;
  1723. }
  1724. public function setLayerId($layerId) {
  1725. $this->layerId = $layerId;
  1726. }
  1727. public function getLayerId() {
  1728. return $this->layerId;
  1729. }
  1730. public function setAnnotationsDataLink($annotationsDataLink) {
  1731. $this->annotationsDataLink = $annotationsDataLink;
  1732. }
  1733. public function getAnnotationsDataLink() {
  1734. return $this->annotationsDataLink;
  1735. }
  1736. public function setSelfLink($selfLink) {
  1737. $this->selfLink = $selfLink;
  1738. }
  1739. public function getSelfLink() {
  1740. return $this->selfLink;
  1741. }
  1742. }
  1743. class Google_ReadingPosition extends Google_Model {
  1744. public $kind;
  1745. public $gbImagePosition;
  1746. public $epubCfiPosition;
  1747. public $updated;
  1748. public $volumeId;
  1749. public $pdfPosition;
  1750. public $gbTextPosition;
  1751. public function setKind($kind) {
  1752. $this->kind = $kind;
  1753. }
  1754. public function getKind() {
  1755. return $this->kind;
  1756. }
  1757. public function setGbImagePosition($gbImagePosition) {
  1758. $this->gbImagePosition = $gbImagePosition;
  1759. }
  1760. public function getGbImagePosition() {
  1761. return $this->gbImagePosition;
  1762. }
  1763. public function setEpubCfiPosition($epubCfiPosition) {
  1764. $this->epubCfiPosition = $epubCfiPosition;
  1765. }
  1766. public function getEpubCfiPosition() {
  1767. return $this->epubCfiPosition;
  1768. }
  1769. public function setUpdated($updated) {
  1770. $this->updated = $updated;
  1771. }
  1772. public function getUpdated() {
  1773. return $this->updated;
  1774. }
  1775. public function setVolumeId($volumeId) {
  1776. $this->volumeId = $volumeId;
  1777. }
  1778. public function getVolumeId() {
  1779. return $this->volumeId;
  1780. }
  1781. public function setPdfPosition($pdfPosition) {
  1782. $this->pdfPosition = $pdfPosition;
  1783. }
  1784. public function getPdfPosition() {
  1785. return $this->pdfPosition;
  1786. }
  1787. public function setGbTextPosition($gbTextPosition) {
  1788. $this->gbTextPosition = $gbTextPosition;
  1789. }
  1790. public function getGbTextPosition() {
  1791. return $this->gbTextPosition;
  1792. }
  1793. }
  1794. class Google_RequestAccess extends Google_Model {
  1795. protected $__downloadAccessType = 'Google_DownloadAccessRestriction';
  1796. protected $__downloadAccessDataType = '';
  1797. public $downloadAccess;
  1798. public $kind;
  1799. protected $__concurrentAccessType = 'Google_ConcurrentAccessRestriction';
  1800. protected $__concurrentAccessDataType = '';
  1801. public $concurrentAccess;
  1802. public function setDownloadAccess(Google_DownloadAccessRestriction $downloadAccess) {
  1803. $this->downloadAccess = $downloadAccess;
  1804. }
  1805. public function getDownloadAccess() {
  1806. return $this->downloadAccess;
  1807. }
  1808. public function setKind($kind) {
  1809. $this->kind = $kind;
  1810. }
  1811. public function getKind() {
  1812. return $this->kind;
  1813. }
  1814. public function setConcurrentAccess(Google_ConcurrentAccessRestriction $concurrentAccess) {
  1815. $this->concurrentAccess = $concurrentAccess;
  1816. }
  1817. public function getConcurrentAccess() {
  1818. return $this->concurrentAccess;
  1819. }
  1820. }
  1821. class Google_Review extends Google_Model {
  1822. public $rating;
  1823. public $kind;
  1824. protected $__authorType = 'Google_ReviewAuthor';
  1825. protected $__authorDataType = '';
  1826. public $author;
  1827. public $title;
  1828. public $volumeId;
  1829. public $content;
  1830. protected $__sourceType = 'Google_ReviewSource';
  1831. protected $__sourceDataType = '';
  1832. public $source;
  1833. public $date;
  1834. public $type;
  1835. public $fullTextUrl;
  1836. public function setRating($rating) {
  1837. $this->rating = $rating;
  1838. }
  1839. public function getRating() {
  1840. return $this->rating;
  1841. }
  1842. public function setKind($kind) {
  1843. $this->kind = $kind;
  1844. }
  1845. public function getKind() {
  1846. return $this->kind;
  1847. }
  1848. public function setAuthor(Google_ReviewAuthor $author) {
  1849. $this->author = $author;
  1850. }
  1851. public function getAuthor() {
  1852. return $this->author;
  1853. }
  1854. public function setTitle($title) {
  1855. $this->title = $title;
  1856. }
  1857. public function getTitle() {
  1858. return $this->title;
  1859. }
  1860. public function setVolumeId($volumeId) {
  1861. $this->volumeId = $volumeId;
  1862. }
  1863. public function getVolumeId() {
  1864. return $this->volumeId;
  1865. }
  1866. public function setContent($content) {
  1867. $this->content = $content;
  1868. }
  1869. public function getContent() {
  1870. return $this->content;
  1871. }
  1872. public function setSource(Google_ReviewSource $source) {
  1873. $this->source = $source;
  1874. }
  1875. public function getSource() {
  1876. return $this->source;
  1877. }
  1878. public function setDate($date) {
  1879. $this->date = $date;
  1880. }
  1881. public function getDate() {
  1882. return $this->date;
  1883. }
  1884. public function setType($type) {
  1885. $this->type = $type;
  1886. }
  1887. public function getType() {
  1888. return $this->type;
  1889. }
  1890. public function setFullTextUrl($fullTextUrl) {
  1891. $this->fullTextUrl = $fullTextUrl;
  1892. }
  1893. public function getFullTextUrl() {
  1894. return $this->fullTextUrl;
  1895. }
  1896. }
  1897. class Google_ReviewAuthor extends Google_Model {
  1898. public $displayName;
  1899. public function setDisplayName($displayName) {
  1900. $this->displayName = $displayName;
  1901. }
  1902. public function getDisplayName() {
  1903. return $this->displayName;
  1904. }
  1905. }
  1906. class Google_ReviewSource extends Google_Model {
  1907. public $extraDescription;
  1908. public $url;
  1909. public $description;
  1910. public function setExtraDescription($extraDescription) {
  1911. $this->extraDescription = $extraDescription;
  1912. }
  1913. public function getExtraDescription() {
  1914. return $this->extraDescription;
  1915. }
  1916. public function setUrl($url) {
  1917. $this->url = $url;
  1918. }
  1919. public function getUrl() {
  1920. return $this->url;
  1921. }
  1922. public function setDescription($description) {
  1923. $this->description = $description;
  1924. }
  1925. public function getDescription() {
  1926. return $this->description;
  1927. }
  1928. }
  1929. class Google_Volume extends Google_Model {
  1930. public $kind;
  1931. protected $__accessInfoType = 'Google_VolumeAccessInfo';
  1932. protected $__accessInfoDataType = '';
  1933. public $accessInfo;
  1934. protected $__searchInfoType = 'Google_VolumeSearchInfo';
  1935. protected $__searchInfoDataType = '';
  1936. public $searchInfo;
  1937. protected $__saleInfoType = 'Google_VolumeSaleInfo';
  1938. protected $__saleInfoDataType = '';
  1939. public $saleInfo;
  1940. public $etag;
  1941. protected $__userInfoType = 'Google_VolumeUserInfo';
  1942. protected $__userInfoDataType = '';
  1943. public $userInfo;
  1944. protected $__volumeInfoType = 'Google_VolumeVolumeInfo';
  1945. protected $__volumeInfoDataType = '';
  1946. public $volumeInfo;
  1947. public $id;
  1948. public $selfLink;
  1949. public function setKind($kind) {
  1950. $this->kind = $kind;
  1951. }
  1952. public function getKind() {
  1953. return $this->kind;
  1954. }
  1955. public function setAccessInfo(Google_VolumeAccessInfo $accessInfo) {
  1956. $this->accessInfo = $accessInfo;
  1957. }
  1958. public function getAccessInfo() {
  1959. return $this->accessInfo;
  1960. }
  1961. public function setSearchInfo(Google_VolumeSearchInfo $searchInfo) {
  1962. $this->searchInfo = $searchInfo;
  1963. }
  1964. public function getSearchInfo() {
  1965. return $this->searchInfo;
  1966. }
  1967. public function setSaleInfo(Google_VolumeSaleInfo $saleInfo) {
  1968. $this->saleInfo = $saleInfo;
  1969. }
  1970. public function getSaleInfo() {
  1971. return $this->saleInfo;
  1972. }
  1973. public function setEtag($etag) {
  1974. $this->etag = $etag;
  1975. }
  1976. public function getEtag() {
  1977. return $this->etag;
  1978. }
  1979. public function setUserInfo(Google_VolumeUserInfo $userInfo) {
  1980. $this->userInfo = $userInfo;
  1981. }
  1982. public function getUserInfo() {
  1983. return $this->userInfo;
  1984. }
  1985. public function setVolumeInfo(Google_VolumeVolumeInfo $volumeInfo) {
  1986. $this->volumeInfo = $volumeInfo;
  1987. }
  1988. public function getVolumeInfo() {
  1989. return $this->volumeInfo;
  1990. }
  1991. public function setId($id) {
  1992. $this->id = $id;
  1993. }
  1994. public function getId() {
  1995. return $this->id;
  1996. }
  1997. public function setSelfLink($selfLink) {
  1998. $this->selfLink = $selfLink;
  1999. }
  2000. public function getSelfLink() {
  2001. return $this->selfLink;
  2002. }
  2003. }
  2004. class Google_VolumeAccessInfo extends Google_Model {
  2005. public $webReaderLink;
  2006. public $publicDomain;
  2007. public $embeddable;
  2008. protected $__downloadAccessType = 'Google_DownloadAccessRestriction';
  2009. protected $__downloadAccessDataType = '';
  2010. public $downloadAccess;
  2011. public $country;
  2012. public $viewOrderUrl;
  2013. public $textToSpeechPermission;
  2014. protected $__pdfType = 'Google_VolumeAccessInfoPdf';
  2015. protected $__pdfDataType = '';
  2016. public $pdf;
  2017. public $viewability;
  2018. protected $__epubType = 'Google_VolumeAccessInfoEpub';
  2019. protected $__epubDataType = '';
  2020. public $epub;
  2021. public $accessViewStatus;
  2022. public function setWebReaderLink($webReaderLink) {
  2023. $this->webReaderLink = $webReaderLink;
  2024. }
  2025. public function getWebReaderLink() {
  2026. return $this->webReaderLink;
  2027. }
  2028. public function setPublicDomain($publicDomain) {
  2029. $this->publicDomain = $publicDomain;
  2030. }
  2031. public function getPublicDomain() {
  2032. return $this->publicDomain;
  2033. }
  2034. public function setEmbeddable($embeddable) {
  2035. $this->embeddable = $embeddable;
  2036. }
  2037. public function getEmbeddable() {
  2038. return $this->embeddable;
  2039. }
  2040. public function setDownloadAccess(Google_DownloadAccessRestriction $downloadAccess) {
  2041. $this->downloadAccess = $downloadAccess;
  2042. }
  2043. public function getDownloadAccess() {
  2044. return $this->downloadAccess;
  2045. }
  2046. public function setCountry($country) {
  2047. $this->country = $country;
  2048. }
  2049. public function getCountry() {
  2050. return $this->country;
  2051. }
  2052. public function setViewOrderUrl($viewOrderUrl) {
  2053. $this->viewOrderUrl = $viewOrderUrl;
  2054. }
  2055. public function getViewOrderUrl() {
  2056. return $this->viewOrderUrl;
  2057. }
  2058. public function setTextToSpeechPermission($textToSpeechPermission) {
  2059. $this->textToSpeechPermission = $textToSpeechPermission;
  2060. }
  2061. public function getTextToSpeechPermission() {
  2062. return $this->textToSpeechPermission;
  2063. }
  2064. public function setPdf(Google_VolumeAccessInfoPdf $pdf) {
  2065. $this->pdf = $pdf;
  2066. }
  2067. public function getPdf() {
  2068. return $this->pdf;
  2069. }
  2070. public function setViewability($viewability) {
  2071. $this->viewability = $viewability;
  2072. }
  2073. public function getViewability() {
  2074. return $this->viewability;
  2075. }
  2076. public function setEpub(Google_VolumeAccessInfoEpub $epub) {
  2077. $this->epub = $epub;
  2078. }
  2079. public function getEpub() {
  2080. return $this->epub;
  2081. }
  2082. public function setAccessViewStatus($accessViewStatus) {
  2083. $this->accessViewStatus = $accessViewStatus;
  2084. }
  2085. public function getAccessViewStatus() {
  2086. return $this->accessViewStatus;
  2087. }
  2088. }
  2089. class Google_VolumeAccessInfoEpub extends Google_Model {
  2090. public $isAvailable;
  2091. public $downloadLink;
  2092. public $acsTokenLink;
  2093. public function setIsAvailable($isAvailable) {
  2094. $this->isAvailable = $isAvailable;
  2095. }
  2096. public function getIsAvailable() {
  2097. return $this->isAvailable;
  2098. }
  2099. public function setDownloadLink($downloadLink) {
  2100. $this->downloadLink = $downloadLink;
  2101. }
  2102. public function getDownloadLink() {
  2103. return $this->downloadLink;
  2104. }
  2105. public function setAcsTokenLink($acsTokenLink) {
  2106. $this->acsTokenLink = $acsTokenLink;
  2107. }
  2108. public function getAcsTokenLink() {
  2109. return $this->acsTokenLink;
  2110. }
  2111. }
  2112. class Google_VolumeAccessInfoPdf extends Google_Model {
  2113. public $isAvailable;
  2114. public $downloadLink;
  2115. public $acsTokenLink;
  2116. public function setIsAvailable($isAvailable) {
  2117. $this->isAvailable = $isAvailable;
  2118. }
  2119. public function getIsAvailable() {
  2120. return $this->isAvailable;
  2121. }
  2122. public function setDownloadLink($downloadLink) {
  2123. $this->downloadLink = $downloadLink;
  2124. }
  2125. public function getDownloadLink() {
  2126. return $this->downloadLink;
  2127. }
  2128. public function setAcsTokenLink($acsTokenLink) {
  2129. $this->acsTokenLink = $acsTokenLink;
  2130. }
  2131. public function getAcsTokenLink() {
  2132. return $this->acsTokenLink;
  2133. }
  2134. }
  2135. class Google_VolumeSaleInfo extends Google_Model {
  2136. public $country;
  2137. protected $__retailPriceType = 'Google_VolumeSaleInfoRetailPrice';
  2138. protected $__retailPriceDataType = '';
  2139. public $retailPrice;
  2140. public $isEbook;
  2141. public $saleability;
  2142. public $buyLink;
  2143. public $onSaleDate;
  2144. protected $__listPriceType = 'Google_VolumeSaleInfoListPrice';
  2145. protected $__listPriceDataType = '';
  2146. public $listPrice;
  2147. public function setCountry($country) {
  2148. $this->country = $country;
  2149. }
  2150. public function getCountry() {
  2151. return $this->country;
  2152. }
  2153. public function setRetailPrice(Google_VolumeSaleInfoRetailPrice $retailPrice) {
  2154. $this->retailPrice = $retailPrice;
  2155. }
  2156. public function getRetailPrice() {
  2157. return $this->retailPrice;
  2158. }
  2159. public function setIsEbook($isEbook) {
  2160. $this->isEbook = $isEbook;
  2161. }
  2162. public function getIsEbook() {
  2163. return $this->isEbook;
  2164. }
  2165. public function setSaleability($saleability) {
  2166. $this->saleability = $saleability;
  2167. }
  2168. public function getSaleability() {
  2169. return $this->saleability;
  2170. }
  2171. public function setBuyLink($buyLink) {
  2172. $this->buyLink = $buyLink;
  2173. }
  2174. public function getBuyLink() {
  2175. return $this->buyLink;
  2176. }
  2177. public function setOnSaleDate($onSaleDate) {
  2178. $this->onSaleDate = $onSaleDate;
  2179. }
  2180. public function getOnSaleDate() {
  2181. return $this->onSaleDate;
  2182. }
  2183. public function setListPrice(Google_VolumeSaleInfoListPrice $listPrice) {
  2184. $this->listPrice = $listPrice;
  2185. }
  2186. public function getListPrice() {
  2187. return $this->listPrice;
  2188. }
  2189. }
  2190. class Google_VolumeSaleInfoListPrice extends Google_Model {
  2191. public $amount;
  2192. public $currencyCode;
  2193. public function setAmount($amount) {
  2194. $this->amount = $amount;
  2195. }
  2196. public function getAmount() {
  2197. return $this->amount;
  2198. }
  2199. public function setCurrencyCode($currencyCode) {
  2200. $this->currencyCode = $currencyCode;
  2201. }
  2202. public function getCurrencyCode() {
  2203. return $this->currencyCode;
  2204. }
  2205. }
  2206. class Google_VolumeSaleInfoRetailPrice extends Google_Model {
  2207. public $amount;
  2208. public $currencyCode;
  2209. public function setAmount($amount) {
  2210. $this->amount = $amount;
  2211. }
  2212. public function getAmount() {
  2213. return $this->amount;
  2214. }
  2215. public function setCurrencyCode($currencyCode) {
  2216. $this->currencyCode = $currencyCode;
  2217. }
  2218. public function getCurrencyCode() {
  2219. return $this->currencyCode;
  2220. }
  2221. }
  2222. class Google_VolumeSearchInfo extends Google_Model {
  2223. public $textSnippet;
  2224. public function setTextSnippet($textSnippet) {
  2225. $this->textSnippet = $textSnippet;
  2226. }
  2227. public function getTextSnippet() {
  2228. return $this->textSnippet;
  2229. }
  2230. }
  2231. class Google_VolumeUserInfo extends Google_Model {
  2232. public $isInMyBooks;
  2233. public $updated;
  2234. protected $__reviewType = 'Google_Review';
  2235. protected $__reviewDataType = '';
  2236. public $review;
  2237. public $isPurchased;
  2238. protected $__readingPositionType = 'Google_ReadingPosition';
  2239. protected $__readingPositionDataType = '';
  2240. public $readingPosition;
  2241. public $isPreordered;
  2242. public function setIsInMyBooks($isInMyBooks) {
  2243. $this->isInMyBooks = $isInMyBooks;
  2244. }
  2245. public function getIsInMyBooks() {
  2246. return $this->isInMyBooks;
  2247. }
  2248. public function setUpdated($updated) {
  2249. $this->updated = $updated;
  2250. }
  2251. public function getUpdated() {
  2252. return $this->updated;
  2253. }
  2254. public function setReview(Google_Review $review) {
  2255. $this->review = $review;
  2256. }
  2257. public function getReview() {
  2258. return $this->review;
  2259. }
  2260. public function setIsPurchased($isPurchased) {
  2261. $this->isPurchased = $isPurchased;
  2262. }
  2263. public function getIsPurchased() {
  2264. return $this->isPurchased;
  2265. }
  2266. public function setReadingPosition(Google_ReadingPosition $readingPosition) {
  2267. $this->readingPosition = $readingPosition;
  2268. }
  2269. public function getReadingPosition() {
  2270. return $this->readingPosition;
  2271. }
  2272. public function setIsPreordered($isPreordered) {
  2273. $this->isPreordered = $isPreordered;
  2274. }
  2275. public function getIsPreordered() {
  2276. return $this->isPreordered;
  2277. }
  2278. }
  2279. class Google_VolumeVolumeInfo extends Google_Model {
  2280. public $publisher;
  2281. public $subtitle;
  2282. public $description;
  2283. public $language;
  2284. public $pageCount;
  2285. protected $__imageLinksType = 'Google_VolumeVolumeInfoImageLinks';
  2286. protected $__imageLinksDataType = '';
  2287. public $imageLinks;
  2288. public $publishedDate;
  2289. public $previewLink;
  2290. public $printType;
  2291. public $ratingsCount;
  2292. public $mainCategory;
  2293. protected $__dimensionsType = 'Google_VolumeVolumeInfoDimensions';
  2294. protected $__dimensionsDataType = '';
  2295. public $dimensions;
  2296. public $contentVersion;
  2297. protected $__industryIdentifiersType = 'Google_VolumeVolumeInfoIndustryIdentifiers';
  2298. protected $__industryIdentifiersDataType = 'array';
  2299. public $industryIdentifiers;
  2300. public $authors;
  2301. public $title;
  2302. public $canonicalVolumeLink;
  2303. public $infoLink;
  2304. public $categories;
  2305. public $averageRating;
  2306. public function setPublisher($publisher) {
  2307. $this->publisher = $publisher;
  2308. }
  2309. public function getPublisher() {
  2310. return $this->publisher;
  2311. }
  2312. public function setSubtitle($subtitle) {
  2313. $this->subtitle = $subtitle;
  2314. }
  2315. public function getSubtitle() {
  2316. return $this->subtitle;
  2317. }
  2318. public function setDescription($description) {
  2319. $this->description = $description;
  2320. }
  2321. public function getDescription() {
  2322. return $this->description;
  2323. }
  2324. public function setLanguage($language) {
  2325. $this->language = $language;
  2326. }
  2327. public function getLanguage() {
  2328. return $this->language;
  2329. }
  2330. public function setPageCount($pageCount) {
  2331. $this->pageCount = $pageCount;
  2332. }
  2333. public function getPageCount() {
  2334. return $this->pageCount;
  2335. }
  2336. public function setImageLinks(Google_VolumeVolumeInfoImageLinks $imageLinks) {
  2337. $this->imageLinks = $imageLinks;
  2338. }
  2339. public function getImageLinks() {
  2340. return $this->imageLinks;
  2341. }
  2342. public function setPublishedDate($publishedDate) {
  2343. $this->publishedDate = $publishedDate;
  2344. }
  2345. public function getPublishedDate() {
  2346. return $this->publishedDate;
  2347. }
  2348. public function setPreviewLink($previewLink) {
  2349. $this->previewLink = $previewLink;
  2350. }
  2351. public function getPreviewLink() {
  2352. return $this->previewLink;
  2353. }
  2354. public function setPrintType($printType) {
  2355. $this->printType = $printType;
  2356. }
  2357. public function getPrintType() {
  2358. return $this->printType;
  2359. }
  2360. public function setRatingsCount($ratingsCount) {
  2361. $this->ratingsCount = $ratingsCount;
  2362. }
  2363. public function getRatingsCount() {
  2364. return $this->ratingsCount;
  2365. }
  2366. public function setMainCategory($mainCategory) {
  2367. $this->mainCategory = $mainCategory;
  2368. }
  2369. public function getMainCategory() {
  2370. return $this->mainCategory;
  2371. }
  2372. public function setDimensions(Google_VolumeVolumeInfoDimensions $dimensions) {
  2373. $this->dimensions = $dimensions;
  2374. }
  2375. public function getDimensions() {
  2376. return $this->dimensions;
  2377. }
  2378. public function setContentVersion($contentVersion) {
  2379. $this->contentVersion = $contentVersion;
  2380. }
  2381. public function getContentVersion() {
  2382. return $this->contentVersion;
  2383. }
  2384. public function setIndustryIdentifiers(/* array(Google_VolumeVolumeInfoIndustryIdentifiers) */ $industryIdentifiers) {
  2385. $this->assertIsArray($industryIdentifiers, 'Google_VolumeVolumeInfoIndustryIdentifiers', __METHOD__);
  2386. $this->industryIdentifiers = $industryIdentifiers;
  2387. }
  2388. public function getIndustryIdentifiers() {
  2389. return $this->industryIdentifiers;
  2390. }
  2391. public function setAuthors(/* array(Google_string) */ $authors) {
  2392. $this->assertIsArray($authors, 'Google_string', __METHOD__);
  2393. $this->authors = $authors;
  2394. }
  2395. public function getAuthors() {
  2396. return $this->authors;
  2397. }
  2398. public function setTitle($title) {
  2399. $this->title = $title;
  2400. }
  2401. public function getTitle() {
  2402. return $this->title;
  2403. }
  2404. public function setCanonicalVolumeLink($canonicalVolumeLink) {
  2405. $this->canonicalVolumeLink = $canonicalVolumeLink;
  2406. }
  2407. public function getCanonicalVolumeLink() {
  2408. return $this->canonicalVolumeLink;
  2409. }
  2410. public function setInfoLink($infoLink) {
  2411. $this->infoLink = $infoLink;
  2412. }
  2413. public function getInfoLink() {
  2414. return $this->infoLink;
  2415. }
  2416. public function setCategories(/* array(Google_string) */ $categories) {
  2417. $this->assertIsArray($categories, 'Google_string', __METHOD__);
  2418. $this->categories = $categories;
  2419. }
  2420. public function getCategories() {
  2421. return $this->categories;
  2422. }
  2423. public function setAverageRating($averageRating) {
  2424. $this->averageRating = $averageRating;
  2425. }
  2426. public function getAverageRating() {
  2427. return $this->averageRating;
  2428. }
  2429. }
  2430. class Google_VolumeVolumeInfoDimensions extends Google_Model {
  2431. public $width;
  2432. public $thickness;
  2433. public $height;
  2434. public function setWidth($width) {
  2435. $this->width = $width;
  2436. }
  2437. public function getWidth() {
  2438. return $this->width;
  2439. }
  2440. public function setThickness($thickness) {
  2441. $this->thickness = $thickness;
  2442. }
  2443. public function getThickness() {
  2444. return $this->thickness;
  2445. }
  2446. public function setHeight($height) {
  2447. $this->height = $height;
  2448. }
  2449. public function getHeight() {
  2450. return $this->height;
  2451. }
  2452. }
  2453. class Google_VolumeVolumeInfoImageLinks extends Google_Model {
  2454. public $medium;
  2455. public $smallThumbnail;
  2456. public $large;
  2457. public $extraLarge;
  2458. public $small;
  2459. public $thumbnail;
  2460. public function setMedium($medium) {
  2461. $this->medium = $medium;
  2462. }
  2463. public function getMedium() {
  2464. return $this->medium;
  2465. }
  2466. public function setSmallThumbnail($smallThumbnail) {
  2467. $this->smallThumbnail = $smallThumbnail;
  2468. }
  2469. public function getSmallThumbnail() {
  2470. return $this->smallThumbnail;
  2471. }
  2472. public function setLarge($large) {
  2473. $this->large = $large;
  2474. }
  2475. public function getLarge() {
  2476. return $this->large;
  2477. }
  2478. public function setExtraLarge($extraLarge) {
  2479. $this->extraLarge = $extraLarge;
  2480. }
  2481. public function getExtraLarge() {
  2482. return $this->extraLarge;
  2483. }
  2484. public function setSmall($small) {
  2485. $this->small = $small;
  2486. }
  2487. public function getSmall() {
  2488. return $this->small;
  2489. }
  2490. public function setThumbnail($thumbnail) {
  2491. $this->thumbnail = $thumbnail;
  2492. }
  2493. public function getThumbnail() {
  2494. return $this->thumbnail;
  2495. }
  2496. }
  2497. class Google_VolumeVolumeInfoIndustryIdentifiers extends Google_Model {
  2498. public $identifier;
  2499. public $type;
  2500. public function setIdentifier($identifier) {
  2501. $this->identifier = $identifier;
  2502. }
  2503. public function getIdentifier() {
  2504. return $this->identifier;
  2505. }
  2506. public function setType($type) {
  2507. $this->type = $type;
  2508. }
  2509. public function getType() {
  2510. return $this->type;
  2511. }
  2512. }
  2513. class Google_Volumeannotation extends Google_Model {
  2514. public $annotationType;
  2515. public $kind;
  2516. public $updated;
  2517. public $deleted;
  2518. protected $__contentRangesType = 'Google_VolumeannotationContentRanges';
  2519. protected $__contentRangesDataType = '';
  2520. public $contentRanges;
  2521. public $selectedText;
  2522. public $volumeId;
  2523. public $annotationDataId;
  2524. public $annotationDataLink;
  2525. public $pageIds;
  2526. public $layerId;
  2527. public $data;
  2528. public $id;
  2529. public $selfLink;
  2530. public function setAnnotationType($annotationType) {
  2531. $this->annotationType = $annotationType;
  2532. }
  2533. public function getAnnotationType() {
  2534. return $this->annotationType;
  2535. }
  2536. public function setKind($kind) {
  2537. $this->kind = $kind;
  2538. }
  2539. public function getKind() {
  2540. return $this->kind;
  2541. }
  2542. public function setUpdated($updated) {
  2543. $this->updated = $updated;
  2544. }
  2545. public function getUpdated() {
  2546. return $this->updated;
  2547. }
  2548. public function setDeleted($deleted) {
  2549. $this->deleted = $deleted;
  2550. }
  2551. public function getDeleted() {
  2552. return $this->deleted;
  2553. }
  2554. public function setContentRanges(Google_VolumeannotationContentRanges $contentRanges) {
  2555. $this->contentRanges = $contentRanges;
  2556. }
  2557. public function getContentRanges() {
  2558. return $this->contentRanges;
  2559. }
  2560. public function setSelectedText($selectedText) {
  2561. $this->selectedText = $selectedText;
  2562. }
  2563. public function getSelectedText() {
  2564. return $this->selectedText;
  2565. }
  2566. public function setVolumeId($volumeId) {
  2567. $this->volumeId = $volumeId;
  2568. }
  2569. public function getVolumeId() {
  2570. return $this->volumeId;
  2571. }
  2572. public function setAnnotationDataId($annotationDataId) {
  2573. $this->annotationDataId = $annotationDataId;
  2574. }
  2575. public function getAnnotationDataId() {
  2576. return $this->annotationDataId;
  2577. }
  2578. public function setAnnotationDataLink($annotationDataLink) {
  2579. $this->annotationDataLink = $annotationDataLink;
  2580. }
  2581. public function getAnnotationDataLink() {
  2582. return $this->annotationDataLink;
  2583. }
  2584. public function setPageIds(/* array(Google_string) */ $pageIds) {
  2585. $this->assertIsArray($pageIds, 'Google_string', __METHOD__);
  2586. $this->pageIds = $pageIds;
  2587. }
  2588. public function getPageIds() {
  2589. return $this->pageIds;
  2590. }
  2591. public function setLayerId($layerId) {
  2592. $this->layerId = $layerId;
  2593. }
  2594. public function getLayerId() {
  2595. return $this->layerId;
  2596. }
  2597. public function setData($data) {
  2598. $this->data = $data;
  2599. }
  2600. public function getData() {
  2601. return $this->data;
  2602. }
  2603. public function setId($id) {
  2604. $this->id = $id;
  2605. }
  2606. public function getId() {
  2607. return $this->id;
  2608. }
  2609. public function setSelfLink($selfLink) {
  2610. $this->selfLink = $selfLink;
  2611. }
  2612. public function getSelfLink() {
  2613. return $this->selfLink;
  2614. }
  2615. }
  2616. class Google_VolumeannotationContentRanges extends Google_Model {
  2617. public $contentVersion;
  2618. protected $__gbTextRangeType = 'Google_BooksAnnotationsRange';
  2619. protected $__gbTextRangeDataType = '';
  2620. public $gbTextRange;
  2621. protected $__cfiRangeType = 'Google_BooksAnnotationsRange';
  2622. protected $__cfiRangeDataType = '';
  2623. public $cfiRange;
  2624. protected $__gbImageRangeType = 'Google_BooksAnnotationsRange';
  2625. protected $__gbImageRangeDataType = '';
  2626. public $gbImageRange;
  2627. public function setContentVersion($contentVersion) {
  2628. $this->contentVersion = $contentVersion;
  2629. }
  2630. public function getContentVersion() {
  2631. return $this->contentVersion;
  2632. }
  2633. public function setGbTextRange(Google_BooksAnnotationsRange $gbTextRange) {
  2634. $this->gbTextRange = $gbTextRange;
  2635. }
  2636. public function getGbTextRange() {
  2637. return $this->gbTextRange;
  2638. }
  2639. public function setCfiRange(Google_BooksAnnotationsRange $cfiRange) {
  2640. $this->cfiRange = $cfiRange;
  2641. }
  2642. public function getCfiRange() {
  2643. return $this->cfiRange;
  2644. }
  2645. public function setGbImageRange(Google_BooksAnnotationsRange $gbImageRange) {
  2646. $this->gbImageRange = $gbImageRange;
  2647. }
  2648. public function getGbImageRange() {
  2649. return $this->gbImageRange;
  2650. }
  2651. }
  2652. class Google_Volumeannotations extends Google_Model {
  2653. public $nextPageToken;
  2654. protected $__itemsType = 'Google_Volumeannotation';
  2655. protected $__itemsDataType = 'array';
  2656. public $items;
  2657. public $kind;
  2658. public $totalItems;
  2659. public function setNextPageToken($nextPageToken) {
  2660. $this->nextPageToken = $nextPageToken;
  2661. }
  2662. public function getNextPageToken() {
  2663. return $this->nextPageToken;
  2664. }
  2665. public function setItems(/* array(Google_Volumeannotation) */ $items) {
  2666. $this->assertIsArray($items, 'Google_Volumeannotation', __METHOD__);
  2667. $this->items = $items;
  2668. }
  2669. public function getItems() {
  2670. return $this->items;
  2671. }
  2672. public function setKind($kind) {
  2673. $this->kind = $kind;
  2674. }
  2675. public function getKind() {
  2676. return $this->kind;
  2677. }
  2678. public function setTotalItems($totalItems) {
  2679. $this->totalItems = $totalItems;
  2680. }
  2681. public function getTotalItems() {
  2682. return $this->totalItems;
  2683. }
  2684. }
  2685. class Google_Volumes extends Google_Model {
  2686. public $totalItems;
  2687. protected $__itemsType = 'Google_Volume';
  2688. protected $__itemsDataType = 'array';
  2689. public $items;
  2690. public $kind;
  2691. public function setTotalItems($totalItems) {
  2692. $this->totalItems = $totalItems;
  2693. }
  2694. public function getTotalItems() {
  2695. return $this->totalItems;
  2696. }
  2697. public function setItems(/* array(Google_Volume) */ $items) {
  2698. $this->assertIsArray($items, 'Google_Volume', __METHOD__);
  2699. $this->items = $items;
  2700. }
  2701. public function getItems() {
  2702. return $this->items;
  2703. }
  2704. public function setKind($kind) {
  2705. $this->kind = $kind;
  2706. }
  2707. public function getKind() {
  2708. return $this->kind;
  2709. }
  2710. }