PageRenderTime 54ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/webui/google-api/contrib/apiBooksService.php

https://bitbucket.org/sailsdigital/piler-remi
PHP | 1865 lines | 1482 code | 60 blank | 323 comment | 30 complexity | fa1967b3dbbe91df83c04ad74c73bbed MD5 | raw file
Possible License(s): GPL-3.0
  1. <?php
  2. /*
  3. * Copyright (c) 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. require_once 'service/apiModel.php';
  18. require_once 'service/apiService.php';
  19. require_once 'service/apiServiceRequest.php';
  20. /**
  21. * The "bookshelves" collection of methods.
  22. * Typical usage is:
  23. * <code>
  24. * $booksService = new apiBooksService(...);
  25. * $bookshelves = $booksService->bookshelves;
  26. * </code>
  27. */
  28. class BookshelvesServiceResource extends apiServiceResource {
  29. /**
  30. * Retrieves a list of public bookshelves for the specified user. (bookshelves.list)
  31. *
  32. * @param string $userId Id of user for whom to retrieve bookshelves.
  33. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  34. *
  35. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  36. * @opt_param string source String to identify the originator of this request.
  37. * @return Bookshelves
  38. */
  39. public function listBookshelves($userId, $optParams = array()) {
  40. $params = array('userId' => $userId);
  41. $params = array_merge($params, $optParams);
  42. $data = $this->__call('list', array($params));
  43. if ($this->useObjects()) {
  44. return new Bookshelves($data);
  45. } else {
  46. return $data;
  47. }
  48. }
  49. /**
  50. * Retrieves a specific bookshelf for the specified user. (bookshelves.get)
  51. *
  52. * @param string $userId Id of user for whom to retrieve bookshelves.
  53. * @param string $shelf Id of bookshelf to retrieve.
  54. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  55. *
  56. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  57. * @opt_param string source String to identify the originator of this request.
  58. * @return Bookshelf
  59. */
  60. public function get($userId, $shelf, $optParams = array()) {
  61. $params = array('userId' => $userId, 'shelf' => $shelf);
  62. $params = array_merge($params, $optParams);
  63. $data = $this->__call('get', array($params));
  64. if ($this->useObjects()) {
  65. return new Bookshelf($data);
  66. } else {
  67. return $data;
  68. }
  69. }
  70. }
  71. /**
  72. * The "volumes" collection of methods.
  73. * Typical usage is:
  74. * <code>
  75. * $booksService = new apiBooksService(...);
  76. * $volumes = $booksService->volumes;
  77. * </code>
  78. */
  79. class BookshelvesVolumesServiceResource extends apiServiceResource {
  80. /**
  81. * Retrieves volumes in a specific bookshelf for the specified user. (volumes.list)
  82. *
  83. * @param string $userId Id of user for whom to retrieve bookshelf volumes.
  84. * @param string $shelf Id of bookshelf to retrieve volumes.
  85. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  86. *
  87. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  88. * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
  89. * @opt_param string maxResults Maximum number of results to return
  90. * @opt_param string source String to identify the originator of this request.
  91. * @opt_param string startIndex Index of the first element to return (starts at 0)
  92. * @return Volumes
  93. */
  94. public function listBookshelvesVolumes($userId, $shelf, $optParams = array()) {
  95. $params = array('userId' => $userId, 'shelf' => $shelf);
  96. $params = array_merge($params, $optParams);
  97. $data = $this->__call('list', array($params));
  98. if ($this->useObjects()) {
  99. return new Volumes($data);
  100. } else {
  101. return $data;
  102. }
  103. }
  104. }
  105. /**
  106. * The "myconfig" collection of methods.
  107. * Typical usage is:
  108. * <code>
  109. * $booksService = new apiBooksService(...);
  110. * $myconfig = $booksService->myconfig;
  111. * </code>
  112. */
  113. class MyconfigServiceResource extends apiServiceResource {
  114. /**
  115. * Release downloaded content access restriction. (myconfig.releaseDownloadAccess)
  116. *
  117. * @param string $volumeIds The volume(s) to release restrictions for.
  118. * @param string $cpksver The device/version identifier from which to release the restriction.
  119. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  120. *
  121. * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
  122. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  123. * @opt_param string source String to identify the originator of this request.
  124. * @return DownloadAccesses
  125. */
  126. public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array()) {
  127. $params = array('volumeIds' => $volumeIds, 'cpksver' => $cpksver);
  128. $params = array_merge($params, $optParams);
  129. $data = $this->__call('releaseDownloadAccess', array($params));
  130. if ($this->useObjects()) {
  131. return new DownloadAccesses($data);
  132. } else {
  133. return $data;
  134. }
  135. }
  136. /**
  137. * Request concurrent and download access restrictions. (myconfig.requestAccess)
  138. *
  139. * @param string $source String to identify the originator of this request.
  140. * @param string $volumeId The volume to request concurrent/download restrictions for.
  141. * @param string $nonce The client nonce value.
  142. * @param string $cpksver The device/version identifier from which to request the restrictions.
  143. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  144. *
  145. * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
  146. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  147. * @return RequestAccess
  148. */
  149. public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array()) {
  150. $params = array('source' => $source, 'volumeId' => $volumeId, 'nonce' => $nonce, 'cpksver' => $cpksver);
  151. $params = array_merge($params, $optParams);
  152. $data = $this->__call('requestAccess', array($params));
  153. if ($this->useObjects()) {
  154. return new RequestAccess($data);
  155. } else {
  156. return $data;
  157. }
  158. }
  159. /**
  160. * Request downloaded content access for specified volumes on the My eBooks shelf.
  161. * (myconfig.syncVolumeLicenses)
  162. *
  163. * @param string $source String to identify the originator of this request.
  164. * @param string $nonce The client nonce value.
  165. * @param string $cpksver The device/version identifier from which to release the restriction.
  166. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  167. *
  168. * @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
  169. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  170. * @opt_param string volumeIds The volume(s) to request download restrictions for.
  171. * @return Volumes
  172. */
  173. public function syncVolumeLicenses($source, $nonce, $cpksver, $optParams = array()) {
  174. $params = array('source' => $source, 'nonce' => $nonce, 'cpksver' => $cpksver);
  175. $params = array_merge($params, $optParams);
  176. $data = $this->__call('syncVolumeLicenses', array($params));
  177. if ($this->useObjects()) {
  178. return new Volumes($data);
  179. } else {
  180. return $data;
  181. }
  182. }
  183. }
  184. /**
  185. * The "volumes" collection of methods.
  186. * Typical usage is:
  187. * <code>
  188. * $booksService = new apiBooksService(...);
  189. * $volumes = $booksService->volumes;
  190. * </code>
  191. */
  192. class VolumesServiceResource extends apiServiceResource {
  193. /**
  194. * Performs a book search. (volumes.list)
  195. *
  196. * @param string $q Full-text search query string.
  197. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  198. *
  199. * @opt_param string orderBy Sort search results.
  200. * @opt_param string projection Restrict information returned to a set of selected fields.
  201. * @opt_param string libraryRestrict Restrict search to this user's library.
  202. * @opt_param string langRestrict Restrict results to books with this language code.
  203. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  204. * @opt_param string printType Restrict to books or magazines.
  205. * @opt_param string maxResults Maximum number of results to return.
  206. * @opt_param string filter Filter search results.
  207. * @opt_param string source String to identify the originator of this request.
  208. * @opt_param string startIndex Index of the first result to return (starts at 0)
  209. * @opt_param string download Restrict to volumes by download availability.
  210. * @opt_param string partner Identifier of partner for whom to restrict and brand results.
  211. * @opt_param bool showPreorders Set to true to show books available for preorder. Defaults to false.
  212. * @return Volumes
  213. */
  214. public function listVolumes($q, $optParams = array()) {
  215. $params = array('q' => $q);
  216. $params = array_merge($params, $optParams);
  217. $data = $this->__call('list', array($params));
  218. if ($this->useObjects()) {
  219. return new Volumes($data);
  220. } else {
  221. return $data;
  222. }
  223. }
  224. /**
  225. * Gets volume information for a single volume. (volumes.get)
  226. *
  227. * @param string $volumeId Id of volume to retrieve.
  228. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  229. *
  230. * @opt_param string source String to identify the originator of this request.
  231. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  232. * @opt_param string projection Restrict information returned to a set of selected fields.
  233. * @opt_param string partner Identifier of partner for whom to brand results.
  234. * @return Volume
  235. */
  236. public function get($volumeId, $optParams = array()) {
  237. $params = array('volumeId' => $volumeId);
  238. $params = array_merge($params, $optParams);
  239. $data = $this->__call('get', array($params));
  240. if ($this->useObjects()) {
  241. return new Volume($data);
  242. } else {
  243. return $data;
  244. }
  245. }
  246. }
  247. /**
  248. * The "mylibrary" collection of methods.
  249. * Typical usage is:
  250. * <code>
  251. * $booksService = new apiBooksService(...);
  252. * $mylibrary = $booksService->mylibrary;
  253. * </code>
  254. */
  255. class MylibraryServiceResource extends apiServiceResource {
  256. }
  257. /**
  258. * The "bookshelves" collection of methods.
  259. * Typical usage is:
  260. * <code>
  261. * $booksService = new apiBooksService(...);
  262. * $bookshelves = $booksService->bookshelves;
  263. * </code>
  264. */
  265. class MylibraryBookshelvesServiceResource extends apiServiceResource {
  266. /**
  267. * Clears all volumes from a bookshelf. (bookshelves.clearVolumes)
  268. *
  269. * @param string $shelf Id of bookshelf from which to remove a volume.
  270. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  271. *
  272. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  273. * @opt_param string source String to identify the originator of this request.
  274. */
  275. public function clearVolumes($shelf, $optParams = array()) {
  276. $params = array('shelf' => $shelf);
  277. $params = array_merge($params, $optParams);
  278. $data = $this->__call('clearVolumes', array($params));
  279. return $data;
  280. }
  281. /**
  282. * Removes a volume from a bookshelf. (bookshelves.removeVolume)
  283. *
  284. * @param string $shelf Id of bookshelf from which to remove a volume.
  285. * @param string $volumeId Id of volume to remove.
  286. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  287. *
  288. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  289. * @opt_param string source String to identify the originator of this request.
  290. */
  291. public function removeVolume($shelf, $volumeId, $optParams = array()) {
  292. $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
  293. $params = array_merge($params, $optParams);
  294. $data = $this->__call('removeVolume', array($params));
  295. return $data;
  296. }
  297. /**
  298. * Retrieves a list of bookshelves belonging to the authenticated user. (bookshelves.list)
  299. *
  300. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  301. *
  302. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  303. * @opt_param string source String to identify the originator of this request.
  304. * @return Bookshelves
  305. */
  306. public function listMylibraryBookshelves($optParams = array()) {
  307. $params = array();
  308. $params = array_merge($params, $optParams);
  309. $data = $this->__call('list', array($params));
  310. if ($this->useObjects()) {
  311. return new Bookshelves($data);
  312. } else {
  313. return $data;
  314. }
  315. }
  316. /**
  317. * Adds a volume to a bookshelf. (bookshelves.addVolume)
  318. *
  319. * @param string $shelf Id of bookshelf to which to add a volume.
  320. * @param string $volumeId Id of volume to add.
  321. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  322. *
  323. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  324. * @opt_param string source String to identify the originator of this request.
  325. */
  326. public function addVolume($shelf, $volumeId, $optParams = array()) {
  327. $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
  328. $params = array_merge($params, $optParams);
  329. $data = $this->__call('addVolume', array($params));
  330. return $data;
  331. }
  332. /**
  333. * Retrieves a specific bookshelf belonging to the authenticated user. (bookshelves.get)
  334. *
  335. * @param string $shelf Id of bookshelf to retrieve.
  336. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  337. *
  338. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  339. * @opt_param string source String to identify the originator of this request.
  340. * @return Bookshelf
  341. */
  342. public function get($shelf, $optParams = array()) {
  343. $params = array('shelf' => $shelf);
  344. $params = array_merge($params, $optParams);
  345. $data = $this->__call('get', array($params));
  346. if ($this->useObjects()) {
  347. return new Bookshelf($data);
  348. } else {
  349. return $data;
  350. }
  351. }
  352. }
  353. /**
  354. * The "volumes" collection of methods.
  355. * Typical usage is:
  356. * <code>
  357. * $booksService = new apiBooksService(...);
  358. * $volumes = $booksService->volumes;
  359. * </code>
  360. */
  361. class MylibraryBookshelvesVolumesServiceResource extends apiServiceResource {
  362. /**
  363. * Gets volume information for volumes on a bookshelf. (volumes.list)
  364. *
  365. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  366. *
  367. * @opt_param string shelf The bookshelf id or name retrieve volumes for.
  368. * @opt_param string projection Restrict information returned to a set of selected fields.
  369. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  370. * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
  371. * @opt_param string maxResults Maximum number of results to return
  372. * @opt_param string q Full-text search query string in this bookshelf.
  373. * @opt_param string source String to identify the originator of this request.
  374. * @opt_param string startIndex Index of the first element to return (starts at 0)
  375. * @return Volumes
  376. */
  377. public function listMylibraryBookshelvesVolumes($optParams = array()) {
  378. $params = array();
  379. $params = array_merge($params, $optParams);
  380. $data = $this->__call('list', array($params));
  381. if ($this->useObjects()) {
  382. return new Volumes($data);
  383. } else {
  384. return $data;
  385. }
  386. }
  387. }
  388. /**
  389. * The "annotations" collection of methods.
  390. * Typical usage is:
  391. * <code>
  392. * $booksService = new apiBooksService(...);
  393. * $annotations = $booksService->annotations;
  394. * </code>
  395. */
  396. class MylibraryAnnotationsServiceResource extends apiServiceResource {
  397. /**
  398. * Inserts a new annotation. (annotations.insert)
  399. *
  400. * @param Annotation $postBody
  401. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  402. *
  403. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  404. * @opt_param string source String to identify the originator of this request.
  405. * @return Annotation
  406. */
  407. public function insert(Annotation $postBody, $optParams = array()) {
  408. $params = array('postBody' => $postBody);
  409. $params = array_merge($params, $optParams);
  410. $data = $this->__call('insert', array($params));
  411. if ($this->useObjects()) {
  412. return new Annotation($data);
  413. } else {
  414. return $data;
  415. }
  416. }
  417. /**
  418. * Gets an annotation by its id. (annotations.get)
  419. *
  420. * @param string $annotationId The annotation identifier for the annotation to retrieve.
  421. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  422. *
  423. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  424. * @opt_param string source String to identify the originator of this request.
  425. * @return Annotation
  426. */
  427. public function get($annotationId, $optParams = array()) {
  428. $params = array('annotationId' => $annotationId);
  429. $params = array_merge($params, $optParams);
  430. $data = $this->__call('get', array($params));
  431. if ($this->useObjects()) {
  432. return new Annotation($data);
  433. } else {
  434. return $data;
  435. }
  436. }
  437. /**
  438. * Retrieves a list of annotations, possibly filtered. (annotations.list)
  439. *
  440. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  441. *
  442. * @opt_param string source String to identify the originator of this request.
  443. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  444. * @opt_param string volumeId The volume to restrict annotations to.
  445. * @opt_param string maxResults Maximum number of results to return
  446. * @opt_param string pageToken The value of the nextToken from the previous page.
  447. * @opt_param string pageIds The page id(s) for the volume that is being queried.
  448. * @opt_param string contentVersion The content version for the requested volume.
  449. * @opt_param string layerId The layer id to limit annotation by.
  450. * @return Annotations
  451. */
  452. public function listMylibraryAnnotations($optParams = array()) {
  453. $params = array();
  454. $params = array_merge($params, $optParams);
  455. $data = $this->__call('list', array($params));
  456. if ($this->useObjects()) {
  457. return new Annotations($data);
  458. } else {
  459. return $data;
  460. }
  461. }
  462. /**
  463. * Updates an existing annotation. (annotations.update)
  464. *
  465. * @param string $annotationId The annotation identifier for the annotation to update.
  466. * @param Annotation $postBody
  467. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  468. *
  469. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  470. * @opt_param string source String to identify the originator of this request.
  471. * @return Annotation
  472. */
  473. public function update($annotationId, Annotation $postBody, $optParams = array()) {
  474. $params = array('annotationId' => $annotationId, 'postBody' => $postBody);
  475. $params = array_merge($params, $optParams);
  476. $data = $this->__call('update', array($params));
  477. if ($this->useObjects()) {
  478. return new Annotation($data);
  479. } else {
  480. return $data;
  481. }
  482. }
  483. /**
  484. * Deletes an annotation. (annotations.delete)
  485. *
  486. * @param string $annotationId The annotation identifier for the annotation to delete.
  487. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  488. *
  489. * @opt_param string country ISO-3166-1 code to override the IP-based location.
  490. * @opt_param string source String to identify the originator of this request.
  491. */
  492. public function delete($annotationId, $optParams = array()) {
  493. $params = array('annotationId' => $annotationId);
  494. $params = array_merge($params, $optParams);
  495. $data = $this->__call('delete', array($params));
  496. return $data;
  497. }
  498. }
  499. /**
  500. * Service definition for Books (v1).
  501. *
  502. * <p>
  503. * Lets you search for books and manage your Google Books library.
  504. * </p>
  505. *
  506. * <p>
  507. * For more information about this service, see the
  508. * <a href="https://code.google.com/apis/books/docs/v1/getting_started.html" target="_blank">API Documentation</a>
  509. * </p>
  510. *
  511. * @author Google, Inc.
  512. */
  513. class apiBooksService extends apiService {
  514. public $bookshelves;
  515. public $bookshelves_volumes;
  516. public $myconfig;
  517. public $volumes;
  518. public $mylibrary;
  519. public $mylibrary_bookshelves;
  520. public $mylibrary_annotations;
  521. /**
  522. * Constructs the internal representation of the Books service.
  523. *
  524. * @param apiClient apiClient
  525. */
  526. public function __construct(apiClient $apiClient) {
  527. $this->rpcPath = '/rpc';
  528. $this->restBasePath = '/books/v1/';
  529. $this->version = 'v1';
  530. $this->serviceName = 'books';
  531. $apiClient->addService($this->serviceName, $this->version);
  532. $this->bookshelves = new BookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"country": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.bookshelves.list", "httpMethod": "GET", "path": "users/{userId}/bookshelves", "response": {"$ref": "Bookshelves"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"country": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}, "shelf": {"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));
  533. $this->bookshelves_volumes = new BookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"country": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "0", "type": "integer", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"format": "uint32", "minimum": "0", "type": "integer", "location": "query"}, "shelf": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "books.bookshelves.volumes.list", "httpMethod": "GET", "path": "users/{userId}/bookshelves/{shelf}/volumes", "response": {"$ref": "Volumes"}}}}', true));
  534. $this->myconfig = new MyconfigServiceResource($this, $this->serviceName, 'myconfig', json_decode('{"methods": {"releaseDownloadAccess": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "country": {"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": {"nonce": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "country": {"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"}, "country": {"type": "string", "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));
  535. $this->volumes = new 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"}, "filter": {"enum": ["ebooks", "free-ebooks", "full", "paid-ebooks", "partial"], "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"}, "country": {"type": "string", "location": "query"}, "printType": {"enum": ["all", "books", "magazines"], "type": "string", "location": "query"}, "maxResults": {"format": "uint32", "maximum": "40", "minimum": "0", "location": "query", "type": "integer"}, "q": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"format": "uint32", "minimum": "0", "type": "integer", "location": "query"}, "download": {"enum": ["epub"], "type": "string", "location": "query"}, "partner": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "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"}, "source": {"type": "string", "location": "query"}, "projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "country": {"type": "string", "location": "query"}}, "id": "books.volumes.get", "httpMethod": "GET", "path": "volumes/{volumeId}", "response": {"$ref": "Volume"}}}}', true));
  536. $this->mylibrary = new MylibraryServiceResource($this, $this->serviceName, 'mylibrary', json_decode('{}', true));
  537. $this->mylibrary_bookshelves = new MylibraryBookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"clearVolumes": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"country": {"type": "string", "location": "query"}, "shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST", "path": "mylibrary/bookshelves/{shelf}/clearVolumes", "id": "books.mylibrary.bookshelves.clearVolumes"}, "removeVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"country": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST", "path": "mylibrary/bookshelves/{shelf}/removeVolume", "id": "books.mylibrary.bookshelves.removeVolume"}, "list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"country": {"type": "string", "location": "query"}, "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"], "parameters": {"country": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST", "path": "mylibrary/bookshelves/{shelf}/addVolume", "id": "books.mylibrary.bookshelves.addVolume"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"country": {"type": "string", "location": "query"}, "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"}}}}', true));
  538. $this->mylibrary_annotations = new MylibraryAnnotationsServiceResource($this, $this->serviceName, 'annotations', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"country": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "request": {"$ref": "Annotation"}, "id": "books.mylibrary.annotations.insert", "httpMethod": "POST", "path": "mylibrary/annotations", "response": {"$ref": "Annotation"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"country": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "DELETE", "path": "mylibrary/annotations/{annotationId}", "id": "books.mylibrary.annotations.delete"}, "list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "country": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "maximum": "40", "minimum": "0", "location": "query", "type": "integer"}, "source": {"type": "string", "location": "query"}, "pageIds": {"repeated": true, "type": "string", "location": "query"}, "contentVersion": {"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": {"country": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "request": {"$ref": "Annotation"}, "id": "books.mylibrary.annotations.update", "httpMethod": "PUT", "path": "mylibrary/annotations/{annotationId}", "response": {"$ref": "Annotation"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"country": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.mylibrary.annotations.get", "httpMethod": "GET", "path": "mylibrary/annotations/{annotationId}", "response": {"$ref": "Annotation"}}}}', true));
  539. }
  540. }
  541. class Annotation extends apiModel {
  542. public $kind;
  543. public $updated;
  544. public $created;
  545. public $beforeSelectedText;
  546. protected $__currentVersionRangesType = 'AnnotationCurrentVersionRanges';
  547. protected $__currentVersionRangesDataType = '';
  548. public $currentVersionRanges;
  549. public $afterSelectedText;
  550. protected $__clientVersionRangesType = 'AnnotationClientVersionRanges';
  551. protected $__clientVersionRangesDataType = '';
  552. public $clientVersionRanges;
  553. public $volumeId;
  554. public $pageIds;
  555. public $layerId;
  556. public $selectedText;
  557. public $highlightStyle;
  558. public $data;
  559. public $id;
  560. public $selfLink;
  561. public function setKind($kind) {
  562. $this->kind = $kind;
  563. }
  564. public function getKind() {
  565. return $this->kind;
  566. }
  567. public function setUpdated($updated) {
  568. $this->updated = $updated;
  569. }
  570. public function getUpdated() {
  571. return $this->updated;
  572. }
  573. public function setCreated($created) {
  574. $this->created = $created;
  575. }
  576. public function getCreated() {
  577. return $this->created;
  578. }
  579. public function setBeforeSelectedText($beforeSelectedText) {
  580. $this->beforeSelectedText = $beforeSelectedText;
  581. }
  582. public function getBeforeSelectedText() {
  583. return $this->beforeSelectedText;
  584. }
  585. public function setCurrentVersionRanges(AnnotationCurrentVersionRanges $currentVersionRanges) {
  586. $this->currentVersionRanges = $currentVersionRanges;
  587. }
  588. public function getCurrentVersionRanges() {
  589. return $this->currentVersionRanges;
  590. }
  591. public function setAfterSelectedText($afterSelectedText) {
  592. $this->afterSelectedText = $afterSelectedText;
  593. }
  594. public function getAfterSelectedText() {
  595. return $this->afterSelectedText;
  596. }
  597. public function setClientVersionRanges(AnnotationClientVersionRanges $clientVersionRanges) {
  598. $this->clientVersionRanges = $clientVersionRanges;
  599. }
  600. public function getClientVersionRanges() {
  601. return $this->clientVersionRanges;
  602. }
  603. public function setVolumeId($volumeId) {
  604. $this->volumeId = $volumeId;
  605. }
  606. public function getVolumeId() {
  607. return $this->volumeId;
  608. }
  609. public function setPageIds(/* array(string) */ $pageIds) {
  610. $this->assertIsArray($pageIds, 'string', __METHOD__);
  611. $this->pageIds = $pageIds;
  612. }
  613. public function getPageIds() {
  614. return $this->pageIds;
  615. }
  616. public function setLayerId($layerId) {
  617. $this->layerId = $layerId;
  618. }
  619. public function getLayerId() {
  620. return $this->layerId;
  621. }
  622. public function setSelectedText($selectedText) {
  623. $this->selectedText = $selectedText;
  624. }
  625. public function getSelectedText() {
  626. return $this->selectedText;
  627. }
  628. public function setHighlightStyle($highlightStyle) {
  629. $this->highlightStyle = $highlightStyle;
  630. }
  631. public function getHighlightStyle() {
  632. return $this->highlightStyle;
  633. }
  634. public function setData($data) {
  635. $this->data = $data;
  636. }
  637. public function getData() {
  638. return $this->data;
  639. }
  640. public function setId($id) {
  641. $this->id = $id;
  642. }
  643. public function getId() {
  644. return $this->id;
  645. }
  646. public function setSelfLink($selfLink) {
  647. $this->selfLink = $selfLink;
  648. }
  649. public function getSelfLink() {
  650. return $this->selfLink;
  651. }
  652. }
  653. class AnnotationClientVersionRanges extends apiModel {
  654. public $contentVersion;
  655. protected $__gbTextRangeType = 'BooksAnnotationsRange';
  656. protected $__gbTextRangeDataType = '';
  657. public $gbTextRange;
  658. protected $__cfiRangeType = 'BooksAnnotationsRange';
  659. protected $__cfiRangeDataType = '';
  660. public $cfiRange;
  661. protected $__gbImageRangeType = 'BooksAnnotationsRange';
  662. protected $__gbImageRangeDataType = '';
  663. public $gbImageRange;
  664. public function setContentVersion($contentVersion) {
  665. $this->contentVersion = $contentVersion;
  666. }
  667. public function getContentVersion() {
  668. return $this->contentVersion;
  669. }
  670. public function setGbTextRange(BooksAnnotationsRange $gbTextRange) {
  671. $this->gbTextRange = $gbTextRange;
  672. }
  673. public function getGbTextRange() {
  674. return $this->gbTextRange;
  675. }
  676. public function setCfiRange(BooksAnnotationsRange $cfiRange) {
  677. $this->cfiRange = $cfiRange;
  678. }
  679. public function getCfiRange() {
  680. return $this->cfiRange;
  681. }
  682. public function setGbImageRange(BooksAnnotationsRange $gbImageRange) {
  683. $this->gbImageRange = $gbImageRange;
  684. }
  685. public function getGbImageRange() {
  686. return $this->gbImageRange;
  687. }
  688. }
  689. class AnnotationCurrentVersionRanges extends apiModel {
  690. public $contentVersion;
  691. protected $__gbTextRangeType = 'BooksAnnotationsRange';
  692. protected $__gbTextRangeDataType = '';
  693. public $gbTextRange;
  694. protected $__cfiRangeType = 'BooksAnnotationsRange';
  695. protected $__cfiRangeDataType = '';
  696. public $cfiRange;
  697. protected $__gbImageRangeType = 'BooksAnnotationsRange';
  698. protected $__gbImageRangeDataType = '';
  699. public $gbImageRange;
  700. public function setContentVersion($contentVersion) {
  701. $this->contentVersion = $contentVersion;
  702. }
  703. public function getContentVersion() {
  704. return $this->contentVersion;
  705. }
  706. public function setGbTextRange(BooksAnnotationsRange $gbTextRange) {
  707. $this->gbTextRange = $gbTextRange;
  708. }
  709. public function getGbTextRange() {
  710. return $this->gbTextRange;
  711. }
  712. public function setCfiRange(BooksAnnotationsRange $cfiRange) {
  713. $this->cfiRange = $cfiRange;
  714. }
  715. public function getCfiRange() {
  716. return $this->cfiRange;
  717. }
  718. public function setGbImageRange(BooksAnnotationsRange $gbImageRange) {
  719. $this->gbImageRange = $gbImageRange;
  720. }
  721. public function getGbImageRange() {
  722. return $this->gbImageRange;
  723. }
  724. }
  725. class Annotations extends apiModel {
  726. public $nextPageToken;
  727. protected $__itemsType = 'Annotation';
  728. protected $__itemsDataType = 'array';
  729. public $items;
  730. public $kind;
  731. public $totalItems;
  732. public function setNextPageToken($nextPageToken) {
  733. $this->nextPageToken = $nextPageToken;
  734. }
  735. public function getNextPageToken() {
  736. return $this->nextPageToken;
  737. }
  738. public function setItems(/* array(Annotation) */ $items) {
  739. $this->assertIsArray($items, 'Annotation', __METHOD__);
  740. $this->items = $items;
  741. }
  742. public function getItems() {
  743. return $this->items;
  744. }
  745. public function setKind($kind) {
  746. $this->kind = $kind;
  747. }
  748. public function getKind() {
  749. return $this->kind;
  750. }
  751. public function setTotalItems($totalItems) {
  752. $this->totalItems = $totalItems;
  753. }
  754. public function getTotalItems() {
  755. return $this->totalItems;
  756. }
  757. }
  758. class BooksAnnotationsRange extends apiModel {
  759. public $startPosition;
  760. public $endPosition;
  761. public $startOffset;
  762. public $endOffset;
  763. public function setStartPosition($startPosition) {
  764. $this->startPosition = $startPosition;
  765. }
  766. public function getStartPosition() {
  767. return $this->startPosition;
  768. }
  769. public function setEndPosition($endPosition) {
  770. $this->endPosition = $endPosition;
  771. }
  772. public function getEndPosition() {
  773. return $this->endPosition;
  774. }
  775. public function setStartOffset($startOffset) {
  776. $this->startOffset = $startOffset;
  777. }
  778. public function getStartOffset() {
  779. return $this->startOffset;
  780. }
  781. public function setEndOffset($endOffset) {
  782. $this->endOffset = $endOffset;
  783. }
  784. public function getEndOffset() {
  785. return $this->endOffset;
  786. }
  787. }
  788. class Bookshelf extends apiModel {
  789. public $kind;
  790. public $description;
  791. public $created;
  792. public $volumeCount;
  793. public $title;
  794. public $updated;
  795. public $access;
  796. public $volumesLastUpdated;
  797. public $id;
  798. public $selfLink;
  799. public function setKind($kind) {
  800. $this->kind = $kind;
  801. }
  802. public function getKind() {
  803. return $this->kind;
  804. }
  805. public function setDescription($description) {
  806. $this->description = $description;
  807. }
  808. public function getDescription() {
  809. return $this->description;
  810. }
  811. public function setCreated($created) {
  812. $this->created = $created;
  813. }
  814. public function getCreated() {
  815. return $this->created;
  816. }
  817. public function setVolumeCount($volumeCount) {
  818. $this->volumeCount = $volumeCount;
  819. }
  820. public function getVolumeCount() {
  821. return $this->volumeCount;
  822. }
  823. public function setTitle($title) {
  824. $this->title = $title;
  825. }
  826. public function getTitle() {
  827. return $this->title;
  828. }
  829. public function setUpdated($updated) {
  830. $this->updated = $updated;
  831. }
  832. public function getUpdated() {
  833. return $this->updated;
  834. }
  835. public function setAccess($access) {
  836. $this->access = $access;
  837. }
  838. public function getAccess() {
  839. return $this->access;
  840. }
  841. public function setVolumesLastUpdated($volumesLastUpdated) {
  842. $this->volumesLastUpdated = $volumesLastUpdated;
  843. }
  844. public function getVolumesLastUpdated() {
  845. return $this->volumesLastUpdated;
  846. }
  847. public function setId($id) {
  848. $this->id = $id;
  849. }
  850. public function getId() {
  851. return $this->id;
  852. }
  853. public function setSelfLink($selfLink) {
  854. $this->selfLink = $selfLink;
  855. }
  856. public function getSelfLink() {
  857. return $this->selfLink;
  858. }
  859. }
  860. class Bookshelves extends apiModel {
  861. protected $__itemsType = 'Bookshelf';
  862. protected $__itemsDataType = 'array';
  863. public $items;
  864. public $kind;
  865. public function setItems(/* array(Bookshelf) */ $items) {
  866. $this->assertIsArray($items, 'Bookshelf', __METHOD__);
  867. $this->items = $items;
  868. }
  869. public function getItems() {
  870. return $this->items;
  871. }
  872. public function setKind($kind) {
  873. $this->kind = $kind;
  874. }
  875. public function getKind() {
  876. return $this->kind;
  877. }
  878. }
  879. class ConcurrentAccessRestriction extends apiModel {
  880. public $nonce;
  881. public $kind;
  882. public $restricted;
  883. public $volumeId;
  884. public $maxConcurrentDevices;
  885. public $deviceAllowed;
  886. public $source;
  887. public $timeWindowSeconds;
  888. public $signature;
  889. public $reasonCode;
  890. public $message;
  891. public function setNonce($nonce) {
  892. $this->nonce = $nonce;
  893. }
  894. public function getNonce() {
  895. return $this->nonce;
  896. }
  897. public function setKind($kind) {
  898. $this->kind = $kind;
  899. }
  900. public function getKind() {
  901. return $this->kind;
  902. }
  903. public function setRestricted($restricted) {
  904. $this->restricted = $restricted;
  905. }
  906. public function getRestricted() {
  907. return $this->restricted;
  908. }
  909. public function setVolumeId($volumeId) {
  910. $this->volumeId = $volumeId;
  911. }
  912. public function getVolumeId() {
  913. return $this->volumeId;
  914. }
  915. public function setMaxConcurrentDevices($maxConcurrentDevices) {
  916. $this->maxConcurrentDevices = $maxConcurrentDevices;
  917. }
  918. public function getMaxConcurrentDevices() {
  919. return $this->maxConcurrentDevices;
  920. }
  921. public function setDeviceAllowed($deviceAllowed) {
  922. $this->deviceAllowed = $deviceAllowed;
  923. }
  924. public function getDeviceAllowed() {
  925. return $this->deviceAllowed;
  926. }
  927. public function setSource($source) {
  928. $this->source = $source;
  929. }
  930. public function getSource() {
  931. return $this->source;
  932. }
  933. public function setTimeWindowSeconds($timeWindowSeconds) {
  934. $this->timeWindowSeconds = $timeWindowSeconds;
  935. }
  936. public function getTimeWindowSeconds() {
  937. return $this->timeWindowSeconds;
  938. }
  939. public function setSignature($signature) {
  940. $this->signature = $signature;
  941. }
  942. public function getSignature() {
  943. return $this->signature;
  944. }
  945. public function setReasonCode($reasonCode) {
  946. $this->reasonCode = $reasonCode;
  947. }
  948. public function getReasonCode() {
  949. return $this->reasonCode;
  950. }
  951. public function setMessage($message) {
  952. $this->message = $message;
  953. }
  954. public function getMessage() {
  955. return $this->message;
  956. }
  957. }
  958. class DownloadAccessRestriction extends apiModel {
  959. public $nonce;
  960. public $kind;
  961. public $justAcquired;
  962. public $maxDownloadDevices;
  963. public $downloadsAcquired;
  964. public $signature;
  965. public $volumeId;
  966. public $deviceAllowed;
  967. public $source;
  968. public $restricted;
  969. public $reasonCode;
  970. public $message;
  971. public function setNonce($nonce) {
  972. $this->nonce = $nonce;
  973. }
  974. public function getNonce() {
  975. return $this->nonce;
  976. }
  977. public function setKind($kind) {
  978. $this->kind = $kind;
  979. }
  980. public function getKind() {
  981. return $this->kind;
  982. }
  983. public function setJustAcquired($justAcquired) {
  984. $this->justAcquired = $justAcquired;
  985. }
  986. public function getJustAcquired() {
  987. return $this->justAcquired;
  988. }
  989. public function setMaxDownloadDevices($maxDownloadDevices) {
  990. $this->maxDownloadDevices = $maxDownloadDevices;
  991. }
  992. public function getMaxDownloadDevices() {
  993. return $this->maxDownloadDevices;
  994. }
  995. public function setDownloadsAcquired($downloadsAcquired) {
  996. $this->downloadsAcquired = $downloadsAcquired;
  997. }
  998. public function getDownloadsAcquired() {
  999. return $this->downloadsAcquired;
  1000. }
  1001. public function setSignature($signature) {
  1002. $this->signature = $signature;
  1003. }
  1004. public function getSignature() {
  1005. return $this->signature;
  1006. }
  1007. public function setVolumeId($volumeId) {
  1008. $this->volumeId = $volumeId;
  1009. }
  1010. public function getVolumeId() {
  1011. return $this->volumeId;
  1012. }
  1013. public function setDeviceAllowed($deviceAllowed) {
  1014. $this->deviceAllowed = $deviceAllowed;
  1015. }
  1016. public function getDeviceAllowed() {
  1017. return $this->deviceAllowed;
  1018. }
  1019. public function setSource($source) {
  1020. $this->source = $source;
  1021. }
  1022. public function getSource() {
  1023. return $this->source;
  1024. }
  1025. public function setRestricted($restricted) {
  1026. $this->restricted = $restricted;
  1027. }
  1028. public function getRestricted() {
  1029. return $this->restricted;
  1030. }
  1031. public function setReasonCode($reasonCode) {
  1032. $this->reasonCode = $reasonCode;
  1033. }
  1034. public function getReasonCode() {
  1035. return $this->reasonCode;
  1036. }
  1037. public function setMessage($message) {
  1038. $this->message = $message;
  1039. }
  1040. public function getMessage() {
  1041. return $this->message;
  1042. }
  1043. }
  1044. class DownloadAccesses extends apiModel {
  1045. protected $__downloadAccessListType = 'DownloadAccessRestriction';
  1046. protected $__downloadAccessListDataType = 'array';
  1047. public $downloadAccessList;
  1048. public $kind;
  1049. public function setDownloadAccessList(/* array(DownloadAccessRestriction) */ $downloadAccessList) {
  1050. $this->assertIsArray($downloadAccessList, 'DownloadAccessRestriction', __METHOD__);
  1051. $this->downloadAccessList = $downloadAccessList;
  1052. }
  1053. public function getDownloadAccessList() {
  1054. return $this->downloadAccessList;
  1055. }
  1056. public function setKind($kind) {
  1057. $this->kind = $kind;
  1058. }
  1059. public function getKind() {
  1060. return $this->kind;
  1061. }
  1062. }
  1063. class ReadingPosition extends apiModel {
  1064. public $kind;
  1065. public $gbImagePosition;
  1066. public $epubCfiPosition;
  1067. public $updated;
  1068. public $volumeId;
  1069. public $pdfPosition;
  1070. public $gbTextPosition;
  1071. public function setKind($kind) {
  1072. $this->kind = $kind;
  1073. }
  1074. public function getKind() {
  1075. return $this->kind;
  1076. }
  1077. public function setGbImagePosition($gbImagePosition) {
  1078. $this->gbImagePosition = $gbImagePosition;
  1079. }
  1080. public function getGbImagePosition() {
  1081. return $this->gbImagePosition;
  1082. }
  1083. public function setEpubCfiPosition($epubCfiPosition) {
  1084. $this->epubCfiPosition = $epubCfiPosition;
  1085. }
  1086. public function getEpubCfiPosition() {
  1087. return $this->epubCfiPosition;
  1088. }
  1089. public function setUpdated($updated) {
  1090. $this->updated = $updated;
  1091. }
  1092. public function getUpdated() {
  1093. return $this->updated;
  1094. }
  1095. public function setVolumeId($volumeId) {
  1096. $this->volumeId = $volumeId;
  1097. }
  1098. public function getVolumeId() {
  1099. return $this->volumeId;
  1100. }
  1101. public function setPdfPosition($pdfPosition) {
  1102. $this->pdfPosition = $pdfPosition;
  1103. }
  1104. public function getPdfPosition() {
  1105. return $this->pdfPosition;
  1106. }
  1107. public function setGbTextPosition($gbTextPosition) {
  1108. $this->gbTextPosition = $gbTextPosition;
  1109. }
  1110. public function getGbTextPosition() {
  1111. return $this->gbTextPosition;
  1112. }
  1113. }
  1114. class RequestAccess extends apiModel {
  1115. protected $__downloadAccessType = 'DownloadAccessRestriction';
  1116. protected $__downloadAccessDataType = '';
  1117. public $downloadAccess;
  1118. public $kind;
  1119. protected $__concurrentAccessType = 'ConcurrentAccessRestriction';
  1120. protected $__concurrentAccessDataType = '';
  1121. public $concurrentAccess;
  1122. public function setDownloadAccess(DownloadAccessRestriction $downloadAccess) {
  1123. $this->downloadAccess = $downloadAccess;
  1124. }
  1125. public function getDownloadAccess() {
  1126. return $this->downloadAccess;
  1127. }
  1128. public function setKind($kind) {
  1129. $this->kind = $kind;
  1130. }
  1131. public function getKind() {
  1132. return $this->kind;
  1133. }
  1134. public function setConcurrentAccess(ConcurrentAccessRestriction $concurrentAccess) {
  1135. $this->concurrentAccess = $concurrentAccess;
  1136. }
  1137. public function getConcurrentAccess() {
  1138. return $this->concurrentAccess;
  1139. }
  1140. }
  1141. class Review extends apiModel {
  1142. public $rating;
  1143. public $kind;
  1144. protected $__authorType = 'ReviewAuthor';
  1145. protected $__authorDataType = '';
  1146. public $author;
  1147. public $title;
  1148. public $volumeId;
  1149. public $content;
  1150. protected $__sourceType = 'ReviewSource';
  1151. protected $__sourceDataType = '';
  1152. public $source;
  1153. public $date;
  1154. public $type;
  1155. public $fullTextUrl;
  1156. public function setRating($rating) {
  1157. $this->rating = $rating;
  1158. }
  1159. public function getRating() {
  1160. return $this->rating;
  1161. }
  1162. public function setKind($kind) {
  1163. $this->kind = $kind;
  1164. }
  1165. public function getKind() {
  1166. return $this->kind;
  1167. }
  1168. public function setAuthor(ReviewAuthor $author) {
  1169. $this->author = $author;
  1170. }
  1171. public function getAuthor() {
  1172. return $this->author;
  1173. }
  1174. public function setTitle($title) {
  1175. $this->title = $title;
  1176. }
  1177. public function getTitle() {
  1178. return $this->title;
  1179. }
  1180. public function setVolumeId($volumeId) {
  1181. $this->volumeId = $volumeId;
  1182. }
  1183. public function getVolumeId() {
  1184. return $this->volumeId;
  1185. }
  1186. public function setContent($content) {
  1187. $this->content = $content;
  1188. }
  1189. public function getContent() {
  1190. return $this->content;
  1191. }
  1192. public function setSource(ReviewSource $source) {
  1193. $this->source = $source;
  1194. }
  1195. public function getSource() {
  1196. return $this->source;
  1197. }
  1198. public function setDate($date) {
  1199. $this->date = $date;
  1200. }
  1201. public function getDate() {
  1202. return $this->date;
  1203. }
  1204. public function setType($type) {
  1205. $this->type = $type;
  1206. }
  1207. public function getType() {
  1208. return $this->type;
  1209. }
  1210. public function setFullTextUrl($fullTextUrl) {
  1211. $this->fullTextUrl = $fullTextUrl;
  1212. }
  1213. public function getFullTextUrl() {
  1214. return $this->fullTextUrl;
  1215. }
  1216. }
  1217. class ReviewAuthor extends apiModel {
  1218. public $displayName;
  1219. public function setDisplayName($displayName) {
  1220. $this->displayName = $displayName;
  1221. }
  1222. public function getDisplayName() {
  1223. return $this->displayName;
  1224. }
  1225. }
  1226. class ReviewSource extends apiModel {
  1227. public $extraDescription;
  1228. public $url;
  1229. public $description;
  1230. public function setExtraDescription($extraDescription) {
  1231. $this->extraDescription = $extraDescription;
  1232. }
  1233. public function getExtraDescription() {
  1234. return $this->extraDescription;
  1235. }
  1236. public function setUrl($url) {
  1237. $this->url = $url;
  1238. }
  1239. public function getUrl() {
  1240. return $this->url;
  1241. }
  1242. public function setDescription($description) {
  1243. $this->description = $description;
  1244. }
  1245. public function getDescription() {
  1246. return $this->description;
  1247. }
  1248. }
  1249. class Volume extends apiModel {
  1250. public $kind;
  1251. protected $__accessInfoType = 'VolumeAccessInfo';
  1252. protected $__accessInfoDataType = '';
  1253. public $accessInfo;
  1254. protected $__saleInfoType = 'VolumeSaleInfo';
  1255. protected $__saleInfoDataType = '';
  1256. public $saleInfo;
  1257. public $etag;
  1258. protected $__userInfoType = 'VolumeUserInfo';
  1259. protected $__userInfoDataType = '';
  1260. public $userInfo;
  1261. protected $__volumeInfoType = 'VolumeVolumeInfo';
  1262. protected $__volumeInfoDataType = '';
  1263. public $volumeInfo;
  1264. public $id;
  1265. public $selfLink;
  1266. public function setKind($kind) {
  1267. $this->kind = $kind;
  1268. }
  1269. public function getKind() {
  1270. return $this->kind;
  1271. }
  1272. public function setAccessInfo(VolumeAccessInfo $accessInfo) {
  1273. $this->accessInfo = $accessInfo;
  1274. }
  1275. public function getAccessInfo() {
  1276. return $this->accessInfo;
  1277. }
  1278. public function setSaleInfo(VolumeSaleInfo $saleInfo) {
  1279. $this->saleInfo = $saleInfo;
  1280. }
  1281. public function getSaleInfo() {
  1282. return $this->saleInfo;
  1283. }
  1284. public function setEtag($etag) {
  1285. $this->etag = $etag;
  1286. }
  1287. public function getEtag() {
  1288. return $this->etag;
  1289. }
  1290. public function setUserInfo(VolumeUserInfo $userInfo) {
  1291. $this->userInfo = $userInfo;
  1292. }
  1293. public function getUserInfo() {
  1294. return $this->userInfo;
  1295. }
  1296. public function setVolumeInfo(VolumeVolumeInfo $volumeInfo) {
  1297. $this->volumeInfo = $volumeInfo;
  1298. }
  1299. public function getVolumeInfo() {
  1300. return $this->volumeInfo;
  1301. }
  1302. public function setId($id) {
  1303. $this->id = $id;
  1304. }
  1305. public function getId() {
  1306. return $this->id;
  1307. }
  1308. public function setSelfLink($selfLink) {
  1309. $this->selfLink = $selfLink;
  1310. }
  1311. public function getSelfLink() {
  1312. return $this->selfLink;
  1313. }
  1314. }
  1315. class VolumeAccessInfo extends apiModel {
  1316. public $publicDomain;
  1317. public $embeddable;
  1318. protected $__downloadAccessType = 'DownloadAccessRestriction';
  1319. protected $__downloadAccessDataType = '';
  1320. public $downloadAccess;
  1321. public $country;
  1322. public $textToSpeechPermission;
  1323. protected $__pdfType = 'VolumeAccessInfoPdf';
  1324. protected $__pdfDataType = '';
  1325. public $pdf;
  1326. public $viewability;
  1327. protected $__epubType = 'VolumeAccessInfoEpub';
  1328. protected $__epubDataType = '';
  1329. public $epub;
  1330. public $accessViewStatus;
  1331. public function setPublicDomain($publicDomain) {
  1332. $this->publicDomain = $publicDomain;
  1333. }
  1334. public function getPublicDomain() {
  1335. return $this->publicDomain;
  1336. }
  1337. public function setEmbeddable($embeddable) {
  1338. $this->embeddable = $embeddable;
  1339. }
  1340. public function getEmbeddable() {
  1341. return $this->embeddable;
  1342. }
  1343. public function setDownloadAccess(DownloadAccessRestriction $downloadAccess) {
  1344. $this->downloadAccess = $downloadAccess;
  1345. }
  1346. public function getDownloadAccess() {
  1347. return $this->downloadAccess;
  1348. }
  1349. public function setCountry($country) {
  1350. $this->country = $country;
  1351. }
  1352. public function getCountry() {
  1353. return $this->country;
  1354. }
  1355. public function setTextToSpeechPermission($textToSpeechPermission) {
  1356. $this->textToSpeechPermission = $textToSpeechPermission;
  1357. }
  1358. public function getTextToSpeechPermission() {
  1359. return $this->textToSpeechPermission;
  1360. }
  1361. public function setPdf(VolumeAccessInfoPdf $pdf) {
  1362. $this->pdf = $pdf;
  1363. }
  1364. public function getPdf() {
  1365. return $this->pdf;
  1366. }
  1367. public function setViewability($viewability) {
  1368. $this->viewability = $viewability;
  1369. }
  1370. public function getViewability() {
  1371. return $this->viewability;
  1372. }
  1373. public function setEpub(VolumeAccessInfoEpub $epub) {
  1374. $this->epub = $epub;
  1375. }
  1376. public function getEpub() {
  1377. return $this->epub;
  1378. }
  1379. public function setAccessViewStatus($accessViewStatus) {
  1380. $this->accessViewStatus = $accessViewStatus;
  1381. }
  1382. public function getAccessViewStatus() {
  1383. return $this->accessViewStatus;
  1384. }
  1385. }
  1386. class VolumeAccessInfoEpub extends apiModel {
  1387. public $downloadLink;
  1388. public $acsTokenLink;
  1389. public function setDownloadLink($downloadLink) {
  1390. $this->downloadLink = $downloadLink;
  1391. }
  1392. public function getDownloadLink() {
  1393. return $this->downloadLink;
  1394. }
  1395. public function setAcsTokenLink($acsTokenLink) {
  1396. $this->acsTokenLink = $acsTokenLink;
  1397. }
  1398. public function getAcsTokenLink() {
  1399. return $this->acsTokenLink;
  1400. }
  1401. }
  1402. class VolumeAccessInfoPdf extends apiModel {
  1403. public $downloadLink;
  1404. public $acsTokenLink;
  1405. public function setDownloadLink($downloadLink) {
  1406. $this->downloadLink = $downloadLink;
  1407. }
  1408. public function getDownloadLink() {
  1409. return $this->downloadLink;
  1410. }
  1411. public function setAcsTokenLink($acsTokenLink) {
  1412. $this->acsTokenLink = $acsTokenLink;
  1413. }
  1414. public function getAcsTokenLink() {
  1415. return $this->acsTokenLink;
  1416. }
  1417. }
  1418. class VolumeSaleInfo extends apiModel {
  1419. public $country;
  1420. protected $__retailPriceType = 'VolumeSaleInfoRetailPrice';
  1421. protected $__retailPriceDataType = '';
  1422. public $retailPrice;
  1423. public $isEbook;
  1424. public $saleability;
  1425. public $buyLink;
  1426. public $onSaleDate;
  1427. protected $__listPriceType = 'VolumeSaleInfoListPrice';
  1428. protected $__listPriceDataType = '';
  1429. public $listPrice;
  1430. public function setCountry($country) {
  1431. $this->country = $country;
  1432. }
  1433. public function getCountry() {
  1434. return $this->country;
  1435. }
  1436. public function setRetailPrice(VolumeSaleInfoRetailPrice $retailPrice) {
  1437. $this->retailPrice = $retailPrice;
  1438. }
  1439. public function getRetailPrice() {
  1440. return $this->retailPrice;
  1441. }
  1442. public function setIsEbook($isEbook) {
  1443. $this->isEbook = $isEbook;
  1444. }
  1445. public function getIsEbook() {
  1446. return $this->isEbook;
  1447. }
  1448. public function setSaleability($saleability) {
  1449. $this->saleability = $saleability;
  1450. }
  1451. public function getSaleability() {
  1452. return $this->saleability;
  1453. }
  1454. public function setBuyLink($buyLink) {
  1455. $this->buyLink = $buyLink;
  1456. }
  1457. public function getBuyLink() {
  1458. return $this->buyLink;
  1459. }
  1460. public function setOnSaleDate($onSaleDate) {
  1461. $this->onSaleDate = $onSaleDate;
  1462. }
  1463. public function getOnSaleDate() {
  1464. return $this->onSaleDate;
  1465. }
  1466. public function setListPrice(VolumeSaleInfoListPrice $listPrice) {
  1467. $this->listPrice = $listPrice;
  1468. }
  1469. public function getListPrice() {
  1470. return $this->listPrice;
  1471. }
  1472. }
  1473. class VolumeSaleInfoListPrice extends apiModel {
  1474. public $amount;
  1475. public $currencyCode;
  1476. public function setAmount($amount) {
  1477. $this->amount = $amount;
  1478. }
  1479. public function getAmount() {
  1480. return $this->amount;
  1481. }
  1482. public function setCurrencyCode($currencyCode) {
  1483. $this->currencyCode = $currencyCode;
  1484. }
  1485. public function getCurrencyCode() {
  1486. return $this->currencyCode;
  1487. }
  1488. }
  1489. class VolumeSaleInfoRetailPrice extends apiModel {
  1490. public $amount;
  1491. public $currencyCode;
  1492. public function setAmount($amount) {
  1493. $this->amount = $amount;
  1494. }
  1495. public function getAmount() {
  1496. return $this->amount;
  1497. }
  1498. public function setCurrencyCode($currencyCode) {
  1499. $this->currencyCode = $currencyCode;
  1500. }
  1501. public function getCurrencyCode() {
  1502. return $this->currencyCode;
  1503. }
  1504. }
  1505. class VolumeUserInfo extends apiModel {
  1506. public $updated;
  1507. public $isPreordered;
  1508. public $isPurchased;
  1509. protected $__readingPositionType = 'ReadingPosition';
  1510. protected $__readingPositionDataType = '';
  1511. public $readingPosition;
  1512. protected $__reviewType = 'Review';
  1513. protected $__reviewDataType = '';
  1514. public $review;
  1515. public function setUpdated($updated) {
  1516. $this->updated = $updated;
  1517. }
  1518. public function getUpdated() {
  1519. return $this->updated;
  1520. }
  1521. public function setIsPreordered($isPreordered) {
  1522. $this->isPreordered = $isPreordered;
  1523. }
  1524. public function getIsPreordered() {
  1525. return $this->isPreordered;
  1526. }
  1527. public function setIsPurchased($isPurchased) {
  1528. $this->isPurchased = $isPurchased;
  1529. }
  1530. public function getIsPurchased() {
  1531. return $this->isPurchased;
  1532. }
  1533. public function setReadingPosition(ReadingPosition $readingPosition) {
  1534. $this->readingPosition = $readingPosition;
  1535. }
  1536. public function getReadingPosition() {
  1537. return $this->readingPosition;
  1538. }
  1539. public function setReview(Review $review) {
  1540. $this->review = $review;
  1541. }
  1542. public function getReview() {
  1543. return $this->review;
  1544. }
  1545. }
  1546. class VolumeVolumeInfo extends apiModel {
  1547. public $publisher;
  1548. public $subtitle;
  1549. public $description;
  1550. public $language;
  1551. public $pageCount;
  1552. protected $__imageLinksType = 'VolumeVolumeInfoImageLinks';
  1553. protected $__imageLinksDataType = '';
  1554. public $imageLinks;
  1555. public $publishedDate;
  1556. public $previewLink;
  1557. public $printType;
  1558. public $ratingsCount;
  1559. public $mainCategory;
  1560. protected $__dimensionsType = 'VolumeVolumeInfoDimensions';
  1561. protected $__dimensionsDataType = '';
  1562. public $dimensions;
  1563. public $contentVersion;
  1564. protected $__industryIdentifiersType = 'VolumeVolumeInfoIndustryIdentifiers';
  1565. protected $__industryIdentifiersDataType = 'array';
  1566. public $industryIdentifiers;
  1567. public $authors;
  1568. public $title;
  1569. public $canonicalVolumeLink;
  1570. public $infoLink;
  1571. public $categories;
  1572. public $averageRating;
  1573. public function setPublisher($publisher) {
  1574. $this->publisher = $publisher;
  1575. }
  1576. public function getPublisher() {
  1577. return $this->publisher;
  1578. }
  1579. public function setSubtitle($subtitle) {
  1580. $this->subtitle = $subtitle;
  1581. }
  1582. public function getSubtitle() {
  1583. return $this->subtitle;
  1584. }
  1585. public function setDescription($description) {
  1586. $this->description = $description;
  1587. }
  1588. public function getDescription() {
  1589. return $this->description;
  1590. }
  1591. public function setLanguage($language) {
  1592. $this->language = $language;
  1593. }
  1594. public function getLanguage() {
  1595. return $this->language;
  1596. }
  1597. public function setPageCount($pageCount) {
  1598. $this->pageCount = $pageCount;
  1599. }
  1600. public function getPageCount() {
  1601. return $this->pageCount;
  1602. }
  1603. public function setImageLinks(VolumeVolumeInfoImageLinks $imageLinks) {
  1604. $this->imageLinks = $imageLinks;
  1605. }
  1606. public function getImageLinks() {
  1607. return $this->imageLinks;
  1608. }
  1609. public function setPublishedDate($publishedDate) {
  1610. $this->publishedDate = $publishedDate;
  1611. }
  1612. public function getPublishedDate() {
  1613. return $this->publishedDate;
  1614. }
  1615. public function setPreviewLink($previewLink) {
  1616. $this->previewLink = $previewLink;
  1617. }
  1618. public function getPreviewLink() {
  1619. return $this->previewLink;
  1620. }
  1621. public function setPrintType($printType) {
  1622. $this->printType = $printType;
  1623. }
  1624. public function getPrintType() {
  1625. return $this->printType;
  1626. }
  1627. public function setRatingsCount($ratingsCount) {
  1628. $this->ratingsCount = $ratingsCount;
  1629. }
  1630. public function getRatingsCount() {
  1631. return $this->ratingsCount;
  1632. }
  1633. public function setMainCategory($mainCategory) {
  1634. $this->mainCategory = $mainCategory;
  1635. }
  1636. public function getMainCategory() {
  1637. return $this->mainCategory;
  1638. }
  1639. public function setDimensions(VolumeVolumeInfoDimensions $dimensions) {
  1640. $this->dimensions = $dimensions;
  1641. }
  1642. public function getDimensions() {
  1643. return $this->dimensions;
  1644. }
  1645. public function setContentVersion($contentVersion) {
  1646. $this->contentVersion = $contentVersion;
  1647. }
  1648. public function getContentVersion() {
  1649. return $this->contentVersion;
  1650. }
  1651. public function setIndustryIdentifiers(/* array(VolumeVolumeInfoIndustryIdentifiers) */ $industryIdentifiers) {
  1652. $this->assertIsArray($industryIdentifiers, 'VolumeVolumeInfoIndustryIdentifiers', __METHOD__);
  1653. $this->industryIdentifiers = $industryIdentifiers;
  1654. }
  1655. public function getIndustryIdentifiers() {
  1656. return $this->industryIdentifiers;
  1657. }
  1658. public function setAuthors(/* array(string) */ $authors) {
  1659. $this->assertIsArray($authors, 'string', __METHOD__);
  1660. $this->authors = $authors;
  1661. }
  1662. public function getAuthors() {
  1663. return $this->authors;
  1664. }
  1665. public function setTitle($title) {
  1666. $this->title = $title;
  1667. }
  1668. public function getTitle() {
  1669. return $this->title;
  1670. }
  1671. public function setCanonicalVolumeLink($canonicalVolumeLink) {
  1672. $this->canonicalVolumeLink = $canonicalVolumeLink;
  1673. }
  1674. public function getCanonicalVolumeLink() {
  1675. return $this->canonicalVolumeLink;
  1676. }
  1677. public function setInfoLink($infoLink) {
  1678. $this->infoLink = $infoLink;
  1679. }
  1680. public function getInfoLink() {
  1681. return $this->infoLink;
  1682. }
  1683. public function setCategories(/* array(string) */ $categories) {
  1684. $this->assertIsArray($categories, 'string', __METHOD__);
  1685. $this->categories = $categories;
  1686. }
  1687. public function getCategories() {
  1688. return $this->categories;
  1689. }
  1690. public function setAverageRating($averageRating) {
  1691. $this->averageRating = $averageRating;
  1692. }
  1693. public function getAverageRating() {
  1694. return $this->averageRating;
  1695. }
  1696. }
  1697. class VolumeVolumeInfoDimensions extends apiModel {
  1698. public $width;
  1699. public $thickness;
  1700. public $height;
  1701. public function setWidth($width) {
  1702. $this->width = $width;
  1703. }
  1704. public function getWidth() {
  1705. return $this->width;
  1706. }
  1707. public function setThickness($thickness) {
  1708. $this->thickness = $thickness;
  1709. }
  1710. public function getThickness() {
  1711. return $this->thickness;
  1712. }
  1713. public function setHeight($height) {
  1714. $this->height = $height;
  1715. }
  1716. public function getHeight() {
  1717. return $this->height;
  1718. }
  1719. }
  1720. class VolumeVolumeInfoImageLinks extends apiModel {
  1721. public $medium;
  1722. public $smallThumbnail;
  1723. public $large;
  1724. public $extraLarge;
  1725. public $small;
  1726. public $thumbnail;
  1727. public function setMedium($medium) {
  1728. $this->medium = $medium;
  1729. }
  1730. public function getMedium() {
  1731. return $this->medium;
  1732. }
  1733. public function setSmallThumbnail($smallThumbnail) {
  1734. $this->smallThumbnail = $smallThumbnail;
  1735. }
  1736. public function getSmallThumbnail() {
  1737. return $this->smallThumbnail;
  1738. }
  1739. public function setLarge($large) {
  1740. $this->large = $large;
  1741. }
  1742. public function getLarge() {
  1743. return $this->large;
  1744. }
  1745. public function setExtraLarge($extraLarge) {
  1746. $this->extraLarge = $extraLarge;
  1747. }
  1748. public function getExtraLarge() {
  1749. return $this->extraLarge;
  1750. }
  1751. public function setSmall($small) {
  1752. $this->small = $small;
  1753. }
  1754. public function getSmall() {
  1755. return $this->small;
  1756. }
  1757. public function setThumbnail($thumbnail) {
  1758. $this->thumbnail = $thumbnail;
  1759. }
  1760. public function getThumbnail() {
  1761. return $this->thumbnail;
  1762. }
  1763. }
  1764. class VolumeVolumeInfoIndustryIdentifiers extends apiModel {
  1765. public $identifier;
  1766. public $type;
  1767. public function setIdentifier($identifier) {
  1768. $this->identifier = $identifier;
  1769. }
  1770. public function getIdentifier() {
  1771. return $this->identifier;
  1772. }
  1773. public function setType($type) {
  1774. $this->type = $type;
  1775. }
  1776. public function getType() {
  1777. return $this->type;
  1778. }
  1779. }
  1780. class Volumes extends apiModel {
  1781. public $totalItems;
  1782. protected $__itemsType = 'Volume';
  1783. protected $__itemsDataType = 'array';
  1784. public $items;
  1785. public $kind;
  1786. public function setTotalItems($totalItems) {
  1787. $this->totalItems = $totalItems;
  1788. }
  1789. public function getTotalItems() {
  1790. return $this->totalItems;
  1791. }
  1792. public function setItems(/* array(Volume) */ $items) {
  1793. $this->assertIsArray($items, 'Volume', __METHOD__);
  1794. $this->items = $items;
  1795. }
  1796. public function getItems() {
  1797. return $this->items;
  1798. }
  1799. public function setKind($kind) {
  1800. $this->kind = $kind;
  1801. }
  1802. public function getKind() {
  1803. return $this->kind;
  1804. }
  1805. }