Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update the Moderator, Prediction, Custom Search, Latitude, and Books …

…service.
  • Loading branch information...
commit e435e3a6d40a3d887b53c2b7e3d79e3f6927eaac 1 parent 6a3e7d1
chirags@google.com authored
1,179 src/contrib/apiBooksService.php
View
@@ -1,6 +1,6 @@
<?php
/*
- * Copyright (c) 2010 Google Inc.
+ * Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
@@ -15,10 +15,191 @@
* the License.
*/
-require_once 'service/apiModel.php';
-require_once 'service/apiService.php';
-require_once 'service/apiServiceRequest.php';
+ /**
+ * The "layers" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new apiBooksService(...);
+ * $layers = $booksService->layers;
+ * </code>
+ */
+ class LayersServiceResource extends apiServiceResource {
+
+
+ /**
+ * List the layer summaries for a volume. (layers.list)
+ *
+ * @param string $volumeId The volume to retrieve layers for.
+ * @param array $optParams Optional parameters. Valid optional parameters are listed below.
+ *
+ * @opt_param string pageToken The value of the nextToken from the previous page.
+ * @opt_param string contentVersion The content version for the requested volume.
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string source String to identify the originator of this request.
+ * @return Layersummaries
+ */
+ public function listLayers($volumeId, $optParams = array()) {
+ $params = array('volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Layersummaries($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Gets the layer summary for a volume. (layers.get)
+ *
+ * @param string $summaryId The ID for the layer to get the summary for.
+ * @param array $optParams Optional parameters. Valid optional parameters are listed below.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ * @return Layersummary
+ */
+ public function get($summaryId, $optParams = array()) {
+ $params = array('summaryId' => $summaryId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Layersummary($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+
+ /**
+ * The "annotationData" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new apiBooksService(...);
+ * $annotationData = $booksService->annotationData;
+ * </code>
+ */
+ class LayersAnnotationDataServiceResource extends apiServiceResource {
+
+
+ /**
+ * Gets the annotation data for a volume and layer. (annotationData.list)
+ *
+ * @param string $volumeId The volume to retrieve annotation data for.
+ * @param string $layerId The ID for the layer to get the annotation data.
+ * @param string $contentVersion The content version for the requested volume.
+ * @param array $optParams Optional parameters. Valid optional parameters are listed below.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
+ * @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string annotationDataId The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set.
+ * @opt_param string pageToken The value of the nextToken from the previous page.
+ * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
+ * @return Annotationsdata
+ */
+ public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = array()) {
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Annotationsdata($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Gets the annotation data. (annotationData.get)
+ *
+ * @param string $volumeId The volume to retrieve annotations for.
+ * @param string $layerId The ID for the layer to get the annotations.
+ * @param string $annotationDataId The ID of the annotation data to retrieve.
+ * @param array $optParams Optional parameters. Valid optional parameters are listed below.
+ *
+ * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
+ * @opt_param int h The requested pixel height for any images. If height is provided width must also be provided.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param int w The requested pixel width for any images. If width is provided height must also be provided.
+ * @return Annotationdata
+ */
+ public function get($volumeId, $layerId, $annotationDataId, $optParams = array()) {
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Annotationdata($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
+ * The "volumeAnnotations" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new apiBooksService(...);
+ * $volumeAnnotations = $booksService->volumeAnnotations;
+ * </code>
+ */
+ class LayersVolumeAnnotationsServiceResource extends apiServiceResource {
+
+
+ /**
+ * Gets the volume annotations for a volume and layer. (volumeAnnotations.list)
+ *
+ * @param string $volumeId The volume to retrieve annotations for.
+ * @param string $layerId The ID for the layer to get the annotations.
+ * @param string $contentVersion The content version for the requested volume.
+ * @param array $optParams Optional parameters. Valid optional parameters are listed below.
+ *
+ * @opt_param bool showDeleted Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
+ * @opt_param string endPosition The end position to end retrieving data from.
+ * @opt_param string endOffset The end offset to end retrieving data from.
+ * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
+ * @opt_param string maxResults Maximum number of results to return
+ * @opt_param string pageToken The value of the nextToken from the previous page.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string startOffset The start offset to start retrieving data from.
+ * @opt_param string startPosition The start position to start retrieving data from.
+ * @return Volumeannotations
+ */
+ public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = array()) {
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('list', array($params));
+ if ($this->useObjects()) {
+ return new Volumeannotations($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Gets the volume annotation. (volumeAnnotations.get)
+ *
+ * @param string $volumeId The volume to retrieve annotations for.
+ * @param string $layerId The ID for the layer to get the annotations.
+ * @param string $annotationId The ID of the volume annotation to retrieve.
+ * @param array $optParams Optional parameters. Valid optional parameters are listed below.
+ *
+ * @opt_param string locale The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
+ * @opt_param string source String to identify the originator of this request.
+ * @return Volumeannotation
+ */
+ public function get($volumeId, $layerId, $annotationId, $optParams = array()) {
+ $params = array('volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Volumeannotation($data);
+ } else {
+ return $data;
+ }
+ }
+ }
/**
* The "bookshelves" collection of methods.
@@ -34,10 +215,9 @@ class BookshelvesServiceResource extends apiServiceResource {
/**
* Retrieves a list of public bookshelves for the specified user. (bookshelves.list)
*
- * @param string $userId Id of user for whom to retrieve bookshelves.
+ * @param string $userId ID of user for whom to retrieve bookshelves.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string source String to identify the originator of this request.
* @return Bookshelves
*/
@@ -52,13 +232,12 @@ public function listBookshelves($userId, $optParams = array()) {
}
}
/**
- * Retrieves a specific bookshelf for the specified user. (bookshelves.get)
+ * Retrieves metadata for a specific bookshelf for the specified user. (bookshelves.get)
*
- * @param string $userId Id of user for whom to retrieve bookshelves.
- * @param string $shelf Id of bookshelf to retrieve.
+ * @param string $userId ID of user for whom to retrieve bookshelves.
+ * @param string $shelf ID of bookshelf to retrieve.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string source String to identify the originator of this request.
* @return Bookshelf
*/
@@ -74,7 +253,6 @@ public function get($userId, $shelf, $optParams = array()) {
}
}
-
/**
* The "volumes" collection of methods.
* Typical usage is:
@@ -89,11 +267,10 @@ class BookshelvesVolumesServiceResource extends apiServiceResource {
/**
* Retrieves volumes in a specific bookshelf for the specified user. (volumes.list)
*
- * @param string $userId Id of user for whom to retrieve bookshelf volumes.
- * @param string $shelf Id of bookshelf to retrieve volumes.
+ * @param string $userId ID of user for whom to retrieve bookshelf volumes.
+ * @param string $shelf ID of bookshelf to retrieve volumes.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
* @opt_param string maxResults Maximum number of results to return
* @opt_param string source String to identify the originator of this request.
@@ -127,11 +304,10 @@ class MyconfigServiceResource extends apiServiceResource {
* Release downloaded content access restriction. (myconfig.releaseDownloadAccess)
*
* @param string $volumeIds The volume(s) to release restrictions for.
- * @param string $cpksver The device/version identifier from which to release the restriction.
+ * @param string $cpksver The device/version ID from which to release the restriction.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
* @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string source String to identify the originator of this request.
* @return DownloadAccesses
*/
@@ -151,11 +327,10 @@ public function releaseDownloadAccess($volumeIds, $cpksver, $optParams = array()
* @param string $source String to identify the originator of this request.
* @param string $volumeId The volume to request concurrent/download restrictions for.
* @param string $nonce The client nonce value.
- * @param string $cpksver The device/version identifier from which to request the restrictions.
+ * @param string $cpksver The device/version ID from which to request the restrictions.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
* @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @return RequestAccess
*/
public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams = array()) {
@@ -174,11 +349,11 @@ public function requestAccess($source, $volumeId, $nonce, $cpksver, $optParams =
*
* @param string $source String to identify the originator of this request.
* @param string $nonce The client nonce value.
- * @param string $cpksver The device/version identifier from which to release the restriction.
+ * @param string $cpksver The device/version ID from which to release the restriction.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
* @opt_param string locale ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
+ * @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
* @opt_param string volumeIds The volume(s) to request download restrictions for.
* @return Volumes
*/
@@ -215,15 +390,14 @@ class VolumesServiceResource extends apiServiceResource {
* @opt_param string projection Restrict information returned to a set of selected fields.
* @opt_param string libraryRestrict Restrict search to this user's library.
* @opt_param string langRestrict Restrict results to books with this language code.
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
+ * @opt_param bool showPreorders Set to true to show books available for preorder. Defaults to false.
* @opt_param string printType Restrict to books or magazines.
* @opt_param string maxResults Maximum number of results to return.
* @opt_param string filter Filter search results.
* @opt_param string source String to identify the originator of this request.
* @opt_param string startIndex Index of the first result to return (starts at 0)
* @opt_param string download Restrict to volumes by download availability.
- * @opt_param string partner Identifier of partner for whom to restrict and brand results.
- * @opt_param bool showPreorders Set to true to show books available for preorder. Defaults to false.
+ * @opt_param string partner Restrict and brand results for partner ID.
* @return Volumes
*/
public function listVolumes($q, $optParams = array()) {
@@ -239,13 +413,12 @@ public function listVolumes($q, $optParams = array()) {
/**
* Gets volume information for a single volume. (volumes.get)
*
- * @param string $volumeId Id of volume to retrieve.
+ * @param string $volumeId ID of volume to retrieve.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string source String to identify the originator of this request.
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
+ * @opt_param string partner Brand results for partner ID.
* @opt_param string projection Restrict information returned to a set of selected fields.
- * @opt_param string partner Identifier of partner for whom to brand results.
+ * @opt_param string source String to identify the originator of this request.
* @return Volume
*/
public function get($volumeId, $optParams = array()) {
@@ -273,7 +446,6 @@ class MylibraryServiceResource extends apiServiceResource {
}
-
/**
* The "bookshelves" collection of methods.
* Typical usage is:
@@ -286,34 +458,52 @@ class MylibraryBookshelvesServiceResource extends apiServiceResource {
/**
- * Clears all volumes from a bookshelf. (bookshelves.clearVolumes)
+ * Removes a volume from a bookshelf. (bookshelves.removeVolume)
*
- * @param string $shelf Id of bookshelf from which to remove a volume.
+ * @param string $shelf ID of bookshelf from which to remove a volume.
+ * @param string $volumeId ID of volume to remove.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string source String to identify the originator of this request.
*/
- public function clearVolumes($shelf, $optParams = array()) {
- $params = array('shelf' => $shelf);
+ public function removeVolume($shelf, $volumeId, $optParams = array()) {
+ $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
$params = array_merge($params, $optParams);
- $data = $this->__call('clearVolumes', array($params));
+ $data = $this->__call('removeVolume', array($params));
return $data;
}
/**
- * Removes a volume from a bookshelf. (bookshelves.removeVolume)
+ * Retrieves metadata for a specific bookshelf belonging to the authenticated user.
+ * (bookshelves.get)
*
- * @param string $shelf Id of bookshelf from which to remove a volume.
- * @param string $volumeId Id of volume to remove.
+ * @param string $shelf ID of bookshelf to retrieve.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string source String to identify the originator of this request.
+ * @return Bookshelf
*/
- public function removeVolume($shelf, $volumeId, $optParams = array()) {
- $params = array('shelf' => $shelf, 'volumeId' => $volumeId);
+ public function get($shelf, $optParams = array()) {
+ $params = array('shelf' => $shelf);
$params = array_merge($params, $optParams);
- $data = $this->__call('removeVolume', array($params));
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new Bookshelf($data);
+ } else {
+ return $data;
+ }
+ }
+ /**
+ * Clears all volumes from a bookshelf. (bookshelves.clearVolumes)
+ *
+ * @param string $shelf ID of bookshelf from which to remove a volume.
+ * @param array $optParams Optional parameters. Valid optional parameters are listed below.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ */
+ public function clearVolumes($shelf, $optParams = array()) {
+ $params = array('shelf' => $shelf);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('clearVolumes', array($params));
return $data;
}
/**
@@ -321,7 +511,6 @@ public function removeVolume($shelf, $volumeId, $optParams = array()) {
*
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string source String to identify the originator of this request.
* @return Bookshelves
*/
@@ -338,11 +527,10 @@ public function listMylibraryBookshelves($optParams = array()) {
/**
* Adds a volume to a bookshelf. (bookshelves.addVolume)
*
- * @param string $shelf Id of bookshelf to which to add a volume.
- * @param string $volumeId Id of volume to add.
+ * @param string $shelf ID of bookshelf to which to add a volume.
+ * @param string $volumeId ID of volume to add.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string source String to identify the originator of this request.
*/
public function addVolume($shelf, $volumeId, $optParams = array()) {
@@ -352,28 +540,23 @@ public function addVolume($shelf, $volumeId, $optParams = array()) {
return $data;
}
/**
- * Retrieves a specific bookshelf belonging to the authenticated user. (bookshelves.get)
+ * Moves a volume within a bookshelf. (bookshelves.moveVolume)
*
- * @param string $shelf Id of bookshelf to retrieve.
+ * @param string $shelf ID of bookshelf with the volume.
+ * @param string $volumeId ID of volume to move.
+ * @param int $volumePosition Position on shelf to move the item (0 puts the item before the current first item, 1 puts it between the first and the second and so on.)
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string source String to identify the originator of this request.
- * @return Bookshelf
*/
- public function get($shelf, $optParams = array()) {
- $params = array('shelf' => $shelf);
+ public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = array()) {
+ $params = array('shelf' => $shelf, 'volumeId' => $volumeId, 'volumePosition' => $volumePosition);
$params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Bookshelf($data);
- } else {
- return $data;
- }
+ $data = $this->__call('moveVolume', array($params));
+ return $data;
}
}
-
/**
* The "volumes" collection of methods.
* Typical usage is:
@@ -388,11 +571,10 @@ class MylibraryBookshelvesVolumesServiceResource extends apiServiceResource {
/**
* Gets volume information for volumes on a bookshelf. (volumes.list)
*
+ * @param string $shelf The bookshelf ID or name retrieve volumes for.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string shelf The bookshelf id or name retrieve volumes for.
* @opt_param string projection Restrict information returned to a set of selected fields.
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults to false.
* @opt_param string maxResults Maximum number of results to return
* @opt_param string q Full-text search query string in this bookshelf.
@@ -400,8 +582,8 @@ class MylibraryBookshelvesVolumesServiceResource extends apiServiceResource {
* @opt_param string startIndex Index of the first element to return (starts at 0)
* @return Volumes
*/
- public function listMylibraryBookshelvesVolumes($optParams = array()) {
- $params = array();
+ public function listMylibraryBookshelvesVolumes($shelf, $optParams = array()) {
+ $params = array('shelf' => $shelf);
$params = array_merge($params, $optParams);
$data = $this->__call('list', array($params));
if ($this->useObjects()) {
@@ -412,6 +594,56 @@ public function listMylibraryBookshelvesVolumes($optParams = array()) {
}
}
/**
+ * The "readingpositions" collection of methods.
+ * Typical usage is:
+ * <code>
+ * $booksService = new apiBooksService(...);
+ * $readingpositions = $booksService->readingpositions;
+ * </code>
+ */
+ class MylibraryReadingpositionsServiceResource extends apiServiceResource {
+
+
+ /**
+ * Sets my reading position information for a volume. (readingpositions.setPosition)
+ *
+ * @param string $volumeId ID of volume for which to update the reading position.
+ * @param string $timestamp RFC 3339 UTC format timestamp associated with this reading position.
+ * @param string $position Position string for the new volume reading position.
+ * @param array $optParams Optional parameters. Valid optional parameters are listed below.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string contentVersion Volume content version for which this reading position applies.
+ * @opt_param string action Action that caused this reading position to be set.
+ */
+ public function setPosition($volumeId, $timestamp, $position, $optParams = array()) {
+ $params = array('volumeId' => $volumeId, 'timestamp' => $timestamp, 'position' => $position);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('setPosition', array($params));
+ return $data;
+ }
+ /**
+ * Retrieves my reading position information for a volume. (readingpositions.get)
+ *
+ * @param string $volumeId ID of volume for which to retrieve a reading position.
+ * @param array $optParams Optional parameters. Valid optional parameters are listed below.
+ *
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string contentVersion Volume content version for which this reading position is requested.
+ * @return ReadingPosition
+ */
+ public function get($volumeId, $optParams = array()) {
+ $params = array('volumeId' => $volumeId);
+ $params = array_merge($params, $optParams);
+ $data = $this->__call('get', array($params));
+ if ($this->useObjects()) {
+ return new ReadingPosition($data);
+ } else {
+ return $data;
+ }
+ }
+ }
+ /**
* The "annotations" collection of methods.
* Typical usage is:
* <code>
@@ -428,7 +660,6 @@ class MylibraryAnnotationsServiceResource extends apiServiceResource {
* @param Annotation $postBody
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string source String to identify the originator of this request.
* @return Annotation
*/
@@ -443,12 +674,11 @@ public function insert(Annotation $postBody, $optParams = array()) {
}
}
/**
- * Gets an annotation by its id. (annotations.get)
+ * Gets an annotation by its ID. (annotations.get)
*
- * @param string $annotationId The annotation identifier for the annotation to retrieve.
+ * @param string $annotationId The ID for the annotation to retrieve.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string source String to identify the originator of this request.
* @return Annotation
*/
@@ -467,14 +697,16 @@ public function get($annotationId, $optParams = array()) {
*
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string source String to identify the originator of this request.
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
+ * @opt_param bool showDeleted Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
+ * @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
+ * @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
* @opt_param string volumeId The volume to restrict annotations to.
* @opt_param string maxResults Maximum number of results to return
* @opt_param string pageToken The value of the nextToken from the previous page.
- * @opt_param string pageIds The page id(s) for the volume that is being queried.
+ * @opt_param string pageIds The page ID(s) for the volume that is being queried.
* @opt_param string contentVersion The content version for the requested volume.
- * @opt_param string layerId The layer id to limit annotation by.
+ * @opt_param string source String to identify the originator of this request.
+ * @opt_param string layerId The layer ID to limit annotation by.
* @return Annotations
*/
public function listMylibraryAnnotations($optParams = array()) {
@@ -490,11 +722,10 @@ public function listMylibraryAnnotations($optParams = array()) {
/**
* Updates an existing annotation. (annotations.update)
*
- * @param string $annotationId The annotation identifier for the annotation to update.
+ * @param string $annotationId The ID for the annotation to update.
* @param Annotation $postBody
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string source String to identify the originator of this request.
* @return Annotation
*/
@@ -511,10 +742,9 @@ public function update($annotationId, Annotation $postBody, $optParams = array()
/**
* Deletes an annotation. (annotations.delete)
*
- * @param string $annotationId The annotation identifier for the annotation to delete.
+ * @param string $annotationId The ID for the annotation to delete.
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
- * @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string source String to identify the originator of this request.
*/
public function delete($annotationId, $optParams = array()) {
@@ -525,8 +755,6 @@ public function delete($annotationId, $optParams = array()) {
}
}
-
-
/**
* Service definition for Books (v1).
*
@@ -542,12 +770,16 @@ public function delete($annotationId, $optParams = array()) {
* @author Google, Inc.
*/
class apiBooksService extends apiService {
+ public $layers;
+ public $layers_annotationData;
+ public $layers_volumeAnnotations;
public $bookshelves;
public $bookshelves_volumes;
public $myconfig;
public $volumes;
- public $mylibrary;
public $mylibrary_bookshelves;
+ public $mylibrary_bookshelves_volumes;
+ public $mylibrary_readingpositions;
public $mylibrary_annotations;
/**
* Constructs the internal representation of the Books service.
@@ -555,19 +787,23 @@ class apiBooksService extends apiService {
* @param apiClient apiClient
*/
public function __construct(apiClient $apiClient) {
- $this->rpcPath = '/rpc';
$this->restBasePath = '/books/v1/';
$this->version = 'v1';
$this->serviceName = 'books';
$apiClient->addService($this->serviceName, $this->version);
- $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));
- $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));
- $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));
- $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));
- $this->mylibrary = new MylibraryServiceResource($this, $this->serviceName, 'mylibrary', json_decode('{}', true));
- $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));
- $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));
+ $this->layers = new LayersServiceResource($this, $this->serviceName, 'layers', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"format": "uint32", "maximum": "40", "minimum": "0", "location": "query", "type": "integer"}, "source": {"type": "string", "location": "query"}}, "id": "books.layers.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layersummary", "response": {"$ref": "Layersummaries"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "summaryId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.get", "httpMethod": "GET", "path": "volumes/layersummary/{summaryId}", "response": {"$ref": "Layersummary"}}}}', true));
+ $this->layers_annotationData = new LayersAnnotationDataServiceResource($this, $this->serviceName, 'annotationData', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "h": {"format": "int32", "type": "integer", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"format": "uint32", "maximum": "40", "minimum": "0", "location": "query", "type": "integer"}, "annotationDataId": {"repeated": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "w": {"format": "int32", "type": "integer", "location": "query"}, "layerId": {"required": true, "type": "string", "location": "path"}, "updatedMin": {"type": "string", "location": "query"}}, "id": "books.layers.annotationData.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/data", "response": {"$ref": "Annotationsdata"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "h": {"format": "int32", "type": "integer", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "annotationDataId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}, "w": {"format": "int32", "type": "integer", "location": "query"}, "layerId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.annotationData.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}", "response": {"$ref": "Annotationdata"}}}}', true));
+ $this->layers_volumeAnnotations = new LayersVolumeAnnotationsServiceResource($this, $this->serviceName, 'volumeAnnotations', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "endPosition": {"type": "string", "location": "query"}, "updatedMax": {"type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "endOffset": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"format": "uint32", "maximum": "40", "minimum": "0", "location": "query", "type": "integer"}, "showDeleted": {"type": "boolean", "location": "query"}, "contentVersion": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startOffset": {"type": "string", "location": "query"}, "layerId": {"required": true, "type": "string", "location": "path"}, "startPosition": {"type": "string", "location": "query"}}, "id": "books.layers.volumeAnnotations.list", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}", "response": {"$ref": "Volumeannotations"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "layerId": {"required": true, "type": "string", "location": "path"}}, "id": "books.layers.volumeAnnotations.get", "httpMethod": "GET", "path": "volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}", "response": {"$ref": "Volumeannotation"}}}}', true));
+ $this->bookshelves = new BookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "books.bookshelves.list", "httpMethod": "GET", "path": "users/{userId}/bookshelves", "response": {"$ref": "Bookshelves"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "userId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.bookshelves.get", "httpMethod": "GET", "path": "users/{userId}/bookshelves/{shelf}", "response": {"$ref": "Bookshelf"}}}}', true));
+ $this->bookshelves_volumes = new BookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "showPreorders": {"type": "boolean", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "0", "type": "integer", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"format": "uint32", "minimum": "0", "type": "integer", "location": "query"}, "userId": {"required": true, "type": "string", "location": "path"}}, "id": "books.bookshelves.volumes.list", "httpMethod": "GET", "path": "users/{userId}/bookshelves/{shelf}/volumes", "response": {"$ref": "Volumes"}}}}', true));
+ $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"}, "source": {"type": "string", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "volumeIds": {"repeated": true, "required": true, "type": "string", "location": "query"}}, "id": "books.myconfig.releaseDownloadAccess", "httpMethod": "POST", "path": "myconfig/releaseDownloadAccess", "response": {"$ref": "DownloadAccesses"}}, "requestAccess": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"locale": {"type": "string", "location": "query"}, "nonce": {"required": true, "type": "string", "location": "query"}, "source": {"required": true, "type": "string", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "query"}}, "id": "books.myconfig.requestAccess", "httpMethod": "POST", "path": "myconfig/requestAccess", "response": {"$ref": "RequestAccess"}}, "syncVolumeLicenses": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"nonce": {"required": true, "type": "string", "location": "query"}, "locale": {"type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "location": "query"}, "cpksver": {"required": true, "type": "string", "location": "query"}, "source": {"required": true, "type": "string", "location": "query"}, "volumeIds": {"repeated": true, "type": "string", "location": "query"}}, "id": "books.myconfig.syncVolumeLicenses", "httpMethod": "POST", "path": "myconfig/syncVolumeLicenses", "response": {"$ref": "Volumes"}}}}', true));
+ $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"}, "printType": {"enum": ["all", "books", "magazines"], "type": "string", "location": "query"}, "showPreorders": {"type": "boolean", "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"}}, "id": "books.volumes.list", "httpMethod": "GET", "path": "volumes", "response": {"$ref": "Volumes"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "partner": {"type": "string", "location": "query"}, "projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}}, "id": "books.volumes.get", "httpMethod": "GET", "path": "volumes/{volumeId}", "response": {"$ref": "Volume"}}}}', true));
+ $this->mylibrary_bookshelves = new MylibraryBookshelvesServiceResource($this, $this->serviceName, 'bookshelves', json_decode('{"methods": {"removeVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST", "path": "mylibrary/bookshelves/{shelf}/removeVolume", "id": "books.mylibrary.bookshelves.removeVolume"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "id": "books.mylibrary.bookshelves.get", "httpMethod": "GET", "path": "mylibrary/bookshelves/{shelf}", "response": {"$ref": "Bookshelf"}}, "clearVolumes": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST", "path": "mylibrary/bookshelves/{shelf}/clearVolumes", "id": "books.mylibrary.bookshelves.clearVolumes"}, "list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}}, "response": {"$ref": "Bookshelves"}, "httpMethod": "GET", "path": "mylibrary/bookshelves", "id": "books.mylibrary.bookshelves.list"}, "addVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"shelf": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}}, "httpMethod": "POST", "path": "mylibrary/bookshelves/{shelf}/addVolume", "id": "books.mylibrary.bookshelves.addVolume"}, "moveVolume": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "shelf": {"required": true, "type": "string", "location": "path"}, "volumeId": {"required": true, "type": "string", "location": "query"}, "volumePosition": {"format": "int32", "required": true, "type": "integer", "location": "query"}}, "httpMethod": "POST", "path": "mylibrary/bookshelves/{shelf}/moveVolume", "id": "books.mylibrary.bookshelves.moveVolume"}}}', true));
+ $this->mylibrary_bookshelves_volumes = new MylibraryBookshelvesVolumesServiceResource($this, $this->serviceName, 'volumes', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"projection": {"enum": ["full", "lite"], "type": "string", "location": "query"}, "shelf": {"required": true, "type": "string", "location": "path"}, "showPreorders": {"type": "boolean", "location": "query"}, "maxResults": {"format": "uint32", "minimum": "0", "type": "integer", "location": "query"}, "q": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "startIndex": {"format": "uint32", "minimum": "0", "type": "integer", "location": "query"}}, "id": "books.mylibrary.bookshelves.volumes.list", "httpMethod": "GET", "path": "mylibrary/bookshelves/{shelf}/volumes", "response": {"$ref": "Volumes"}}}}', true));
+ $this->mylibrary_readingpositions = new MylibraryReadingpositionsServiceResource($this, $this->serviceName, 'readingpositions', json_decode('{"methods": {"setPosition": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"timestamp": {"required": true, "type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}, "source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "action": {"enum": ["bookmark", "chapter", "next-page", "prev-page", "scroll", "search"], "type": "string", "location": "query"}, "position": {"required": true, "type": "string", "location": "query"}}, "httpMethod": "POST", "path": "mylibrary/readingpositions/{volumeId}/setPosition", "id": "books.mylibrary.readingpositions.setPosition"}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "volumeId": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.readingpositions.get", "httpMethod": "GET", "path": "mylibrary/readingpositions/{volumeId}", "response": {"$ref": "ReadingPosition"}}}}', true));
+ $this->mylibrary_annotations = new MylibraryAnnotationsServiceResource($this, $this->serviceName, 'annotations', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}}, "request": {"$ref": "Annotation"}, "id": "books.mylibrary.annotations.insert", "httpMethod": "POST", "path": "mylibrary/annotations", "response": {"$ref": "Annotation"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}}, "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"}, "updatedMax": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "volumeId": {"type": "string", "location": "query"}, "maxResults": {"format": "uint32", "maximum": "40", "minimum": "0", "location": "query", "type": "integer"}, "showDeleted": {"type": "boolean", "location": "query"}, "pageIds": {"repeated": true, "type": "string", "location": "query"}, "contentVersion": {"type": "string", "location": "query"}, "source": {"type": "string", "location": "query"}, "layerId": {"type": "string", "location": "query"}}, "response": {"$ref": "Annotations"}, "httpMethod": "GET", "path": "mylibrary/annotations", "id": "books.mylibrary.annotations.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Annotation"}, "id": "books.mylibrary.annotations.update", "httpMethod": "PUT", "path": "mylibrary/annotations/{annotationId}", "response": {"$ref": "Annotation"}}, "get": {"scopes": ["https://www.googleapis.com/auth/books"], "parameters": {"source": {"type": "string", "location": "query"}, "annotationId": {"required": true, "type": "string", "location": "path"}}, "id": "books.mylibrary.annotations.get", "httpMethod": "GET", "path": "mylibrary/annotations/{annotationId}", "response": {"$ref": "Annotation"}}}}', true));
+
}
}
@@ -575,6 +811,7 @@ class Annotation extends apiModel {
public $kind;
public $updated;
public $created;
+ public $deleted;
public $beforeSelectedText;
protected $__currentVersionRangesType = 'AnnotationCurrentVersionRanges';
protected $__currentVersionRangesDataType = '';
@@ -609,6 +846,12 @@ public function setCreated($created) {
public function getCreated() {
return $this->created;
}
+ public function setDeleted($deleted) {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted() {
+ return $this->deleted;
+ }
public function setBeforeSelectedText($beforeSelectedText) {
$this->beforeSelectedText = $beforeSelectedText;
}
@@ -758,6 +1001,74 @@ public function getGbImageRange() {
}
}
+class Annotationdata extends apiModel {
+ public $annotationType;
+ public $kind;
+ public $updated;
+ public $volumeId;
+ public $encoded_data;
+ public $layerId;
+ protected $__dataType = 'BooksLayerGeoData';
+ protected $__dataDataType = '';
+ public $data;
+ public $id;
+ public $selfLink;
+ public function setAnnotationType($annotationType) {
+ $this->annotationType = $annotationType;
+ }
+ public function getAnnotationType() {
+ return $this->annotationType;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setUpdated($updated) {
+ $this->updated = $updated;
+ }
+ public function getUpdated() {
+ return $this->updated;
+ }
+ public function setVolumeId($volumeId) {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId() {
+ return $this->volumeId;
+ }
+ public function setEncoded_data($encoded_data) {
+ $this->encoded_data = $encoded_data;
+ }
+ public function getEncoded_data() {
+ return $this->encoded_data;
+ }
+ public function setLayerId($layerId) {
+ $this->layerId = $layerId;
+ }
+ public function getLayerId() {
+ return $this->layerId;
+ }
+ public function setData(BooksLayerGeoData $data) {
+ $this->data = $data;
+ }
+ public function getData() {
+ return $this->data;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+}
+
class Annotations extends apiModel {
public $nextPageToken;
protected $__itemsType = 'Annotation';
@@ -792,6 +1103,40 @@ public function getTotalItems() {
}
}
+class Annotationsdata extends apiModel {
+ public $nextPageToken;
+ protected $__itemsType = 'Annotationdata';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $totalItems;
+ public function setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+ public function setItems(/* array(Annotationdata) */ $items) {
+ $this->assertIsArray($items, 'Annotationdata', __METHOD__);
+ $this->items = $items;
+ }
+ public function getItems() {
+ return $this->items;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setTotalItems($totalItems) {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems() {
+ return $this->totalItems;
+ }
+}
+
class BooksAnnotationsRange extends apiModel {
public $startPosition;
public $endPosition;
@@ -823,6 +1168,194 @@ public function getEndOffset() {
}
}
+class BooksLayerGeoData extends apiModel {
+ protected $__geoType = 'BooksLayerGeoDataGeo';
+ protected $__geoDataType = '';
+ public $geo;
+ protected $__commonType = 'BooksLayerGeoDataCommon';
+ protected $__commonDataType = '';
+ public $common;
+ public function setGeo(BooksLayerGeoDataGeo $geo) {
+ $this->geo = $geo;
+ }
+ public function getGeo() {
+ return $this->geo;
+ }
+ public function setCommon(BooksLayerGeoDataCommon $common) {
+ $this->common = $common;
+ }
+ public function getCommon() {
+ return $this->common;
+ }
+}
+
+class BooksLayerGeoDataCommon extends apiModel {
+ public $lang;
+ public $previewImageUrl;
+ public $snippet;
+ public $snippetUrl;
+ public function setLang($lang) {
+ $this->lang = $lang;
+ }
+ public function getLang() {
+ return $this->lang;
+ }
+ public function setPreviewImageUrl($previewImageUrl) {
+ $this->previewImageUrl = $previewImageUrl;
+ }
+ public function getPreviewImageUrl() {
+ return $this->previewImageUrl;
+ }
+ public function setSnippet($snippet) {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet() {
+ return $this->snippet;
+ }
+ public function setSnippetUrl($snippetUrl) {
+ $this->snippetUrl = $snippetUrl;
+ }
+ public function getSnippetUrl() {
+ return $this->snippetUrl;
+ }
+}
+
+class BooksLayerGeoDataGeo extends apiModel {
+ public $countryCode;
+ public $longitude;
+ public $mapType;
+ public $latitude;
+ protected $__boundaryType = 'BooksLayerGeoDataGeoBoundary';
+ protected $__boundaryDataType = 'array';
+ public $boundary;
+ public $resolution;
+ protected $__viewportType = 'BooksLayerGeoDataGeoViewport';
+ protected $__viewportDataType = '';
+ public $viewport;
+ public $cachePolicy;
+ public function setCountryCode($countryCode) {
+ $this->countryCode = $countryCode;
+ }
+ public function getCountryCode() {
+ return $this->countryCode;
+ }
+ public function setLongitude($longitude) {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude() {
+ return $this->longitude;
+ }
+ public function setMapType($mapType) {
+ $this->mapType = $mapType;
+ }
+ public function getMapType() {
+ return $this->mapType;
+ }
+ public function setLatitude($latitude) {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude() {
+ return $this->latitude;
+ }
+ public function setBoundary(/* array(BooksLayerGeoDataGeoBoundary) */ $boundary) {
+ $this->assertIsArray($boundary, 'BooksLayerGeoDataGeoBoundary', __METHOD__);
+ $this->boundary = $boundary;
+ }
+ public function getBoundary() {
+ return $this->boundary;
+ }
+ public function setResolution($resolution) {
+ $this->resolution = $resolution;
+ }
+ public function getResolution() {
+ return $this->resolution;
+ }
+ public function setViewport(BooksLayerGeoDataGeoViewport $viewport) {
+ $this->viewport = $viewport;
+ }
+ public function getViewport() {
+ return $this->viewport;
+ }
+ public function setCachePolicy($cachePolicy) {
+ $this->cachePolicy = $cachePolicy;
+ }
+ public function getCachePolicy() {
+ return $this->cachePolicy;
+ }
+}
+
+class BooksLayerGeoDataGeoBoundary extends apiModel {
+ public $latitude;
+ public $longitude;
+ public function setLatitude($latitude) {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude() {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude) {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude() {
+ return $this->longitude;
+ }
+}
+
+class BooksLayerGeoDataGeoViewport extends apiModel {
+ protected $__loType = 'BooksLayerGeoDataGeoViewportLo';
+ protected $__loDataType = '';
+ public $lo;
+ protected $__hiType = 'BooksLayerGeoDataGeoViewportHi';
+ protected $__hiDataType = '';
+ public $hi;
+ public function setLo(BooksLayerGeoDataGeoViewportLo $lo) {
+ $this->lo = $lo;
+ }
+ public function getLo() {
+ return $this->lo;
+ }
+ public function setHi(BooksLayerGeoDataGeoViewportHi $hi) {
+ $this->hi = $hi;
+ }
+ public function getHi() {
+ return $this->hi;
+ }
+}
+
+class BooksLayerGeoDataGeoViewportHi extends apiModel {
+ public $latitude;
+ public $longitude;
+ public function setLatitude($latitude) {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude() {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude) {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude() {
+ return $this->longitude;
+ }
+}
+
+class BooksLayerGeoDataGeoViewportLo extends apiModel {
+ public $latitude;
+ public $longitude;
+ public function setLatitude($latitude) {
+ $this->latitude = $latitude;
+ }
+ public function getLatitude() {
+ return $this->latitude;
+ }
+ public function setLongitude($longitude) {
+ $this->longitude = $longitude;
+ }
+ public function getLongitude() {
+ return $this->longitude;
+ }
+}
+
class Bookshelf extends apiModel {
public $kind;
public $description;
@@ -1021,29 +1554,157 @@ public function setKind($kind) {
public function getKind() {
return $this->kind;
}
- public function setJustAcquired($justAcquired) {
- $this->justAcquired = $justAcquired;
+ public function setJustAcquired($justAcquired) {
+ $this->justAcquired = $justAcquired;
+ }
+ public function getJustAcquired() {
+ return $this->justAcquired;
+ }
+ public function setMaxDownloadDevices($maxDownloadDevices) {
+ $this->maxDownloadDevices = $maxDownloadDevices;
+ }
+ public function getMaxDownloadDevices() {
+ return $this->maxDownloadDevices;
+ }
+ public function setDownloadsAcquired($downloadsAcquired) {
+ $this->downloadsAcquired = $downloadsAcquired;
+ }
+ public function getDownloadsAcquired() {
+ return $this->downloadsAcquired;
+ }
+ public function setSignature($signature) {
+ $this->signature = $signature;
+ }
+ public function getSignature() {
+ return $this->signature;
+ }
+ public function setVolumeId($volumeId) {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId() {
+ return $this->volumeId;
+ }
+ public function setDeviceAllowed($deviceAllowed) {
+ $this->deviceAllowed = $deviceAllowed;
+ }
+ public function getDeviceAllowed() {
+ return $this->deviceAllowed;
+ }
+ public function setSource($source) {
+ $this->source = $source;
+ }
+ public function getSource() {
+ return $this->source;
+ }
+ public function setRestricted($restricted) {
+ $this->restricted = $restricted;
+ }
+ public function getRestricted() {
+ return $this->restricted;
+ }
+ public function setReasonCode($reasonCode) {
+ $this->reasonCode = $reasonCode;
+ }
+ public function getReasonCode() {
+ return $this->reasonCode;
+ }
+ public function setMessage($message) {
+ $this->message = $message;
+ }
+ public function getMessage() {
+ return $this->message;
+ }
+}
+
+class DownloadAccesses extends apiModel {
+ protected $__downloadAccessListType = 'DownloadAccessRestriction';
+ protected $__downloadAccessListDataType = 'array';
+ public $downloadAccessList;
+ public $kind;
+ public function setDownloadAccessList(/* array(DownloadAccessRestriction) */ $downloadAccessList) {
+ $this->assertIsArray($downloadAccessList, 'DownloadAccessRestriction', __METHOD__);
+ $this->downloadAccessList = $downloadAccessList;
+ }
+ public function getDownloadAccessList() {
+ return $this->downloadAccessList;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+}
+
+class Layersummaries extends apiModel {
+ public $totalItems;
+ protected $__itemsType = 'Layersummary';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public function setTotalItems($totalItems) {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems() {
+ return $this->totalItems;
+ }
+ public function setItems(/* array(Layersummary) */ $items) {
+ $this->assertIsArray($items, 'Layersummary', __METHOD__);
+ $this->items = $items;
+ }
+ public function getItems() {
+ return $this->items;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+}
+
+class Layersummary extends apiModel {
+ public $kind;
+ public $annotationCount;
+ public $dataCount;
+ public $annotationsLink;
+ public $updated;
+ public $volumeId;
+ public $id;
+ public $annotationTypes;
+ public $contentVersion;
+ public $layerId;
+ public $annotationsDataLink;
+ public $selfLink;
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setAnnotationCount($annotationCount) {
+ $this->annotationCount = $annotationCount;
}
- public function getJustAcquired() {
- return $this->justAcquired;
+ public function getAnnotationCount() {
+ return $this->annotationCount;
}
- public function setMaxDownloadDevices($maxDownloadDevices) {
- $this->maxDownloadDevices = $maxDownloadDevices;
+ public function setDataCount($dataCount) {
+ $this->dataCount = $dataCount;
}
- public function getMaxDownloadDevices() {
- return $this->maxDownloadDevices;
+ public function getDataCount() {
+ return $this->dataCount;
}
- public function setDownloadsAcquired($downloadsAcquired) {
- $this->downloadsAcquired = $downloadsAcquired;
+ public function setAnnotationsLink($annotationsLink) {
+ $this->annotationsLink = $annotationsLink;
}
- public function getDownloadsAcquired() {
- return $this->downloadsAcquired;
+ public function getAnnotationsLink() {
+ return $this->annotationsLink;
}
- public function setSignature($signature) {
- $this->signature = $signature;
+ public function setUpdated($updated) {
+ $this->updated = $updated;
}
- public function getSignature() {
- return $this->signature;
+ public function getUpdated() {
+ return $this->updated;
}
public function setVolumeId($volumeId) {
$this->volumeId = $volumeId;
@@ -1051,55 +1712,42 @@ public function setVolumeId($volumeId) {
public function getVolumeId() {
return $this->volumeId;
}
- public function setDeviceAllowed($deviceAllowed) {
- $this->deviceAllowed = $deviceAllowed;
- }
- public function getDeviceAllowed() {
- return $this->deviceAllowed;
- }
- public function setSource($source) {
- $this->source = $source;
+ public function setId($id) {
+ $this->id = $id;
}
- public function getSource() {
- return $this->source;
+ public function getId() {
+ return $this->id;
}
- public function setRestricted($restricted) {
- $this->restricted = $restricted;
+ public function setAnnotationTypes(/* array(string) */ $annotationTypes) {
+ $this->assertIsArray($annotationTypes, 'string', __METHOD__);
+ $this->annotationTypes = $annotationTypes;
}
- public function getRestricted() {
- return $this->restricted;
+ public function getAnnotationTypes() {
+ return $this->annotationTypes;
}
- public function setReasonCode($reasonCode) {
- $this->reasonCode = $reasonCode;
+ public function setContentVersion($contentVersion) {
+ $this->contentVersion = $contentVersion;
}
- public function getReasonCode() {
- return $this->reasonCode;
+ public function getContentVersion() {
+ return $this->contentVersion;
}
- public function setMessage($message) {
- $this->message = $message;
+ public function setLayerId($layerId) {
+ $this->layerId = $layerId;
}
- public function getMessage() {
- return $this->message;
+ public function getLayerId() {
+ return $this->layerId;
}
-}
-
-class DownloadAccesses extends apiModel {
- protected $__downloadAccessListType = 'DownloadAccessRestriction';
- protected $__downloadAccessListDataType = 'array';
- public $downloadAccessList;
- public $kind;
- public function setDownloadAccessList(/* array(DownloadAccessRestriction) */ $downloadAccessList) {
- $this->assertIsArray($downloadAccessList, 'DownloadAccessRestriction', __METHOD__);
- $this->downloadAccessList = $downloadAccessList;
+ public function setAnnotationsDataLink($annotationsDataLink) {
+ $this->annotationsDataLink = $annotationsDataLink;
}
- public function getDownloadAccessList() {
- return $this->downloadAccessList;
+ public function getAnnotationsDataLink() {
+ return $this->annotationsDataLink;
}
- public function setKind($kind) {
- $this->kind = $kind;
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
}
- public function getKind() {
- return $this->kind;
+ public function getSelfLink() {
+ return $this->selfLink;
}
}
@@ -1299,6 +1947,9 @@ class Volume extends apiModel {
protected $__accessInfoType = 'VolumeAccessInfo';
protected $__accessInfoDataType = '';
public $accessInfo;
+ protected $__searchInfoType = 'VolumeSearchInfo';
+ protected $__searchInfoDataType = '';
+ public $searchInfo;
protected $__saleInfoType = 'VolumeSaleInfo';
protected $__saleInfoDataType = '';
public $saleInfo;
@@ -1323,6 +1974,12 @@ public function setAccessInfo(VolumeAccessInfo $accessInfo) {
public function getAccessInfo() {
return $this->accessInfo;
}
+ public function setSearchInfo(VolumeSearchInfo $searchInfo) {
+ $this->searchInfo = $searchInfo;
+ }
+ public function getSearchInfo() {
+ return $this->searchInfo;
+ }
public function setSaleInfo(VolumeSaleInfo $saleInfo) {
$this->saleInfo = $saleInfo;
}
@@ -1362,12 +2019,14 @@ public function getSelfLink() {
}
class VolumeAccessInfo extends apiModel {
+ public $webReaderLink;
public $publicDomain;
public $embeddable;
protected $__downloadAccessType = 'DownloadAccessRestriction';
protected $__downloadAccessDataType = '';
public $downloadAccess;
public $country;
+ public $viewOrderUrl;
public $textToSpeechPermission;
protected $__pdfType = 'VolumeAccessInfoPdf';
protected $__pdfDataType = '';
@@ -1377,6 +2036,12 @@ class VolumeAccessInfo extends apiModel {
protected $__epubDataType = '';
public $epub;
public $accessViewStatus;
+ public function setWebReaderLink($webReaderLink) {
+ $this->webReaderLink = $webReaderLink;
+ }
+ public function getWebReaderLink() {
+ return $this->webReaderLink;
+ }
public function setPublicDomain($publicDomain) {
$this->publicDomain = $publicDomain;
}
@@ -1401,6 +2066,12 @@ public function setCountry($country) {
public function getCountry() {
return $this->country;
}
+ public function setViewOrderUrl($viewOrderUrl) {
+ $this->viewOrderUrl = $viewOrderUrl;
+ }
+ public function getViewOrderUrl() {
+ return $this->viewOrderUrl;
+ }
public function setTextToSpeechPermission($textToSpeechPermission) {
$this->textToSpeechPermission = $textToSpeechPermission;
}
@@ -1434,8 +2105,15 @@ public function getAccessViewStatus() {
}
class VolumeAccessInfoEpub extends apiModel {
+ public $isAvailable;
public $downloadLink;
public $acsTokenLink;
+ public function setIsAvailable($isAvailable) {
+ $this->isAvailable = $isAvailable;
+ }
+ public function getIsAvailable() {
+ return $this->isAvailable;
+ }
public function setDownloadLink($downloadLink) {
$this->downloadLink = $downloadLink;
}
@@ -1451,8 +2129,15 @@ public function getAcsTokenLink() {
}
class VolumeAccessInfoPdf extends apiModel {
+ public $isAvailable;
public $downloadLink;
public $acsTokenLink;
+ public function setIsAvailable($isAvailable) {
+ $this->isAvailable = $isAvailable;
+ }
+ public function getIsAvailable() {
+ return $this->isAvailable;
+ }
public function setDownloadLink($downloadLink) {
$this->downloadLink = $downloadLink;
}
@@ -1557,27 +2242,44 @@ public function getCurrencyCode() {
}
}
+class VolumeSearchInfo extends apiModel {
+ public $textSnippet;
+ public function setTextSnippet($textSnippet) {
+ $this->textSnippet = $textSnippet;
+ }
+ public function getTextSnippet() {
+ return $this->textSnippet;
+ }
+}
+
class VolumeUserInfo extends apiModel {
+ public $isInMyBooks;
public $updated;
- public $isPreordered;
+ protected $__reviewType = 'Review';
+ protected $__reviewDataType = '';
+ public $review;
public $isPurchased;
protected $__readingPositionType = 'ReadingPosition';
protected $__readingPositionDataType = '';
public $readingPosition;
- protected $__reviewType = 'Review';
- protected $__reviewDataType = '';
- public $review;
+ public $isPreordered;
+ public function setIsInMyBooks($isInMyBooks) {
+ $this->isInMyBooks = $isInMyBooks;
+ }
+ public function getIsInMyBooks() {
+ return $this->isInMyBooks;
+ }
public function setUpdated($updated) {
$this->updated = $updated;
}
public function getUpdated() {
return $this->updated;
}
- public function setIsPreordered($isPreordered) {
- $this->isPreordered = $isPreordered;
+ public function setReview(Review $review) {
+ $this->review = $review;
}
- public function getIsPreordered() {
- return $this->isPreordered;
+ public function getReview() {
+ return $this->review;
}
public function setIsPurchased($isPurchased) {
$this->isPurchased = $isPurchased;
@@ -1591,11 +2293,11 @@ public function setReadingPosition(ReadingPosition $readingPosition) {
public function getReadingPosition() {
return $this->readingPosition;
}
- public function setReview(Review $review) {
- $this->review = $review;
+ public function setIsPreordered($isPreordered) {
+ $this->isPreordered = $isPreordered;
}
- public function getReview() {
- return $this->review;
+ public function getIsPreordered() {
+ return $this->isPreordered;
}
}
@@ -1837,6 +2539,181 @@ public function getType() {
}
}
+class Volumeannotation extends apiModel {
+ public $annotationType;
+ public $kind;
+ public $updated;
+ public $deleted;
+ protected $__contentRangesType = 'VolumeannotationContentRanges';
+ protected $__contentRangesDataType = '';
+ public $contentRanges;
+ public $selectedText;
+ public $volumeId;
+ public $annotationDataId;
+ public $annotationDataLink;
+ public $pageIds;
+ public $layerId;
+ public $data;
+ public $id;
+ public $selfLink;
+ public function setAnnotationType($annotationType) {
+ $this->annotationType = $annotationType;
+ }
+ public function getAnnotationType() {
+ return $this->annotationType;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setUpdated($updated) {
+ $this->updated = $updated;
+ }
+ public function getUpdated() {
+ return $this->updated;
+ }
+ public function setDeleted($deleted) {
+ $this->deleted = $deleted;
+ }
+ public function getDeleted() {
+ return $this->deleted;
+ }
+ public function setContentRanges(VolumeannotationContentRanges $contentRanges) {
+ $this->contentRanges = $contentRanges;
+ }
+ public function getContentRanges() {
+ return $this->contentRanges;
+ }
+ public function setSelectedText($selectedText) {
+ $this->selectedText = $selectedText;
+ }
+ public function getSelectedText() {
+ return $this->selectedText;
+ }
+ public function setVolumeId($volumeId) {
+ $this->volumeId = $volumeId;
+ }
+ public function getVolumeId() {
+ return $this->volumeId;
+ }
+ public function setAnnotationDataId($annotationDataId) {
+ $this->annotationDataId = $annotationDataId;
+ }
+ public function getAnnotationDataId() {
+ return $this->annotationDataId;
+ }
+ public function setAnnotationDataLink($annotationDataLink) {
+ $this->annotationDataLink = $annotationDataLink;
+ }
+ public function getAnnotationDataLink() {
+ return $this->annotationDataLink;
+ }
+ public function setPageIds(/* array(string) */ $pageIds) {
+ $this->assertIsArray($pageIds, 'string', __METHOD__);
+ $this->pageIds = $pageIds;
+ }
+ public function getPageIds() {
+ return $this->pageIds;
+ }
+ public function setLayerId($layerId) {
+ $this->layerId = $layerId;
+ }
+ public function getLayerId() {
+ return $this->layerId;
+ }
+ public function setData($data) {
+ $this->data = $data;
+ }
+ public function getData() {
+ return $this->data;
+ }
+ public function setId($id) {
+ $this->id = $id;
+ }
+ public function getId() {
+ return $this->id;
+ }
+ public function setSelfLink($selfLink) {
+ $this->selfLink = $selfLink;
+ }
+ public function getSelfLink() {
+ return $this->selfLink;
+ }
+}
+
+class VolumeannotationContentRanges extends apiModel {
+ public $contentVersion;
+ protected $__gbTextRangeType = 'BooksAnnotationsRange';
+ protected $__gbTextRangeDataType = '';
+ public $gbTextRange;
+ protected $__cfiRangeType = 'BooksAnnotationsRange';
+ protected $__cfiRangeDataType = '';
+ public $cfiRange;
+ protected $__gbImageRangeType = 'BooksAnnotationsRange';
+ protected $__gbImageRangeDataType = '';
+ public $gbImageRange;
+ public function setContentVersion($contentVersion) {
+ $this->contentVersion = $contentVersion;
+ }
+ public function getContentVersion() {
+ return $this->contentVersion;
+ }
+ public function setGbTextRange(BooksAnnotationsRange $gbTextRange) {
+ $this->gbTextRange = $gbTextRange;
+ }
+ public function getGbTextRange() {
+ return $this->gbTextRange;
+ }
+ public function setCfiRange(BooksAnnotationsRange $cfiRange) {
+ $this->cfiRange = $cfiRange;
+ }
+ public function getCfiRange() {
+ return $this->cfiRange;
+ }
+ public function setGbImageRange(BooksAnnotationsRange $gbImageRange) {
+ $this->gbImageRange = $gbImageRange;
+ }
+ public function getGbImageRange() {
+ return $this->gbImageRange;
+ }
+}
+
+class Volumeannotations extends apiModel {
+ public $nextPageToken;
+ protected $__itemsType = 'Volumeannotation';
+ protected $__itemsDataType = 'array';
+ public $items;
+ public $kind;
+ public $totalItems;
+ public function setNextPageToken($nextPageToken) {
+ $this->nextPageToken = $nextPageToken;
+ }
+ public function getNextPageToken() {
+ return $this->nextPageToken;
+ }
+ public function setItems(/* array(Volumeannotation) */ $items) {
+ $this->assertIsArray($items, 'Volumeannotation', __METHOD__);
+ $this->items = $items;
+ }
+ public function getItems() {
+ return $this->items;
+ }
+ public function setKind($kind) {
+ $this->kind = $kind;
+ }
+ public function getKind() {
+ return $this->kind;
+ }
+ public function setTotalItems($totalItems) {
+ $this->totalItems = $totalItems;
+ }
+ public function getTotalItems() {
+ return $this->totalItems;
+ }
+}
+
class Volumes extends apiModel {
public $totalItems;
protected $__itemsType = 'Volume';
508 src/contrib/apiCustomsearchService.php
View
@@ -1,6 +1,6 @@
<?php
/*
- * Copyright (c) 2010 Google Inc.
+ * Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
@@ -15,10 +15,6 @@
* the License.
*/
-require_once 'service/apiModel.php';
-require_once 'service/apiService.php';
-require_once 'service/apiServiceRequest.php';
-
/**
* The "cse" collection of methods.
@@ -39,16 +35,36 @@ class CseServiceResource extends apiServiceResource {
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
*
* @opt_param string sort The sort expression to apply to the results
+ * @opt_param string orTerms Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms
+ * @opt_param string highRange Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
* @opt_param string num Number of search results to return
- * @opt_param string googlehost The local Google domain to use to perform the search.
- * @opt_param string safe Search safety level
- * @opt_param string filter Controls turning on or off the duplicate content filter.
- * @opt_param string start The index of the first result to return
- * @opt_param string cx The custom search engine ID to scope this search query
- * @opt_param string lr The language restriction for the search results
* @opt_param string cr Country restrict(s).
+ * @opt_param string imgType Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.
* @opt_param string gl Geolocation of end user.
+ * @opt_param string relatedSite Specifies that all search results should be pages that are related to the specified URL
+ * @opt_param string searchType Specifies the search type: image.
+ * @opt_param string fileType Returns images of a specified type. Some of the allowed values are: bmp, gif, png, jpg, svg, pdf, ...
+ * @opt_param string start The index of the first result to return
+ * @opt_param string imgDominantColor Returns images of a specific dominant color: yellow, green, teal, blue, purple, pink, white, gray, black and brown.
+ * @opt_param string lr The language restriction for the search results
+ * @opt_param string siteSearch Specifies all search results should be pages from a given site
* @opt_param string cref The URL of a linked custom search engine
+ * @opt_param string dateRestrict Specifies all search results are from a time period
+ * @opt_param string safe Search safety level
+ * @opt_param string c2coff Turns off the translation between zh-CN and zh-TW.
+ * @opt_param string googlehost The local Google domain to use to perform the search.
+ * @opt_param string hq Appends the extra query terms to the query.
+ * @opt_param string exactTerms Identifies a phrase that all documents in the search results must contain
+ * @opt_param string hl Sets the user interface language.
+ * @opt_param string lowRange Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
+ * @opt_param string imgSize Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge, xxlarge, and huge.
+ * @opt_param string imgColorType Returns black and white, grayscale, or color images: mono, gray, and color.
+ * @opt_param string rights Filters based on licensing. Supported values include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, cc_nonderived and combinations of these.
+ * @opt_param string excludeTerms Identifies a word or phrase that should not appear in any documents in the search results
+ * @opt_param string filter Controls turning on or off the duplicate content filter.
+ * @opt_param string linkSite Specifies that all search results should contain a link to a particular URL
+ * @opt_param string cx The custom search engine ID to scope this search query
+ * @opt_param string siteSearchFilter Controls whether to include or exclude results from the site named in the as_sitesearch parameter
* @return Search
*/
public function listCse($q, $optParams = array()) {
@@ -63,8 +79,6 @@ public function listCse($q, $optParams = array()) {
}
}
-
-
/**
* Service definition for Customsearch (v1).
*
@@ -87,13 +101,13 @@ class apiCustomsearchService extends apiService {
* @param apiClient apiClient
*/
public function __construct(apiClient $apiClient) {
- $this->rpcPath = '/rpc';
$this->restBasePath = '/customsearch/';
$this->version = 'v1';
$this->serviceName = 'customsearch';
$apiClient->addService($this->serviceName, $this->version);
- $this->cse = new CseServiceResource($this, $this->serviceName, 'cse', json_decode('{"methods": {"list": {"parameters": {"sort": {"type": "string", "location": "query"}, "filter": {"enum": ["0", "1"], "type": "string", "location": "query"}, "cx": {"type": "string", "location": "query"}, "googlehost": {"type": "string", "location": "query"}, "safe": {"default": "off", "enum": ["high", "medium", "off"], "location": "query", "type": "string"}, "q": {"required": true, "type": "string", "location": "query"}, "start": {"type": "string", "location": "query"}, "num": {"default": "10", "type": "string", "location": "query"}, "lr": {"enum": ["lang_ar", "lang_bg", "lang_ca", "lang_cs", "lang_da", "lang_de", "lang_el", "lang_en", "lang_es", "lang_et", "lang_fi", "lang_fr", "lang_hr", "lang_hu", "lang_id", "lang_is", "lang_it", "lang_iw", "lang_ja", "lang_ko", "lang_lt", "lang_lv", "lang_nl", "lang_no", "lang_pl", "lang_pt", "lang_ro", "lang_ru", "lang_sk", "lang_sl", "lang_sr", "lang_sv", "lang_tr", "lang_zh-CN", "lang_zh-TW"], "type": "string", "location": "query"}, "cr": {"type": "string", "location": "query"}, "gl": {"type": "string", "location": "query"}, "cref": {"type": "string", "location": "query"}}, "id": "search.cse.list", "httpMethod": "GET", "path": "v1", "response": {"$ref": "Search"}}}}', true));
+ $this->cse = new CseServiceResource($this, $this->serviceName, 'cse', json_decode('{"methods": {"list": {"parameters": {"dateRestrict": {"type": "string", "location": "query"}, "orTerms": {"type": "string", "location": "query"}, "highRange": {"type": "string", "location": "query"}, "num": {"default": "10", "format": "uint32", "type": "integer", "location": "query"}, "cr": {"type": "string", "location": "query"}, "imgType": {"enum": ["clipart", "face", "lineart", "news", "photo"], "type": "string", "location": "query"}, "relatedSite": {"type": "string", "location": "query"}, "filter": {"enum": ["0", "1"], "type": "string", "location": "query"}, "gl": {"type": "string", "location": "query"}, "searchType": {"enum": ["image"], "type": "string", "location": "query"}, "fileType": {"type": "string", "location": "query"}, "start": {"format": "uint32", "type": "integer", "location": "query"}, "imgDominantColor": {"enum": ["black", "blue", "brown", "gray", "green", "pink", "purple", "teal", "white", "yellow"], "type": "string", "location": "query"}, "lr": {"enum": ["lang_ar", "lang_bg", "lang_ca", "lang_cs", "lang_da", "lang_de", "lang_el", "lang_en", "lang_es", "lang_et", "lang_fi", "lang_fr", "lang_hr", "lang_hu", "lang_id", "lang_is", "lang_it", "lang_iw", "lang_ja", "lang_ko", "lang_lt", "lang_lv", "lang_nl", "lang_no", "lang_pl", "lang_pt", "lang_ro", "lang_ru", "lang_sk", "lang_sl", "lang_sr", "lang_sv", "lang_tr", "lang_zh-CN", "lang_zh-TW"], "type": "string", "location": "query"}, "siteSearch": {"type": "string", "location": "query"}, "cref": {"type": "string", "location": "query"}, "sort": {"type": "string", "location": "query"}, "hq": {"type": "string", "location": "query"}, "c2coff": {"type": "string", "location": "query"}, "googlehost": {"type": "string", "location": "query"}, "safe": {"default": "off", "enum": ["high", "medium", "off"], "location": "query", "type": "string"}, "exactTerms": {"type": "string", "location": "query"}, "hl": {"type": "string", "location": "query"}, "lowRange": {"type": "string", "location": "query"}, "imgSize": {"enum": ["huge", "icon", "large", "medium", "small", "xlarge", "xxlarge"], "type": "string", "location": "query"}, "imgColorType": {"enum": ["color", "gray", "mono"], "type": "string", "location": "query"}, "rights": {"type": "string", "location": "query"}, "excludeTerms": {"type": "string", "location": "query"}, "q": {"required": true, "type": "string", "location": "query"}, "linkSite": {"type": "string", "location": "query"}, "cx": {"type": "string", "location": "query"}, "siteSearchFilter": {"enum": ["e", "i"], "type": "string", "location": "query"}}, "id": "search.cse.list", "httpMethod": "GET", "path": "v1", "response": {"$ref": "Search"}}}}', true));
+
}
}
@@ -226,46 +240,114 @@ public function getHeight() {
}
class Query extends apiModel {
- public $count;
public $sort;
- public $outputEncoding;
- public $language;
- public $title;
- public $googleHost;
- public $safe;
- public $searchTerms;
- public $filter;
- public $startIndex;
+ public $inputEncoding;
+ public $orTerms;
+ public $highRange;
public $cx;
public $startPage;
- public $inputEncoding;
+ public $disableCnTwTranslation;
public $cr;
+ public $imgType;
public $gl;
- public $totalResults;
+ public $relatedSite;
+ public $searchType;
+ public $title;
+ public $googleHost;
+ public $fileType;
+ public $imgDominantColor;
+ public $siteSearch;
public $cref;
- public function setCount($count) {
- $this->count = $count;
- }
- public function getCount() {
- return $this->count;
- }
+ public $dateRestrict;
+ public $safe;
+ public $outputEncoding;
+ public $hq;
+ public $searchTerms;
+ public $exactTerms;
+ public $language;
+ public $hl;
+ public $totalResults;
+ public $lowRange;
+ public $count;
+ public $imgSize;
+ public $imgColorType;
+ public $rights;
+ public $startIndex;
+ public $excludeTerms;
+ public $filter;
+ public $linkSite;
+ public $siteSearchFilter;
public function setSort($sort) {
$this->sort = $sort;
}
public function getSort() {
return $this->sort;
}
- public function setOutputEncoding($outputEncoding) {
- $this->outputEncoding = $outputEncoding;
+ public function setInputEncoding($inputEncoding) {
+ $this->inputEncoding = $inputEncoding;
}
- public function getOutputEncoding() {
- return $this->outputEncoding;
+ public function getInputEncoding() {
+ return $this->inputEncoding;
}
- public function setLanguage($language) {
- $this->language = $language;
+ public function setOrTerms($orTerms) {
+ $this->orTerms = $orTerms;
}
- public function getLanguage() {
- return $this->language;
+ public function getOrTerms() {
+ return $this->orTerms;
+ }
+ public function setHighRange($highRange) {
+ $this->highRange = $highRange;
+ }
+ public function getHighRange() {
+ return $this->highRange;
+ }
+ public function setCx($cx) {
+ $this->cx = $cx;
+ }
+ public function getCx() {
+ return $this->cx;
+ }
+ public function setStartPage($startPage) {
+ $this->startPage = $startPage;
+ }
+ public function getStartPage() {
+ return $this->startPage;
+ }
+ public function setDisableCnTwTranslation($disableCnTwTranslation) {
+ $this->disableCnTwTranslation = $disableCnTwTranslation;
+ }
+ public function getDisableCnTwTranslation() {
+ return $this->disableCnTwTranslation;
+ }
+ public function setCr($cr) {
+ $this->cr = $cr;
+ }
+ public function getCr() {
+ return $this->cr;
+ }
+ public function setImgType($imgType) {
+ $this->imgType = $imgType;
+ }
+ public function getImgType() {
+ return $this->imgType;
+ }
+ public function setGl($gl) {
+ $this->gl = $gl;
+ }
+ public function getGl() {
+ return $this->gl;
+ }
+ public function setRelatedSite($relatedSite) {
+ $this->relatedSite = $relatedSite;
+ }
+ public function getRelatedSite() {
+ return $this->relatedSite;
+ }
+ public function setSearchType($searchType) {
+ $this->searchType = $searchType;
+ }
+ public function getSearchType() {
+ return $this->searchType;
}
public function setTitle($title) {
$this->title = $title;
@@ -279,90 +361,185 @@ public function setGoogleHost($googleHost) {
public function getGoogleHost() {
return $this->googleHost;
}
+ public function setFileType($fileType) {
+ $this->fileType = $fileType;
+ }
+ public function getFileType() {
+ return $this->fileType;
+ }
+ public function setImgDominantColor($imgDominantColor) {
+ $this->imgDominantColor = $imgDominantColor;
+ }
+ public function getImgDominantColor() {
+ return $this->imgDominantColor;
+ }
+ public function setSiteSearch($siteSearch) {
+ $this->siteSearch = $siteSearch;
+ }
+ public function getSiteSearch() {
+ return $this->siteSearch;
+ }
+ public function setCref($cref) {
+ $this->cref = $cref;
+ }
+ public function getCref() {
+ return $this->cref;
+ }
+ public function setDateRestrict($dateRestrict) {
+ $this->dateRestrict = $dateRestrict;
+ }
+ public function getDateRestrict() {
+ return $this->dateRestrict;
+ }
public function setSafe($safe) {
$this->safe = $safe;
}
public function getSafe() {
return $this->safe;
}
+ public function setOutputEncoding($outputEncoding) {
+ $this->outputEncoding = $outputEncoding;
+ }
+ public function getOutputEncoding() {
+ return $this->outputEncoding;
+ }
+ public function setHq($hq) {
+ $this->hq = $hq;
+ }
+ public function getHq() {
+ return $this->hq;
+ }
public function setSearchTerms($searchTerms) {
$this->searchTerms = $searchTerms;
}
public function getSearchTerms() {
return $this->searchTerms;
}
- public function setFilter($filter) {
- $this->filter = $filter;
+ public function setExactTerms($exactTerms) {
+ $this->exactTerms = $exactTerms;
}
- public function getFilter() {
- return $this->filter;
+ public function getExactTerms() {
+ return $this->exactTerms;
}
- public function setStartIndex($startIndex) {
- $this->startIndex = $startIndex;
+ public function setLanguage($language) {
+ $this->language = $language;
}
- public function getStartIndex() {
- return $this->startIndex;
+ public function getLanguage() {
+ return $this->language;
}
- public function setCx($cx) {
- $this->cx = $cx;
+ public function setHl($hl) {
+ $this->hl = $hl;
}
- public function getCx() {
- return $this->cx;
+ public function getHl() {
+ return $this->hl;
}
- public function setStartPage($startPage) {
- $this->startPage = $startPage;
+ public function setTotalResults($totalResults) {
+ $this->totalResults = $totalResults;
}
- public function getStartPage() {
- return $this->startPage;
+ public function getTotalResults() {
+ return $this->totalResults;
}
- public function setInputEncoding($inputEncoding) {
- $this->inputEncoding = $inputEncoding;
+ public function setLowRange($lowRange) {
+ $this->lowRange = $lowRange;
}
- public function getInputEncoding() {
- return $this->inputEncoding;
+ public function getLowRange() {
+ return $this->lowRange;
}
- public function setCr($cr) {
- $this->cr = $cr;
+ public function setCount($count) {
+ $this->count = $count;
}
- public function getCr() {
- return $this->cr;
+ public function getCount() {
+ return $this->count;
}
- public function setGl($gl) {
- $this->gl = $gl;
+ public function setImgSize($imgSize) {
+ $this->imgSize = $imgSize;
}
- public function getGl() {
- return $this->gl;
+ public function getImgSize() {
+ return $this->imgSize;
}
- public function setTotalResults($totalResults) {
- $this->totalResults = $totalResults;
+ public function setImgColorType($imgColorType) {
+ $this->imgColorType = $imgColorType;
}
- public function getTotalResults() {
- return $this->totalResults;
+ public function getImgColorType() {
+ return $this->imgColorType;
}
- public function setCref($cref) {
- $this->cref = $cref;
+ public function setRights($rights) {
+ $this->rights = $rights;
}
- public function getCref() {
- return $this->cref;
+ public function getRights() {
+ return $this->rights;
+ }
+ public function setStartIndex($startIndex) {
+ $this->startIndex = $startIndex;
+ }
+ public function getStartIndex() {
+ return $this->startIndex;
+ }
+ public function setExcludeTerms($excludeTerms) {
+ $this->excludeTerms = $excludeTerms;
+ }
+ public function getExcludeTerms() {
+ return $this->excludeTerms;
+ }
+ public function setFilter($filter) {
+ $this->filter = $filter;
+ }
+ public function getFilter() {
+ return $this->filter;
+ }
+ public function setLinkSite($linkSite) {
+ $this->linkSite = $linkSite;
+ }
+ public function getLinkSite() {
+ return $this->linkSite;
+ }
+ public function setSiteSearchFilter($siteSearchFilter) {
+ $this->siteSearchFilter = $siteSearchFilter;
+ }
+ public function getSiteSearchFilter() {
+ return $this->siteSearchFilter;
}
}
class Result extends apiModel {
+ public $snippet;
public $kind;
+ protected $__labelsType = 'ResultLabels';
+ protected $__labelsDataType = 'array';
+ public $labels;
public $title;
public $displayLink;
public $cacheId;
+ public $formattedUrl;
+ public $htmlFormattedUrl;
public $pagemap;
- public $snippet;
+ public $htmlTitle;
public $htmlSnippet;
public $link;
- public $htmlTitle;
+ protected $__imageType = 'ResultImage';
+ protected $__imageDataType = '';
+ public $image;
+ public $mime;
+ public $fileFormat;
+ public function setSnippet($snippet) {
+ $this->snippet = $snippet;
+ }
+ public function getSnippet() {
+ return $this->snippet;
+ }
public function setKind($kind) {
$this->kind = $kind;
}
public function getKind() {
return $this->kind;
}
+ public function setLabels(/* array(ResultLabels) */ $labels) {
+ $this->assertIsArray($labels, 'ResultLabels', __METHOD__);
+ $this->labels = $labels;
+ }
+ public function getLabels() {
+ return $this->labels;
+ }
public function setTitle($title) {
$this->title = $title;
}
@@ -381,17 +558,29 @@ public function setCacheId($cacheId) {
public function getCacheId() {
return $this->cacheId;
}
+ public function setFormattedUrl($formattedUrl) {
+ $this->formattedUrl = $formattedUrl;
+ }
+ public function getFormattedUrl() {
+ return $this->formattedUrl;
+ }
+ public function setHtmlFormattedUrl($htmlFormattedUrl) {
+ $this->htmlFormattedUrl = $htmlFormattedUrl;
+ }
+ public function getHtmlFormattedUrl() {
+ return $this->htmlFormattedUrl;
+ }
public function setPagemap($pagemap) {
$this->pagemap = $pagemap;
}
public function getPagemap() {
return $this->pagemap;