PluginProbe
ManageWP Worker / 3.9.22
ManageWP Worker v3.9.22
4.9.38 4.9.37 4.9.36 4.9.35 4.9.34 3.8.7 3.8.8 3.9.0 3.9.1 3.9.10 3.9.11 3.9.12 3.9.13 3.9.14 3.9.15 3.9.16 3.9.17 3.9.18 3.9.19 3.9.2 3.9.20 3.9.21 3.9.22 3.9.23 3.9.24 All 73 releases
worker / lib / google-api-client / contrib / Google_ShoppingService.php

Google_ShoppingService.php in ManageWP Worker 3.9.22, at lib/google-api-client/contrib/Google_ShoppingService.php

1,312 lines 44.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16
17 /**
18 * The "products" collection of methods.
19 * Typical usage is:
20 * <code>
21 * $shoppingService = new Google_ShoppingService(...);
22 * $products = $shoppingService->products;
23 * </code>
24 */
25 class Google_ProductsServiceResource extends Google_ServiceResource {
26
27
28 /**
29 * Returns a list of products and content modules (products.list)
30 *
31 * @param string $source Query source
32 * @param array $optParams Optional parameters.
33 *
34 * @opt_param string facets.include Facets to include (applies when useGcsConfig == false)
35 * @opt_param bool plusOne.enabled Whether to return +1 button code
36 * @opt_param bool plusOne.useGcsConfig Whether to use +1 button styles configured in the GCS account
37 * @opt_param bool facets.enabled Whether to return facet information
38 * @opt_param bool relatedQueries.useGcsConfig This parameter is currently ignored
39 * @opt_param bool promotions.enabled Whether to return promotion information
40 * @opt_param string channels Channels specification
41 * @opt_param string currency Currency restriction (ISO 4217)
42 * @opt_param bool categoryRecommendations.enabled Whether to return category recommendation information
43 * @opt_param string facets.discover Facets to discover
44 * @opt_param string categoryRecommendations.category Category for which to retrieve recommendations
45 * @opt_param string startIndex Index (1-based) of first product to return
46 * @opt_param string availability Comma separated list of availabilities (outOfStock, limited, inStock, backOrder, preOrder, onDisplayToOrder) to return
47 * @opt_param string crowdBy Crowding specification
48 * @opt_param bool spelling.enabled Whether to return spelling suggestions
49 * @opt_param string taxonomy Taxonomy name
50 * @opt_param bool spelling.useGcsConfig This parameter is currently ignored
51 * @opt_param string useCase One of CommerceSearchUseCase, ShoppingApiUseCase
52 * @opt_param string location Location used to determine tax and shipping
53 * @opt_param int maxVariants Maximum number of variant results to return per result
54 * @opt_param string categories.include Category specification
55 * @opt_param string boostBy Boosting specification
56 * @opt_param bool safe Whether safe search is enabled. Default: true
57 * @opt_param bool categories.useGcsConfig This parameter is currently ignored
58 * @opt_param string maxResults Maximum number of results to return
59 * @opt_param bool facets.useGcsConfig Whether to return facet information as configured in the GCS account
60 * @opt_param bool categories.enabled Whether to return category information
61 * @opt_param string plusOne.styles +1 button rendering styles
62 * @opt_param string attributeFilter Comma separated list of attributes to return
63 * @opt_param bool clickTracking Whether to add a click tracking parameter to offer URLs
64 * @opt_param string thumbnails Image thumbnails specification
65 * @opt_param string language Language restriction (BCP 47)
66 * @opt_param string categoryRecommendations.include Category recommendation specification
67 * @opt_param string country Country restriction (ISO 3166)
68 * @opt_param string rankBy Ranking specification
69 * @opt_param string restrictBy Restriction specification
70 * @opt_param string q Search query
71 * @opt_param bool redirects.enabled Whether to return redirect information
72 * @opt_param bool redirects.useGcsConfig Whether to return redirect information as configured in the GCS account
73 * @opt_param bool relatedQueries.enabled Whether to return related queries
74 * @opt_param bool categoryRecommendations.useGcsConfig This parameter is currently ignored
75 * @opt_param bool promotions.useGcsConfig Whether to return promotion information as configured in the GCS account
76 * @return Google_Products
77 */
78 public function listProducts($source, $optParams = array()) {
79 $params = array('source' => $source);
80 $params = array_merge($params, $optParams);
81 $data = $this->__call('list', array($params));
82 if ($this->useObjects()) {
83 return new Google_Products($data);
84 } else {
85 return $data;
86 }
87 }
88 /**
89 * Returns a single product (products.get)
90 *
91 * @param string $source Query source
92 * @param string $accountId Merchant center account id
93 * @param string $productIdType Type of productId
94 * @param string $productId Id of product
95 * @param array $optParams Optional parameters.
96 *
97 * @opt_param string categories.include Category specification
98 * @opt_param bool recommendations.enabled Whether to return recommendation information
99 * @opt_param string thumbnails Thumbnail specification
100 * @opt_param bool plusOne.useGcsConfig Whether to use +1 button styles configured in the GCS account
101 * @opt_param string taxonomy Merchant taxonomy
102 * @opt_param bool categories.useGcsConfig This parameter is currently ignored
103 * @opt_param string plusOne.styles +1 button rendering styles
104 * @opt_param string recommendations.include Recommendation specification
105 * @opt_param bool categories.enabled Whether to return category information
106 * @opt_param string location Location used to determine tax and shipping
107 * @opt_param bool plusOne.enabled Whether to return +1 button code
108 * @opt_param string attributeFilter Comma separated list of attributes to return
109 * @opt_param bool recommendations.useGcsConfig This parameter is currently ignored
110 * @return Google_Product
111 */
112 public function get($source, $accountId, $productIdType, $productId, $optParams = array()) {
113 $params = array('source' => $source, 'accountId' => $accountId, 'productIdType' => $productIdType, 'productId' => $productId);
114 $params = array_merge($params, $optParams);
115 $data = $this->__call('get', array($params));
116 if ($this->useObjects()) {
117 return new Google_Product($data);
118 } else {
119 return $data;
120 }
121 }
122 }
123
124 /**
125 * Service definition for Google_Shopping (v1).
126 *
127 * <p>
128 * Lets you search over product data.
129 * </p>
130 *
131 * <p>
132 * For more information about this service, see the
133 * <a href="http://code.google.com/apis/shopping/search/v1/getting_started.html" target="_blank">API Documentation</a>
134 * </p>
135 *
136 * @author Google, Inc.
137 */
138 class Google_ShoppingService extends Google_Service {
139 public $products;
140 /**
141 * Constructs the internal representation of the Shopping service.
142 *
143 * @param Google_Client $client
144 */
145 public function __construct(Google_Client $client) {
146 $this->servicePath = 'shopping/search/v1/';
147 $this->version = 'v1';
148 $this->serviceName = 'shopping';
149
150 $client->addService($this->serviceName, $this->version);
151 $this->products = new Google_ProductsServiceResource($this, $this->serviceName, 'products', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/shoppingapi"], "parameters": {"facets.include": {"type": "string", "location": "query"}, "plusOne.enabled": {"type": "boolean", "location": "query"}, "plusOne.useGcsConfig": {"type": "boolean", "location": "query"}, "facets.enabled": {"type": "boolean", "location": "query"}, "relatedQueries.useGcsConfig": {"type": "boolean", "location": "query"}, "promotions.enabled": {"type": "boolean", "location": "query"}, "channels": {"type": "string", "location": "query"}, "currency": {"type": "string", "location": "query"}, "startIndex": {"type": "integer", "location": "query", "format": "uint32"}, "facets.discover": {"type": "string", "location": "query"}, "categoryRecommendations.category": {"type": "string", "location": "query"}, "availability": {"type": "string", "location": "query"}, "crowdBy": {"type": "string", "location": "query"}, "spelling.enabled": {"type": "boolean", "location": "query"}, "taxonomy": {"type": "string", "location": "query"}, "spelling.useGcsConfig": {"type": "boolean", "location": "query"}, "source": {"required": true, "type": "string", "location": "path"}, "useCase": {"type": "string", "location": "query"}, "location": {"type": "string", "location": "query"}, "maxVariants": {"type": "integer", "location": "query", "format": "int32"}, "categories.include": {"type": "string", "location": "query"}, "boostBy": {"type": "string", "location": "query"}, "safe": {"type": "boolean", "location": "query"}, "categories.useGcsConfig": {"type": "boolean", "location": "query"}, "maxResults": {"type": "integer", "location": "query", "format": "uint32"}, "facets.useGcsConfig": {"type": "boolean", "location": "query"}, "categories.enabled": {"type": "boolean", "location": "query"}, "plusOne.styles": {"type": "string", "location": "query"}, "attributeFilter": {"type": "string", "location": "query"}, "clickTracking": {"type": "boolean", "location": "query"}, "categoryRecommendations.enabled": {"type": "boolean", "location": "query"}, "thumbnails": {"type": "string", "location": "query"}, "language": {"type": "string", "location": "query"}, "categoryRecommendations.include": {"type": "string", "location": "query"}, "country": {"type": "string", "location": "query"}, "rankBy": {"type": "string", "location": "query"}, "restrictBy": {"type": "string", "location": "query"}, "q": {"type": "string", "location": "query"}, "redirects.enabled": {"type": "boolean", "location": "query"}, "redirects.useGcsConfig": {"type": "boolean", "location": "query"}, "relatedQueries.enabled": {"type": "boolean", "location": "query"}, "categoryRecommendations.useGcsConfig": {"type": "boolean", "location": "query"}, "promotions.useGcsConfig": {"type": "boolean", "location": "query"}}, "id": "shopping.products.list", "httpMethod": "GET", "path": "{source}/products", "response": {"$ref": "Products"}}, "get": {"scopes": ["https://www.googleapis.com/auth/shoppingapi"], "parameters": {"categories.include": {"type": "string", "location": "query"}, "recommendations.enabled": {"type": "boolean", "location": "query"}, "thumbnails": {"type": "string", "location": "query"}, "plusOne.useGcsConfig": {"type": "boolean", "location": "query"}, "source": {"required": true, "type": "string", "location": "path"}, "taxonomy": {"type": "string", "location": "query"}, "productIdType": {"required": true, "type": "string", "location": "path"}, "categories.useGcsConfig": {"type": "boolean", "location": "query"}, "plusOne.styles": {"type": "string", "location": "query"}, "recommendations.include": {"type": "string", "location": "query"}, "categories.enabled": {"type": "boolean", "location": "query"}, "location": {"type": "string", "location": "query"}, "plusOne.enabled": {"type": "boolean", "location": "query"}, "attributeFilter": {"type": "string", "location": "query"}, "recommendations.useGcsConfig": {"type": "boolean", "location": "query"}, "productId": {"required": true, "type": "string", "location": "path"}, "accountId": {"required": true, "type": "integer", "location": "path", "format": "uint32"}}, "id": "shopping.products.get", "httpMethod": "GET", "path": "{source}/products/{accountId}/{productIdType}/{productId}", "response": {"$ref": "Product"}}}}', true));
152
153 }
154 }
155
156 class Google_Product extends Google_Model {
157 public $selfLink;
158 public $kind;
159 protected $__productType = 'Google_ShoppingModelProductJsonV1';
160 protected $__productDataType = '';
161 public $product;
162 public $requestId;
163 protected $__recommendationsType = 'Google_ShoppingModelRecommendationsJsonV1';
164 protected $__recommendationsDataType = 'array';
165 public $recommendations;
166 protected $__debugType = 'Google_ShoppingModelDebugJsonV1';
167 protected $__debugDataType = '';
168 public $debug;
169 public $id;
170 protected $__categoriesType = 'Google_ShoppingModelCategoryJsonV1';
171 protected $__categoriesDataType = 'array';
172 public $categories;
173 public function setSelfLink($selfLink) {
174 $this->selfLink = $selfLink;
175 }
176 public function getSelfLink() {
177 return $this->selfLink;
178 }
179 public function setKind($kind) {
180 $this->kind = $kind;
181 }
182 public function getKind() {
183 return $this->kind;
184 }
185 public function setProduct(Google_ShoppingModelProductJsonV1 $product) {
186 $this->product = $product;
187 }
188 public function getProduct() {
189 return $this->product;
190 }
191 public function setRequestId($requestId) {
192 $this->requestId = $requestId;
193 }
194 public function getRequestId() {
195 return $this->requestId;
196 }
197 public function setRecommendations(/* array(Google_ShoppingModelRecommendationsJsonV1) */ $recommendations) {
198 $this->assertIsArray($recommendations, 'Google_ShoppingModelRecommendationsJsonV1', __METHOD__);
199 $this->recommendations = $recommendations;
200 }
201 public function getRecommendations() {
202 return $this->recommendations;
203 }
204 public function setDebug(Google_ShoppingModelDebugJsonV1 $debug) {
205 $this->debug = $debug;
206 }
207 public function getDebug() {
208 return $this->debug;
209 }
210 public function setId($id) {
211 $this->id = $id;
212 }
213 public function getId() {
214 return $this->id;
215 }
216 public function setCategories(/* array(Google_ShoppingModelCategoryJsonV1) */ $categories) {
217 $this->assertIsArray($categories, 'Google_ShoppingModelCategoryJsonV1', __METHOD__);
218 $this->categories = $categories;
219 }
220 public function getCategories() {
221 return $this->categories;
222 }
223 }
224
225 class Google_Products extends Google_Model {
226 protected $__promotionsType = 'Google_ProductsPromotions';
227 protected $__promotionsDataType = 'array';
228 public $promotions;
229 public $selfLink;
230 public $kind;
231 protected $__storesType = 'Google_ProductsStores';
232 protected $__storesDataType = 'array';
233 public $stores;
234 public $currentItemCount;
235 protected $__itemsType = 'Google_Product';
236 protected $__itemsDataType = 'array';
237 public $items;
238 protected $__facetsType = 'Google_ProductsFacets';
239 protected $__facetsDataType = 'array';
240 public $facets;
241 public $itemsPerPage;
242 public $redirects;
243 public $nextLink;
244 public $relatedQueries;
245 public $totalItems;
246 public $startIndex;
247 public $etag;
248 public $requestId;
249 protected $__categoryRecommendationsType = 'Google_ShoppingModelRecommendationsJsonV1';
250 protected $__categoryRecommendationsDataType = 'array';
251 public $categoryRecommendations;
252 protected $__debugType = 'Google_ShoppingModelDebugJsonV1';
253 protected $__debugDataType = '';
254 public $debug;
255 protected $__spellingType = 'Google_ProductsSpelling';
256 protected $__spellingDataType = '';
257 public $spelling;
258 public $previousLink;
259 public $id;
260 protected $__categoriesType = 'Google_ShoppingModelCategoryJsonV1';
261 protected $__categoriesDataType = 'array';
262 public $categories;
263 public function setPromotions(/* array(Google_ProductsPromotions) */ $promotions) {
264 $this->assertIsArray($promotions, 'Google_ProductsPromotions', __METHOD__);
265 $this->promotions = $promotions;
266 }
267 public function getPromotions() {
268 return $this->promotions;
269 }
270 public function setSelfLink($selfLink) {
271 $this->selfLink = $selfLink;
272 }
273 public function getSelfLink() {
274 return $this->selfLink;
275 }
276 public function setKind($kind) {
277 $this->kind = $kind;
278 }
279 public function getKind() {
280 return $this->kind;
281 }
282 public function setStores(/* array(Google_ProductsStores) */ $stores) {
283 $this->assertIsArray($stores, 'Google_ProductsStores', __METHOD__);
284 $this->stores = $stores;
285 }
286 public function getStores() {
287 return $this->stores;
288 }
289 public function setCurrentItemCount($currentItemCount) {
290 $this->currentItemCount = $currentItemCount;
291 }
292 public function getCurrentItemCount() {
293 return $this->currentItemCount;
294 }
295 public function setItems(/* array(Google_Product) */ $items) {
296 $this->assertIsArray($items, 'Google_Product', __METHOD__);
297 $this->items = $items;
298 }
299 public function getItems() {
300 return $this->items;
301 }
302 public function setFacets(/* array(Google_ProductsFacets) */ $facets) {
303 $this->assertIsArray($facets, 'Google_ProductsFacets', __METHOD__);
304 $this->facets = $facets;
305 }
306 public function getFacets() {
307 return $this->facets;
308 }
309 public function setItemsPerPage($itemsPerPage) {
310 $this->itemsPerPage = $itemsPerPage;
311 }
312 public function getItemsPerPage() {
313 return $this->itemsPerPage;
314 }
315 public function setRedirects(/* array(Google_string) */ $redirects) {
316 $this->assertIsArray($redirects, 'Google_string', __METHOD__);
317 $this->redirects = $redirects;
318 }
319 public function getRedirects() {
320 return $this->redirects;
321 }
322 public function setNextLink($nextLink) {
323 $this->nextLink = $nextLink;
324 }
325 public function getNextLink() {
326 return $this->nextLink;
327 }
328 public function setRelatedQueries(/* array(Google_string) */ $relatedQueries) {
329 $this->assertIsArray($relatedQueries, 'Google_string', __METHOD__);
330 $this->relatedQueries = $relatedQueries;
331 }
332 public function getRelatedQueries() {
333 return $this->relatedQueries;
334 }
335 public function setTotalItems($totalItems) {
336 $this->totalItems = $totalItems;
337 }
338 public function getTotalItems() {
339 return $this->totalItems;
340 }
341 public function setStartIndex($startIndex) {
342 $this->startIndex = $startIndex;
343 }
344 public function getStartIndex() {
345 return $this->startIndex;
346 }
347 public function setEtag($etag) {
348 $this->etag = $etag;
349 }
350 public function getEtag() {
351 return $this->etag;
352 }
353 public function setRequestId($requestId) {
354 $this->requestId = $requestId;
355 }
356 public function getRequestId() {
357 return $this->requestId;
358 }
359 public function setCategoryRecommendations(/* array(Google_ShoppingModelRecommendationsJsonV1) */ $categoryRecommendations) {
360 $this->assertIsArray($categoryRecommendations, 'Google_ShoppingModelRecommendationsJsonV1', __METHOD__);
361 $this->categoryRecommendations = $categoryRecommendations;
362 }
363 public function getCategoryRecommendations() {
364 return $this->categoryRecommendations;
365 }
366 public function setDebug(Google_ShoppingModelDebugJsonV1 $debug) {
367 $this->debug = $debug;
368 }
369 public function getDebug() {
370 return $this->debug;
371 }
372 public function setSpelling(Google_ProductsSpelling $spelling) {
373 $this->spelling = $spelling;
374 }
375 public function getSpelling() {
376 return $this->spelling;
377 }
378 public function setPreviousLink($previousLink) {
379 $this->previousLink = $previousLink;
380 }
381 public function getPreviousLink() {
382 return $this->previousLink;
383 }
384 public function setId($id) {
385 $this->id = $id;
386 }
387 public function getId() {
388 return $this->id;
389 }
390 public function setCategories(/* array(Google_ShoppingModelCategoryJsonV1) */ $categories) {
391 $this->assertIsArray($categories, 'Google_ShoppingModelCategoryJsonV1', __METHOD__);
392 $this->categories = $categories;
393 }
394 public function getCategories() {
395 return $this->categories;
396 }
397 }
398
399 class Google_ProductsFacets extends Google_Model {
400 public $count;
401 public $displayName;
402 public $name;
403 protected $__bucketsType = 'Google_ProductsFacetsBuckets';
404 protected $__bucketsDataType = 'array';
405 public $buckets;
406 public $property;
407 public $type;
408 public $unit;
409 public function setCount($count) {
410 $this->count = $count;
411 }
412 public function getCount() {
413 return $this->count;
414 }
415 public function setDisplayName($displayName) {
416 $this->displayName = $displayName;
417 }
418 public function getDisplayName() {
419 return $this->displayName;
420 }
421 public function setName($name) {
422 $this->name = $name;
423 }
424 public function getName() {
425 return $this->name;
426 }
427 public function setBuckets(/* array(Google_ProductsFacetsBuckets) */ $buckets) {
428 $this->assertIsArray($buckets, 'Google_ProductsFacetsBuckets', __METHOD__);
429 $this->buckets = $buckets;
430 }
431 public function getBuckets() {
432 return $this->buckets;
433 }
434 public function setProperty($property) {
435 $this->property = $property;
436 }
437 public function getProperty() {
438 return $this->property;
439 }
440 public function setType($type) {
441 $this->type = $type;
442 }
443 public function getType() {
444 return $this->type;
445 }
446 public function setUnit($unit) {
447 $this->unit = $unit;
448 }
449 public function getUnit() {
450 return $this->unit;
451 }
452 }
453
454 class Google_ProductsFacetsBuckets extends Google_Model {
455 public $count;
456 public $minExclusive;
457 public $min;
458 public $max;
459 public $value;
460 public $maxExclusive;
461 public function setCount($count) {
462 $this->count = $count;
463 }
464 public function getCount() {
465 return $this->count;
466 }
467 public function setMinExclusive($minExclusive) {
468 $this->minExclusive = $minExclusive;
469 }
470 public function getMinExclusive() {
471 return $this->minExclusive;
472 }
473 public function setMin($min) {
474 $this->min = $min;
475 }
476 public function getMin() {
477 return $this->min;
478 }
479 public function setMax($max) {
480 $this->max = $max;
481 }
482 public function getMax() {
483 return $this->max;
484 }
485 public function setValue($value) {
486 $this->value = $value;
487 }
488 public function getValue() {
489 return $this->value;
490 }
491 public function setMaxExclusive($maxExclusive) {
492 $this->maxExclusive = $maxExclusive;
493 }
494 public function getMaxExclusive() {
495 return $this->maxExclusive;
496 }
497 }
498
499 class Google_ProductsPromotions extends Google_Model {
500 protected $__productType = 'Google_ShoppingModelProductJsonV1';
501 protected $__productDataType = '';
502 public $product;
503 public $description;
504 public $imageLink;
505 public $destLink;
506 public $customHtml;
507 protected $__customFieldsType = 'Google_ProductsPromotionsCustomFields';
508 protected $__customFieldsDataType = 'array';
509 public $customFields;
510 public $type;
511 public $name;
512 public function setProduct(Google_ShoppingModelProductJsonV1 $product) {
513 $this->product = $product;
514 }
515 public function getProduct() {
516 return $this->product;
517 }
518 public function setDescription($description) {
519 $this->description = $description;
520 }
521 public function getDescription() {
522 return $this->description;
523 }
524 public function setImageLink($imageLink) {
525 $this->imageLink = $imageLink;
526 }
527 public function getImageLink() {
528 return $this->imageLink;
529 }
530 public function setDestLink($destLink) {
531 $this->destLink = $destLink;
532 }
533 public function getDestLink() {
534 return $this->destLink;
535 }
536 public function setCustomHtml($customHtml) {
537 $this->customHtml = $customHtml;
538 }
539 public function getCustomHtml() {
540 return $this->customHtml;
541 }
542 public function setCustomFields(/* array(Google_ProductsPromotionsCustomFields) */ $customFields) {
543 $this->assertIsArray($customFields, 'Google_ProductsPromotionsCustomFields', __METHOD__);
544 $this->customFields = $customFields;
545 }
546 public function getCustomFields() {
547 return $this->customFields;
548 }
549 public function setType($type) {
550 $this->type = $type;
551 }
552 public function getType() {
553 return $this->type;
554 }
555 public function setName($name) {
556 $this->name = $name;
557 }
558 public function getName() {
559 return $this->name;
560 }
561 }
562
563 class Google_ProductsPromotionsCustomFields extends Google_Model {
564 public $name;
565 public $value;
566 public function setName($name) {
567 $this->name = $name;
568 }
569 public function getName() {
570 return $this->name;
571 }
572 public function setValue($value) {
573 $this->value = $value;
574 }
575 public function getValue() {
576 return $this->value;
577 }
578 }
579
580 class Google_ProductsSpelling extends Google_Model {
581 public $suggestion;
582 public function setSuggestion($suggestion) {
583 $this->suggestion = $suggestion;
584 }
585 public function getSuggestion() {
586 return $this->suggestion;
587 }
588 }
589
590 class Google_ProductsStores extends Google_Model {
591 public $storeCode;
592 public $name;
593 public $storeName;
594 public $storeId;
595 public $telephone;
596 public $location;
597 public $address;
598 public function setStoreCode($storeCode) {
599 $this->storeCode = $storeCode;
600 }
601 public function getStoreCode() {
602 return $this->storeCode;
603 }
604 public function setName($name) {
605 $this->name = $name;
606 }
607 public function getName() {
608 return $this->name;
609 }
610 public function setStoreName($storeName) {
611 $this->storeName = $storeName;
612 }
613 public function getStoreName() {
614 return $this->storeName;
615 }
616 public function setStoreId($storeId) {
617 $this->storeId = $storeId;
618 }
619 public function getStoreId() {
620 return $this->storeId;
621 }
622 public function setTelephone($telephone) {
623 $this->telephone = $telephone;
624 }
625 public function getTelephone() {
626 return $this->telephone;
627 }
628 public function setLocation($location) {
629 $this->location = $location;
630 }
631 public function getLocation() {
632 return $this->location;
633 }
634 public function setAddress($address) {
635 $this->address = $address;
636 }
637 public function getAddress() {
638 return $this->address;
639 }
640 }
641
642 class Google_ShoppingModelCategoryJsonV1 extends Google_Model {
643 public $url;
644 public $shortName;
645 public $parents;
646 public $id;
647 public function setUrl($url) {
648 $this->url = $url;
649 }
650 public function getUrl() {
651 return $this->url;
652 }
653 public function setShortName($shortName) {
654 $this->shortName = $shortName;
655 }
656 public function getShortName() {
657 return $this->shortName;
658 }
659 public function setParents(/* array(Google_string) */ $parents) {
660 $this->assertIsArray($parents, 'Google_string', __METHOD__);
661 $this->parents = $parents;
662 }
663 public function getParents() {
664 return $this->parents;
665 }
666 public function setId($id) {
667 $this->id = $id;
668 }
669 public function getId() {
670 return $this->id;
671 }
672 }
673
674 class Google_ShoppingModelDebugJsonV1 extends Google_Model {
675 public $searchRequest;
676 public $rdcResponse;
677 public $facetsRequest;
678 public $searchResponse;
679 public $elapsedMillis;
680 public $facetsResponse;
681 protected $__backendTimesType = 'Google_ShoppingModelDebugJsonV1BackendTimes';
682 protected $__backendTimesDataType = 'array';
683 public $backendTimes;
684 public function setSearchRequest($searchRequest) {
685 $this->searchRequest = $searchRequest;
686 }
687 public function getSearchRequest() {
688 return $this->searchRequest;
689 }
690 public function setRdcResponse($rdcResponse) {
691 $this->rdcResponse = $rdcResponse;
692 }
693 public function getRdcResponse() {
694 return $this->rdcResponse;
695 }
696 public function setFacetsRequest($facetsRequest) {
697 $this->facetsRequest = $facetsRequest;
698 }
699 public function getFacetsRequest() {
700 return $this->facetsRequest;
701 }
702 public function setSearchResponse($searchResponse) {
703 $this->searchResponse = $searchResponse;
704 }
705 public function getSearchResponse() {
706 return $this->searchResponse;
707 }
708 public function setElapsedMillis($elapsedMillis) {
709 $this->elapsedMillis = $elapsedMillis;
710 }
711 public function getElapsedMillis() {
712 return $this->elapsedMillis;
713 }
714 public function setFacetsResponse($facetsResponse) {
715 $this->facetsResponse = $facetsResponse;
716 }
717 public function getFacetsResponse() {
718 return $this->facetsResponse;
719 }
720 public function setBackendTimes(/* array(Google_ShoppingModelDebugJsonV1BackendTimes) */ $backendTimes) {
721 $this->assertIsArray($backendTimes, 'Google_ShoppingModelDebugJsonV1BackendTimes', __METHOD__);
722 $this->backendTimes = $backendTimes;
723 }
724 public function getBackendTimes() {
725 return $this->backendTimes;
726 }
727 }
728
729 class Google_ShoppingModelDebugJsonV1BackendTimes extends Google_Model {
730 public $serverMillis;
731 public $hostName;
732 public $name;
733 public $elapsedMillis;
734 public function setServerMillis($serverMillis) {
735 $this->serverMillis = $serverMillis;
736 }
737 public function getServerMillis() {
738 return $this->serverMillis;
739 }
740 public function setHostName($hostName) {
741 $this->hostName = $hostName;
742 }
743 public function getHostName() {
744 return $this->hostName;
745 }
746 public function setName($name) {
747 $this->name = $name;
748 }
749 public function getName() {
750 return $this->name;
751 }
752 public function setElapsedMillis($elapsedMillis) {
753 $this->elapsedMillis = $elapsedMillis;
754 }
755 public function getElapsedMillis() {
756 return $this->elapsedMillis;
757 }
758 }
759
760 class Google_ShoppingModelProductJsonV1 extends Google_Model {
761 public $queryMatched;
762 public $gtin;
763 protected $__imagesType = 'Google_ShoppingModelProductJsonV1Images';
764 protected $__imagesDataType = 'array';
765 public $images;
766 protected $__inventoriesType = 'Google_ShoppingModelProductJsonV1Inventories';
767 protected $__inventoriesDataType = 'array';
768 public $inventories;
769 protected $__authorType = 'Google_ShoppingModelProductJsonV1Author';
770 protected $__authorDataType = '';
771 public $author;
772 public $score;
773 public $condition;
774 public $providedId;
775 public $internal8;
776 public $description;
777 public $gtins;
778 public $internal1;
779 public $brand;
780 public $internal3;
781 protected $__internal4Type = 'Google_ShoppingModelProductJsonV1Internal4';
782 protected $__internal4DataType = 'array';
783 public $internal4;
784 public $internal6;
785 public $internal7;
786 public $link;
787 public $mpns;
788 protected $__attributesType = 'Google_ShoppingModelProductJsonV1Attributes';
789 protected $__attributesDataType = 'array';
790 public $attributes;
791 public $totalMatchingVariants;
792 protected $__variantsType = 'Google_ShoppingModelProductJsonV1Variants';
793 protected $__variantsDataType = 'array';
794 public $variants;
795 public $modificationTime;
796 public $categories;
797 public $language;
798 public $country;
799 public $title;
800 public $creationTime;
801 public $internal14;
802 public $internal12;
803 public $internal13;
804 public $internal10;
805 public $plusOne;
806 public $googleId;
807 public $internal15;
808 public function setQueryMatched($queryMatched) {
809 $this->queryMatched = $queryMatched;
810 }
811 public function getQueryMatched() {
812 return $this->queryMatched;
813 }
814 public function setGtin($gtin) {
815 $this->gtin = $gtin;
816 }
817 public function getGtin() {
818 return $this->gtin;
819 }
820 public function setImages(/* array(Google_ShoppingModelProductJsonV1Images) */ $images) {
821 $this->assertIsArray($images, 'Google_ShoppingModelProductJsonV1Images', __METHOD__);
822 $this->images = $images;
823 }
824 public function getImages() {
825 return $this->images;
826 }
827 public function setInventories(/* array(Google_ShoppingModelProductJsonV1Inventories) */ $inventories) {
828 $this->assertIsArray($inventories, 'Google_ShoppingModelProductJsonV1Inventories', __METHOD__);
829 $this->inventories = $inventories;
830 }
831 public function getInventories() {
832 return $this->inventories;
833 }
834 public function setAuthor(Google_ShoppingModelProductJsonV1Author $author) {
835 $this->author = $author;
836 }
837 public function getAuthor() {
838 return $this->author;
839 }
840 public function setScore($score) {
841 $this->score = $score;
842 }
843 public function getScore() {
844 return $this->score;
845 }
846 public function setCondition($condition) {
847 $this->condition = $condition;
848 }
849 public function getCondition() {
850 return $this->condition;
851 }
852 public function setProvidedId($providedId) {
853 $this->providedId = $providedId;
854 }
855 public function getProvidedId() {
856 return $this->providedId;
857 }
858 public function setInternal8(/* array(Google_string) */ $internal8) {
859 $this->assertIsArray($internal8, 'Google_string', __METHOD__);
860 $this->internal8 = $internal8;
861 }
862 public function getInternal8() {
863 return $this->internal8;
864 }
865 public function setDescription($description) {
866 $this->description = $description;
867 }
868 public function getDescription() {
869 return $this->description;
870 }
871 public function setGtins(/* array(Google_string) */ $gtins) {
872 $this->assertIsArray($gtins, 'Google_string', __METHOD__);
873 $this->gtins = $gtins;
874 }
875 public function getGtins() {
876 return $this->gtins;
877 }
878 public function setInternal1(/* array(Google_string) */ $internal1) {
879 $this->assertIsArray($internal1, 'Google_string', __METHOD__);
880 $this->internal1 = $internal1;
881 }
882 public function getInternal1() {
883 return $this->internal1;
884 }
885 public function setBrand($brand) {
886 $this->brand = $brand;
887 }
888 public function getBrand() {
889 return $this->brand;
890 }
891 public function setInternal3($internal3) {
892 $this->internal3 = $internal3;
893 }
894 public function getInternal3() {
895 return $this->internal3;
896 }
897 public function setInternal4(/* array(Google_ShoppingModelProductJsonV1Internal4) */ $internal4) {
898 $this->assertIsArray($internal4, 'Google_ShoppingModelProductJsonV1Internal4', __METHOD__);
899 $this->internal4 = $internal4;
900 }
901 public function getInternal4() {
902 return $this->internal4;
903 }
904 public function setInternal6($internal6) {
905 $this->internal6 = $internal6;
906 }
907 public function getInternal6() {
908 return $this->internal6;
909 }
910 public function setInternal7($internal7) {
911 $this->internal7 = $internal7;
912 }
913 public function getInternal7() {
914 return $this->internal7;
915 }
916 public function setLink($link) {
917 $this->link = $link;
918 }
919 public function getLink() {
920 return $this->link;
921 }
922 public function setMpns(/* array(Google_string) */ $mpns) {
923 $this->assertIsArray($mpns, 'Google_string', __METHOD__);
924 $this->mpns = $mpns;
925 }
926 public function getMpns() {
927 return $this->mpns;
928 }
929 public function setAttributes(/* array(Google_ShoppingModelProductJsonV1Attributes) */ $attributes) {
930 $this->assertIsArray($attributes, 'Google_ShoppingModelProductJsonV1Attributes', __METHOD__);
931 $this->attributes = $attributes;
932 }
933 public function getAttributes() {
934 return $this->attributes;
935 }
936 public function setTotalMatchingVariants($totalMatchingVariants) {
937 $this->totalMatchingVariants = $totalMatchingVariants;
938 }
939 public function getTotalMatchingVariants() {
940 return $this->totalMatchingVariants;
941 }
942 public function setVariants(/* array(Google_ShoppingModelProductJsonV1Variants) */ $variants) {
943 $this->assertIsArray($variants, 'Google_ShoppingModelProductJsonV1Variants', __METHOD__);
944 $this->variants = $variants;
945 }
946 public function getVariants() {
947 return $this->variants;
948 }
949 public function setModificationTime($modificationTime) {
950 $this->modificationTime = $modificationTime;
951 }
952 public function getModificationTime() {
953 return $this->modificationTime;
954 }
955 public function setCategories(/* array(Google_string) */ $categories) {
956 $this->assertIsArray($categories, 'Google_string', __METHOD__);
957 $this->categories = $categories;
958 }
959 public function getCategories() {
960 return $this->categories;
961 }
962 public function setLanguage($language) {
963 $this->language = $language;
964 }
965 public function getLanguage() {
966 return $this->language;
967 }
968 public function setCountry($country) {
969 $this->country = $country;
970 }
971 public function getCountry() {
972 return $this->country;
973 }
974 public function setTitle($title) {
975 $this->title = $title;
976 }
977 public function getTitle() {
978 return $this->title;
979 }
980 public function setCreationTime($creationTime) {
981 $this->creationTime = $creationTime;
982 }
983 public function getCreationTime() {
984 return $this->creationTime;
985 }
986 public function setInternal14($internal14) {
987 $this->internal14 = $internal14;
988 }
989 public function getInternal14() {
990 return $this->internal14;
991 }
992 public function setInternal12($internal12) {
993 $this->internal12 = $internal12;
994 }
995 public function getInternal12() {
996 return $this->internal12;
997 }
998 public function setInternal13($internal13) {
999 $this->internal13 = $internal13;
1000 }
1001 public function getInternal13() {
1002 return $this->internal13;
1003 }
1004 public function setInternal10(/* array(Google_string) */ $internal10) {
1005 $this->assertIsArray($internal10, 'Google_string', __METHOD__);
1006 $this->internal10 = $internal10;
1007 }
1008 public function getInternal10() {
1009 return $this->internal10;
1010 }
1011 public function setPlusOne($plusOne) {
1012 $this->plusOne = $plusOne;
1013 }
1014 public function getPlusOne() {
1015 return $this->plusOne;
1016 }
1017 public function setGoogleId($googleId) {
1018 $this->googleId = $googleId;
1019 }
1020 public function getGoogleId() {
1021 return $this->googleId;
1022 }
1023 public function setInternal15($internal15) {
1024 $this->internal15 = $internal15;
1025 }
1026 public function getInternal15() {
1027 return $this->internal15;
1028 }
1029 }
1030
1031 class Google_ShoppingModelProductJsonV1Attributes extends Google_Model {
1032 public $type;
1033 public $value;
1034 public $displayName;
1035 public $name;
1036 public $unit;
1037 public function setType($type) {
1038 $this->type = $type;
1039 }
1040 public function getType() {
1041 return $this->type;
1042 }
1043 public function setValue($value) {
1044 $this->value = $value;
1045 }
1046 public function getValue() {
1047 return $this->value;
1048 }
1049 public function setDisplayName($displayName) {
1050 $this->displayName = $displayName;
1051 }
1052 public function getDisplayName() {
1053 return $this->displayName;
1054 }
1055 public function setName($name) {
1056 $this->name = $name;
1057 }
1058 public function getName() {
1059 return $this->name;
1060 }
1061 public function setUnit($unit) {
1062 $this->unit = $unit;
1063 }
1064 public function getUnit() {
1065 return $this->unit;
1066 }
1067 }
1068
1069 class Google_ShoppingModelProductJsonV1Author extends Google_Model {
1070 public $name;
1071 public $accountId;
1072 public function setName($name) {
1073 $this->name = $name;
1074 }
1075 public function getName() {
1076 return $this->name;
1077 }
1078 public function setAccountId($accountId) {
1079 $this->accountId = $accountId;
1080 }
1081 public function getAccountId() {
1082 return $this->accountId;
1083 }
1084 }
1085
1086 class Google_ShoppingModelProductJsonV1Images extends Google_Model {
1087 public $status;
1088 public $link;
1089 protected $__thumbnailsType = 'Google_ShoppingModelProductJsonV1ImagesThumbnails';
1090 protected $__thumbnailsDataType = 'array';
1091 public $thumbnails;
1092 public function setStatus($status) {
1093 $this->status = $status;
1094 }
1095 public function getStatus() {
1096 return $this->status;
1097 }
1098 public function setLink($link) {
1099 $this->link = $link;
1100 }
1101 public function getLink() {
1102 return $this->link;
1103 }
1104 public function setThumbnails(/* array(Google_ShoppingModelProductJsonV1ImagesThumbnails) */ $thumbnails) {
1105 $this->assertIsArray($thumbnails, 'Google_ShoppingModelProductJsonV1ImagesThumbnails', __METHOD__);
1106 $this->thumbnails = $thumbnails;
1107 }
1108 public function getThumbnails() {
1109 return $this->thumbnails;
1110 }
1111 }
1112
1113 class Google_ShoppingModelProductJsonV1ImagesThumbnails extends Google_Model {
1114 public $content;
1115 public $width;
1116 public $link;
1117 public $height;
1118 public function setContent($content) {
1119 $this->content = $content;
1120 }
1121 public function getContent() {
1122 return $this->content;
1123 }
1124 public function setWidth($width) {
1125 $this->width = $width;
1126 }
1127 public function getWidth() {
1128 return $this->width;
1129 }
1130 public function setLink($link) {
1131 $this->link = $link;
1132 }
1133 public function getLink() {
1134 return $this->link;
1135 }
1136 public function setHeight($height) {
1137 $this->height = $height;
1138 }
1139 public function getHeight() {
1140 return $this->height;
1141 }
1142 }
1143
1144 class Google_ShoppingModelProductJsonV1Internal4 extends Google_Model {
1145 public $node;
1146 public $confidence;
1147 public function setNode($node) {
1148 $this->node = $node;
1149 }
1150 public function getNode() {
1151 return $this->node;
1152 }
1153 public function setConfidence($confidence) {
1154 $this->confidence = $confidence;
1155 }
1156 public function getConfidence() {
1157 return $this->confidence;
1158 }
1159 }
1160
1161 class Google_ShoppingModelProductJsonV1Inventories extends Google_Model {
1162 public $installmentPrice;
1163 public $installmentMonths;
1164 public $distance;
1165 public $price;
1166 public $storeId;
1167 public $tax;
1168 public $shipping;
1169 public $currency;
1170 public $salePrice;
1171 public $originalPrice;
1172 public $distanceUnit;
1173 public $saleStartDate;
1174 public $availability;
1175 public $channel;
1176 public $saleEndDate;
1177 public function setInstallmentPrice($installmentPrice) {
1178 $this->installmentPrice = $installmentPrice;
1179 }
1180 public function getInstallmentPrice() {
1181 return $this->installmentPrice;
1182 }
1183 public function setInstallmentMonths($installmentMonths) {
1184 $this->installmentMonths = $installmentMonths;
1185 }
1186 public function getInstallmentMonths() {
1187 return $this->installmentMonths;
1188 }
1189 public function setDistance($distance) {
1190 $this->distance = $distance;
1191 }
1192 public function getDistance() {
1193 return $this->distance;
1194 }
1195 public function setPrice($price) {
1196 $this->price = $price;
1197 }
1198 public function getPrice() {
1199 return $this->price;
1200 }
1201 public function setStoreId($storeId) {
1202 $this->storeId = $storeId;
1203 }
1204 public function getStoreId() {
1205 return $this->storeId;
1206 }
1207 public function setTax($tax) {
1208 $this->tax = $tax;
1209 }
1210 public function getTax() {
1211 return $this->tax;
1212 }
1213 public function setShipping($shipping) {
1214 $this->shipping = $shipping;
1215 }
1216 public function getShipping() {
1217 return $this->shipping;
1218 }
1219 public function setCurrency($currency) {
1220 $this->currency = $currency;
1221 }
1222 public function getCurrency() {
1223 return $this->currency;
1224 }
1225 public function setSalePrice($salePrice) {
1226 $this->salePrice = $salePrice;
1227 }
1228 public function getSalePrice() {
1229 return $this->salePrice;
1230 }
1231 public function setOriginalPrice($originalPrice) {
1232 $this->originalPrice = $originalPrice;
1233 }
1234 public function getOriginalPrice() {
1235 return $this->originalPrice;
1236 }
1237 public function setDistanceUnit($distanceUnit) {
1238 $this->distanceUnit = $distanceUnit;
1239 }
1240 public function getDistanceUnit() {
1241 return $this->distanceUnit;
1242 }
1243 public function setSaleStartDate($saleStartDate) {
1244 $this->saleStartDate = $saleStartDate;
1245 }
1246 public function getSaleStartDate() {
1247 return $this->saleStartDate;
1248 }
1249 public function setAvailability($availability) {
1250 $this->availability = $availability;
1251 }
1252 public function getAvailability() {
1253 return $this->availability;
1254 }
1255 public function setChannel($channel) {
1256 $this->channel = $channel;
1257 }
1258 public function getChannel() {
1259 return $this->channel;
1260 }
1261 public function setSaleEndDate($saleEndDate) {
1262 $this->saleEndDate = $saleEndDate;
1263 }
1264 public function getSaleEndDate() {
1265 return $this->saleEndDate;
1266 }
1267 }
1268
1269 class Google_ShoppingModelProductJsonV1Variants extends Google_Model {
1270 protected $__variantType = 'Google_ShoppingModelProductJsonV1';
1271 protected $__variantDataType = '';
1272 public $variant;
1273 public function setVariant(Google_ShoppingModelProductJsonV1 $variant) {
1274 $this->variant = $variant;
1275 }
1276 public function getVariant() {
1277 return $this->variant;
1278 }
1279 }
1280
1281 class Google_ShoppingModelRecommendationsJsonV1 extends Google_Model {
1282 protected $__recommendationListType = 'Google_ShoppingModelRecommendationsJsonV1RecommendationList';
1283 protected $__recommendationListDataType = 'array';
1284 public $recommendationList;
1285 public $type;
1286 public function setRecommendationList(/* array(Google_ShoppingModelRecommendationsJsonV1RecommendationList) */ $recommendationList) {
1287 $this->assertIsArray($recommendationList, 'Google_ShoppingModelRecommendationsJsonV1RecommendationList', __METHOD__);
1288 $this->recommendationList = $recommendationList;
1289 }
1290 public function getRecommendationList() {
1291 return $this->recommendationList;
1292 }
1293 public function setType($type) {
1294 $this->type = $type;
1295 }
1296 public function getType() {
1297 return $this->type;
1298 }
1299 }
1300
1301 class Google_ShoppingModelRecommendationsJsonV1RecommendationList extends Google_Model {
1302 protected $__productType = 'Google_ShoppingModelProductJsonV1';
1303 protected $__productDataType = '';
1304 public $product;
1305 public function setProduct(Google_ShoppingModelProductJsonV1 $product) {
1306 $this->product = $product;
1307 }
1308 public function getProduct() {
1309 return $this->product;
1310 }
1311 }
1312