2123 lines
45 KiB
PHP
2123 lines
45 KiB
PHP
<?php
|
|
/*
|
|
* Copyright 2010 Google Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
* use this file except in compliance with the License. You may obtain a copy of
|
|
* 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.
|
|
*/
|
|
|
|
/**
|
|
* Service definition for Shopping (v1).
|
|
*
|
|
* <p>
|
|
* Lets you search over product data.
|
|
* </p>
|
|
*
|
|
* <p>
|
|
* For more information about this service, see the API
|
|
* <a href="https://developers.google.com/shopping-search/v1/getting_started" target="_blank">Documentation</a>
|
|
* </p>
|
|
*
|
|
* @author Google, Inc.
|
|
*/
|
|
class Google_Service_Shopping extends Google_Service
|
|
{
|
|
/** View your product data. */
|
|
const SHOPPINGAPI = "https://www.googleapis.com/auth/shoppingapi";
|
|
|
|
public $products;
|
|
|
|
|
|
/**
|
|
* Constructs the internal representation of the Shopping service.
|
|
*
|
|
* @param Google_Client $client
|
|
*/
|
|
public function __construct(Google_Client $client)
|
|
{
|
|
parent::__construct($client);
|
|
$this->servicePath = 'shopping/search/v1/';
|
|
$this->version = 'v1';
|
|
$this->serviceName = 'shopping';
|
|
|
|
$this->products = new Google_Service_Shopping_Products_Resource(
|
|
$this,
|
|
$this->serviceName,
|
|
'products',
|
|
array(
|
|
'methods' => array(
|
|
'get' => array(
|
|
'path' => '{source}/products/{accountId}/{productIdType}/{productId}',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => array(
|
|
'source' => array(
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
),
|
|
'accountId' => array(
|
|
'location' => 'path',
|
|
'type' => 'integer',
|
|
'required' => true,
|
|
),
|
|
'productIdType' => array(
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
),
|
|
'productId' => array(
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
),
|
|
'categories.include' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'recommendations.enabled' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'thumbnails' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'taxonomy' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'categories.useGcsConfig' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'recommendations.include' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'categories.enabled' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'location' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'attributeFilter' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'recommendations.useGcsConfig' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
),
|
|
),'list' => array(
|
|
'path' => '{source}/products',
|
|
'httpMethod' => 'GET',
|
|
'parameters' => array(
|
|
'source' => array(
|
|
'location' => 'path',
|
|
'type' => 'string',
|
|
'required' => true,
|
|
),
|
|
'facets.include' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'categoryRecommendations.category' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'extras.enabled' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'facets.enabled' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'promotions.enabled' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'channels' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'currency' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'categoryRecommendations.enabled' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'facets.discover' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'extras.info' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'startIndex' => array(
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
),
|
|
'availability' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'crowdBy' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'q' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'spelling.enabled' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'taxonomy' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'spelling.useGcsConfig' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'useCase' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'location' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'maxVariants' => array(
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
),
|
|
'categories.include' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'boostBy' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'categories.useGcsConfig' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'maxResults' => array(
|
|
'location' => 'query',
|
|
'type' => 'integer',
|
|
),
|
|
'facets.useGcsConfig' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'categories.enabled' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'attributeFilter' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'clickTracking' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'thumbnails' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'language' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'categoryRecommendations.include' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'country' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'rankBy' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'restrictBy' => array(
|
|
'location' => 'query',
|
|
'type' => 'string',
|
|
),
|
|
'facets.includeEmptyBuckets' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'redirects.enabled' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'redirects.useGcsConfig' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'categoryRecommendations.useGcsConfig' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
'promotions.useGcsConfig' => array(
|
|
'location' => 'query',
|
|
'type' => 'boolean',
|
|
),
|
|
),
|
|
),
|
|
)
|
|
)
|
|
);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
* The "products" collection of methods.
|
|
* Typical usage is:
|
|
* <code>
|
|
* $shoppingService = new Google_Service_Shopping(...);
|
|
* $products = $shoppingService->products;
|
|
* </code>
|
|
*/
|
|
class Google_Service_Shopping_Products_Resource extends Google_Service_Resource
|
|
{
|
|
|
|
/**
|
|
* Returns a single product (products.get)
|
|
*
|
|
* @param string $source
|
|
* Query source
|
|
* @param string $accountId
|
|
* Merchant center account id
|
|
* @param string $productIdType
|
|
* Type of productId
|
|
* @param string $productId
|
|
* Id of product
|
|
* @param array $optParams Optional parameters.
|
|
*
|
|
* @opt_param string categoriesInclude
|
|
* Category specification
|
|
* @opt_param bool recommendationsEnabled
|
|
* Whether to return recommendation information
|
|
* @opt_param string thumbnails
|
|
* Thumbnail specification
|
|
* @opt_param string taxonomy
|
|
* Merchant taxonomy
|
|
* @opt_param bool categoriesUseGcsConfig
|
|
* This parameter is currently ignored
|
|
* @opt_param string recommendationsInclude
|
|
* Recommendation specification
|
|
* @opt_param bool categoriesEnabled
|
|
* Whether to return category information
|
|
* @opt_param string location
|
|
* Location used to determine tax and shipping
|
|
* @opt_param string attributeFilter
|
|
* Comma separated list of attributes to return
|
|
* @opt_param bool recommendationsUseGcsConfig
|
|
* This parameter is currently ignored
|
|
* @return Google_Service_Shopping_Product
|
|
*/
|
|
public function get($source, $accountId, $productIdType, $productId, $optParams = array())
|
|
{
|
|
$params = array('source' => $source, 'accountId' => $accountId, 'productIdType' => $productIdType, 'productId' => $productId);
|
|
$params = array_merge($params, $optParams);
|
|
return $this->call('get', array($params), "Google_Service_Shopping_Product");
|
|
}
|
|
/**
|
|
* Returns a list of products and content modules (products.listProducts)
|
|
*
|
|
* @param string $source
|
|
* Query source
|
|
* @param array $optParams Optional parameters.
|
|
*
|
|
* @opt_param string facetsInclude
|
|
* Facets to include (applies when useGcsConfig == false)
|
|
* @opt_param string categoryRecommendationsCategory
|
|
* Category for which to retrieve recommendations
|
|
* @opt_param bool extrasEnabled
|
|
* Whether to return extra information.
|
|
* @opt_param bool facetsEnabled
|
|
* Whether to return facet information
|
|
* @opt_param bool promotionsEnabled
|
|
* Whether to return promotion information
|
|
* @opt_param string channels
|
|
* Channels specification
|
|
* @opt_param string currency
|
|
* Currency restriction (ISO 4217)
|
|
* @opt_param bool categoryRecommendationsEnabled
|
|
* Whether to return category recommendation information
|
|
* @opt_param string facetsDiscover
|
|
* Facets to discover
|
|
* @opt_param string extrasInfo
|
|
* What extra information to return.
|
|
* @opt_param string startIndex
|
|
* Index (1-based) of first product to return
|
|
* @opt_param string availability
|
|
* Comma separated list of availabilities (outOfStock, limited, inStock, backOrder, preOrder,
|
|
* onDisplayToOrder) to return
|
|
* @opt_param string crowdBy
|
|
* Crowding specification
|
|
* @opt_param string q
|
|
* Search query
|
|
* @opt_param bool spellingEnabled
|
|
* Whether to return spelling suggestions
|
|
* @opt_param string taxonomy
|
|
* Taxonomy name
|
|
* @opt_param bool spellingUseGcsConfig
|
|
* This parameter is currently ignored
|
|
* @opt_param string useCase
|
|
* One of CommerceSearchUseCase, ShoppingApiUseCase
|
|
* @opt_param string location
|
|
* Location used to determine tax and shipping
|
|
* @opt_param int maxVariants
|
|
* Maximum number of variant results to return per result
|
|
* @opt_param string categoriesInclude
|
|
* Category specification
|
|
* @opt_param string boostBy
|
|
* Boosting specification
|
|
* @opt_param bool categoriesUseGcsConfig
|
|
* This parameter is currently ignored
|
|
* @opt_param string maxResults
|
|
* Maximum number of results to return
|
|
* @opt_param bool facetsUseGcsConfig
|
|
* Whether to return facet information as configured in the GCS account
|
|
* @opt_param bool categoriesEnabled
|
|
* Whether to return category information
|
|
* @opt_param string attributeFilter
|
|
* Comma separated list of attributes to return
|
|
* @opt_param bool clickTracking
|
|
* Whether to add a click tracking parameter to offer URLs
|
|
* @opt_param string thumbnails
|
|
* Image thumbnails specification
|
|
* @opt_param string language
|
|
* Language restriction (BCP 47)
|
|
* @opt_param string categoryRecommendationsInclude
|
|
* Category recommendation specification
|
|
* @opt_param string country
|
|
* Country restriction (ISO 3166)
|
|
* @opt_param string rankBy
|
|
* Ranking specification
|
|
* @opt_param string restrictBy
|
|
* Restriction specification
|
|
* @opt_param bool facetsIncludeEmptyBuckets
|
|
* Return empty facet buckets.
|
|
* @opt_param bool redirectsEnabled
|
|
* Whether to return redirect information
|
|
* @opt_param bool redirectsUseGcsConfig
|
|
* Whether to return redirect information as configured in the GCS account
|
|
* @opt_param bool categoryRecommendationsUseGcsConfig
|
|
* This parameter is currently ignored
|
|
* @opt_param bool promotionsUseGcsConfig
|
|
* Whether to return promotion information as configured in the GCS account
|
|
* @return Google_Service_Shopping_Products
|
|
*/
|
|
public function listProducts($source, $optParams = array())
|
|
{
|
|
$params = array('source' => $source);
|
|
$params = array_merge($params, $optParams);
|
|
return $this->call('list', array($params), "Google_Service_Shopping_Products");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
class Google_Service_Shopping_Product extends Google_Collection
|
|
{
|
|
protected $categoriesType = 'Google_Service_Shopping_ShoppingModelCategoryJsonV1';
|
|
protected $categoriesDataType = 'array';
|
|
protected $debugType = 'Google_Service_Shopping_ShoppingModelDebugJsonV1';
|
|
protected $debugDataType = '';
|
|
public $id;
|
|
public $kind;
|
|
protected $productType = 'Google_Service_Shopping_ShoppingModelProductJsonV1';
|
|
protected $productDataType = '';
|
|
protected $recommendationsType = 'Google_Service_Shopping_ShoppingModelRecommendationsJsonV1';
|
|
protected $recommendationsDataType = 'array';
|
|
public $requestId;
|
|
public $selfLink;
|
|
|
|
public function setCategories($categories)
|
|
{
|
|
$this->categories = $categories;
|
|
}
|
|
|
|
public function getCategories()
|
|
{
|
|
return $this->categories;
|
|
}
|
|
|
|
public function setDebug(Google_Service_Shopping_ShoppingModelDebugJsonV1 $debug)
|
|
{
|
|
$this->debug = $debug;
|
|
}
|
|
|
|
public function getDebug()
|
|
{
|
|
return $this->debug;
|
|
}
|
|
|
|
public function setId($id)
|
|
{
|
|
$this->id = $id;
|
|
}
|
|
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setKind($kind)
|
|
{
|
|
$this->kind = $kind;
|
|
}
|
|
|
|
public function getKind()
|
|
{
|
|
return $this->kind;
|
|
}
|
|
|
|
public function setProduct(Google_Service_Shopping_ShoppingModelProductJsonV1 $product)
|
|
{
|
|
$this->product = $product;
|
|
}
|
|
|
|
public function getProduct()
|
|
{
|
|
return $this->product;
|
|
}
|
|
|
|
public function setRecommendations($recommendations)
|
|
{
|
|
$this->recommendations = $recommendations;
|
|
}
|
|
|
|
public function getRecommendations()
|
|
{
|
|
return $this->recommendations;
|
|
}
|
|
|
|
public function setRequestId($requestId)
|
|
{
|
|
$this->requestId = $requestId;
|
|
}
|
|
|
|
public function getRequestId()
|
|
{
|
|
return $this->requestId;
|
|
}
|
|
|
|
public function setSelfLink($selfLink)
|
|
{
|
|
$this->selfLink = $selfLink;
|
|
}
|
|
|
|
public function getSelfLink()
|
|
{
|
|
return $this->selfLink;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_Products extends Google_Collection
|
|
{
|
|
protected $categoriesType = 'Google_Service_Shopping_ShoppingModelCategoryJsonV1';
|
|
protected $categoriesDataType = 'array';
|
|
protected $categoryRecommendationsType = 'Google_Service_Shopping_ShoppingModelRecommendationsJsonV1';
|
|
protected $categoryRecommendationsDataType = 'array';
|
|
public $currentItemCount;
|
|
protected $debugType = 'Google_Service_Shopping_ShoppingModelDebugJsonV1';
|
|
protected $debugDataType = '';
|
|
public $etag;
|
|
protected $extrasType = 'Google_Service_Shopping_ShoppingModelExtrasJsonV1';
|
|
protected $extrasDataType = '';
|
|
protected $facetsType = 'Google_Service_Shopping_ProductsFacets';
|
|
protected $facetsDataType = 'array';
|
|
public $id;
|
|
protected $itemsType = 'Google_Service_Shopping_Product';
|
|
protected $itemsDataType = 'array';
|
|
public $itemsPerPage;
|
|
public $kind;
|
|
public $nextLink;
|
|
public $previousLink;
|
|
protected $promotionsType = 'Google_Service_Shopping_ProductsPromotions';
|
|
protected $promotionsDataType = 'array';
|
|
public $redirects;
|
|
public $requestId;
|
|
public $selfLink;
|
|
protected $spellingType = 'Google_Service_Shopping_ProductsSpelling';
|
|
protected $spellingDataType = '';
|
|
public $startIndex;
|
|
protected $storesType = 'Google_Service_Shopping_ProductsStores';
|
|
protected $storesDataType = 'array';
|
|
public $totalItems;
|
|
|
|
public function setCategories($categories)
|
|
{
|
|
$this->categories = $categories;
|
|
}
|
|
|
|
public function getCategories()
|
|
{
|
|
return $this->categories;
|
|
}
|
|
|
|
public function setCategoryRecommendations($categoryRecommendations)
|
|
{
|
|
$this->categoryRecommendations = $categoryRecommendations;
|
|
}
|
|
|
|
public function getCategoryRecommendations()
|
|
{
|
|
return $this->categoryRecommendations;
|
|
}
|
|
|
|
public function setCurrentItemCount($currentItemCount)
|
|
{
|
|
$this->currentItemCount = $currentItemCount;
|
|
}
|
|
|
|
public function getCurrentItemCount()
|
|
{
|
|
return $this->currentItemCount;
|
|
}
|
|
|
|
public function setDebug(Google_Service_Shopping_ShoppingModelDebugJsonV1 $debug)
|
|
{
|
|
$this->debug = $debug;
|
|
}
|
|
|
|
public function getDebug()
|
|
{
|
|
return $this->debug;
|
|
}
|
|
|
|
public function setEtag($etag)
|
|
{
|
|
$this->etag = $etag;
|
|
}
|
|
|
|
public function getEtag()
|
|
{
|
|
return $this->etag;
|
|
}
|
|
|
|
public function setExtras(Google_Service_Shopping_ShoppingModelExtrasJsonV1 $extras)
|
|
{
|
|
$this->extras = $extras;
|
|
}
|
|
|
|
public function getExtras()
|
|
{
|
|
return $this->extras;
|
|
}
|
|
|
|
public function setFacets($facets)
|
|
{
|
|
$this->facets = $facets;
|
|
}
|
|
|
|
public function getFacets()
|
|
{
|
|
return $this->facets;
|
|
}
|
|
|
|
public function setId($id)
|
|
{
|
|
$this->id = $id;
|
|
}
|
|
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setItems($items)
|
|
{
|
|
$this->items = $items;
|
|
}
|
|
|
|
public function getItems()
|
|
{
|
|
return $this->items;
|
|
}
|
|
|
|
public function setItemsPerPage($itemsPerPage)
|
|
{
|
|
$this->itemsPerPage = $itemsPerPage;
|
|
}
|
|
|
|
public function getItemsPerPage()
|
|
{
|
|
return $this->itemsPerPage;
|
|
}
|
|
|
|
public function setKind($kind)
|
|
{
|
|
$this->kind = $kind;
|
|
}
|
|
|
|
public function getKind()
|
|
{
|
|
return $this->kind;
|
|
}
|
|
|
|
public function setNextLink($nextLink)
|
|
{
|
|
$this->nextLink = $nextLink;
|
|
}
|
|
|
|
public function getNextLink()
|
|
{
|
|
return $this->nextLink;
|
|
}
|
|
|
|
public function setPreviousLink($previousLink)
|
|
{
|
|
$this->previousLink = $previousLink;
|
|
}
|
|
|
|
public function getPreviousLink()
|
|
{
|
|
return $this->previousLink;
|
|
}
|
|
|
|
public function setPromotions($promotions)
|
|
{
|
|
$this->promotions = $promotions;
|
|
}
|
|
|
|
public function getPromotions()
|
|
{
|
|
return $this->promotions;
|
|
}
|
|
|
|
public function setRedirects($redirects)
|
|
{
|
|
$this->redirects = $redirects;
|
|
}
|
|
|
|
public function getRedirects()
|
|
{
|
|
return $this->redirects;
|
|
}
|
|
|
|
public function setRequestId($requestId)
|
|
{
|
|
$this->requestId = $requestId;
|
|
}
|
|
|
|
public function getRequestId()
|
|
{
|
|
return $this->requestId;
|
|
}
|
|
|
|
public function setSelfLink($selfLink)
|
|
{
|
|
$this->selfLink = $selfLink;
|
|
}
|
|
|
|
public function getSelfLink()
|
|
{
|
|
return $this->selfLink;
|
|
}
|
|
|
|
public function setSpelling(Google_Service_Shopping_ProductsSpelling $spelling)
|
|
{
|
|
$this->spelling = $spelling;
|
|
}
|
|
|
|
public function getSpelling()
|
|
{
|
|
return $this->spelling;
|
|
}
|
|
|
|
public function setStartIndex($startIndex)
|
|
{
|
|
$this->startIndex = $startIndex;
|
|
}
|
|
|
|
public function getStartIndex()
|
|
{
|
|
return $this->startIndex;
|
|
}
|
|
|
|
public function setStores($stores)
|
|
{
|
|
$this->stores = $stores;
|
|
}
|
|
|
|
public function getStores()
|
|
{
|
|
return $this->stores;
|
|
}
|
|
|
|
public function setTotalItems($totalItems)
|
|
{
|
|
$this->totalItems = $totalItems;
|
|
}
|
|
|
|
public function getTotalItems()
|
|
{
|
|
return $this->totalItems;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ProductsFacets extends Google_Collection
|
|
{
|
|
protected $bucketsType = 'Google_Service_Shopping_ProductsFacetsBuckets';
|
|
protected $bucketsDataType = 'array';
|
|
public $count;
|
|
public $displayName;
|
|
public $name;
|
|
public $property;
|
|
public $type;
|
|
public $unit;
|
|
|
|
public function setBuckets($buckets)
|
|
{
|
|
$this->buckets = $buckets;
|
|
}
|
|
|
|
public function getBuckets()
|
|
{
|
|
return $this->buckets;
|
|
}
|
|
|
|
public function setCount($count)
|
|
{
|
|
$this->count = $count;
|
|
}
|
|
|
|
public function getCount()
|
|
{
|
|
return $this->count;
|
|
}
|
|
|
|
public function setDisplayName($displayName)
|
|
{
|
|
$this->displayName = $displayName;
|
|
}
|
|
|
|
public function getDisplayName()
|
|
{
|
|
return $this->displayName;
|
|
}
|
|
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setProperty($property)
|
|
{
|
|
$this->property = $property;
|
|
}
|
|
|
|
public function getProperty()
|
|
{
|
|
return $this->property;
|
|
}
|
|
|
|
public function setType($type)
|
|
{
|
|
$this->type = $type;
|
|
}
|
|
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
public function setUnit($unit)
|
|
{
|
|
$this->unit = $unit;
|
|
}
|
|
|
|
public function getUnit()
|
|
{
|
|
return $this->unit;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ProductsFacetsBuckets extends Google_Model
|
|
{
|
|
public $count;
|
|
public $max;
|
|
public $maxExclusive;
|
|
public $min;
|
|
public $minExclusive;
|
|
public $value;
|
|
|
|
public function setCount($count)
|
|
{
|
|
$this->count = $count;
|
|
}
|
|
|
|
public function getCount()
|
|
{
|
|
return $this->count;
|
|
}
|
|
|
|
public function setMax($max)
|
|
{
|
|
$this->max = $max;
|
|
}
|
|
|
|
public function getMax()
|
|
{
|
|
return $this->max;
|
|
}
|
|
|
|
public function setMaxExclusive($maxExclusive)
|
|
{
|
|
$this->maxExclusive = $maxExclusive;
|
|
}
|
|
|
|
public function getMaxExclusive()
|
|
{
|
|
return $this->maxExclusive;
|
|
}
|
|
|
|
public function setMin($min)
|
|
{
|
|
$this->min = $min;
|
|
}
|
|
|
|
public function getMin()
|
|
{
|
|
return $this->min;
|
|
}
|
|
|
|
public function setMinExclusive($minExclusive)
|
|
{
|
|
$this->minExclusive = $minExclusive;
|
|
}
|
|
|
|
public function getMinExclusive()
|
|
{
|
|
return $this->minExclusive;
|
|
}
|
|
|
|
public function setValue($value)
|
|
{
|
|
$this->value = $value;
|
|
}
|
|
|
|
public function getValue()
|
|
{
|
|
return $this->value;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ProductsPromotions extends Google_Collection
|
|
{
|
|
protected $customFieldsType = 'Google_Service_Shopping_ProductsPromotionsCustomFields';
|
|
protected $customFieldsDataType = 'array';
|
|
public $customHtml;
|
|
public $description;
|
|
public $destLink;
|
|
public $imageLink;
|
|
public $name;
|
|
protected $productType = 'Google_Service_Shopping_ShoppingModelProductJsonV1';
|
|
protected $productDataType = '';
|
|
public $type;
|
|
|
|
public function setCustomFields($customFields)
|
|
{
|
|
$this->customFields = $customFields;
|
|
}
|
|
|
|
public function getCustomFields()
|
|
{
|
|
return $this->customFields;
|
|
}
|
|
|
|
public function setCustomHtml($customHtml)
|
|
{
|
|
$this->customHtml = $customHtml;
|
|
}
|
|
|
|
public function getCustomHtml()
|
|
{
|
|
return $this->customHtml;
|
|
}
|
|
|
|
public function setDescription($description)
|
|
{
|
|
$this->description = $description;
|
|
}
|
|
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
public function setDestLink($destLink)
|
|
{
|
|
$this->destLink = $destLink;
|
|
}
|
|
|
|
public function getDestLink()
|
|
{
|
|
return $this->destLink;
|
|
}
|
|
|
|
public function setImageLink($imageLink)
|
|
{
|
|
$this->imageLink = $imageLink;
|
|
}
|
|
|
|
public function getImageLink()
|
|
{
|
|
return $this->imageLink;
|
|
}
|
|
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setProduct(Google_Service_Shopping_ShoppingModelProductJsonV1 $product)
|
|
{
|
|
$this->product = $product;
|
|
}
|
|
|
|
public function getProduct()
|
|
{
|
|
return $this->product;
|
|
}
|
|
|
|
public function setType($type)
|
|
{
|
|
$this->type = $type;
|
|
}
|
|
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ProductsPromotionsCustomFields extends Google_Model
|
|
{
|
|
public $name;
|
|
public $value;
|
|
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setValue($value)
|
|
{
|
|
$this->value = $value;
|
|
}
|
|
|
|
public function getValue()
|
|
{
|
|
return $this->value;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ProductsSpelling extends Google_Model
|
|
{
|
|
public $suggestion;
|
|
|
|
public function setSuggestion($suggestion)
|
|
{
|
|
$this->suggestion = $suggestion;
|
|
}
|
|
|
|
public function getSuggestion()
|
|
{
|
|
return $this->suggestion;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ProductsStores extends Google_Model
|
|
{
|
|
public $address;
|
|
public $location;
|
|
public $name;
|
|
public $storeCode;
|
|
public $storeId;
|
|
public $storeName;
|
|
public $telephone;
|
|
|
|
public function setAddress($address)
|
|
{
|
|
$this->address = $address;
|
|
}
|
|
|
|
public function getAddress()
|
|
{
|
|
return $this->address;
|
|
}
|
|
|
|
public function setLocation($location)
|
|
{
|
|
$this->location = $location;
|
|
}
|
|
|
|
public function getLocation()
|
|
{
|
|
return $this->location;
|
|
}
|
|
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setStoreCode($storeCode)
|
|
{
|
|
$this->storeCode = $storeCode;
|
|
}
|
|
|
|
public function getStoreCode()
|
|
{
|
|
return $this->storeCode;
|
|
}
|
|
|
|
public function setStoreId($storeId)
|
|
{
|
|
$this->storeId = $storeId;
|
|
}
|
|
|
|
public function getStoreId()
|
|
{
|
|
return $this->storeId;
|
|
}
|
|
|
|
public function setStoreName($storeName)
|
|
{
|
|
$this->storeName = $storeName;
|
|
}
|
|
|
|
public function getStoreName()
|
|
{
|
|
return $this->storeName;
|
|
}
|
|
|
|
public function setTelephone($telephone)
|
|
{
|
|
$this->telephone = $telephone;
|
|
}
|
|
|
|
public function getTelephone()
|
|
{
|
|
return $this->telephone;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelCategoryJsonV1 extends Google_Collection
|
|
{
|
|
public $id;
|
|
public $parents;
|
|
public $shortName;
|
|
public $url;
|
|
|
|
public function setId($id)
|
|
{
|
|
$this->id = $id;
|
|
}
|
|
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
|
|
public function setParents($parents)
|
|
{
|
|
$this->parents = $parents;
|
|
}
|
|
|
|
public function getParents()
|
|
{
|
|
return $this->parents;
|
|
}
|
|
|
|
public function setShortName($shortName)
|
|
{
|
|
$this->shortName = $shortName;
|
|
}
|
|
|
|
public function getShortName()
|
|
{
|
|
return $this->shortName;
|
|
}
|
|
|
|
public function setUrl($url)
|
|
{
|
|
$this->url = $url;
|
|
}
|
|
|
|
public function getUrl()
|
|
{
|
|
return $this->url;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelDebugJsonV1 extends Google_Collection
|
|
{
|
|
protected $backendTimesType = 'Google_Service_Shopping_ShoppingModelDebugJsonV1BackendTimes';
|
|
protected $backendTimesDataType = 'array';
|
|
public $elapsedMillis;
|
|
public $facetsRequest;
|
|
public $facetsResponse;
|
|
public $rdcResponse;
|
|
public $recommendedItemsRequest;
|
|
public $recommendedItemsResponse;
|
|
public $searchRequest;
|
|
public $searchResponse;
|
|
|
|
public function setBackendTimes($backendTimes)
|
|
{
|
|
$this->backendTimes = $backendTimes;
|
|
}
|
|
|
|
public function getBackendTimes()
|
|
{
|
|
return $this->backendTimes;
|
|
}
|
|
|
|
public function setElapsedMillis($elapsedMillis)
|
|
{
|
|
$this->elapsedMillis = $elapsedMillis;
|
|
}
|
|
|
|
public function getElapsedMillis()
|
|
{
|
|
return $this->elapsedMillis;
|
|
}
|
|
|
|
public function setFacetsRequest($facetsRequest)
|
|
{
|
|
$this->facetsRequest = $facetsRequest;
|
|
}
|
|
|
|
public function getFacetsRequest()
|
|
{
|
|
return $this->facetsRequest;
|
|
}
|
|
|
|
public function setFacetsResponse($facetsResponse)
|
|
{
|
|
$this->facetsResponse = $facetsResponse;
|
|
}
|
|
|
|
public function getFacetsResponse()
|
|
{
|
|
return $this->facetsResponse;
|
|
}
|
|
|
|
public function setRdcResponse($rdcResponse)
|
|
{
|
|
$this->rdcResponse = $rdcResponse;
|
|
}
|
|
|
|
public function getRdcResponse()
|
|
{
|
|
return $this->rdcResponse;
|
|
}
|
|
|
|
public function setRecommendedItemsRequest($recommendedItemsRequest)
|
|
{
|
|
$this->recommendedItemsRequest = $recommendedItemsRequest;
|
|
}
|
|
|
|
public function getRecommendedItemsRequest()
|
|
{
|
|
return $this->recommendedItemsRequest;
|
|
}
|
|
|
|
public function setRecommendedItemsResponse($recommendedItemsResponse)
|
|
{
|
|
$this->recommendedItemsResponse = $recommendedItemsResponse;
|
|
}
|
|
|
|
public function getRecommendedItemsResponse()
|
|
{
|
|
return $this->recommendedItemsResponse;
|
|
}
|
|
|
|
public function setSearchRequest($searchRequest)
|
|
{
|
|
$this->searchRequest = $searchRequest;
|
|
}
|
|
|
|
public function getSearchRequest()
|
|
{
|
|
return $this->searchRequest;
|
|
}
|
|
|
|
public function setSearchResponse($searchResponse)
|
|
{
|
|
$this->searchResponse = $searchResponse;
|
|
}
|
|
|
|
public function getSearchResponse()
|
|
{
|
|
return $this->searchResponse;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelDebugJsonV1BackendTimes extends Google_Model
|
|
{
|
|
public $elapsedMillis;
|
|
public $hostName;
|
|
public $name;
|
|
public $serverMillis;
|
|
|
|
public function setElapsedMillis($elapsedMillis)
|
|
{
|
|
$this->elapsedMillis = $elapsedMillis;
|
|
}
|
|
|
|
public function getElapsedMillis()
|
|
{
|
|
return $this->elapsedMillis;
|
|
}
|
|
|
|
public function setHostName($hostName)
|
|
{
|
|
$this->hostName = $hostName;
|
|
}
|
|
|
|
public function getHostName()
|
|
{
|
|
return $this->hostName;
|
|
}
|
|
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setServerMillis($serverMillis)
|
|
{
|
|
$this->serverMillis = $serverMillis;
|
|
}
|
|
|
|
public function getServerMillis()
|
|
{
|
|
return $this->serverMillis;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelExtrasJsonV1 extends Google_Collection
|
|
{
|
|
protected $facetRulesType = 'Google_Service_Shopping_ShoppingModelExtrasJsonV1FacetRules';
|
|
protected $facetRulesDataType = 'array';
|
|
protected $rankingRulesType = 'Google_Service_Shopping_ShoppingModelExtrasJsonV1RankingRules';
|
|
protected $rankingRulesDataType = 'array';
|
|
|
|
public function setFacetRules($facetRules)
|
|
{
|
|
$this->facetRules = $facetRules;
|
|
}
|
|
|
|
public function getFacetRules()
|
|
{
|
|
return $this->facetRules;
|
|
}
|
|
|
|
public function setRankingRules($rankingRules)
|
|
{
|
|
$this->rankingRules = $rankingRules;
|
|
}
|
|
|
|
public function getRankingRules()
|
|
{
|
|
return $this->rankingRules;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelExtrasJsonV1FacetRules extends Google_Model
|
|
{
|
|
public $name;
|
|
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelExtrasJsonV1RankingRules extends Google_Model
|
|
{
|
|
public $name;
|
|
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelProductJsonV1 extends Google_Collection
|
|
{
|
|
protected $attributesType = 'Google_Service_Shopping_ShoppingModelProductJsonV1Attributes';
|
|
protected $attributesDataType = 'array';
|
|
protected $authorType = 'Google_Service_Shopping_ShoppingModelProductJsonV1Author';
|
|
protected $authorDataType = '';
|
|
public $brand;
|
|
public $categories;
|
|
public $condition;
|
|
public $country;
|
|
public $creationTime;
|
|
public $description;
|
|
public $googleId;
|
|
public $gtin;
|
|
public $gtins;
|
|
protected $imagesType = 'Google_Service_Shopping_ShoppingModelProductJsonV1Images';
|
|
protected $imagesDataType = 'array';
|
|
protected $internal16Type = 'Google_Service_Shopping_ShoppingModelProductJsonV1Internal16';
|
|
protected $internal16DataType = '';
|
|
protected $inventoriesType = 'Google_Service_Shopping_ShoppingModelProductJsonV1Inventories';
|
|
protected $inventoriesDataType = 'array';
|
|
public $language;
|
|
public $link;
|
|
public $modificationTime;
|
|
public $mpns;
|
|
public $providedId;
|
|
public $queryMatched;
|
|
public $score;
|
|
public $title;
|
|
public $totalMatchingVariants;
|
|
protected $variantsType = 'Google_Service_Shopping_ShoppingModelProductJsonV1Variants';
|
|
protected $variantsDataType = 'array';
|
|
|
|
public function setAttributes($attributes)
|
|
{
|
|
$this->attributes = $attributes;
|
|
}
|
|
|
|
public function getAttributes()
|
|
{
|
|
return $this->attributes;
|
|
}
|
|
|
|
public function setAuthor(Google_Service_Shopping_ShoppingModelProductJsonV1Author $author)
|
|
{
|
|
$this->author = $author;
|
|
}
|
|
|
|
public function getAuthor()
|
|
{
|
|
return $this->author;
|
|
}
|
|
|
|
public function setBrand($brand)
|
|
{
|
|
$this->brand = $brand;
|
|
}
|
|
|
|
public function getBrand()
|
|
{
|
|
return $this->brand;
|
|
}
|
|
|
|
public function setCategories($categories)
|
|
{
|
|
$this->categories = $categories;
|
|
}
|
|
|
|
public function getCategories()
|
|
{
|
|
return $this->categories;
|
|
}
|
|
|
|
public function setCondition($condition)
|
|
{
|
|
$this->condition = $condition;
|
|
}
|
|
|
|
public function getCondition()
|
|
{
|
|
return $this->condition;
|
|
}
|
|
|
|
public function setCountry($country)
|
|
{
|
|
$this->country = $country;
|
|
}
|
|
|
|
public function getCountry()
|
|
{
|
|
return $this->country;
|
|
}
|
|
|
|
public function setCreationTime($creationTime)
|
|
{
|
|
$this->creationTime = $creationTime;
|
|
}
|
|
|
|
public function getCreationTime()
|
|
{
|
|
return $this->creationTime;
|
|
}
|
|
|
|
public function setDescription($description)
|
|
{
|
|
$this->description = $description;
|
|
}
|
|
|
|
public function getDescription()
|
|
{
|
|
return $this->description;
|
|
}
|
|
|
|
public function setGoogleId($googleId)
|
|
{
|
|
$this->googleId = $googleId;
|
|
}
|
|
|
|
public function getGoogleId()
|
|
{
|
|
return $this->googleId;
|
|
}
|
|
|
|
public function setGtin($gtin)
|
|
{
|
|
$this->gtin = $gtin;
|
|
}
|
|
|
|
public function getGtin()
|
|
{
|
|
return $this->gtin;
|
|
}
|
|
|
|
public function setGtins($gtins)
|
|
{
|
|
$this->gtins = $gtins;
|
|
}
|
|
|
|
public function getGtins()
|
|
{
|
|
return $this->gtins;
|
|
}
|
|
|
|
public function setImages($images)
|
|
{
|
|
$this->images = $images;
|
|
}
|
|
|
|
public function getImages()
|
|
{
|
|
return $this->images;
|
|
}
|
|
|
|
public function setInternal16(Google_Service_Shopping_ShoppingModelProductJsonV1Internal16 $internal16)
|
|
{
|
|
$this->internal16 = $internal16;
|
|
}
|
|
|
|
public function getInternal16()
|
|
{
|
|
return $this->internal16;
|
|
}
|
|
|
|
public function setInventories($inventories)
|
|
{
|
|
$this->inventories = $inventories;
|
|
}
|
|
|
|
public function getInventories()
|
|
{
|
|
return $this->inventories;
|
|
}
|
|
|
|
public function setLanguage($language)
|
|
{
|
|
$this->language = $language;
|
|
}
|
|
|
|
public function getLanguage()
|
|
{
|
|
return $this->language;
|
|
}
|
|
|
|
public function setLink($link)
|
|
{
|
|
$this->link = $link;
|
|
}
|
|
|
|
public function getLink()
|
|
{
|
|
return $this->link;
|
|
}
|
|
|
|
public function setModificationTime($modificationTime)
|
|
{
|
|
$this->modificationTime = $modificationTime;
|
|
}
|
|
|
|
public function getModificationTime()
|
|
{
|
|
return $this->modificationTime;
|
|
}
|
|
|
|
public function setMpns($mpns)
|
|
{
|
|
$this->mpns = $mpns;
|
|
}
|
|
|
|
public function getMpns()
|
|
{
|
|
return $this->mpns;
|
|
}
|
|
|
|
public function setProvidedId($providedId)
|
|
{
|
|
$this->providedId = $providedId;
|
|
}
|
|
|
|
public function getProvidedId()
|
|
{
|
|
return $this->providedId;
|
|
}
|
|
|
|
public function setQueryMatched($queryMatched)
|
|
{
|
|
$this->queryMatched = $queryMatched;
|
|
}
|
|
|
|
public function getQueryMatched()
|
|
{
|
|
return $this->queryMatched;
|
|
}
|
|
|
|
public function setScore($score)
|
|
{
|
|
$this->score = $score;
|
|
}
|
|
|
|
public function getScore()
|
|
{
|
|
return $this->score;
|
|
}
|
|
|
|
public function setTitle($title)
|
|
{
|
|
$this->title = $title;
|
|
}
|
|
|
|
public function getTitle()
|
|
{
|
|
return $this->title;
|
|
}
|
|
|
|
public function setTotalMatchingVariants($totalMatchingVariants)
|
|
{
|
|
$this->totalMatchingVariants = $totalMatchingVariants;
|
|
}
|
|
|
|
public function getTotalMatchingVariants()
|
|
{
|
|
return $this->totalMatchingVariants;
|
|
}
|
|
|
|
public function setVariants($variants)
|
|
{
|
|
$this->variants = $variants;
|
|
}
|
|
|
|
public function getVariants()
|
|
{
|
|
return $this->variants;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelProductJsonV1Attributes extends Google_Model
|
|
{
|
|
public $displayName;
|
|
public $name;
|
|
public $type;
|
|
public $unit;
|
|
public $value;
|
|
|
|
public function setDisplayName($displayName)
|
|
{
|
|
$this->displayName = $displayName;
|
|
}
|
|
|
|
public function getDisplayName()
|
|
{
|
|
return $this->displayName;
|
|
}
|
|
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
public function setType($type)
|
|
{
|
|
$this->type = $type;
|
|
}
|
|
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
|
|
public function setUnit($unit)
|
|
{
|
|
$this->unit = $unit;
|
|
}
|
|
|
|
public function getUnit()
|
|
{
|
|
return $this->unit;
|
|
}
|
|
|
|
public function setValue($value)
|
|
{
|
|
$this->value = $value;
|
|
}
|
|
|
|
public function getValue()
|
|
{
|
|
return $this->value;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelProductJsonV1Author extends Google_Model
|
|
{
|
|
public $accountId;
|
|
public $name;
|
|
|
|
public function setAccountId($accountId)
|
|
{
|
|
$this->accountId = $accountId;
|
|
}
|
|
|
|
public function getAccountId()
|
|
{
|
|
return $this->accountId;
|
|
}
|
|
|
|
public function setName($name)
|
|
{
|
|
$this->name = $name;
|
|
}
|
|
|
|
public function getName()
|
|
{
|
|
return $this->name;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelProductJsonV1Images extends Google_Collection
|
|
{
|
|
public $link;
|
|
public $status;
|
|
protected $thumbnailsType = 'Google_Service_Shopping_ShoppingModelProductJsonV1ImagesThumbnails';
|
|
protected $thumbnailsDataType = 'array';
|
|
|
|
public function setLink($link)
|
|
{
|
|
$this->link = $link;
|
|
}
|
|
|
|
public function getLink()
|
|
{
|
|
return $this->link;
|
|
}
|
|
|
|
public function setStatus($status)
|
|
{
|
|
$this->status = $status;
|
|
}
|
|
|
|
public function getStatus()
|
|
{
|
|
return $this->status;
|
|
}
|
|
|
|
public function setThumbnails($thumbnails)
|
|
{
|
|
$this->thumbnails = $thumbnails;
|
|
}
|
|
|
|
public function getThumbnails()
|
|
{
|
|
return $this->thumbnails;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelProductJsonV1ImagesThumbnails extends Google_Model
|
|
{
|
|
public $content;
|
|
public $height;
|
|
public $link;
|
|
public $width;
|
|
|
|
public function setContent($content)
|
|
{
|
|
$this->content = $content;
|
|
}
|
|
|
|
public function getContent()
|
|
{
|
|
return $this->content;
|
|
}
|
|
|
|
public function setHeight($height)
|
|
{
|
|
$this->height = $height;
|
|
}
|
|
|
|
public function getHeight()
|
|
{
|
|
return $this->height;
|
|
}
|
|
|
|
public function setLink($link)
|
|
{
|
|
$this->link = $link;
|
|
}
|
|
|
|
public function getLink()
|
|
{
|
|
return $this->link;
|
|
}
|
|
|
|
public function setWidth($width)
|
|
{
|
|
$this->width = $width;
|
|
}
|
|
|
|
public function getWidth()
|
|
{
|
|
return $this->width;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelProductJsonV1Internal16 extends Google_Model
|
|
{
|
|
public $length;
|
|
public $number;
|
|
public $size;
|
|
|
|
public function setLength($length)
|
|
{
|
|
$this->length = $length;
|
|
}
|
|
|
|
public function getLength()
|
|
{
|
|
return $this->length;
|
|
}
|
|
|
|
public function setNumber($number)
|
|
{
|
|
$this->number = $number;
|
|
}
|
|
|
|
public function getNumber()
|
|
{
|
|
return $this->number;
|
|
}
|
|
|
|
public function setSize($size)
|
|
{
|
|
$this->size = $size;
|
|
}
|
|
|
|
public function getSize()
|
|
{
|
|
return $this->size;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelProductJsonV1Inventories extends Google_Model
|
|
{
|
|
public $availability;
|
|
public $channel;
|
|
public $currency;
|
|
public $distance;
|
|
public $distanceUnit;
|
|
public $installmentMonths;
|
|
public $installmentPrice;
|
|
public $originalPrice;
|
|
public $price;
|
|
public $saleEndDate;
|
|
public $salePrice;
|
|
public $saleStartDate;
|
|
public $shipping;
|
|
public $storeId;
|
|
public $tax;
|
|
|
|
public function setAvailability($availability)
|
|
{
|
|
$this->availability = $availability;
|
|
}
|
|
|
|
public function getAvailability()
|
|
{
|
|
return $this->availability;
|
|
}
|
|
|
|
public function setChannel($channel)
|
|
{
|
|
$this->channel = $channel;
|
|
}
|
|
|
|
public function getChannel()
|
|
{
|
|
return $this->channel;
|
|
}
|
|
|
|
public function setCurrency($currency)
|
|
{
|
|
$this->currency = $currency;
|
|
}
|
|
|
|
public function getCurrency()
|
|
{
|
|
return $this->currency;
|
|
}
|
|
|
|
public function setDistance($distance)
|
|
{
|
|
$this->distance = $distance;
|
|
}
|
|
|
|
public function getDistance()
|
|
{
|
|
return $this->distance;
|
|
}
|
|
|
|
public function setDistanceUnit($distanceUnit)
|
|
{
|
|
$this->distanceUnit = $distanceUnit;
|
|
}
|
|
|
|
public function getDistanceUnit()
|
|
{
|
|
return $this->distanceUnit;
|
|
}
|
|
|
|
public function setInstallmentMonths($installmentMonths)
|
|
{
|
|
$this->installmentMonths = $installmentMonths;
|
|
}
|
|
|
|
public function getInstallmentMonths()
|
|
{
|
|
return $this->installmentMonths;
|
|
}
|
|
|
|
public function setInstallmentPrice($installmentPrice)
|
|
{
|
|
$this->installmentPrice = $installmentPrice;
|
|
}
|
|
|
|
public function getInstallmentPrice()
|
|
{
|
|
return $this->installmentPrice;
|
|
}
|
|
|
|
public function setOriginalPrice($originalPrice)
|
|
{
|
|
$this->originalPrice = $originalPrice;
|
|
}
|
|
|
|
public function getOriginalPrice()
|
|
{
|
|
return $this->originalPrice;
|
|
}
|
|
|
|
public function setPrice($price)
|
|
{
|
|
$this->price = $price;
|
|
}
|
|
|
|
public function getPrice()
|
|
{
|
|
return $this->price;
|
|
}
|
|
|
|
public function setSaleEndDate($saleEndDate)
|
|
{
|
|
$this->saleEndDate = $saleEndDate;
|
|
}
|
|
|
|
public function getSaleEndDate()
|
|
{
|
|
return $this->saleEndDate;
|
|
}
|
|
|
|
public function setSalePrice($salePrice)
|
|
{
|
|
$this->salePrice = $salePrice;
|
|
}
|
|
|
|
public function getSalePrice()
|
|
{
|
|
return $this->salePrice;
|
|
}
|
|
|
|
public function setSaleStartDate($saleStartDate)
|
|
{
|
|
$this->saleStartDate = $saleStartDate;
|
|
}
|
|
|
|
public function getSaleStartDate()
|
|
{
|
|
return $this->saleStartDate;
|
|
}
|
|
|
|
public function setShipping($shipping)
|
|
{
|
|
$this->shipping = $shipping;
|
|
}
|
|
|
|
public function getShipping()
|
|
{
|
|
return $this->shipping;
|
|
}
|
|
|
|
public function setStoreId($storeId)
|
|
{
|
|
$this->storeId = $storeId;
|
|
}
|
|
|
|
public function getStoreId()
|
|
{
|
|
return $this->storeId;
|
|
}
|
|
|
|
public function setTax($tax)
|
|
{
|
|
$this->tax = $tax;
|
|
}
|
|
|
|
public function getTax()
|
|
{
|
|
return $this->tax;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelProductJsonV1Variants extends Google_Model
|
|
{
|
|
protected $variantType = 'Google_Service_Shopping_ShoppingModelProductJsonV1';
|
|
protected $variantDataType = '';
|
|
|
|
public function setVariant(Google_Service_Shopping_ShoppingModelProductJsonV1 $variant)
|
|
{
|
|
$this->variant = $variant;
|
|
}
|
|
|
|
public function getVariant()
|
|
{
|
|
return $this->variant;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelRecommendationsJsonV1 extends Google_Collection
|
|
{
|
|
protected $recommendationListType = 'Google_Service_Shopping_ShoppingModelRecommendationsJsonV1RecommendationList';
|
|
protected $recommendationListDataType = 'array';
|
|
public $type;
|
|
|
|
public function setRecommendationList($recommendationList)
|
|
{
|
|
$this->recommendationList = $recommendationList;
|
|
}
|
|
|
|
public function getRecommendationList()
|
|
{
|
|
return $this->recommendationList;
|
|
}
|
|
|
|
public function setType($type)
|
|
{
|
|
$this->type = $type;
|
|
}
|
|
|
|
public function getType()
|
|
{
|
|
return $this->type;
|
|
}
|
|
}
|
|
|
|
class Google_Service_Shopping_ShoppingModelRecommendationsJsonV1RecommendationList extends Google_Model
|
|
{
|
|
protected $productType = 'Google_Service_Shopping_ShoppingModelProductJsonV1';
|
|
protected $productDataType = '';
|
|
|
|
public function setProduct(Google_Service_Shopping_ShoppingModelProductJsonV1 $product)
|
|
{
|
|
$this->product = $product;
|
|
}
|
|
|
|
public function getProduct()
|
|
{
|
|
return $this->product;
|
|
}
|
|
}
|