Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,391 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Annotation extends \Google\Collection
{
protected $collection_key = 'pageIds';
/**
* Anchor text after excerpt. For requests, if the user bookmarked a screen
* that has no flowing text on it, then this field should be empty.
*
* @var string
*/
public $afterSelectedText;
/**
* Anchor text before excerpt. For requests, if the user bookmarked a screen
* that has no flowing text on it, then this field should be empty.
*
* @var string
*/
public $beforeSelectedText;
protected $clientVersionRangesType = AnnotationClientVersionRanges::class;
protected $clientVersionRangesDataType = '';
/**
* Timestamp for the created time of this annotation.
*
* @var string
*/
public $created;
protected $currentVersionRangesType = AnnotationCurrentVersionRanges::class;
protected $currentVersionRangesDataType = '';
/**
* User-created data for this annotation.
*
* @var string
*/
public $data;
/**
* Indicates that this annotation is deleted.
*
* @var bool
*/
public $deleted;
/**
* The highlight style for this annotation.
*
* @var string
*/
public $highlightStyle;
/**
* Id of this annotation, in the form of a GUID.
*
* @var string
*/
public $id;
/**
* Resource type.
*
* @var string
*/
public $kind;
/**
* The layer this annotation is for.
*
* @var string
*/
public $layerId;
protected $layerSummaryType = AnnotationLayerSummary::class;
protected $layerSummaryDataType = '';
/**
* Pages that this annotation spans.
*
* @var string[]
*/
public $pageIds;
/**
* Excerpt from the volume.
*
* @var string
*/
public $selectedText;
/**
* URL to this resource.
*
* @var string
*/
public $selfLink;
/**
* Timestamp for the last time this annotation was modified.
*
* @var string
*/
public $updated;
/**
* The volume that this annotation belongs to.
*
* @var string
*/
public $volumeId;
/**
* Anchor text after excerpt. For requests, if the user bookmarked a screen
* that has no flowing text on it, then this field should be empty.
*
* @param string $afterSelectedText
*/
public function setAfterSelectedText($afterSelectedText)
{
$this->afterSelectedText = $afterSelectedText;
}
/**
* @return string
*/
public function getAfterSelectedText()
{
return $this->afterSelectedText;
}
/**
* Anchor text before excerpt. For requests, if the user bookmarked a screen
* that has no flowing text on it, then this field should be empty.
*
* @param string $beforeSelectedText
*/
public function setBeforeSelectedText($beforeSelectedText)
{
$this->beforeSelectedText = $beforeSelectedText;
}
/**
* @return string
*/
public function getBeforeSelectedText()
{
return $this->beforeSelectedText;
}
/**
* Selection ranges sent from the client.
*
* @param AnnotationClientVersionRanges $clientVersionRanges
*/
public function setClientVersionRanges(AnnotationClientVersionRanges $clientVersionRanges)
{
$this->clientVersionRanges = $clientVersionRanges;
}
/**
* @return AnnotationClientVersionRanges
*/
public function getClientVersionRanges()
{
return $this->clientVersionRanges;
}
/**
* Timestamp for the created time of this annotation.
*
* @param string $created
*/
public function setCreated($created)
{
$this->created = $created;
}
/**
* @return string
*/
public function getCreated()
{
return $this->created;
}
/**
* Selection ranges for the most recent content version.
*
* @param AnnotationCurrentVersionRanges $currentVersionRanges
*/
public function setCurrentVersionRanges(AnnotationCurrentVersionRanges $currentVersionRanges)
{
$this->currentVersionRanges = $currentVersionRanges;
}
/**
* @return AnnotationCurrentVersionRanges
*/
public function getCurrentVersionRanges()
{
return $this->currentVersionRanges;
}
/**
* User-created data for this annotation.
*
* @param string $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return string
*/
public function getData()
{
return $this->data;
}
/**
* Indicates that this annotation is deleted.
*
* @param bool $deleted
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* The highlight style for this annotation.
*
* @param string $highlightStyle
*/
public function setHighlightStyle($highlightStyle)
{
$this->highlightStyle = $highlightStyle;
}
/**
* @return string
*/
public function getHighlightStyle()
{
return $this->highlightStyle;
}
/**
* Id of this annotation, in the form of a GUID.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The layer this annotation is for.
*
* @param string $layerId
*/
public function setLayerId($layerId)
{
$this->layerId = $layerId;
}
/**
* @return string
*/
public function getLayerId()
{
return $this->layerId;
}
/**
* @param AnnotationLayerSummary $layerSummary
*/
public function setLayerSummary(AnnotationLayerSummary $layerSummary)
{
$this->layerSummary = $layerSummary;
}
/**
* @return AnnotationLayerSummary
*/
public function getLayerSummary()
{
return $this->layerSummary;
}
/**
* Pages that this annotation spans.
*
* @param string[] $pageIds
*/
public function setPageIds($pageIds)
{
$this->pageIds = $pageIds;
}
/**
* @return string[]
*/
public function getPageIds()
{
return $this->pageIds;
}
/**
* Excerpt from the volume.
*
* @param string $selectedText
*/
public function setSelectedText($selectedText)
{
$this->selectedText = $selectedText;
}
/**
* @return string
*/
public function getSelectedText()
{
return $this->selectedText;
}
/**
* URL to this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Timestamp for the last time this annotation was modified.
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* The volume that this annotation belongs to.
*
* @param string $volumeId
*/
public function setVolumeId($volumeId)
{
$this->volumeId = $volumeId;
}
/**
* @return string
*/
public function getVolumeId()
{
return $this->volumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Annotation::class, 'Google_Service_Books_Annotation');

View File

@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class AnnotationClientVersionRanges extends \Google\Model
{
protected $cfiRangeType = BooksAnnotationsRange::class;
protected $cfiRangeDataType = '';
/**
* Content version the client sent in.
*
* @var string
*/
public $contentVersion;
protected $gbImageRangeType = BooksAnnotationsRange::class;
protected $gbImageRangeDataType = '';
protected $gbTextRangeType = BooksAnnotationsRange::class;
protected $gbTextRangeDataType = '';
protected $imageCfiRangeType = BooksAnnotationsRange::class;
protected $imageCfiRangeDataType = '';
/**
* Range in CFI format for this annotation sent by client.
*
* @param BooksAnnotationsRange $cfiRange
*/
public function setCfiRange(BooksAnnotationsRange $cfiRange)
{
$this->cfiRange = $cfiRange;
}
/**
* @return BooksAnnotationsRange
*/
public function getCfiRange()
{
return $this->cfiRange;
}
/**
* Content version the client sent in.
*
* @param string $contentVersion
*/
public function setContentVersion($contentVersion)
{
$this->contentVersion = $contentVersion;
}
/**
* @return string
*/
public function getContentVersion()
{
return $this->contentVersion;
}
/**
* Range in GB image format for this annotation sent by client.
*
* @param BooksAnnotationsRange $gbImageRange
*/
public function setGbImageRange(BooksAnnotationsRange $gbImageRange)
{
$this->gbImageRange = $gbImageRange;
}
/**
* @return BooksAnnotationsRange
*/
public function getGbImageRange()
{
return $this->gbImageRange;
}
/**
* Range in GB text format for this annotation sent by client.
*
* @param BooksAnnotationsRange $gbTextRange
*/
public function setGbTextRange(BooksAnnotationsRange $gbTextRange)
{
$this->gbTextRange = $gbTextRange;
}
/**
* @return BooksAnnotationsRange
*/
public function getGbTextRange()
{
return $this->gbTextRange;
}
/**
* Range in image CFI format for this annotation sent by client.
*
* @param BooksAnnotationsRange $imageCfiRange
*/
public function setImageCfiRange(BooksAnnotationsRange $imageCfiRange)
{
$this->imageCfiRange = $imageCfiRange;
}
/**
* @return BooksAnnotationsRange
*/
public function getImageCfiRange()
{
return $this->imageCfiRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnnotationClientVersionRanges::class, 'Google_Service_Books_AnnotationClientVersionRanges');

View File

@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class AnnotationCurrentVersionRanges extends \Google\Model
{
protected $cfiRangeType = BooksAnnotationsRange::class;
protected $cfiRangeDataType = '';
/**
* Content version applicable to ranges below.
*
* @var string
*/
public $contentVersion;
protected $gbImageRangeType = BooksAnnotationsRange::class;
protected $gbImageRangeDataType = '';
protected $gbTextRangeType = BooksAnnotationsRange::class;
protected $gbTextRangeDataType = '';
protected $imageCfiRangeType = BooksAnnotationsRange::class;
protected $imageCfiRangeDataType = '';
/**
* Range in CFI format for this annotation for version above.
*
* @param BooksAnnotationsRange $cfiRange
*/
public function setCfiRange(BooksAnnotationsRange $cfiRange)
{
$this->cfiRange = $cfiRange;
}
/**
* @return BooksAnnotationsRange
*/
public function getCfiRange()
{
return $this->cfiRange;
}
/**
* Content version applicable to ranges below.
*
* @param string $contentVersion
*/
public function setContentVersion($contentVersion)
{
$this->contentVersion = $contentVersion;
}
/**
* @return string
*/
public function getContentVersion()
{
return $this->contentVersion;
}
/**
* Range in GB image format for this annotation for version above.
*
* @param BooksAnnotationsRange $gbImageRange
*/
public function setGbImageRange(BooksAnnotationsRange $gbImageRange)
{
$this->gbImageRange = $gbImageRange;
}
/**
* @return BooksAnnotationsRange
*/
public function getGbImageRange()
{
return $this->gbImageRange;
}
/**
* Range in GB text format for this annotation for version above.
*
* @param BooksAnnotationsRange $gbTextRange
*/
public function setGbTextRange(BooksAnnotationsRange $gbTextRange)
{
$this->gbTextRange = $gbTextRange;
}
/**
* @return BooksAnnotationsRange
*/
public function getGbTextRange()
{
return $this->gbTextRange;
}
/**
* Range in image CFI format for this annotation for version above.
*
* @param BooksAnnotationsRange $imageCfiRange
*/
public function setImageCfiRange(BooksAnnotationsRange $imageCfiRange)
{
$this->imageCfiRange = $imageCfiRange;
}
/**
* @return BooksAnnotationsRange
*/
public function getImageCfiRange()
{
return $this->imageCfiRange;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnnotationCurrentVersionRanges::class, 'Google_Service_Books_AnnotationCurrentVersionRanges');

View File

@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class AnnotationLayerSummary extends \Google\Model
{
/**
* Maximum allowed characters on this layer, especially for the "copy" layer.
*
* @var int
*/
public $allowedCharacterCount;
/**
* Type of limitation on this layer. "limited" or "unlimited" for the "copy"
* layer.
*
* @var string
*/
public $limitType;
/**
* Remaining allowed characters on this layer, especially for the "copy"
* layer.
*
* @var int
*/
public $remainingCharacterCount;
/**
* Maximum allowed characters on this layer, especially for the "copy" layer.
*
* @param int $allowedCharacterCount
*/
public function setAllowedCharacterCount($allowedCharacterCount)
{
$this->allowedCharacterCount = $allowedCharacterCount;
}
/**
* @return int
*/
public function getAllowedCharacterCount()
{
return $this->allowedCharacterCount;
}
/**
* Type of limitation on this layer. "limited" or "unlimited" for the "copy"
* layer.
*
* @param string $limitType
*/
public function setLimitType($limitType)
{
$this->limitType = $limitType;
}
/**
* @return string
*/
public function getLimitType()
{
return $this->limitType;
}
/**
* Remaining allowed characters on this layer, especially for the "copy"
* layer.
*
* @param int $remainingCharacterCount
*/
public function setRemainingCharacterCount($remainingCharacterCount)
{
$this->remainingCharacterCount = $remainingCharacterCount;
}
/**
* @return int
*/
public function getRemainingCharacterCount()
{
return $this->remainingCharacterCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnnotationLayerSummary::class, 'Google_Service_Books_AnnotationLayerSummary');

View File

@@ -0,0 +1,115 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Annotations extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Annotation::class;
protected $itemsDataType = 'array';
/**
* Resource type.
*
* @var string
*/
public $kind;
/**
* Token to pass in for pagination for the next page. This will not be present
* if this request does not have more results.
*
* @var string
*/
public $nextPageToken;
/**
* Total number of annotations found. This may be greater than the number of
* notes returned in this response if results have been paginated.
*
* @var int
*/
public $totalItems;
/**
* A list of annotations.
*
* @param Annotation[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Annotation[]
*/
public function getItems()
{
return $this->items;
}
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Token to pass in for pagination for the next page. This will not be present
* if this request does not have more results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Total number of annotations found. This may be greater than the number of
* notes returned in this response if results have been paginated.
*
* @param int $totalItems
*/
public function setTotalItems($totalItems)
{
$this->totalItems = $totalItems;
}
/**
* @return int
*/
public function getTotalItems()
{
return $this->totalItems;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Annotations::class, 'Google_Service_Books_Annotations');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class AnnotationsSummary extends \Google\Collection
{
protected $collection_key = 'layers';
/**
* @var string
*/
public $kind;
protected $layersType = AnnotationsSummaryLayers::class;
protected $layersDataType = 'array';
/**
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param AnnotationsSummaryLayers[] $layers
*/
public function setLayers($layers)
{
$this->layers = $layers;
}
/**
* @return AnnotationsSummaryLayers[]
*/
public function getLayers()
{
return $this->layers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnnotationsSummary::class, 'Google_Service_Books_AnnotationsSummary');

View File

@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class AnnotationsSummaryLayers extends \Google\Model
{
/**
* @var int
*/
public $allowedCharacterCount;
/**
* @var string
*/
public $layerId;
/**
* @var string
*/
public $limitType;
/**
* @var int
*/
public $remainingCharacterCount;
/**
* @var string
*/
public $updated;
/**
* @param int $allowedCharacterCount
*/
public function setAllowedCharacterCount($allowedCharacterCount)
{
$this->allowedCharacterCount = $allowedCharacterCount;
}
/**
* @return int
*/
public function getAllowedCharacterCount()
{
return $this->allowedCharacterCount;
}
/**
* @param string $layerId
*/
public function setLayerId($layerId)
{
$this->layerId = $layerId;
}
/**
* @return string
*/
public function getLayerId()
{
return $this->layerId;
}
/**
* @param string $limitType
*/
public function setLimitType($limitType)
{
$this->limitType = $limitType;
}
/**
* @return string
*/
public function getLimitType()
{
return $this->limitType;
}
/**
* @param int $remainingCharacterCount
*/
public function setRemainingCharacterCount($remainingCharacterCount)
{
$this->remainingCharacterCount = $remainingCharacterCount;
}
/**
* @return int
*/
public function getRemainingCharacterCount()
{
return $this->remainingCharacterCount;
}
/**
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnnotationsSummaryLayers::class, 'Google_Service_Books_AnnotationsSummaryLayers');

View File

@@ -0,0 +1,113 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Annotationsdata extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = GeoAnnotationdata::class;
protected $itemsDataType = 'array';
/**
* Resource type
*
* @var string
*/
public $kind;
/**
* Token to pass in for pagination for the next page. This will not be present
* if this request does not have more results.
*
* @var string
*/
public $nextPageToken;
/**
* The total number of volume annotations found.
*
* @var int
*/
public $totalItems;
/**
* A list of Annotation Data.
*
* @param GeoAnnotationdata[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return GeoAnnotationdata[]
*/
public function getItems()
{
return $this->items;
}
/**
* Resource type
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Token to pass in for pagination for the next page. This will not be present
* if this request does not have more results.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* The total number of volume annotations found.
*
* @param int $totalItems
*/
public function setTotalItems($totalItems)
{
$this->totalItems = $totalItems;
}
/**
* @return int
*/
public function getTotalItems()
{
return $this->totalItems;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Annotationsdata::class, 'Google_Service_Books_Annotationsdata');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class BooksAnnotationsRange extends \Google\Model
{
/**
* The offset from the ending position.
*
* @var string
*/
public $endOffset;
/**
* The ending position for the range.
*
* @var string
*/
public $endPosition;
/**
* The offset from the starting position.
*
* @var string
*/
public $startOffset;
/**
* The starting position for the range.
*
* @var string
*/
public $startPosition;
/**
* The offset from the ending position.
*
* @param string $endOffset
*/
public function setEndOffset($endOffset)
{
$this->endOffset = $endOffset;
}
/**
* @return string
*/
public function getEndOffset()
{
return $this->endOffset;
}
/**
* The ending position for the range.
*
* @param string $endPosition
*/
public function setEndPosition($endPosition)
{
$this->endPosition = $endPosition;
}
/**
* @return string
*/
public function getEndPosition()
{
return $this->endPosition;
}
/**
* The offset from the starting position.
*
* @param string $startOffset
*/
public function setStartOffset($startOffset)
{
$this->startOffset = $startOffset;
}
/**
* @return string
*/
public function getStartOffset()
{
return $this->startOffset;
}
/**
* The starting position for the range.
*
* @param string $startPosition
*/
public function setStartPosition($startPosition)
{
$this->startPosition = $startPosition;
}
/**
* @return string
*/
public function getStartPosition()
{
return $this->startPosition;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BooksAnnotationsRange::class, 'Google_Service_Books_BooksAnnotationsRange');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class BooksCloudloadingResource extends \Google\Model
{
/**
* @var string
*/
public $author;
/**
* @var string
*/
public $processingState;
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $volumeId;
/**
* @param string $author
*/
public function setAuthor($author)
{
$this->author = $author;
}
/**
* @return string
*/
public function getAuthor()
{
return $this->author;
}
/**
* @param string $processingState
*/
public function setProcessingState($processingState)
{
$this->processingState = $processingState;
}
/**
* @return string
*/
public function getProcessingState()
{
return $this->processingState;
}
/**
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string $volumeId
*/
public function setVolumeId($volumeId)
{
$this->volumeId = $volumeId;
}
/**
* @return string
*/
public function getVolumeId()
{
return $this->volumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BooksCloudloadingResource::class, 'Google_Service_Books_BooksCloudloadingResource');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class BooksEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BooksEmpty::class, 'Google_Service_Books_BooksEmpty');

View File

@@ -0,0 +1,47 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class BooksVolumesRecommendedRateResponse extends \Google\Model
{
protected $internal_gapi_mappings = [
"consistencyToken" => "consistency_token",
];
/**
* @var string
*/
public $consistencyToken;
/**
* @param string $consistencyToken
*/
public function setConsistencyToken($consistencyToken)
{
$this->consistencyToken = $consistencyToken;
}
/**
* @return string
*/
public function getConsistencyToken()
{
return $this->consistencyToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BooksVolumesRecommendedRateResponse::class, 'Google_Service_Books_BooksVolumesRecommendedRateResponse');

View File

@@ -0,0 +1,252 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Bookshelf extends \Google\Model
{
/**
* Whether this bookshelf is PUBLIC or PRIVATE.
*
* @var string
*/
public $access;
/**
* Created time for this bookshelf (formatted UTC timestamp with millisecond
* resolution).
*
* @var string
*/
public $created;
/**
* Description of this bookshelf.
*
* @var string
*/
public $description;
/**
* Id of this bookshelf, only unique by user.
*
* @var int
*/
public $id;
/**
* Resource type for bookshelf metadata.
*
* @var string
*/
public $kind;
/**
* URL to this resource.
*
* @var string
*/
public $selfLink;
/**
* Title of this bookshelf.
*
* @var string
*/
public $title;
/**
* Last modified time of this bookshelf (formatted UTC timestamp with
* millisecond resolution).
*
* @var string
*/
public $updated;
/**
* Number of volumes in this bookshelf.
*
* @var int
*/
public $volumeCount;
/**
* Last time a volume was added or removed from this bookshelf (formatted UTC
* timestamp with millisecond resolution).
*
* @var string
*/
public $volumesLastUpdated;
/**
* Whether this bookshelf is PUBLIC or PRIVATE.
*
* @param string $access
*/
public function setAccess($access)
{
$this->access = $access;
}
/**
* @return string
*/
public function getAccess()
{
return $this->access;
}
/**
* Created time for this bookshelf (formatted UTC timestamp with millisecond
* resolution).
*
* @param string $created
*/
public function setCreated($created)
{
$this->created = $created;
}
/**
* @return string
*/
public function getCreated()
{
return $this->created;
}
/**
* Description of this bookshelf.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Id of this bookshelf, only unique by user.
*
* @param int $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Resource type for bookshelf metadata.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* URL to this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Title of this bookshelf.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Last modified time of this bookshelf (formatted UTC timestamp with
* millisecond resolution).
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* Number of volumes in this bookshelf.
*
* @param int $volumeCount
*/
public function setVolumeCount($volumeCount)
{
$this->volumeCount = $volumeCount;
}
/**
* @return int
*/
public function getVolumeCount()
{
return $this->volumeCount;
}
/**
* Last time a volume was added or removed from this bookshelf (formatted UTC
* timestamp with millisecond resolution).
*
* @param string $volumesLastUpdated
*/
public function setVolumesLastUpdated($volumesLastUpdated)
{
$this->volumesLastUpdated = $volumesLastUpdated;
}
/**
* @return string
*/
public function getVolumesLastUpdated()
{
return $this->volumesLastUpdated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Bookshelf::class, 'Google_Service_Books_Bookshelf');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Bookshelves extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Bookshelf::class;
protected $itemsDataType = 'array';
/**
* Resource type.
*
* @var string
*/
public $kind;
/**
* A list of bookshelves.
*
* @param Bookshelf[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Bookshelf[]
*/
public function getItems()
{
return $this->items;
}
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Bookshelves::class, 'Google_Service_Books_Bookshelves');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Category extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = CategoryItems::class;
protected $itemsDataType = 'array';
/**
* Resource type.
*
* @var string
*/
public $kind;
/**
* A list of onboarding categories.
*
* @param CategoryItems[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return CategoryItems[]
*/
public function getItems()
{
return $this->items;
}
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Category::class, 'Google_Service_Books_Category');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class CategoryItems extends \Google\Model
{
/**
* @var string
*/
public $badgeUrl;
/**
* @var string
*/
public $categoryId;
/**
* @var string
*/
public $name;
/**
* @param string $badgeUrl
*/
public function setBadgeUrl($badgeUrl)
{
$this->badgeUrl = $badgeUrl;
}
/**
* @return string
*/
public function getBadgeUrl()
{
return $this->badgeUrl;
}
/**
* @param string $categoryId
*/
public function setCategoryId($categoryId)
{
$this->categoryId = $categoryId;
}
/**
* @return string
*/
public function getCategoryId()
{
return $this->categoryId;
}
/**
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CategoryItems::class, 'Google_Service_Books_CategoryItems');

View File

@@ -0,0 +1,270 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class ConcurrentAccessRestriction extends \Google\Model
{
/**
* Whether access is granted for this (user, device, volume).
*
* @var bool
*/
public $deviceAllowed;
/**
* Resource type.
*
* @var string
*/
public $kind;
/**
* The maximum number of concurrent access licenses for this volume.
*
* @var int
*/
public $maxConcurrentDevices;
/**
* Error/warning message.
*
* @var string
*/
public $message;
/**
* Client nonce for verification. Download access and client-validation only.
*
* @var string
*/
public $nonce;
/**
* Error/warning reason code.
*
* @var string
*/
public $reasonCode;
/**
* Whether this volume has any concurrent access restrictions.
*
* @var bool
*/
public $restricted;
/**
* Response signature.
*
* @var string
*/
public $signature;
/**
* Client app identifier for verification. Download access and client-
* validation only.
*
* @var string
*/
public $source;
/**
* Time in seconds for license auto-expiration.
*
* @var int
*/
public $timeWindowSeconds;
/**
* Identifies the volume for which this entry applies.
*
* @var string
*/
public $volumeId;
/**
* Whether access is granted for this (user, device, volume).
*
* @param bool $deviceAllowed
*/
public function setDeviceAllowed($deviceAllowed)
{
$this->deviceAllowed = $deviceAllowed;
}
/**
* @return bool
*/
public function getDeviceAllowed()
{
return $this->deviceAllowed;
}
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The maximum number of concurrent access licenses for this volume.
*
* @param int $maxConcurrentDevices
*/
public function setMaxConcurrentDevices($maxConcurrentDevices)
{
$this->maxConcurrentDevices = $maxConcurrentDevices;
}
/**
* @return int
*/
public function getMaxConcurrentDevices()
{
return $this->maxConcurrentDevices;
}
/**
* Error/warning message.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Client nonce for verification. Download access and client-validation only.
*
* @param string $nonce
*/
public function setNonce($nonce)
{
$this->nonce = $nonce;
}
/**
* @return string
*/
public function getNonce()
{
return $this->nonce;
}
/**
* Error/warning reason code.
*
* @param string $reasonCode
*/
public function setReasonCode($reasonCode)
{
$this->reasonCode = $reasonCode;
}
/**
* @return string
*/
public function getReasonCode()
{
return $this->reasonCode;
}
/**
* Whether this volume has any concurrent access restrictions.
*
* @param bool $restricted
*/
public function setRestricted($restricted)
{
$this->restricted = $restricted;
}
/**
* @return bool
*/
public function getRestricted()
{
return $this->restricted;
}
/**
* Response signature.
*
* @param string $signature
*/
public function setSignature($signature)
{
$this->signature = $signature;
}
/**
* @return string
*/
public function getSignature()
{
return $this->signature;
}
/**
* Client app identifier for verification. Download access and client-
* validation only.
*
* @param string $source
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* Time in seconds for license auto-expiration.
*
* @param int $timeWindowSeconds
*/
public function setTimeWindowSeconds($timeWindowSeconds)
{
$this->timeWindowSeconds = $timeWindowSeconds;
}
/**
* @return int
*/
public function getTimeWindowSeconds()
{
return $this->timeWindowSeconds;
}
/**
* Identifies the volume for which this entry applies.
*
* @param string $volumeId
*/
public function setVolumeId($volumeId)
{
$this->volumeId = $volumeId;
}
/**
* @return string
*/
public function getVolumeId()
{
return $this->volumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConcurrentAccessRestriction::class, 'Google_Service_Books_ConcurrentAccessRestriction');

View File

@@ -0,0 +1,223 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictionaryAnnotationdata extends \Google\Model
{
/**
* The type of annotation this data is for.
*
* @var string
*/
public $annotationType;
protected $dataType = Dictlayerdata::class;
protected $dataDataType = '';
/**
* Base64 encoded data for this annotation data.
*
* @var string
*/
public $encodedData;
/**
* Unique id for this annotation data.
*
* @var string
*/
public $id;
/**
* Resource Type
*
* @var string
*/
public $kind;
/**
* The Layer id for this data. *
*
* @var string
*/
public $layerId;
/**
* URL for this resource. *
*
* @var string
*/
public $selfLink;
/**
* Timestamp for the last time this data was updated. (RFC 3339 UTC date-time
* format).
*
* @var string
*/
public $updated;
/**
* The volume id for this data. *
*
* @var string
*/
public $volumeId;
/**
* The type of annotation this data is for.
*
* @param string $annotationType
*/
public function setAnnotationType($annotationType)
{
$this->annotationType = $annotationType;
}
/**
* @return string
*/
public function getAnnotationType()
{
return $this->annotationType;
}
/**
* JSON encoded data for this dictionary annotation data. Emitted with name
* 'data' in JSON output. Either this or geo_data will be populated.
*
* @param Dictlayerdata $data
*/
public function setData(Dictlayerdata $data)
{
$this->data = $data;
}
/**
* @return Dictlayerdata
*/
public function getData()
{
return $this->data;
}
/**
* Base64 encoded data for this annotation data.
*
* @param string $encodedData
*/
public function setEncodedData($encodedData)
{
$this->encodedData = $encodedData;
}
/**
* @return string
*/
public function getEncodedData()
{
return $this->encodedData;
}
/**
* Unique id for this annotation data.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Resource Type
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The Layer id for this data. *
*
* @param string $layerId
*/
public function setLayerId($layerId)
{
$this->layerId = $layerId;
}
/**
* @return string
*/
public function getLayerId()
{
return $this->layerId;
}
/**
* URL for this resource. *
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Timestamp for the last time this data was updated. (RFC 3339 UTC date-time
* format).
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* The volume id for this data. *
*
* @param string $volumeId
*/
public function setVolumeId($volumeId)
{
$this->volumeId = $volumeId;
}
/**
* @return string
*/
public function getVolumeId()
{
return $this->volumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictionaryAnnotationdata::class, 'Google_Service_Books_DictionaryAnnotationdata');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Dictlayerdata extends \Google\Model
{
protected $commonType = DictlayerdataCommon::class;
protected $commonDataType = '';
protected $dictType = DictlayerdataDict::class;
protected $dictDataType = '';
/**
* @var string
*/
public $kind;
/**
* @param DictlayerdataCommon $common
*/
public function setCommon(DictlayerdataCommon $common)
{
$this->common = $common;
}
/**
* @return DictlayerdataCommon
*/
public function getCommon()
{
return $this->common;
}
/**
* @param DictlayerdataDict $dict
*/
public function setDict(DictlayerdataDict $dict)
{
$this->dict = $dict;
}
/**
* @return DictlayerdataDict
*/
public function getDict()
{
return $this->dict;
}
/**
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Dictlayerdata::class, 'Google_Service_Books_Dictlayerdata');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataCommon extends \Google\Model
{
/**
* The display title and localized canonical name to use when searching for
* this entity on Google search.
*
* @var string
*/
public $title;
/**
* The display title and localized canonical name to use when searching for
* this entity on Google search.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataCommon::class, 'Google_Service_Books_DictlayerdataCommon');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDict extends \Google\Collection
{
protected $collection_key = 'words';
protected $sourceType = DictlayerdataDictSource::class;
protected $sourceDataType = '';
protected $wordsType = DictlayerdataDictWords::class;
protected $wordsDataType = 'array';
/**
* The source, url and attribution for this dictionary data.
*
* @param DictlayerdataDictSource $source
*/
public function setSource(DictlayerdataDictSource $source)
{
$this->source = $source;
}
/**
* @return DictlayerdataDictSource
*/
public function getSource()
{
return $this->source;
}
/**
* @param DictlayerdataDictWords[] $words
*/
public function setWords($words)
{
$this->words = $words;
}
/**
* @return DictlayerdataDictWords[]
*/
public function getWords()
{
return $this->words;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDict::class, 'Google_Service_Books_DictlayerdataDict');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictSource extends \Google\Model
{
/**
* @var string
*/
public $attribution;
/**
* @var string
*/
public $url;
/**
* @param string $attribution
*/
public function setAttribution($attribution)
{
$this->attribution = $attribution;
}
/**
* @return string
*/
public function getAttribution()
{
return $this->attribution;
}
/**
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictSource::class, 'Google_Service_Books_DictlayerdataDictSource');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWords extends \Google\Collection
{
protected $collection_key = 'senses';
protected $derivativesType = DictlayerdataDictWordsDerivatives::class;
protected $derivativesDataType = 'array';
protected $examplesType = DictlayerdataDictWordsExamples::class;
protected $examplesDataType = 'array';
protected $sensesType = DictlayerdataDictWordsSenses::class;
protected $sensesDataType = 'array';
protected $sourceType = DictlayerdataDictWordsSource::class;
protected $sourceDataType = '';
/**
* @param DictlayerdataDictWordsDerivatives[] $derivatives
*/
public function setDerivatives($derivatives)
{
$this->derivatives = $derivatives;
}
/**
* @return DictlayerdataDictWordsDerivatives[]
*/
public function getDerivatives()
{
return $this->derivatives;
}
/**
* @param DictlayerdataDictWordsExamples[] $examples
*/
public function setExamples($examples)
{
$this->examples = $examples;
}
/**
* @return DictlayerdataDictWordsExamples[]
*/
public function getExamples()
{
return $this->examples;
}
/**
* @param DictlayerdataDictWordsSenses[] $senses
*/
public function setSenses($senses)
{
$this->senses = $senses;
}
/**
* @return DictlayerdataDictWordsSenses[]
*/
public function getSenses()
{
return $this->senses;
}
/**
* The words with different meanings but not related words, e.g. "go" (game)
* and "go" (verb).
*
* @param DictlayerdataDictWordsSource $source
*/
public function setSource(DictlayerdataDictWordsSource $source)
{
$this->source = $source;
}
/**
* @return DictlayerdataDictWordsSource
*/
public function getSource()
{
return $this->source;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWords::class, 'Google_Service_Books_DictlayerdataDictWords');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsDerivatives extends \Google\Model
{
protected $sourceType = DictlayerdataDictWordsDerivativesSource::class;
protected $sourceDataType = '';
/**
* @var string
*/
public $text;
/**
* @param DictlayerdataDictWordsDerivativesSource $source
*/
public function setSource(DictlayerdataDictWordsDerivativesSource $source)
{
$this->source = $source;
}
/**
* @return DictlayerdataDictWordsDerivativesSource
*/
public function getSource()
{
return $this->source;
}
/**
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsDerivatives::class, 'Google_Service_Books_DictlayerdataDictWordsDerivatives');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsDerivativesSource extends \Google\Model
{
/**
* @var string
*/
public $attribution;
/**
* @var string
*/
public $url;
/**
* @param string $attribution
*/
public function setAttribution($attribution)
{
$this->attribution = $attribution;
}
/**
* @return string
*/
public function getAttribution()
{
return $this->attribution;
}
/**
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsDerivativesSource::class, 'Google_Service_Books_DictlayerdataDictWordsDerivativesSource');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsExamples extends \Google\Model
{
protected $sourceType = DictlayerdataDictWordsExamplesSource::class;
protected $sourceDataType = '';
/**
* @var string
*/
public $text;
/**
* @param DictlayerdataDictWordsExamplesSource $source
*/
public function setSource(DictlayerdataDictWordsExamplesSource $source)
{
$this->source = $source;
}
/**
* @return DictlayerdataDictWordsExamplesSource
*/
public function getSource()
{
return $this->source;
}
/**
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsExamples::class, 'Google_Service_Books_DictlayerdataDictWordsExamples');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsExamplesSource extends \Google\Model
{
/**
* @var string
*/
public $attribution;
/**
* @var string
*/
public $url;
/**
* @param string $attribution
*/
public function setAttribution($attribution)
{
$this->attribution = $attribution;
}
/**
* @return string
*/
public function getAttribution()
{
return $this->attribution;
}
/**
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsExamplesSource::class, 'Google_Service_Books_DictlayerdataDictWordsExamplesSource');

View File

@@ -0,0 +1,163 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsSenses extends \Google\Collection
{
protected $collection_key = 'synonyms';
protected $conjugationsType = DictlayerdataDictWordsSensesConjugations::class;
protected $conjugationsDataType = 'array';
protected $definitionsType = DictlayerdataDictWordsSensesDefinitions::class;
protected $definitionsDataType = 'array';
/**
* @var string
*/
public $partOfSpeech;
/**
* @var string
*/
public $pronunciation;
/**
* @var string
*/
public $pronunciationUrl;
protected $sourceType = DictlayerdataDictWordsSensesSource::class;
protected $sourceDataType = '';
/**
* @var string
*/
public $syllabification;
protected $synonymsType = DictlayerdataDictWordsSensesSynonyms::class;
protected $synonymsDataType = 'array';
/**
* @param DictlayerdataDictWordsSensesConjugations[] $conjugations
*/
public function setConjugations($conjugations)
{
$this->conjugations = $conjugations;
}
/**
* @return DictlayerdataDictWordsSensesConjugations[]
*/
public function getConjugations()
{
return $this->conjugations;
}
/**
* @param DictlayerdataDictWordsSensesDefinitions[] $definitions
*/
public function setDefinitions($definitions)
{
$this->definitions = $definitions;
}
/**
* @return DictlayerdataDictWordsSensesDefinitions[]
*/
public function getDefinitions()
{
return $this->definitions;
}
/**
* @param string $partOfSpeech
*/
public function setPartOfSpeech($partOfSpeech)
{
$this->partOfSpeech = $partOfSpeech;
}
/**
* @return string
*/
public function getPartOfSpeech()
{
return $this->partOfSpeech;
}
/**
* @param string $pronunciation
*/
public function setPronunciation($pronunciation)
{
$this->pronunciation = $pronunciation;
}
/**
* @return string
*/
public function getPronunciation()
{
return $this->pronunciation;
}
/**
* @param string $pronunciationUrl
*/
public function setPronunciationUrl($pronunciationUrl)
{
$this->pronunciationUrl = $pronunciationUrl;
}
/**
* @return string
*/
public function getPronunciationUrl()
{
return $this->pronunciationUrl;
}
/**
* @param DictlayerdataDictWordsSensesSource $source
*/
public function setSource(DictlayerdataDictWordsSensesSource $source)
{
$this->source = $source;
}
/**
* @return DictlayerdataDictWordsSensesSource
*/
public function getSource()
{
return $this->source;
}
/**
* @param string $syllabification
*/
public function setSyllabification($syllabification)
{
$this->syllabification = $syllabification;
}
/**
* @return string
*/
public function getSyllabification()
{
return $this->syllabification;
}
/**
* @param DictlayerdataDictWordsSensesSynonyms[] $synonyms
*/
public function setSynonyms($synonyms)
{
$this->synonyms = $synonyms;
}
/**
* @return DictlayerdataDictWordsSensesSynonyms[]
*/
public function getSynonyms()
{
return $this->synonyms;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsSenses::class, 'Google_Service_Books_DictlayerdataDictWordsSenses');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsSensesConjugations extends \Google\Model
{
/**
* @var string
*/
public $type;
/**
* @var string
*/
public $value;
/**
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsSensesConjugations::class, 'Google_Service_Books_DictlayerdataDictWordsSensesConjugations');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsSensesDefinitions extends \Google\Collection
{
protected $collection_key = 'examples';
/**
* @var string
*/
public $definition;
protected $examplesType = DictlayerdataDictWordsSensesDefinitionsExamples::class;
protected $examplesDataType = 'array';
/**
* @param string $definition
*/
public function setDefinition($definition)
{
$this->definition = $definition;
}
/**
* @return string
*/
public function getDefinition()
{
return $this->definition;
}
/**
* @param DictlayerdataDictWordsSensesDefinitionsExamples[] $examples
*/
public function setExamples($examples)
{
$this->examples = $examples;
}
/**
* @return DictlayerdataDictWordsSensesDefinitionsExamples[]
*/
public function getExamples()
{
return $this->examples;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsSensesDefinitions::class, 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitions');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsSensesDefinitionsExamples extends \Google\Model
{
protected $sourceType = DictlayerdataDictWordsSensesDefinitionsExamplesSource::class;
protected $sourceDataType = '';
/**
* @var string
*/
public $text;
/**
* @param DictlayerdataDictWordsSensesDefinitionsExamplesSource $source
*/
public function setSource(DictlayerdataDictWordsSensesDefinitionsExamplesSource $source)
{
$this->source = $source;
}
/**
* @return DictlayerdataDictWordsSensesDefinitionsExamplesSource
*/
public function getSource()
{
return $this->source;
}
/**
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsSensesDefinitionsExamples::class, 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamples');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsSensesDefinitionsExamplesSource extends \Google\Model
{
/**
* @var string
*/
public $attribution;
/**
* @var string
*/
public $url;
/**
* @param string $attribution
*/
public function setAttribution($attribution)
{
$this->attribution = $attribution;
}
/**
* @return string
*/
public function getAttribution()
{
return $this->attribution;
}
/**
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsSensesDefinitionsExamplesSource::class, 'Google_Service_Books_DictlayerdataDictWordsSensesDefinitionsExamplesSource');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsSensesSource extends \Google\Model
{
/**
* @var string
*/
public $attribution;
/**
* @var string
*/
public $url;
/**
* @param string $attribution
*/
public function setAttribution($attribution)
{
$this->attribution = $attribution;
}
/**
* @return string
*/
public function getAttribution()
{
return $this->attribution;
}
/**
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsSensesSource::class, 'Google_Service_Books_DictlayerdataDictWordsSensesSource');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsSensesSynonyms extends \Google\Model
{
protected $sourceType = DictlayerdataDictWordsSensesSynonymsSource::class;
protected $sourceDataType = '';
/**
* @var string
*/
public $text;
/**
* @param DictlayerdataDictWordsSensesSynonymsSource $source
*/
public function setSource(DictlayerdataDictWordsSensesSynonymsSource $source)
{
$this->source = $source;
}
/**
* @return DictlayerdataDictWordsSensesSynonymsSource
*/
public function getSource()
{
return $this->source;
}
/**
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsSensesSynonyms::class, 'Google_Service_Books_DictlayerdataDictWordsSensesSynonyms');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsSensesSynonymsSource extends \Google\Model
{
/**
* @var string
*/
public $attribution;
/**
* @var string
*/
public $url;
/**
* @param string $attribution
*/
public function setAttribution($attribution)
{
$this->attribution = $attribution;
}
/**
* @return string
*/
public function getAttribution()
{
return $this->attribution;
}
/**
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsSensesSynonymsSource::class, 'Google_Service_Books_DictlayerdataDictWordsSensesSynonymsSource');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DictlayerdataDictWordsSource extends \Google\Model
{
/**
* @var string
*/
public $attribution;
/**
* @var string
*/
public $url;
/**
* @param string $attribution
*/
public function setAttribution($attribution)
{
$this->attribution = $attribution;
}
/**
* @return string
*/
public function getAttribution()
{
return $this->attribution;
}
/**
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DictlayerdataDictWordsSource::class, 'Google_Service_Books_DictlayerdataDictWordsSource');

View File

@@ -0,0 +1,83 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Discoveryclusters extends \Google\Collection
{
protected $collection_key = 'clusters';
protected $clustersType = DiscoveryclustersClusters::class;
protected $clustersDataType = 'array';
/**
* Resorce type.
*
* @var string
*/
public $kind;
/**
* @var int
*/
public $totalClusters;
/**
* @param DiscoveryclustersClusters[] $clusters
*/
public function setClusters($clusters)
{
$this->clusters = $clusters;
}
/**
* @return DiscoveryclustersClusters[]
*/
public function getClusters()
{
return $this->clusters;
}
/**
* Resorce type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param int $totalClusters
*/
public function setTotalClusters($totalClusters)
{
$this->totalClusters = $totalClusters;
}
/**
* @return int
*/
public function getTotalClusters()
{
return $this->totalClusters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Discoveryclusters::class, 'Google_Service_Books_Discoveryclusters');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DiscoveryclustersClusters extends \Google\Collection
{
protected $collection_key = 'volumes';
protected $internal_gapi_mappings = [
"bannerWithContentContainer" => "banner_with_content_container",
];
protected $bannerWithContentContainerType = DiscoveryclustersClustersBannerWithContentContainer::class;
protected $bannerWithContentContainerDataType = '';
/**
* @var string
*/
public $subTitle;
/**
* @var string
*/
public $title;
/**
* @var int
*/
public $totalVolumes;
/**
* @var string
*/
public $uid;
protected $volumesType = Volume::class;
protected $volumesDataType = 'array';
/**
* @param DiscoveryclustersClustersBannerWithContentContainer $bannerWithContentContainer
*/
public function setBannerWithContentContainer(DiscoveryclustersClustersBannerWithContentContainer $bannerWithContentContainer)
{
$this->bannerWithContentContainer = $bannerWithContentContainer;
}
/**
* @return DiscoveryclustersClustersBannerWithContentContainer
*/
public function getBannerWithContentContainer()
{
return $this->bannerWithContentContainer;
}
/**
* @param string $subTitle
*/
public function setSubTitle($subTitle)
{
$this->subTitle = $subTitle;
}
/**
* @return string
*/
public function getSubTitle()
{
return $this->subTitle;
}
/**
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param int $totalVolumes
*/
public function setTotalVolumes($totalVolumes)
{
$this->totalVolumes = $totalVolumes;
}
/**
* @return int
*/
public function getTotalVolumes()
{
return $this->totalVolumes;
}
/**
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
/**
* @param Volume[] $volumes
*/
public function setVolumes($volumes)
{
$this->volumes = $volumes;
}
/**
* @return Volume[]
*/
public function getVolumes()
{
return $this->volumes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiscoveryclustersClusters::class, 'Google_Service_Books_DiscoveryclustersClusters');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DiscoveryclustersClustersBannerWithContentContainer extends \Google\Model
{
/**
* @var string
*/
public $fillColorArgb;
/**
* @var string
*/
public $imageUrl;
/**
* @var string
*/
public $maskColorArgb;
/**
* @var string
*/
public $moreButtonText;
/**
* @var string
*/
public $moreButtonUrl;
/**
* @var string
*/
public $textColorArgb;
/**
* @param string $fillColorArgb
*/
public function setFillColorArgb($fillColorArgb)
{
$this->fillColorArgb = $fillColorArgb;
}
/**
* @return string
*/
public function getFillColorArgb()
{
return $this->fillColorArgb;
}
/**
* @param string $imageUrl
*/
public function setImageUrl($imageUrl)
{
$this->imageUrl = $imageUrl;
}
/**
* @return string
*/
public function getImageUrl()
{
return $this->imageUrl;
}
/**
* @param string $maskColorArgb
*/
public function setMaskColorArgb($maskColorArgb)
{
$this->maskColorArgb = $maskColorArgb;
}
/**
* @return string
*/
public function getMaskColorArgb()
{
return $this->maskColorArgb;
}
/**
* @param string $moreButtonText
*/
public function setMoreButtonText($moreButtonText)
{
$this->moreButtonText = $moreButtonText;
}
/**
* @return string
*/
public function getMoreButtonText()
{
return $this->moreButtonText;
}
/**
* @param string $moreButtonUrl
*/
public function setMoreButtonUrl($moreButtonUrl)
{
$this->moreButtonUrl = $moreButtonUrl;
}
/**
* @return string
*/
public function getMoreButtonUrl()
{
return $this->moreButtonUrl;
}
/**
* @param string $textColorArgb
*/
public function setTextColorArgb($textColorArgb)
{
$this->textColorArgb = $textColorArgb;
}
/**
* @return string
*/
public function getTextColorArgb()
{
return $this->textColorArgb;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiscoveryclustersClustersBannerWithContentContainer::class, 'Google_Service_Books_DiscoveryclustersClustersBannerWithContentContainer');

View File

@@ -0,0 +1,300 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DownloadAccessRestriction extends \Google\Model
{
/**
* If restricted, whether access is granted for this (user, device, volume).
*
* @var bool
*/
public $deviceAllowed;
/**
* If restricted, the number of content download licenses already acquired
* (including the requesting client, if licensed).
*
* @var int
*/
public $downloadsAcquired;
/**
* If deviceAllowed, whether access was just acquired with this request.
*
* @var bool
*/
public $justAcquired;
/**
* Resource type.
*
* @var string
*/
public $kind;
/**
* If restricted, the maximum number of content download licenses for this
* volume.
*
* @var int
*/
public $maxDownloadDevices;
/**
* Error/warning message.
*
* @var string
*/
public $message;
/**
* Client nonce for verification. Download access and client-validation only.
*
* @var string
*/
public $nonce;
/**
* Error/warning reason code. Additional codes may be added in the future. 0
* OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200
* WARNING_USED_LAST_ACCESS
*
* @var string
*/
public $reasonCode;
/**
* Whether this volume has any download access restrictions.
*
* @var bool
*/
public $restricted;
/**
* Response signature.
*
* @var string
*/
public $signature;
/**
* Client app identifier for verification. Download access and client-
* validation only.
*
* @var string
*/
public $source;
/**
* Identifies the volume for which this entry applies.
*
* @var string
*/
public $volumeId;
/**
* If restricted, whether access is granted for this (user, device, volume).
*
* @param bool $deviceAllowed
*/
public function setDeviceAllowed($deviceAllowed)
{
$this->deviceAllowed = $deviceAllowed;
}
/**
* @return bool
*/
public function getDeviceAllowed()
{
return $this->deviceAllowed;
}
/**
* If restricted, the number of content download licenses already acquired
* (including the requesting client, if licensed).
*
* @param int $downloadsAcquired
*/
public function setDownloadsAcquired($downloadsAcquired)
{
$this->downloadsAcquired = $downloadsAcquired;
}
/**
* @return int
*/
public function getDownloadsAcquired()
{
return $this->downloadsAcquired;
}
/**
* If deviceAllowed, whether access was just acquired with this request.
*
* @param bool $justAcquired
*/
public function setJustAcquired($justAcquired)
{
$this->justAcquired = $justAcquired;
}
/**
* @return bool
*/
public function getJustAcquired()
{
return $this->justAcquired;
}
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* If restricted, the maximum number of content download licenses for this
* volume.
*
* @param int $maxDownloadDevices
*/
public function setMaxDownloadDevices($maxDownloadDevices)
{
$this->maxDownloadDevices = $maxDownloadDevices;
}
/**
* @return int
*/
public function getMaxDownloadDevices()
{
return $this->maxDownloadDevices;
}
/**
* Error/warning message.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Client nonce for verification. Download access and client-validation only.
*
* @param string $nonce
*/
public function setNonce($nonce)
{
$this->nonce = $nonce;
}
/**
* @return string
*/
public function getNonce()
{
return $this->nonce;
}
/**
* Error/warning reason code. Additional codes may be added in the future. 0
* OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200
* WARNING_USED_LAST_ACCESS
*
* @param string $reasonCode
*/
public function setReasonCode($reasonCode)
{
$this->reasonCode = $reasonCode;
}
/**
* @return string
*/
public function getReasonCode()
{
return $this->reasonCode;
}
/**
* Whether this volume has any download access restrictions.
*
* @param bool $restricted
*/
public function setRestricted($restricted)
{
$this->restricted = $restricted;
}
/**
* @return bool
*/
public function getRestricted()
{
return $this->restricted;
}
/**
* Response signature.
*
* @param string $signature
*/
public function setSignature($signature)
{
$this->signature = $signature;
}
/**
* @return string
*/
public function getSignature()
{
return $this->signature;
}
/**
* Client app identifier for verification. Download access and client-
* validation only.
*
* @param string $source
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* Identifies the volume for which this entry applies.
*
* @param string $volumeId
*/
public function setVolumeId($volumeId)
{
$this->volumeId = $volumeId;
}
/**
* @return string
*/
public function getVolumeId()
{
return $this->volumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DownloadAccessRestriction::class, 'Google_Service_Books_DownloadAccessRestriction');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class DownloadAccesses extends \Google\Collection
{
protected $collection_key = 'downloadAccessList';
protected $downloadAccessListType = DownloadAccessRestriction::class;
protected $downloadAccessListDataType = 'array';
/**
* Resource type.
*
* @var string
*/
public $kind;
/**
* A list of download access responses.
*
* @param DownloadAccessRestriction[] $downloadAccessList
*/
public function setDownloadAccessList($downloadAccessList)
{
$this->downloadAccessList = $downloadAccessList;
}
/**
* @return DownloadAccessRestriction[]
*/
public function getDownloadAccessList()
{
return $this->downloadAccessList;
}
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DownloadAccesses::class, 'Google_Service_Books_DownloadAccesses');

View File

@@ -0,0 +1,66 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class FamilyInfo extends \Google\Model
{
/**
* Resource type.
*
* @var string
*/
public $kind;
protected $membershipType = FamilyInfoMembership::class;
protected $membershipDataType = '';
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Family membership info of the user that made the request.
*
* @param FamilyInfoMembership $membership
*/
public function setMembership(FamilyInfoMembership $membership)
{
$this->membership = $membership;
}
/**
* @return FamilyInfoMembership
*/
public function getMembership()
{
return $this->membership;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FamilyInfo::class, 'Google_Service_Books_FamilyInfo');

View File

@@ -0,0 +1,132 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class FamilyInfoMembership extends \Google\Model
{
/**
* Restrictions on user buying and acquiring content.
*
* @var string
*/
public $acquirePermission;
/**
* The age group of the user.
*
* @var string
*/
public $ageGroup;
/**
* The maximum allowed maturity rating for the user.
*
* @var string
*/
public $allowedMaturityRating;
/**
* @var bool
*/
public $isInFamily;
/**
* The role of the user in the family.
*
* @var string
*/
public $role;
/**
* Restrictions on user buying and acquiring content.
*
* @param string $acquirePermission
*/
public function setAcquirePermission($acquirePermission)
{
$this->acquirePermission = $acquirePermission;
}
/**
* @return string
*/
public function getAcquirePermission()
{
return $this->acquirePermission;
}
/**
* The age group of the user.
*
* @param string $ageGroup
*/
public function setAgeGroup($ageGroup)
{
$this->ageGroup = $ageGroup;
}
/**
* @return string
*/
public function getAgeGroup()
{
return $this->ageGroup;
}
/**
* The maximum allowed maturity rating for the user.
*
* @param string $allowedMaturityRating
*/
public function setAllowedMaturityRating($allowedMaturityRating)
{
$this->allowedMaturityRating = $allowedMaturityRating;
}
/**
* @return string
*/
public function getAllowedMaturityRating()
{
return $this->allowedMaturityRating;
}
/**
* @param bool $isInFamily
*/
public function setIsInFamily($isInFamily)
{
$this->isInFamily = $isInFamily;
}
/**
* @return bool
*/
public function getIsInFamily()
{
return $this->isInFamily;
}
/**
* The role of the user in the family.
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FamilyInfoMembership::class, 'Google_Service_Books_FamilyInfoMembership');

View File

@@ -0,0 +1,223 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class GeoAnnotationdata extends \Google\Model
{
/**
* The type of annotation this data is for.
*
* @var string
*/
public $annotationType;
protected $dataType = Geolayerdata::class;
protected $dataDataType = '';
/**
* Base64 encoded data for this annotation data.
*
* @var string
*/
public $encodedData;
/**
* Unique id for this annotation data.
*
* @var string
*/
public $id;
/**
* Resource Type
*
* @var string
*/
public $kind;
/**
* The Layer id for this data. *
*
* @var string
*/
public $layerId;
/**
* URL for this resource. *
*
* @var string
*/
public $selfLink;
/**
* Timestamp for the last time this data was updated. (RFC 3339 UTC date-time
* format).
*
* @var string
*/
public $updated;
/**
* The volume id for this data. *
*
* @var string
*/
public $volumeId;
/**
* The type of annotation this data is for.
*
* @param string $annotationType
*/
public function setAnnotationType($annotationType)
{
$this->annotationType = $annotationType;
}
/**
* @return string
*/
public function getAnnotationType()
{
return $this->annotationType;
}
/**
* JSON encoded data for this geo annotation data. Emitted with name 'data' in
* JSON output. Either this or dict_data will be populated.
*
* @param Geolayerdata $data
*/
public function setData(Geolayerdata $data)
{
$this->data = $data;
}
/**
* @return Geolayerdata
*/
public function getData()
{
return $this->data;
}
/**
* Base64 encoded data for this annotation data.
*
* @param string $encodedData
*/
public function setEncodedData($encodedData)
{
$this->encodedData = $encodedData;
}
/**
* @return string
*/
public function getEncodedData()
{
return $this->encodedData;
}
/**
* Unique id for this annotation data.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Resource Type
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The Layer id for this data. *
*
* @param string $layerId
*/
public function setLayerId($layerId)
{
$this->layerId = $layerId;
}
/**
* @return string
*/
public function getLayerId()
{
return $this->layerId;
}
/**
* URL for this resource. *
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Timestamp for the last time this data was updated. (RFC 3339 UTC date-time
* format).
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* The volume id for this data. *
*
* @param string $volumeId
*/
public function setVolumeId($volumeId)
{
$this->volumeId = $volumeId;
}
/**
* @return string
*/
public function getVolumeId()
{
return $this->volumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeoAnnotationdata::class, 'Google_Service_Books_GeoAnnotationdata');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Geolayerdata extends \Google\Model
{
protected $commonType = GeolayerdataCommon::class;
protected $commonDataType = '';
protected $geoType = GeolayerdataGeo::class;
protected $geoDataType = '';
/**
* @var string
*/
public $kind;
/**
* @param GeolayerdataCommon $common
*/
public function setCommon(GeolayerdataCommon $common)
{
$this->common = $common;
}
/**
* @return GeolayerdataCommon
*/
public function getCommon()
{
return $this->common;
}
/**
* @param GeolayerdataGeo $geo
*/
public function setGeo(GeolayerdataGeo $geo)
{
$this->geo = $geo;
}
/**
* @return GeolayerdataGeo
*/
public function getGeo()
{
return $this->geo;
}
/**
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Geolayerdata::class, 'Google_Service_Books_Geolayerdata');

View File

@@ -0,0 +1,138 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class GeolayerdataCommon extends \Google\Model
{
/**
* The language of the information url and description.
*
* @var string
*/
public $lang;
/**
* The URL for the preview image information.
*
* @var string
*/
public $previewImageUrl;
/**
* The description for this location.
*
* @var string
*/
public $snippet;
/**
* The URL for information for this location. Ex: wikipedia link.
*
* @var string
*/
public $snippetUrl;
/**
* The display title and localized canonical name to use when searching for
* this entity on Google search.
*
* @var string
*/
public $title;
/**
* The language of the information url and description.
*
* @param string $lang
*/
public function setLang($lang)
{
$this->lang = $lang;
}
/**
* @return string
*/
public function getLang()
{
return $this->lang;
}
/**
* The URL for the preview image information.
*
* @param string $previewImageUrl
*/
public function setPreviewImageUrl($previewImageUrl)
{
$this->previewImageUrl = $previewImageUrl;
}
/**
* @return string
*/
public function getPreviewImageUrl()
{
return $this->previewImageUrl;
}
/**
* The description for this location.
*
* @param string $snippet
*/
public function setSnippet($snippet)
{
$this->snippet = $snippet;
}
/**
* @return string
*/
public function getSnippet()
{
return $this->snippet;
}
/**
* The URL for information for this location. Ex: wikipedia link.
*
* @param string $snippetUrl
*/
public function setSnippetUrl($snippetUrl)
{
$this->snippetUrl = $snippetUrl;
}
/**
* @return string
*/
public function getSnippetUrl()
{
return $this->snippetUrl;
}
/**
* The display title and localized canonical name to use when searching for
* this entity on Google search.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeolayerdataCommon::class, 'Google_Service_Books_GeolayerdataCommon');

View File

@@ -0,0 +1,194 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class GeolayerdataGeo extends \Google\Collection
{
protected $collection_key = 'boundary';
/**
* The boundary of the location as a set of loops containing pairs of
* latitude, longitude coordinates.
*
* @var string[]
*/
public $boundary;
/**
* The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER
*
* @var string
*/
public $cachePolicy;
/**
* The country code of the location.
*
* @var string
*/
public $countryCode;
/**
* The latitude of the location.
*
* @var
*/
public $latitude;
/**
* The longitude of the location.
*
* @var
*/
public $longitude;
/**
* The type of map that should be used for this location. EX: HYBRID, ROADMAP,
* SATELLITE, TERRAIN
*
* @var string
*/
public $mapType;
protected $viewportType = GeolayerdataGeoViewport::class;
protected $viewportDataType = '';
/**
* The Zoom level to use for the map. Zoom levels between 0 (the lowest zoom
* level, in which the entire world can be seen on one map) to 21+ (down to
* individual buildings). See: https:
* //developers.google.com/maps/documentation/staticmaps/#Zoomlevels
*
* @var int
*/
public $zoom;
/**
* The boundary of the location as a set of loops containing pairs of
* latitude, longitude coordinates.
*
* @param string[] $boundary
*/
public function setBoundary($boundary)
{
$this->boundary = $boundary;
}
/**
* @return string[]
*/
public function getBoundary()
{
return $this->boundary;
}
/**
* The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER
*
* @param string $cachePolicy
*/
public function setCachePolicy($cachePolicy)
{
$this->cachePolicy = $cachePolicy;
}
/**
* @return string
*/
public function getCachePolicy()
{
return $this->cachePolicy;
}
/**
* The country code of the location.
*
* @param string $countryCode
*/
public function setCountryCode($countryCode)
{
$this->countryCode = $countryCode;
}
/**
* @return string
*/
public function getCountryCode()
{
return $this->countryCode;
}
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;
}
/**
* The type of map that should be used for this location. EX: HYBRID, ROADMAP,
* SATELLITE, TERRAIN
*
* @param string $mapType
*/
public function setMapType($mapType)
{
$this->mapType = $mapType;
}
/**
* @return string
*/
public function getMapType()
{
return $this->mapType;
}
/**
* The viewport for showing this location. This is a latitude, longitude
* rectangle.
*
* @param GeolayerdataGeoViewport $viewport
*/
public function setViewport(GeolayerdataGeoViewport $viewport)
{
$this->viewport = $viewport;
}
/**
* @return GeolayerdataGeoViewport
*/
public function getViewport()
{
return $this->viewport;
}
/**
* The Zoom level to use for the map. Zoom levels between 0 (the lowest zoom
* level, in which the entire world can be seen on one map) to 21+ (down to
* individual buildings). See: https:
* //developers.google.com/maps/documentation/staticmaps/#Zoomlevels
*
* @param int $zoom
*/
public function setZoom($zoom)
{
$this->zoom = $zoom;
}
/**
* @return int
*/
public function getZoom()
{
return $this->zoom;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeolayerdataGeo::class, 'Google_Service_Books_GeolayerdataGeo');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class GeolayerdataGeoViewport extends \Google\Model
{
protected $hiType = GeolayerdataGeoViewportHi::class;
protected $hiDataType = '';
protected $loType = GeolayerdataGeoViewportLo::class;
protected $loDataType = '';
/**
* @param GeolayerdataGeoViewportHi $hi
*/
public function setHi(GeolayerdataGeoViewportHi $hi)
{
$this->hi = $hi;
}
/**
* @return GeolayerdataGeoViewportHi
*/
public function getHi()
{
return $this->hi;
}
/**
* @param GeolayerdataGeoViewportLo $lo
*/
public function setLo(GeolayerdataGeoViewportLo $lo)
{
$this->lo = $lo;
}
/**
* @return GeolayerdataGeoViewportLo
*/
public function getLo()
{
return $this->lo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeolayerdataGeoViewport::class, 'Google_Service_Books_GeolayerdataGeoViewport');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class GeolayerdataGeoViewportHi extends \Google\Model
{
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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeolayerdataGeoViewportHi::class, 'Google_Service_Books_GeolayerdataGeoViewportHi');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class GeolayerdataGeoViewportLo extends \Google\Model
{
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;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GeolayerdataGeoViewportLo::class, 'Google_Service_Books_GeolayerdataGeoViewportLo');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Layersummaries extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = Layersummary::class;
protected $itemsDataType = 'array';
/**
* Resource type.
*
* @var string
*/
public $kind;
/**
* The total number of layer summaries found.
*
* @var int
*/
public $totalItems;
/**
* A list of layer summary items.
*
* @param Layersummary[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Layersummary[]
*/
public function getItems()
{
return $this->items;
}
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The total number of layer summaries found.
*
* @param int $totalItems
*/
public function setTotalItems($totalItems)
{
$this->totalItems = $totalItems;
}
/**
* @return int
*/
public function getTotalItems()
{
return $this->totalItems;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Layersummaries::class, 'Google_Service_Books_Layersummaries');

View File

@@ -0,0 +1,319 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Layersummary extends \Google\Collection
{
protected $collection_key = 'annotationTypes';
/**
* The number of annotations for this layer.
*
* @var int
*/
public $annotationCount;
/**
* The list of annotation types contained for this layer.
*
* @var string[]
*/
public $annotationTypes;
/**
* Link to get data for this annotation.
*
* @var string
*/
public $annotationsDataLink;
/**
* The link to get the annotations for this layer.
*
* @var string
*/
public $annotationsLink;
/**
* The content version this resource is for.
*
* @var string
*/
public $contentVersion;
/**
* The number of data items for this layer.
*
* @var int
*/
public $dataCount;
/**
* Unique id of this layer summary.
*
* @var string
*/
public $id;
/**
* Resource Type
*
* @var string
*/
public $kind;
/**
* The layer id for this summary.
*
* @var string
*/
public $layerId;
/**
* URL to this resource.
*
* @var string
*/
public $selfLink;
/**
* Timestamp for the last time an item in this layer was updated. (RFC 3339
* UTC date-time format).
*
* @var string
*/
public $updated;
/**
* The current version of this layer's volume annotations. Note that this
* version applies only to the data in the books.layers.volumeAnnotations.*
* responses. The actual annotation data is versioned separately.
*
* @var string
*/
public $volumeAnnotationsVersion;
/**
* The volume id this resource is for.
*
* @var string
*/
public $volumeId;
/**
* The number of annotations for this layer.
*
* @param int $annotationCount
*/
public function setAnnotationCount($annotationCount)
{
$this->annotationCount = $annotationCount;
}
/**
* @return int
*/
public function getAnnotationCount()
{
return $this->annotationCount;
}
/**
* The list of annotation types contained for this layer.
*
* @param string[] $annotationTypes
*/
public function setAnnotationTypes($annotationTypes)
{
$this->annotationTypes = $annotationTypes;
}
/**
* @return string[]
*/
public function getAnnotationTypes()
{
return $this->annotationTypes;
}
/**
* Link to get data for this annotation.
*
* @param string $annotationsDataLink
*/
public function setAnnotationsDataLink($annotationsDataLink)
{
$this->annotationsDataLink = $annotationsDataLink;
}
/**
* @return string
*/
public function getAnnotationsDataLink()
{
return $this->annotationsDataLink;
}
/**
* The link to get the annotations for this layer.
*
* @param string $annotationsLink
*/
public function setAnnotationsLink($annotationsLink)
{
$this->annotationsLink = $annotationsLink;
}
/**
* @return string
*/
public function getAnnotationsLink()
{
return $this->annotationsLink;
}
/**
* The content version this resource is for.
*
* @param string $contentVersion
*/
public function setContentVersion($contentVersion)
{
$this->contentVersion = $contentVersion;
}
/**
* @return string
*/
public function getContentVersion()
{
return $this->contentVersion;
}
/**
* The number of data items for this layer.
*
* @param int $dataCount
*/
public function setDataCount($dataCount)
{
$this->dataCount = $dataCount;
}
/**
* @return int
*/
public function getDataCount()
{
return $this->dataCount;
}
/**
* Unique id of this layer summary.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Resource Type
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The layer id for this summary.
*
* @param string $layerId
*/
public function setLayerId($layerId)
{
$this->layerId = $layerId;
}
/**
* @return string
*/
public function getLayerId()
{
return $this->layerId;
}
/**
* URL to this resource.
*
* @param string $selfLink
*/
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
/**
* @return string
*/
public function getSelfLink()
{
return $this->selfLink;
}
/**
* Timestamp for the last time an item in this layer was updated. (RFC 3339
* UTC date-time format).
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* The current version of this layer's volume annotations. Note that this
* version applies only to the data in the books.layers.volumeAnnotations.*
* responses. The actual annotation data is versioned separately.
*
* @param string $volumeAnnotationsVersion
*/
public function setVolumeAnnotationsVersion($volumeAnnotationsVersion)
{
$this->volumeAnnotationsVersion = $volumeAnnotationsVersion;
}
/**
* @return string
*/
public function getVolumeAnnotationsVersion()
{
return $this->volumeAnnotationsVersion;
}
/**
* The volume id this resource is for.
*
* @param string $volumeId
*/
public function setVolumeId($volumeId)
{
$this->volumeId = $volumeId;
}
/**
* @return string
*/
public function getVolumeId()
{
return $this->volumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Layersummary::class, 'Google_Service_Books_Layersummary');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Metadata extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = MetadataItems::class;
protected $itemsDataType = 'array';
/**
* Resource type.
*
* @var string
*/
public $kind;
/**
* A list of offline dictionary metadata.
*
* @param MetadataItems[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return MetadataItems[]
*/
public function getItems()
{
return $this->items;
}
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Metadata::class, 'Google_Service_Books_Metadata');

View File

@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class MetadataItems extends \Google\Model
{
protected $internal_gapi_mappings = [
"downloadUrl" => "download_url",
"encryptedKey" => "encrypted_key",
];
/**
* @var string
*/
public $downloadUrl;
/**
* @var string
*/
public $encryptedKey;
/**
* @var string
*/
public $language;
/**
* @var string
*/
public $size;
/**
* @var string
*/
public $version;
/**
* @param string $downloadUrl
*/
public function setDownloadUrl($downloadUrl)
{
$this->downloadUrl = $downloadUrl;
}
/**
* @return string
*/
public function getDownloadUrl()
{
return $this->downloadUrl;
}
/**
* @param string $encryptedKey
*/
public function setEncryptedKey($encryptedKey)
{
$this->encryptedKey = $encryptedKey;
}
/**
* @return string
*/
public function getEncryptedKey()
{
return $this->encryptedKey;
}
/**
* @param string $language
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* @param string $size
*/
public function setSize($size)
{
$this->size = $size;
}
/**
* @return string
*/
public function getSize()
{
return $this->size;
}
/**
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MetadataItems::class, 'Google_Service_Books_MetadataItems');

View File

@@ -0,0 +1,332 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Notification extends \Google\Collection
{
protected $collection_key = 'crmExperimentIds';
protected $internal_gapi_mappings = [
"docId" => "doc_id",
"docType" => "doc_type",
"dontShowNotification" => "dont_show_notification",
"isDocumentMature" => "is_document_mature",
"notificationType" => "notification_type",
"pcampaignId" => "pcampaign_id",
"showNotificationSettingsAction" => "show_notification_settings_action",
];
/**
* @var string
*/
public $body;
/**
* The list of crm experiment ids.
*
* @var string[]
*/
public $crmExperimentIds;
/**
* @var string
*/
public $docId;
/**
* @var string
*/
public $docType;
/**
* @var bool
*/
public $dontShowNotification;
/**
* @var string
*/
public $iconUrl;
/**
* @var bool
*/
public $isDocumentMature;
/**
* Resource type.
*
* @var string
*/
public $kind;
/**
* @var string
*/
public $notificationGroup;
/**
* @var string
*/
public $notificationType;
/**
* @var string
*/
public $pcampaignId;
/**
* @var string
*/
public $reason;
/**
* @var bool
*/
public $showNotificationSettingsAction;
/**
* @var string
*/
public $targetUrl;
/**
* @var string
*/
public $timeToExpireMs;
/**
* @var string
*/
public $title;
/**
* @param string $body
*/
public function setBody($body)
{
$this->body = $body;
}
/**
* @return string
*/
public function getBody()
{
return $this->body;
}
/**
* The list of crm experiment ids.
*
* @param string[] $crmExperimentIds
*/
public function setCrmExperimentIds($crmExperimentIds)
{
$this->crmExperimentIds = $crmExperimentIds;
}
/**
* @return string[]
*/
public function getCrmExperimentIds()
{
return $this->crmExperimentIds;
}
/**
* @param string $docId
*/
public function setDocId($docId)
{
$this->docId = $docId;
}
/**
* @return string
*/
public function getDocId()
{
return $this->docId;
}
/**
* @param string $docType
*/
public function setDocType($docType)
{
$this->docType = $docType;
}
/**
* @return string
*/
public function getDocType()
{
return $this->docType;
}
/**
* @param bool $dontShowNotification
*/
public function setDontShowNotification($dontShowNotification)
{
$this->dontShowNotification = $dontShowNotification;
}
/**
* @return bool
*/
public function getDontShowNotification()
{
return $this->dontShowNotification;
}
/**
* @param string $iconUrl
*/
public function setIconUrl($iconUrl)
{
$this->iconUrl = $iconUrl;
}
/**
* @return string
*/
public function getIconUrl()
{
return $this->iconUrl;
}
/**
* @param bool $isDocumentMature
*/
public function setIsDocumentMature($isDocumentMature)
{
$this->isDocumentMature = $isDocumentMature;
}
/**
* @return bool
*/
public function getIsDocumentMature()
{
return $this->isDocumentMature;
}
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param string $notificationGroup
*/
public function setNotificationGroup($notificationGroup)
{
$this->notificationGroup = $notificationGroup;
}
/**
* @return string
*/
public function getNotificationGroup()
{
return $this->notificationGroup;
}
/**
* @param string $notificationType
*/
public function setNotificationType($notificationType)
{
$this->notificationType = $notificationType;
}
/**
* @return string
*/
public function getNotificationType()
{
return $this->notificationType;
}
/**
* @param string $pcampaignId
*/
public function setPcampaignId($pcampaignId)
{
$this->pcampaignId = $pcampaignId;
}
/**
* @return string
*/
public function getPcampaignId()
{
return $this->pcampaignId;
}
/**
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
/**
* @param bool $showNotificationSettingsAction
*/
public function setShowNotificationSettingsAction($showNotificationSettingsAction)
{
$this->showNotificationSettingsAction = $showNotificationSettingsAction;
}
/**
* @return bool
*/
public function getShowNotificationSettingsAction()
{
return $this->showNotificationSettingsAction;
}
/**
* @param string $targetUrl
*/
public function setTargetUrl($targetUrl)
{
$this->targetUrl = $targetUrl;
}
/**
* @return string
*/
public function getTargetUrl()
{
return $this->targetUrl;
}
/**
* @param string $timeToExpireMs
*/
public function setTimeToExpireMs($timeToExpireMs)
{
$this->timeToExpireMs = $timeToExpireMs;
}
/**
* @return string
*/
public function getTimeToExpireMs()
{
return $this->timeToExpireMs;
}
/**
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Notification::class, 'Google_Service_Books_Notification');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Offers extends \Google\Collection
{
protected $collection_key = 'items';
protected $itemsType = OffersItems::class;
protected $itemsDataType = 'array';
/**
* Resource type.
*
* @var string
*/
public $kind;
/**
* A list of offers.
*
* @param OffersItems[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return OffersItems[]
*/
public function getItems()
{
return $this->items;
}
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Offers::class, 'Google_Service_Books_Offers');

View File

@@ -0,0 +1,97 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class OffersItems extends \Google\Collection
{
protected $collection_key = 'items';
/**
* @var string
*/
public $artUrl;
/**
* @var string
*/
public $gservicesKey;
/**
* @var string
*/
public $id;
protected $itemsType = OffersItemsItems::class;
protected $itemsDataType = 'array';
/**
* @param string $artUrl
*/
public function setArtUrl($artUrl)
{
$this->artUrl = $artUrl;
}
/**
* @return string
*/
public function getArtUrl()
{
return $this->artUrl;
}
/**
* @param string $gservicesKey
*/
public function setGservicesKey($gservicesKey)
{
$this->gservicesKey = $gservicesKey;
}
/**
* @return string
*/
public function getGservicesKey()
{
return $this->gservicesKey;
}
/**
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* @param OffersItemsItems[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return OffersItemsItems[]
*/
public function getItems()
{
return $this->items;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OffersItems::class, 'Google_Service_Books_OffersItems');

View File

@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class OffersItemsItems extends \Google\Model
{
/**
* @var string
*/
public $author;
/**
* @var string
*/
public $canonicalVolumeLink;
/**
* @var string
*/
public $coverUrl;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $volumeId;
/**
* @param string $author
*/
public function setAuthor($author)
{
$this->author = $author;
}
/**
* @return string
*/
public function getAuthor()
{
return $this->author;
}
/**
* @param string $canonicalVolumeLink
*/
public function setCanonicalVolumeLink($canonicalVolumeLink)
{
$this->canonicalVolumeLink = $canonicalVolumeLink;
}
/**
* @return string
*/
public function getCanonicalVolumeLink()
{
return $this->canonicalVolumeLink;
}
/**
* @param string $coverUrl
*/
public function setCoverUrl($coverUrl)
{
$this->coverUrl = $coverUrl;
}
/**
* @return string
*/
public function getCoverUrl()
{
return $this->coverUrl;
}
/**
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string $volumeId
*/
public function setVolumeId($volumeId)
{
$this->volumeId = $volumeId;
}
/**
* @return string
*/
public function getVolumeId()
{
return $this->volumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OffersItemsItems::class, 'Google_Service_Books_OffersItemsItems');

View File

@@ -0,0 +1,182 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class ReadingPosition extends \Google\Model
{
/**
* Position in an EPUB as a CFI.
*
* @var string
*/
public $epubCfiPosition;
/**
* Position in a volume for image-based content.
*
* @var string
*/
public $gbImagePosition;
/**
* Position in a volume for text-based content.
*
* @var string
*/
public $gbTextPosition;
/**
* Resource type for a reading position.
*
* @var string
*/
public $kind;
/**
* Position in a PDF file.
*
* @var string
*/
public $pdfPosition;
/**
* Timestamp when this reading position was last updated (formatted UTC
* timestamp with millisecond resolution).
*
* @var string
*/
public $updated;
/**
* Volume id associated with this reading position.
*
* @var string
*/
public $volumeId;
/**
* Position in an EPUB as a CFI.
*
* @param string $epubCfiPosition
*/
public function setEpubCfiPosition($epubCfiPosition)
{
$this->epubCfiPosition = $epubCfiPosition;
}
/**
* @return string
*/
public function getEpubCfiPosition()
{
return $this->epubCfiPosition;
}
/**
* Position in a volume for image-based content.
*
* @param string $gbImagePosition
*/
public function setGbImagePosition($gbImagePosition)
{
$this->gbImagePosition = $gbImagePosition;
}
/**
* @return string
*/
public function getGbImagePosition()
{
return $this->gbImagePosition;
}
/**
* Position in a volume for text-based content.
*
* @param string $gbTextPosition
*/
public function setGbTextPosition($gbTextPosition)
{
$this->gbTextPosition = $gbTextPosition;
}
/**
* @return string
*/
public function getGbTextPosition()
{
return $this->gbTextPosition;
}
/**
* Resource type for a reading position.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Position in a PDF file.
*
* @param string $pdfPosition
*/
public function setPdfPosition($pdfPosition)
{
$this->pdfPosition = $pdfPosition;
}
/**
* @return string
*/
public function getPdfPosition()
{
return $this->pdfPosition;
}
/**
* Timestamp when this reading position was last updated (formatted UTC
* timestamp with millisecond resolution).
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
/**
* Volume id associated with this reading position.
*
* @param string $volumeId
*/
public function setVolumeId($volumeId)
{
$this->volumeId = $volumeId;
}
/**
* @return string
*/
public function getVolumeId()
{
return $this->volumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReadingPosition::class, 'Google_Service_Books_ReadingPosition');

View File

@@ -0,0 +1,84 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class RequestAccessData extends \Google\Model
{
protected $concurrentAccessType = ConcurrentAccessRestriction::class;
protected $concurrentAccessDataType = '';
protected $downloadAccessType = DownloadAccessRestriction::class;
protected $downloadAccessDataType = '';
/**
* Resource type.
*
* @var string
*/
public $kind;
/**
* A concurrent access response.
*
* @param ConcurrentAccessRestriction $concurrentAccess
*/
public function setConcurrentAccess(ConcurrentAccessRestriction $concurrentAccess)
{
$this->concurrentAccess = $concurrentAccess;
}
/**
* @return ConcurrentAccessRestriction
*/
public function getConcurrentAccess()
{
return $this->concurrentAccess;
}
/**
* A download access response.
*
* @param DownloadAccessRestriction $downloadAccess
*/
public function setDownloadAccess(DownloadAccessRestriction $downloadAccess)
{
$this->downloadAccess = $downloadAccess;
}
/**
* @return DownloadAccessRestriction
*/
public function getDownloadAccess()
{
return $this->downloadAccess;
}
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RequestAccessData::class, 'Google_Service_Books_RequestAccessData');

View File

@@ -0,0 +1,71 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Bookshelf;
use Google\Service\Books\Bookshelves as BookshelvesModel;
/**
* The "bookshelves" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $bookshelves = $booksService->bookshelves;
* </code>
*/
class Bookshelves extends \Google\Service\Resource
{
/**
* 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 array $optParams Optional parameters.
*
* @opt_param string source String to identify the originator of this request.
* @return Bookshelf
* @throws \Google\Service\Exception
*/
public function get($userId, $shelf, $optParams = [])
{
$params = ['userId' => $userId, 'shelf' => $shelf];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Bookshelf::class);
}
/**
* Retrieves a list of public bookshelves for the specified user.
* (bookshelves.listBookshelves)
*
* @param string $userId ID of user for whom to retrieve bookshelves.
* @param array $optParams Optional parameters.
*
* @opt_param string source String to identify the originator of this request.
* @return BookshelvesModel
* @throws \Google\Service\Exception
*/
public function listBookshelves($userId, $optParams = [])
{
$params = ['userId' => $userId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], BookshelvesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Bookshelves::class, 'Google_Service_Books_Resource_Bookshelves');

View File

@@ -0,0 +1,58 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Volumes as VolumesModel;
/**
* The "volumes" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $volumes = $booksService->bookshelves_volumes;
* </code>
*/
class BookshelvesVolumes extends \Google\Service\Resource
{
/**
* Retrieves volumes in a specific bookshelf for the specified user.
* (volumes.listBookshelvesVolumes)
*
* @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.
*
* @opt_param string maxResults Maximum number of results to return
* @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults
* to false.
* @opt_param string source String to identify the originator of this request.
* @opt_param string startIndex Index of the first element to return (starts at
* 0)
* @return VolumesModel
* @throws \Google\Service\Exception
*/
public function listBookshelvesVolumes($userId, $shelf, $optParams = [])
{
$params = ['userId' => $userId, 'shelf' => $shelf];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], VolumesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BookshelvesVolumes::class, 'Google_Service_Books_Resource_BookshelvesVolumes');

View File

@@ -0,0 +1,85 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\BooksCloudloadingResource;
use Google\Service\Books\BooksEmpty;
/**
* The "cloudloading" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $cloudloading = $booksService->cloudloading;
* </code>
*/
class Cloudloading extends \Google\Service\Resource
{
/**
* Add a user-upload volume and triggers processing. (cloudloading.addBook)
*
* @param array $optParams Optional parameters.
*
* @opt_param string drive_document_id A drive document id. The
* upload_client_token must not be set.
* @opt_param string mime_type The document MIME type. It can be set only if the
* drive_document_id is set.
* @opt_param string name The document name. It can be set only if the
* drive_document_id is set.
* @opt_param string upload_client_token Scotty upload token.
* @return BooksCloudloadingResource
* @throws \Google\Service\Exception
*/
public function addBook($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('addBook', [$params], BooksCloudloadingResource::class);
}
/**
* Remove the book and its contents (cloudloading.deleteBook)
*
* @param string $volumeId The id of the book to be removed.
* @param array $optParams Optional parameters.
* @return BooksEmpty
* @throws \Google\Service\Exception
*/
public function deleteBook($volumeId, $optParams = [])
{
$params = ['volumeId' => $volumeId];
$params = array_merge($params, $optParams);
return $this->call('deleteBook', [$params], BooksEmpty::class);
}
/**
* Updates a user-upload volume. (cloudloading.updateBook)
*
* @param BooksCloudloadingResource $postBody
* @param array $optParams Optional parameters.
* @return BooksCloudloadingResource
* @throws \Google\Service\Exception
*/
public function updateBook(BooksCloudloadingResource $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateBook', [$params], BooksCloudloadingResource::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Cloudloading::class, 'Google_Service_Books_Resource_Cloudloading');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Metadata;
/**
* The "dictionary" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $dictionary = $booksService->dictionary;
* </code>
*/
class Dictionary extends \Google\Service\Resource
{
/**
* Returns a list of offline dictionary metadata available
* (dictionary.listOfflineMetadata)
*
* @param string $cpksver The device/version ID from which to request the data.
* @param array $optParams Optional parameters.
* @return Metadata
* @throws \Google\Service\Exception
*/
public function listOfflineMetadata($cpksver, $optParams = [])
{
$params = ['cpksver' => $cpksver];
$params = array_merge($params, $optParams);
return $this->call('listOfflineMetadata', [$params], Metadata::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Dictionary::class, 'Google_Service_Books_Resource_Dictionary');

View File

@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\BooksEmpty;
use Google\Service\Books\FamilyInfo;
/**
* The "familysharing" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $familysharing = $booksService->familysharing;
* </code>
*/
class Familysharing extends \Google\Service\Resource
{
/**
* Gets information regarding the family that the user is part of.
* (familysharing.getFamilyInfo)
*
* @param array $optParams Optional parameters.
*
* @opt_param string source String to identify the originator of this request.
* @return FamilyInfo
* @throws \Google\Service\Exception
*/
public function getFamilyInfo($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getFamilyInfo', [$params], FamilyInfo::class);
}
/**
* Initiates sharing of the content with the user's family. Empty response
* indicates success. (familysharing.share)
*
* @param array $optParams Optional parameters.
*
* @opt_param string docId The docid to share.
* @opt_param string source String to identify the originator of this request.
* @opt_param string volumeId The volume to share.
* @return BooksEmpty
* @throws \Google\Service\Exception
*/
public function share($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('share', [$params], BooksEmpty::class);
}
/**
* Initiates revoking content that has already been shared with the user's
* family. Empty response indicates success. (familysharing.unshare)
*
* @param array $optParams Optional parameters.
*
* @opt_param string docId The docid to unshare.
* @opt_param string source String to identify the originator of this request.
* @opt_param string volumeId The volume to unshare.
* @return BooksEmpty
* @throws \Google\Service\Exception
*/
public function unshare($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('unshare', [$params], BooksEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Familysharing::class, 'Google_Service_Books_Resource_Familysharing');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Layersummaries;
use Google\Service\Books\Layersummary;
/**
* The "layers" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $layers = $booksService->layers;
* </code>
*/
class Layers extends \Google\Service\Resource
{
/**
* Gets the layer summary for a volume. (layers.get)
*
* @param string $volumeId The volume to retrieve layers for.
* @param string $summaryId The ID for the layer to get the summary for.
* @param array $optParams Optional parameters.
*
* @opt_param string contentVersion The content version for the requested
* volume.
* @opt_param string source String to identify the originator of this request.
* @return Layersummary
* @throws \Google\Service\Exception
*/
public function get($volumeId, $summaryId, $optParams = [])
{
$params = ['volumeId' => $volumeId, 'summaryId' => $summaryId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Layersummary::class);
}
/**
* List the layer summaries for a volume. (layers.listLayers)
*
* @param string $volumeId The volume to retrieve layers for.
* @param array $optParams Optional parameters.
*
* @opt_param string contentVersion The content version for the requested
* volume.
* @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.
* @return Layersummaries
* @throws \Google\Service\Exception
*/
public function listLayers($volumeId, $optParams = [])
{
$params = ['volumeId' => $volumeId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], Layersummaries::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Layers::class, 'Google_Service_Books_Resource_Layers');

View File

@@ -0,0 +1,100 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Annotationsdata;
use Google\Service\Books\DictionaryAnnotationdata;
/**
* The "annotationData" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $annotationData = $booksService->layers_annotationData;
* </code>
*/
class LayersAnnotationData extends \Google\Service\Resource
{
/**
* 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 string $contentVersion The content version for the volume you are
* trying to retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param bool allowWebDefinitions For the dictionary layer. Whether or not
* to allow web definitions.
* @opt_param int h The requested pixel height for any images. If height is
* provided width must also be provided.
* @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 scale The requested scale for the image.
* @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 DictionaryAnnotationdata
* @throws \Google\Service\Exception
*/
public function get($volumeId, $layerId, $annotationDataId, $contentVersion, $optParams = [])
{
$params = ['volumeId' => $volumeId, 'layerId' => $layerId, 'annotationDataId' => $annotationDataId, 'contentVersion' => $contentVersion];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], DictionaryAnnotationdata::class);
}
/**
* Gets the annotation data for a volume and layer.
* (annotationData.listLayersAnnotationData)
*
* @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.
*
* @opt_param string annotationDataId The list of Annotation Data Ids to
* retrieve. Pagination is ignored if this is set.
* @opt_param int h The requested pixel height for any images. If height is
* provided width must also be provided.
* @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 maxResults Maximum number of results to return
* @opt_param string pageToken The value of the nextToken from the previous
* page.
* @opt_param int scale The requested scale for the image.
* @opt_param string source String to identify the originator of this request.
* @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated
* prior to this timestamp (exclusive).
* @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated
* since this timestamp (inclusive).
* @opt_param int w The requested pixel width for any images. If width is
* provided height must also be provided.
* @return Annotationsdata
* @throws \Google\Service\Exception
*/
public function listLayersAnnotationData($volumeId, $layerId, $contentVersion, $optParams = [])
{
$params = ['volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], Annotationsdata::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LayersAnnotationData::class, 'Google_Service_Books_Resource_LayersAnnotationData');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Volumeannotation;
use Google\Service\Books\Volumeannotations;
/**
* The "volumeAnnotations" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $volumeAnnotations = $booksService->layers_volumeAnnotations;
* </code>
*/
class LayersVolumeAnnotations extends \Google\Service\Resource
{
/**
* 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.
*
* @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
* @throws \Google\Service\Exception
*/
public function get($volumeId, $layerId, $annotationId, $optParams = [])
{
$params = ['volumeId' => $volumeId, 'layerId' => $layerId, 'annotationId' => $annotationId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Volumeannotation::class);
}
/**
* Gets the volume annotations for a volume and layer.
* (volumeAnnotations.listLayersVolumeAnnotations)
*
* @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.
*
* @opt_param string endOffset The end offset to end retrieving data from.
* @opt_param string endPosition The end position 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 maxResults Maximum number of results to return
* @opt_param string pageToken The value of the nextToken from the previous
* page.
* @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 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.
* @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated
* prior to this timestamp (exclusive).
* @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated
* since this timestamp (inclusive).
* @opt_param string volumeAnnotationsVersion The version of the volume
* annotations that you are requesting.
* @return Volumeannotations
* @throws \Google\Service\Exception
*/
public function listLayersVolumeAnnotations($volumeId, $layerId, $contentVersion, $optParams = [])
{
$params = ['volumeId' => $volumeId, 'layerId' => $layerId, 'contentVersion' => $contentVersion];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], Volumeannotations::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LayersVolumeAnnotations::class, 'Google_Service_Books_Resource_LayersVolumeAnnotations');

View File

@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\DownloadAccesses;
use Google\Service\Books\RequestAccessData;
use Google\Service\Books\Usersettings;
use Google\Service\Books\Volumes as VolumesModel;
/**
* The "myconfig" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $myconfig = $booksService->myconfig;
* </code>
*/
class Myconfig extends \Google\Service\Resource
{
/**
* Gets the current settings for the user. (myconfig.getUserSettings)
*
* @param array $optParams Optional parameters.
*
* @opt_param string country Unused. Added only to workaround TEX mandatory
* request template requirement
* @return Usersettings
* @throws \Google\Service\Exception
*/
public function getUserSettings($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getUserSettings', [$params], Usersettings::class);
}
/**
* Release downloaded content access restriction.
* (myconfig.releaseDownloadAccess)
*
* @param string $cpksver The device/version ID from which to release the
* restriction.
* @param string|array $volumeIds The volume(s) to release restrictions for.
* @param array $optParams Optional parameters.
*
* @opt_param string locale ISO-639-1, ISO-3166-1 codes for message
* localization, i.e. en_US.
* @opt_param string source String to identify the originator of this request.
* @return DownloadAccesses
* @throws \Google\Service\Exception
*/
public function releaseDownloadAccess($cpksver, $volumeIds, $optParams = [])
{
$params = ['cpksver' => $cpksver, 'volumeIds' => $volumeIds];
$params = array_merge($params, $optParams);
return $this->call('releaseDownloadAccess', [$params], DownloadAccesses::class);
}
/**
* Request concurrent and download access restrictions. (myconfig.requestAccess)
*
* @param string $cpksver The device/version ID from which to request the
* restrictions.
* @param string $nonce The client nonce value.
* @param string $source String to identify the originator of this request.
* @param string $volumeId The volume to request concurrent/download
* restrictions for.
* @param array $optParams Optional parameters.
*
* @opt_param string licenseTypes The type of access license to request. If not
* specified, the default is BOTH.
* @opt_param string locale ISO-639-1, ISO-3166-1 codes for message
* localization, i.e. en_US.
* @return RequestAccessData
* @throws \Google\Service\Exception
*/
public function requestAccess($cpksver, $nonce, $source, $volumeId, $optParams = [])
{
$params = ['cpksver' => $cpksver, 'nonce' => $nonce, 'source' => $source, 'volumeId' => $volumeId];
$params = array_merge($params, $optParams);
return $this->call('requestAccess', [$params], RequestAccessData::class);
}
/**
* Request downloaded content access for specified volumes on the My eBooks
* shelf. (myconfig.syncVolumeLicenses)
*
* @param string $cpksver The device/version ID from which to release the
* restriction.
* @param string $nonce The client nonce value.
* @param string $source String to identify the originator of this request.
* @param array $optParams Optional parameters.
*
* @opt_param string features List of features supported by the client, i.e.,
* 'RENTALS'
* @opt_param bool includeNonComicsSeries Set to true to include non-comics
* series. Defaults to false.
* @opt_param string locale ISO-639-1, ISO-3166-1 codes for message
* localization, i.e. en_US.
* @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 VolumesModel
* @throws \Google\Service\Exception
*/
public function syncVolumeLicenses($cpksver, $nonce, $source, $optParams = [])
{
$params = ['cpksver' => $cpksver, 'nonce' => $nonce, 'source' => $source];
$params = array_merge($params, $optParams);
return $this->call('syncVolumeLicenses', [$params], VolumesModel::class);
}
/**
* Sets the settings for the user. If a sub-object is specified, it will
* overwrite the existing sub-object stored in the server. Unspecified sub-
* objects will retain the existing value. (myconfig.updateUserSettings)
*
* @param Usersettings $postBody
* @param array $optParams Optional parameters.
* @return Usersettings
* @throws \Google\Service\Exception
*/
public function updateUserSettings(Usersettings $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateUserSettings', [$params], Usersettings::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Myconfig::class, 'Google_Service_Books_Resource_Myconfig');

View File

@@ -0,0 +1,33 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
/**
* The "mylibrary" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $mylibrary = $booksService->mylibrary;
* </code>
*/
class Mylibrary extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Mylibrary::class, 'Google_Service_Books_Resource_Mylibrary');

View File

@@ -0,0 +1,139 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Annotation;
use Google\Service\Books\Annotations;
use Google\Service\Books\AnnotationsSummary;
use Google\Service\Books\BooksEmpty;
/**
* The "annotations" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $annotations = $booksService->mylibrary_annotations;
* </code>
*/
class MylibraryAnnotations extends \Google\Service\Resource
{
/**
* Deletes an annotation. (annotations.delete)
*
* @param string $annotationId The ID for the annotation to delete.
* @param array $optParams Optional parameters.
*
* @opt_param string source String to identify the originator of this request.
* @return BooksEmpty
* @throws \Google\Service\Exception
*/
public function delete($annotationId, $optParams = [])
{
$params = ['annotationId' => $annotationId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], BooksEmpty::class);
}
/**
* Inserts a new annotation. (annotations.insert)
*
* @param Annotation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string annotationId The ID for the annotation to insert.
* @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param bool showOnlySummaryInResponse Requests that only the summary of
* the specified layer be provided in the response.
* @opt_param string source String to identify the originator of this request.
* @return Annotation
* @throws \Google\Service\Exception
*/
public function insert(Annotation $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Annotation::class);
}
/**
* Retrieves a list of annotations, possibly filtered.
* (annotations.listMylibraryAnnotations)
*
* @param array $optParams Optional parameters.
*
* @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 layerIds The layer ID(s) to limit annotation by.
* @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 bool showDeleted Set to true to return deleted annotations.
* updatedMin must be in the request to use this. Defaults to false.
* @opt_param string source String to identify the originator of this request.
* @opt_param string updatedMax RFC 3339 timestamp to restrict to items updated
* prior to this timestamp (exclusive).
* @opt_param string updatedMin RFC 3339 timestamp to restrict to items updated
* since this timestamp (inclusive).
* @opt_param string volumeId The volume to restrict annotations to.
* @return Annotations
* @throws \Google\Service\Exception
*/
public function listMylibraryAnnotations($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], Annotations::class);
}
/**
* Gets the summary of specified layers. (annotations.summary)
*
* @param string|array $layerIds Array of layer IDs to get the summary for.
* @param string $volumeId Volume id to get the summary for.
* @param array $optParams Optional parameters.
*
* @opt_param string source Optional. String to identify the originator of this
* request.
* @return AnnotationsSummary
* @throws \Google\Service\Exception
*/
public function summary($layerIds, $volumeId, $optParams = [])
{
$params = ['layerIds' => $layerIds, 'volumeId' => $volumeId];
$params = array_merge($params, $optParams);
return $this->call('summary', [$params], AnnotationsSummary::class);
}
/**
* Updates an existing annotation. (annotations.update)
*
* @param string $annotationId The ID for the annotation to update.
* @param Annotation $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string source String to identify the originator of this request.
* @return Annotation
* @throws \Google\Service\Exception
*/
public function update($annotationId, Annotation $postBody, $optParams = [])
{
$params = ['annotationId' => $annotationId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Annotation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MylibraryAnnotations::class, 'Google_Service_Books_Resource_MylibraryAnnotations');

View File

@@ -0,0 +1,144 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\BooksEmpty;
use Google\Service\Books\Bookshelf;
use Google\Service\Books\Bookshelves as BookshelvesModel;
/**
* The "bookshelves" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $bookshelves = $booksService->mylibrary_bookshelves;
* </code>
*/
class MylibraryBookshelves extends \Google\Service\Resource
{
/**
* 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 array $optParams Optional parameters.
*
* @opt_param string reason The reason for which the book is added to the
* library.
* @opt_param string source String to identify the originator of this request.
* @return BooksEmpty
* @throws \Google\Service\Exception
*/
public function addVolume($shelf, $volumeId, $optParams = [])
{
$params = ['shelf' => $shelf, 'volumeId' => $volumeId];
$params = array_merge($params, $optParams);
return $this->call('addVolume', [$params], BooksEmpty::class);
}
/**
* 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.
*
* @opt_param string source String to identify the originator of this request.
* @return BooksEmpty
* @throws \Google\Service\Exception
*/
public function clearVolumes($shelf, $optParams = [])
{
$params = ['shelf' => $shelf];
$params = array_merge($params, $optParams);
return $this->call('clearVolumes', [$params], BooksEmpty::class);
}
/**
* Retrieves metadata for a specific bookshelf belonging to the authenticated
* user. (bookshelves.get)
*
* @param string $shelf ID of bookshelf to retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param string source String to identify the originator of this request.
* @return Bookshelf
* @throws \Google\Service\Exception
*/
public function get($shelf, $optParams = [])
{
$params = ['shelf' => $shelf];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Bookshelf::class);
}
/**
* Retrieves a list of bookshelves belonging to the authenticated user.
* (bookshelves.listMylibraryBookshelves)
*
* @param array $optParams Optional parameters.
*
* @opt_param string source String to identify the originator of this request.
* @return BookshelvesModel
* @throws \Google\Service\Exception
*/
public function listMylibraryBookshelves($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], BookshelvesModel::class);
}
/**
* Moves a volume within a bookshelf. (bookshelves.moveVolume)
*
* @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.
*
* @opt_param string source String to identify the originator of this request.
* @return BooksEmpty
* @throws \Google\Service\Exception
*/
public function moveVolume($shelf, $volumeId, $volumePosition, $optParams = [])
{
$params = ['shelf' => $shelf, 'volumeId' => $volumeId, 'volumePosition' => $volumePosition];
$params = array_merge($params, $optParams);
return $this->call('moveVolume', [$params], BooksEmpty::class);
}
/**
* Removes a volume from a bookshelf. (bookshelves.removeVolume)
*
* @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.
*
* @opt_param string reason The reason for which the book is removed from the
* library.
* @opt_param string source String to identify the originator of this request.
* @return BooksEmpty
* @throws \Google\Service\Exception
*/
public function removeVolume($shelf, $volumeId, $optParams = [])
{
$params = ['shelf' => $shelf, 'volumeId' => $volumeId];
$params = array_merge($params, $optParams);
return $this->call('removeVolume', [$params], BooksEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MylibraryBookshelves::class, 'Google_Service_Books_Resource_MylibraryBookshelves');

View File

@@ -0,0 +1,61 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Volumes as VolumesModel;
/**
* The "volumes" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $volumes = $booksService->mylibrary_bookshelves_volumes;
* </code>
*/
class MylibraryBookshelvesVolumes extends \Google\Service\Resource
{
/**
* Gets volume information for volumes on a bookshelf.
* (volumes.listMylibraryBookshelvesVolumes)
*
* @param string $shelf The bookshelf ID or name retrieve volumes for.
* @param array $optParams Optional parameters.
*
* @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string maxResults Maximum number of results to return
* @opt_param string projection Restrict information returned to a set of
* selected fields.
* @opt_param string q Full-text search query string in this bookshelf.
* @opt_param bool showPreorders Set to true to show pre-ordered books. Defaults
* to false.
* @opt_param string source String to identify the originator of this request.
* @opt_param string startIndex Index of the first element to return (starts at
* 0)
* @return VolumesModel
* @throws \Google\Service\Exception
*/
public function listMylibraryBookshelvesVolumes($shelf, $optParams = [])
{
$params = ['shelf' => $shelf];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], VolumesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MylibraryBookshelvesVolumes::class, 'Google_Service_Books_Resource_MylibraryBookshelvesVolumes');

View File

@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\BooksEmpty;
use Google\Service\Books\ReadingPosition;
/**
* The "readingpositions" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $readingpositions = $booksService->mylibrary_readingpositions;
* </code>
*/
class MylibraryReadingpositions extends \Google\Service\Resource
{
/**
* 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.
*
* @opt_param string contentVersion Volume content version for which this
* reading position is requested.
* @opt_param string source String to identify the originator of this request.
* @return ReadingPosition
* @throws \Google\Service\Exception
*/
public function get($volumeId, $optParams = [])
{
$params = ['volumeId' => $volumeId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ReadingPosition::class);
}
/**
* 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 $position Position string for the new volume reading position.
* @param string $timestamp RFC 3339 UTC format timestamp associated with this
* reading position.
* @param array $optParams Optional parameters.
*
* @opt_param string action Action that caused this reading position to be set.
* @opt_param string contentVersion Volume content version for which this
* reading position applies.
* @opt_param string deviceCookie Random persistent device cookie optional on
* set position.
* @opt_param string source String to identify the originator of this request.
* @return BooksEmpty
* @throws \Google\Service\Exception
*/
public function setPosition($volumeId, $position, $timestamp, $optParams = [])
{
$params = ['volumeId' => $volumeId, 'position' => $position, 'timestamp' => $timestamp];
$params = array_merge($params, $optParams);
return $this->call('setPosition', [$params], BooksEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MylibraryReadingpositions::class, 'Google_Service_Books_Resource_MylibraryReadingpositions');

View File

@@ -0,0 +1,53 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Notification as NotificationModel;
/**
* The "notification" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $notification = $booksService->notification;
* </code>
*/
class Notification extends \Google\Service\Resource
{
/**
* Returns notification details for a given notification id. (notification.get)
*
* @param string $notificationId String to identify the notification.
* @param array $optParams Optional parameters.
*
* @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:
* 'en_US'. Used for generating notification title and body.
* @opt_param string source String to identify the originator of this request.
* @return NotificationModel
* @throws \Google\Service\Exception
*/
public function get($notificationId, $optParams = [])
{
$params = ['notification_id' => $notificationId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], NotificationModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Notification::class, 'Google_Service_Books_Resource_Notification');

View File

@@ -0,0 +1,77 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Category;
use Google\Service\Books\Volume2;
/**
* The "onboarding" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $onboarding = $booksService->onboarding;
* </code>
*/
class Onboarding extends \Google\Service\Resource
{
/**
* List categories for onboarding experience. (onboarding.listCategories)
*
* @param array $optParams Optional parameters.
*
* @opt_param string locale ISO-639-1 language and ISO-3166-1 country code.
* Default is en-US if unset.
* @return Category
* @throws \Google\Service\Exception
*/
public function listCategories($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('listCategories', [$params], Category::class);
}
/**
* List available volumes under categories for onboarding experience.
* (onboarding.listCategoryVolumes)
*
* @param array $optParams Optional parameters.
*
* @opt_param string categoryId List of category ids requested.
* @opt_param string locale ISO-639-1 language and ISO-3166-1 country code.
* Default is en-US if unset.
* @opt_param string maxAllowedMaturityRating The maximum allowed maturity
* rating of returned volumes. Books with a higher maturity rating are filtered
* out.
* @opt_param string pageSize Number of maximum results per page to be included
* in the response.
* @opt_param string pageToken The value of the nextToken from the previous
* page.
* @return Volume2
* @throws \Google\Service\Exception
*/
public function listCategoryVolumes($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('listCategoryVolumes', [$params], Volume2::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Onboarding::class, 'Google_Service_Books_Resource_Onboarding');

View File

@@ -0,0 +1,55 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Discoveryclusters;
/**
* The "personalizedstream" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $personalizedstream = $booksService->personalizedstream;
* </code>
*/
class Personalizedstream extends \Google\Service\Resource
{
/**
* Returns a stream of personalized book clusters (personalizedstream.get)
*
* @param array $optParams Optional parameters.
*
* @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:
* 'en_US'. Used for generating recommendations.
* @opt_param string maxAllowedMaturityRating The maximum allowed maturity
* rating of returned recommendations. Books with a higher maturity rating are
* filtered out.
* @opt_param string source String to identify the originator of this request.
* @return Discoveryclusters
* @throws \Google\Service\Exception
*/
public function get($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Discoveryclusters::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Personalizedstream::class, 'Google_Service_Books_Resource_Personalizedstream');

View File

@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\BooksEmpty;
use Google\Service\Books\Offers;
/**
* The "promooffer" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $promooffer = $booksService->promooffer;
* </code>
*/
class Promooffer extends \Google\Service\Resource
{
/**
* Accepts the promo offer. (promooffer.accept)
*
* @param array $optParams Optional parameters.
*
* @opt_param string androidId device android_id
* @opt_param string device device device
* @opt_param string manufacturer device manufacturer
* @opt_param string model device model
* @opt_param string offerId
* @opt_param string product device product
* @opt_param string serial device serial
* @opt_param string volumeId Volume id to exercise the offer
* @return BooksEmpty
* @throws \Google\Service\Exception
*/
public function accept($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('accept', [$params], BooksEmpty::class);
}
/**
* Marks the promo offer as dismissed. (promooffer.dismiss)
*
* @param array $optParams Optional parameters.
*
* @opt_param string androidId device android_id
* @opt_param string device device device
* @opt_param string manufacturer device manufacturer
* @opt_param string model device model
* @opt_param string offerId Offer to dimiss
* @opt_param string product device product
* @opt_param string serial device serial
* @return BooksEmpty
* @throws \Google\Service\Exception
*/
public function dismiss($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('dismiss', [$params], BooksEmpty::class);
}
/**
* Returns a list of promo offers available to the user (promooffer.get)
*
* @param array $optParams Optional parameters.
*
* @opt_param string androidId device android_id
* @opt_param string device device device
* @opt_param string manufacturer device manufacturer
* @opt_param string model device model
* @opt_param string product device product
* @opt_param string serial device serial
* @return Offers
* @throws \Google\Service\Exception
*/
public function get($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Offers::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Promooffer::class, 'Google_Service_Books_Resource_Promooffer');

View File

@@ -0,0 +1,49 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Series as SeriesModel;
/**
* The "series" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $series = $booksService->series;
* </code>
*/
class Series extends \Google\Service\Resource
{
/**
* Returns Series metadata for the given series ids. (series.get)
*
* @param string|array $seriesId String that identifies the series
* @param array $optParams Optional parameters.
* @return SeriesModel
* @throws \Google\Service\Exception
*/
public function get($seriesId, $optParams = [])
{
$params = ['series_id' => $seriesId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], SeriesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Series::class, 'Google_Service_Books_Resource_Series');

View File

@@ -0,0 +1,54 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Seriesmembership as SeriesmembershipModel;
/**
* The "membership" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $membership = $booksService->series_membership;
* </code>
*/
class SeriesMembership extends \Google\Service\Resource
{
/**
* Returns Series membership data given the series id. (membership.get)
*
* @param string $seriesId String that identifies the series
* @param array $optParams Optional parameters.
*
* @opt_param string page_size Number of maximum results per page to be included
* in the response.
* @opt_param string page_token The value of the nextToken from the previous
* page.
* @return SeriesmembershipModel
* @throws \Google\Service\Exception
*/
public function get($seriesId, $optParams = [])
{
$params = ['series_id' => $seriesId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], SeriesmembershipModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SeriesMembership::class, 'Google_Service_Books_Resource_SeriesMembership');

View File

@@ -0,0 +1,93 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Volume;
use Google\Service\Books\Volumes as VolumesModel;
/**
* The "volumes" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $volumes = $booksService->volumes;
* </code>
*/
class Volumes extends \Google\Service\Resource
{
/**
* Gets volume information for a single volume. (volumes.get)
*
* @param string $volumeId ID of volume to retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param bool includeNonComicsSeries Set to true to include non-comics
* series. Defaults to false.
* @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 source string to identify the originator of this request.
* @opt_param bool user_library_consistent_read
* @return Volume
* @throws \Google\Service\Exception
*/
public function get($volumeId, $optParams = [])
{
$params = ['volumeId' => $volumeId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Volume::class);
}
/**
* Performs a book search. (volumes.listVolumes)
*
* @param string $q Full-text search query string.
* @param array $optParams Optional parameters.
*
* @opt_param string download Restrict to volumes by download availability.
* @opt_param string filter Filter search results.
* @opt_param string langRestrict Restrict results to books with this language
* code.
* @opt_param string libraryRestrict Restrict search to this user's library.
* @opt_param string maxAllowedMaturityRating The maximum allowed maturity
* rating of returned recommendations. Books with a higher maturity rating are
* filtered out.
* @opt_param string maxResults Maximum number of results to return.
* @opt_param string orderBy Sort search results.
* @opt_param string partner Restrict and brand results for partner ID.
* @opt_param string printType Restrict to books or magazines.
* @opt_param string projection Restrict information returned to a set of
* selected fields.
* @opt_param bool showPreorders Set to true to show books available for
* preorder. Defaults to false.
* @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)
* @return VolumesModel
* @throws \Google\Service\Exception
*/
public function listVolumes($q, $optParams = [])
{
$params = ['q' => $q];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], VolumesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Volumes::class, 'Google_Service_Books_Resource_Volumes');

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Volumes as VolumesModel;
/**
* The "associated" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $associated = $booksService->volumes_associated;
* </code>
*/
class VolumesAssociated extends \Google\Service\Resource
{
/**
* Return a list of associated books. (associated.listVolumesAssociated)
*
* @param string $volumeId ID of the source volume.
* @param array $optParams Optional parameters.
*
* @opt_param string association Association type.
* @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:
* 'en_US'. Used for generating recommendations.
* @opt_param string maxAllowedMaturityRating The maximum allowed maturity
* rating of returned recommendations. Books with a higher maturity rating are
* filtered out.
* @opt_param string source String to identify the originator of this request.
* @return VolumesModel
* @throws \Google\Service\Exception
*/
public function listVolumesAssociated($volumeId, $optParams = [])
{
$params = ['volumeId' => $volumeId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], VolumesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VolumesAssociated::class, 'Google_Service_Books_Resource_VolumesAssociated');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Volumes as VolumesModel;
/**
* The "mybooks" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $mybooks = $booksService->volumes_mybooks;
* </code>
*/
class VolumesMybooks extends \Google\Service\Resource
{
/**
* Return a list of books in My Library. (mybooks.listVolumesMybooks)
*
* @param array $optParams Optional parameters.
*
* @opt_param string acquireMethod How the book was acquired
* @opt_param string country ISO-3166-1 code to override the IP-based location.
* @opt_param string locale ISO-639-1 language and ISO-3166-1 country code.
* Ex:'en_US'. Used for generating recommendations.
* @opt_param string maxResults Maximum number of results to return.
* @opt_param string processingState The processing state of the user uploaded
* volumes to be returned. Applicable only if the UPLOADED is specified in the
* acquireMethod.
* @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)
* @return VolumesModel
* @throws \Google\Service\Exception
*/
public function listVolumesMybooks($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], VolumesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VolumesMybooks::class, 'Google_Service_Books_Resource_VolumesMybooks');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\BooksVolumesRecommendedRateResponse;
use Google\Service\Books\Volumes as VolumesModel;
/**
* The "recommended" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $recommended = $booksService->volumes_recommended;
* </code>
*/
class VolumesRecommended extends \Google\Service\Resource
{
/**
* Return a list of recommended books for the current user.
* (recommended.listVolumesRecommended)
*
* @param array $optParams Optional parameters.
*
* @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:
* 'en_US'. Used for generating recommendations.
* @opt_param string maxAllowedMaturityRating The maximum allowed maturity
* rating of returned recommendations. Books with a higher maturity rating are
* filtered out.
* @opt_param string source String to identify the originator of this request.
* @return VolumesModel
* @throws \Google\Service\Exception
*/
public function listVolumesRecommended($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], VolumesModel::class);
}
/**
* Rate a recommended book for the current user. (recommended.rate)
*
* @param string $rating Rating to be given to the volume.
* @param string $volumeId ID of the source volume.
* @param array $optParams Optional parameters.
*
* @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:
* 'en_US'. Used for generating recommendations.
* @opt_param string source String to identify the originator of this request.
* @return BooksVolumesRecommendedRateResponse
* @throws \Google\Service\Exception
*/
public function rate($rating, $volumeId, $optParams = [])
{
$params = ['rating' => $rating, 'volumeId' => $volumeId];
$params = array_merge($params, $optParams);
return $this->call('rate', [$params], BooksVolumesRecommendedRateResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VolumesRecommended::class, 'Google_Service_Books_Resource_VolumesRecommended');

View File

@@ -0,0 +1,60 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books\Resource;
use Google\Service\Books\Volumes as VolumesModel;
/**
* The "useruploaded" collection of methods.
* Typical usage is:
* <code>
* $booksService = new Google\Service\Books(...);
* $useruploaded = $booksService->volumes_useruploaded;
* </code>
*/
class VolumesUseruploaded extends \Google\Service\Resource
{
/**
* Return a list of books uploaded by the current user.
* (useruploaded.listVolumesUseruploaded)
*
* @param array $optParams Optional parameters.
*
* @opt_param string locale ISO-639-1 language and ISO-3166-1 country code. Ex:
* 'en_US'. Used for generating recommendations.
* @opt_param string maxResults Maximum number of results to return.
* @opt_param string processingState The processing state of the user uploaded
* volumes to be returned.
* @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 volumeId The ids of the volumes to be returned. If not
* specified all that match the processingState are returned.
* @return VolumesModel
* @throws \Google\Service\Exception
*/
public function listVolumesUseruploaded($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], VolumesModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VolumesUseruploaded::class, 'Google_Service_Books_Resource_VolumesUseruploaded');

View File

@@ -0,0 +1,243 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Review extends \Google\Model
{
protected $authorType = ReviewAuthor::class;
protected $authorDataType = '';
/**
* Review text.
*
* @var string
*/
public $content;
/**
* Date of this review.
*
* @var string
*/
public $date;
/**
* URL for the full review text, for reviews gathered from the web.
*
* @var string
*/
public $fullTextUrl;
/**
* Resource type for a review.
*
* @var string
*/
public $kind;
/**
* Star rating for this review. Possible values are ONE, TWO, THREE, FOUR,
* FIVE or NOT_RATED.
*
* @var string
*/
public $rating;
protected $sourceType = ReviewSource::class;
protected $sourceDataType = '';
/**
* Title for this review.
*
* @var string
*/
public $title;
/**
* Source type for this review. Possible values are EDITORIAL, WEB_USER or
* GOOGLE_USER.
*
* @var string
*/
public $type;
/**
* Volume that this review is for.
*
* @var string
*/
public $volumeId;
/**
* Author of this review.
*
* @param ReviewAuthor $author
*/
public function setAuthor(ReviewAuthor $author)
{
$this->author = $author;
}
/**
* @return ReviewAuthor
*/
public function getAuthor()
{
return $this->author;
}
/**
* Review text.
*
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* Date of this review.
*
* @param string $date
*/
public function setDate($date)
{
$this->date = $date;
}
/**
* @return string
*/
public function getDate()
{
return $this->date;
}
/**
* URL for the full review text, for reviews gathered from the web.
*
* @param string $fullTextUrl
*/
public function setFullTextUrl($fullTextUrl)
{
$this->fullTextUrl = $fullTextUrl;
}
/**
* @return string
*/
public function getFullTextUrl()
{
return $this->fullTextUrl;
}
/**
* Resource type for a review.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Star rating for this review. Possible values are ONE, TWO, THREE, FOUR,
* FIVE or NOT_RATED.
*
* @param string $rating
*/
public function setRating($rating)
{
$this->rating = $rating;
}
/**
* @return string
*/
public function getRating()
{
return $this->rating;
}
/**
* Information regarding the source of this review, when the review is not
* from a Google Books user.
*
* @param ReviewSource $source
*/
public function setSource(ReviewSource $source)
{
$this->source = $source;
}
/**
* @return ReviewSource
*/
public function getSource()
{
return $this->source;
}
/**
* Title for this review.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* Source type for this review. Possible values are EDITORIAL, WEB_USER or
* GOOGLE_USER.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Volume that this review is for.
*
* @param string $volumeId
*/
public function setVolumeId($volumeId)
{
$this->volumeId = $volumeId;
}
/**
* @return string
*/
public function getVolumeId()
{
return $this->volumeId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Review::class, 'Google_Service_Books_Review');

View File

@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class ReviewAuthor extends \Google\Model
{
/**
* Name of this person.
*
* @var string
*/
public $displayName;
/**
* Name of this person.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReviewAuthor::class, 'Google_Service_Books_ReviewAuthor');

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class ReviewSource extends \Google\Model
{
/**
* Name of the source.
*
* @var string
*/
public $description;
/**
* Extra text about the source of the review.
*
* @var string
*/
public $extraDescription;
/**
* URL of the source of the review.
*
* @var string
*/
public $url;
/**
* Name of the source.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Extra text about the source of the review.
*
* @param string $extraDescription
*/
public function setExtraDescription($extraDescription)
{
$this->extraDescription = $extraDescription;
}
/**
* @return string
*/
public function getExtraDescription()
{
return $this->extraDescription;
}
/**
* URL of the source of the review.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReviewSource::class, 'Google_Service_Books_ReviewSource');

View File

@@ -0,0 +1,65 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Series extends \Google\Collection
{
protected $collection_key = 'series';
/**
* Resource type.
*
* @var string
*/
public $kind;
protected $seriesType = SeriesSeries::class;
protected $seriesDataType = 'array';
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param SeriesSeries[] $series
*/
public function setSeries($series)
{
$this->series = $series;
}
/**
* @return SeriesSeries[]
*/
public function getSeries()
{
return $this->series;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Series::class, 'Google_Service_Books_Series');

View File

@@ -0,0 +1,204 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class SeriesSeries extends \Google\Model
{
/**
* @var string
*/
public $bannerImageUrl;
/**
* @var bool
*/
public $eligibleForSubscription;
/**
* @var string
*/
public $imageUrl;
/**
* @var bool
*/
public $isComplete;
/**
* @var string
*/
public $seriesFormatType;
/**
* @var string
*/
public $seriesId;
protected $seriesSubscriptionReleaseInfoType = SeriesSeriesSeriesSubscriptionReleaseInfo::class;
protected $seriesSubscriptionReleaseInfoDataType = '';
/**
* @var string
*/
public $seriesType;
/**
* @var string
*/
public $subscriptionId;
/**
* @var string
*/
public $title;
/**
* @param string $bannerImageUrl
*/
public function setBannerImageUrl($bannerImageUrl)
{
$this->bannerImageUrl = $bannerImageUrl;
}
/**
* @return string
*/
public function getBannerImageUrl()
{
return $this->bannerImageUrl;
}
/**
* @param bool $eligibleForSubscription
*/
public function setEligibleForSubscription($eligibleForSubscription)
{
$this->eligibleForSubscription = $eligibleForSubscription;
}
/**
* @return bool
*/
public function getEligibleForSubscription()
{
return $this->eligibleForSubscription;
}
/**
* @param string $imageUrl
*/
public function setImageUrl($imageUrl)
{
$this->imageUrl = $imageUrl;
}
/**
* @return string
*/
public function getImageUrl()
{
return $this->imageUrl;
}
/**
* @param bool $isComplete
*/
public function setIsComplete($isComplete)
{
$this->isComplete = $isComplete;
}
/**
* @return bool
*/
public function getIsComplete()
{
return $this->isComplete;
}
/**
* @param string $seriesFormatType
*/
public function setSeriesFormatType($seriesFormatType)
{
$this->seriesFormatType = $seriesFormatType;
}
/**
* @return string
*/
public function getSeriesFormatType()
{
return $this->seriesFormatType;
}
/**
* @param string $seriesId
*/
public function setSeriesId($seriesId)
{
$this->seriesId = $seriesId;
}
/**
* @return string
*/
public function getSeriesId()
{
return $this->seriesId;
}
/**
* @param SeriesSeriesSeriesSubscriptionReleaseInfo $seriesSubscriptionReleaseInfo
*/
public function setSeriesSubscriptionReleaseInfo(SeriesSeriesSeriesSubscriptionReleaseInfo $seriesSubscriptionReleaseInfo)
{
$this->seriesSubscriptionReleaseInfo = $seriesSubscriptionReleaseInfo;
}
/**
* @return SeriesSeriesSeriesSubscriptionReleaseInfo
*/
public function getSeriesSubscriptionReleaseInfo()
{
return $this->seriesSubscriptionReleaseInfo;
}
/**
* @param string $seriesType
*/
public function setSeriesType($seriesType)
{
$this->seriesType = $seriesType;
}
/**
* @return string
*/
public function getSeriesType()
{
return $this->seriesType;
}
/**
* @param string $subscriptionId
*/
public function setSubscriptionId($subscriptionId)
{
$this->subscriptionId = $subscriptionId;
}
/**
* @return string
*/
public function getSubscriptionId()
{
return $this->subscriptionId;
}
/**
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SeriesSeries::class, 'Google_Service_Books_SeriesSeries');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class SeriesSeriesSeriesSubscriptionReleaseInfo extends \Google\Model
{
/**
* @var string
*/
public $cancelTime;
protected $currentReleaseInfoType = SeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo::class;
protected $currentReleaseInfoDataType = '';
protected $nextReleaseInfoType = SeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo::class;
protected $nextReleaseInfoDataType = '';
/**
* @var string
*/
public $seriesSubscriptionType;
/**
* @param string $cancelTime
*/
public function setCancelTime($cancelTime)
{
$this->cancelTime = $cancelTime;
}
/**
* @return string
*/
public function getCancelTime()
{
return $this->cancelTime;
}
/**
* @param SeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo $currentReleaseInfo
*/
public function setCurrentReleaseInfo(SeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo $currentReleaseInfo)
{
$this->currentReleaseInfo = $currentReleaseInfo;
}
/**
* @return SeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo
*/
public function getCurrentReleaseInfo()
{
return $this->currentReleaseInfo;
}
/**
* @param SeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo $nextReleaseInfo
*/
public function setNextReleaseInfo(SeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo $nextReleaseInfo)
{
$this->nextReleaseInfo = $nextReleaseInfo;
}
/**
* @return SeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo
*/
public function getNextReleaseInfo()
{
return $this->nextReleaseInfo;
}
/**
* @param string $seriesSubscriptionType
*/
public function setSeriesSubscriptionType($seriesSubscriptionType)
{
$this->seriesSubscriptionType = $seriesSubscriptionType;
}
/**
* @return string
*/
public function getSeriesSubscriptionType()
{
return $this->seriesSubscriptionType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SeriesSeriesSeriesSubscriptionReleaseInfo::class, 'Google_Service_Books_SeriesSeriesSeriesSubscriptionReleaseInfo');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class SeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo extends \Google\Model
{
public $amountInMicros;
/**
* @var string
*/
public $currencyCode;
/**
* @var string
*/
public $releaseNumber;
/**
* @var string
*/
public $releaseTime;
public function setAmountInMicros($amountInMicros)
{
$this->amountInMicros = $amountInMicros;
}
public function getAmountInMicros()
{
return $this->amountInMicros;
}
/**
* @param string $currencyCode
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param string $releaseNumber
*/
public function setReleaseNumber($releaseNumber)
{
$this->releaseNumber = $releaseNumber;
}
/**
* @return string
*/
public function getReleaseNumber()
{
return $this->releaseNumber;
}
/**
* @param string $releaseTime
*/
public function setReleaseTime($releaseTime)
{
$this->releaseTime = $releaseTime;
}
/**
* @return string
*/
public function getReleaseTime()
{
return $this->releaseTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo::class, 'Google_Service_Books_SeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo');

View File

@@ -0,0 +1,89 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class SeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo extends \Google\Model
{
public $amountInMicros;
/**
* @var string
*/
public $currencyCode;
/**
* @var string
*/
public $releaseNumber;
/**
* @var string
*/
public $releaseTime;
public function setAmountInMicros($amountInMicros)
{
$this->amountInMicros = $amountInMicros;
}
public function getAmountInMicros()
{
return $this->amountInMicros;
}
/**
* @param string $currencyCode
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param string $releaseNumber
*/
public function setReleaseNumber($releaseNumber)
{
$this->releaseNumber = $releaseNumber;
}
/**
* @return string
*/
public function getReleaseNumber()
{
return $this->releaseNumber;
}
/**
* @param string $releaseTime
*/
public function setReleaseTime($releaseTime)
{
$this->releaseTime = $releaseTime;
}
/**
* @return string
*/
public function getReleaseTime()
{
return $this->releaseTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo::class, 'Google_Service_Books_SeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo');

View File

@@ -0,0 +1,83 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Seriesmembership extends \Google\Collection
{
protected $collection_key = 'member';
/**
* Resorce type.
*
* @var string
*/
public $kind;
protected $memberType = Volume::class;
protected $memberDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* Resorce type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* @param Volume[] $member
*/
public function setMember($member)
{
$this->member = $member;
}
/**
* @return Volume[]
*/
public function getMember()
{
return $this->member;
}
/**
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Seriesmembership::class, 'Google_Service_Books_Seriesmembership');

View File

@@ -0,0 +1,82 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class Usersettings extends \Google\Model
{
/**
* Resource type.
*
* @var string
*/
public $kind;
protected $notesExportType = UsersettingsNotesExport::class;
protected $notesExportDataType = '';
protected $notificationType = UsersettingsNotification::class;
protected $notificationDataType = '';
/**
* Resource type.
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* User settings in sub-objects, each for different purposes.
*
* @param UsersettingsNotesExport $notesExport
*/
public function setNotesExport(UsersettingsNotesExport $notesExport)
{
$this->notesExport = $notesExport;
}
/**
* @return UsersettingsNotesExport
*/
public function getNotesExport()
{
return $this->notesExport;
}
/**
* @param UsersettingsNotification $notification
*/
public function setNotification(UsersettingsNotification $notification)
{
$this->notification = $notification;
}
/**
* @return UsersettingsNotification
*/
public function getNotification()
{
return $this->notification;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Usersettings::class, 'Google_Service_Books_Usersettings');

View File

@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class UsersettingsNotesExport extends \Google\Model
{
/**
* @var string
*/
public $folderName;
/**
* @var bool
*/
public $isEnabled;
/**
* @param string $folderName
*/
public function setFolderName($folderName)
{
$this->folderName = $folderName;
}
/**
* @return string
*/
public function getFolderName()
{
return $this->folderName;
}
/**
* @param bool $isEnabled
*/
public function setIsEnabled($isEnabled)
{
$this->isEnabled = $isEnabled;
}
/**
* @return bool
*/
public function getIsEnabled()
{
return $this->isEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersettingsNotesExport::class, 'Google_Service_Books_UsersettingsNotesExport');

View File

@@ -0,0 +1,106 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class UsersettingsNotification extends \Google\Model
{
protected $matchMyInterestsType = UsersettingsNotificationMatchMyInterests::class;
protected $matchMyInterestsDataType = '';
protected $moreFromAuthorsType = UsersettingsNotificationMoreFromAuthors::class;
protected $moreFromAuthorsDataType = '';
protected $moreFromSeriesType = UsersettingsNotificationMoreFromSeries::class;
protected $moreFromSeriesDataType = '';
protected $priceDropType = UsersettingsNotificationPriceDrop::class;
protected $priceDropDataType = '';
protected $rewardExpirationsType = UsersettingsNotificationRewardExpirations::class;
protected $rewardExpirationsDataType = '';
/**
* @param UsersettingsNotificationMatchMyInterests $matchMyInterests
*/
public function setMatchMyInterests(UsersettingsNotificationMatchMyInterests $matchMyInterests)
{
$this->matchMyInterests = $matchMyInterests;
}
/**
* @return UsersettingsNotificationMatchMyInterests
*/
public function getMatchMyInterests()
{
return $this->matchMyInterests;
}
/**
* @param UsersettingsNotificationMoreFromAuthors $moreFromAuthors
*/
public function setMoreFromAuthors(UsersettingsNotificationMoreFromAuthors $moreFromAuthors)
{
$this->moreFromAuthors = $moreFromAuthors;
}
/**
* @return UsersettingsNotificationMoreFromAuthors
*/
public function getMoreFromAuthors()
{
return $this->moreFromAuthors;
}
/**
* @param UsersettingsNotificationMoreFromSeries $moreFromSeries
*/
public function setMoreFromSeries(UsersettingsNotificationMoreFromSeries $moreFromSeries)
{
$this->moreFromSeries = $moreFromSeries;
}
/**
* @return UsersettingsNotificationMoreFromSeries
*/
public function getMoreFromSeries()
{
return $this->moreFromSeries;
}
/**
* @param UsersettingsNotificationPriceDrop $priceDrop
*/
public function setPriceDrop(UsersettingsNotificationPriceDrop $priceDrop)
{
$this->priceDrop = $priceDrop;
}
/**
* @return UsersettingsNotificationPriceDrop
*/
public function getPriceDrop()
{
return $this->priceDrop;
}
/**
* @param UsersettingsNotificationRewardExpirations $rewardExpirations
*/
public function setRewardExpirations(UsersettingsNotificationRewardExpirations $rewardExpirations)
{
$this->rewardExpirations = $rewardExpirations;
}
/**
* @return UsersettingsNotificationRewardExpirations
*/
public function getRewardExpirations()
{
return $this->rewardExpirations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersettingsNotification::class, 'Google_Service_Books_UsersettingsNotification');

View File

@@ -0,0 +1,47 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class UsersettingsNotificationMatchMyInterests extends \Google\Model
{
protected $internal_gapi_mappings = [
"optedState" => "opted_state",
];
/**
* @var string
*/
public $optedState;
/**
* @param string $optedState
*/
public function setOptedState($optedState)
{
$this->optedState = $optedState;
}
/**
* @return string
*/
public function getOptedState()
{
return $this->optedState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersettingsNotificationMatchMyInterests::class, 'Google_Service_Books_UsersettingsNotificationMatchMyInterests');

View File

@@ -0,0 +1,47 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class UsersettingsNotificationMoreFromAuthors extends \Google\Model
{
protected $internal_gapi_mappings = [
"optedState" => "opted_state",
];
/**
* @var string
*/
public $optedState;
/**
* @param string $optedState
*/
public function setOptedState($optedState)
{
$this->optedState = $optedState;
}
/**
* @return string
*/
public function getOptedState()
{
return $this->optedState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersettingsNotificationMoreFromAuthors::class, 'Google_Service_Books_UsersettingsNotificationMoreFromAuthors');

View File

@@ -0,0 +1,47 @@
<?php
/*
* Copyright 2014 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
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Books;
class UsersettingsNotificationMoreFromSeries extends \Google\Model
{
protected $internal_gapi_mappings = [
"optedState" => "opted_state",
];
/**
* @var string
*/
public $optedState;
/**
* @param string $optedState
*/
public function setOptedState($optedState)
{
$this->optedState = $optedState;
}
/**
* @return string
*/
public function getOptedState()
{
return $this->optedState;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UsersettingsNotificationMoreFromSeries::class, 'Google_Service_Books_UsersettingsNotificationMoreFromSeries');

Some files were not shown because too many files have changed in this diff Show More