PluginProbe
Gianism / 1.1
Gianism v1.1
4.3.0 4.3.1 4.3.2 4.3.3 4.3.4 4.4.0 5.0.0 5.0.1 5.0.2 5.1.0 5.2.1 5.2.2 5.3.0 6.0.0 6.0.1 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 All 65 releases
gianism / sdks / google / contrib / apiBooksService.php

apiBooksService.php in Gianism 1.1, at sdks/google/contrib/apiBooksService.php

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