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