PageRenderTime 59ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/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

Large files files are truncated, but you can click here to view the full file

  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->cont

Large files files are truncated, but you can click here to view the full file