1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\CloudRetail;
|
---|
19 |
|
---|
20 | class GoogleCloudRetailV2Product extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'variants';
|
---|
23 | protected $attributesType = GoogleCloudRetailV2CustomAttribute::class;
|
---|
24 | protected $attributesDataType = 'map';
|
---|
25 | protected $audienceType = GoogleCloudRetailV2Audience::class;
|
---|
26 | protected $audienceDataType = '';
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $availability;
|
---|
31 | /**
|
---|
32 | * @var int
|
---|
33 | */
|
---|
34 | public $availableQuantity;
|
---|
35 | /**
|
---|
36 | * @var string
|
---|
37 | */
|
---|
38 | public $availableTime;
|
---|
39 | /**
|
---|
40 | * @var string[]
|
---|
41 | */
|
---|
42 | public $brands;
|
---|
43 | /**
|
---|
44 | * @var string[]
|
---|
45 | */
|
---|
46 | public $categories;
|
---|
47 | /**
|
---|
48 | * @var string[]
|
---|
49 | */
|
---|
50 | public $collectionMemberIds;
|
---|
51 | protected $colorInfoType = GoogleCloudRetailV2ColorInfo::class;
|
---|
52 | protected $colorInfoDataType = '';
|
---|
53 | /**
|
---|
54 | * @var string[]
|
---|
55 | */
|
---|
56 | public $conditions;
|
---|
57 | /**
|
---|
58 | * @var string
|
---|
59 | */
|
---|
60 | public $description;
|
---|
61 | /**
|
---|
62 | * @var string
|
---|
63 | */
|
---|
64 | public $expireTime;
|
---|
65 | protected $fulfillmentInfoType = GoogleCloudRetailV2FulfillmentInfo::class;
|
---|
66 | protected $fulfillmentInfoDataType = 'array';
|
---|
67 | /**
|
---|
68 | * @var string
|
---|
69 | */
|
---|
70 | public $gtin;
|
---|
71 | /**
|
---|
72 | * @var string
|
---|
73 | */
|
---|
74 | public $id;
|
---|
75 | protected $imagesType = GoogleCloudRetailV2Image::class;
|
---|
76 | protected $imagesDataType = 'array';
|
---|
77 | /**
|
---|
78 | * @var string
|
---|
79 | */
|
---|
80 | public $languageCode;
|
---|
81 | protected $localInventoriesType = GoogleCloudRetailV2LocalInventory::class;
|
---|
82 | protected $localInventoriesDataType = 'array';
|
---|
83 | /**
|
---|
84 | * @var string[]
|
---|
85 | */
|
---|
86 | public $materials;
|
---|
87 | /**
|
---|
88 | * @var string
|
---|
89 | */
|
---|
90 | public $name;
|
---|
91 | /**
|
---|
92 | * @var string[]
|
---|
93 | */
|
---|
94 | public $patterns;
|
---|
95 | protected $priceInfoType = GoogleCloudRetailV2PriceInfo::class;
|
---|
96 | protected $priceInfoDataType = '';
|
---|
97 | /**
|
---|
98 | * @var string
|
---|
99 | */
|
---|
100 | public $primaryProductId;
|
---|
101 | protected $promotionsType = GoogleCloudRetailV2Promotion::class;
|
---|
102 | protected $promotionsDataType = 'array';
|
---|
103 | /**
|
---|
104 | * @var string
|
---|
105 | */
|
---|
106 | public $publishTime;
|
---|
107 | protected $ratingType = GoogleCloudRetailV2Rating::class;
|
---|
108 | protected $ratingDataType = '';
|
---|
109 | /**
|
---|
110 | * @var string
|
---|
111 | */
|
---|
112 | public $retrievableFields;
|
---|
113 | /**
|
---|
114 | * @var string[]
|
---|
115 | */
|
---|
116 | public $sizes;
|
---|
117 | /**
|
---|
118 | * @var string[]
|
---|
119 | */
|
---|
120 | public $tags;
|
---|
121 | /**
|
---|
122 | * @var string
|
---|
123 | */
|
---|
124 | public $title;
|
---|
125 | /**
|
---|
126 | * @var string
|
---|
127 | */
|
---|
128 | public $ttl;
|
---|
129 | /**
|
---|
130 | * @var string
|
---|
131 | */
|
---|
132 | public $type;
|
---|
133 | /**
|
---|
134 | * @var string
|
---|
135 | */
|
---|
136 | public $uri;
|
---|
137 | protected $variantsType = GoogleCloudRetailV2Product::class;
|
---|
138 | protected $variantsDataType = 'array';
|
---|
139 |
|
---|
140 | /**
|
---|
141 | * @param GoogleCloudRetailV2CustomAttribute[]
|
---|
142 | */
|
---|
143 | public function setAttributes($attributes)
|
---|
144 | {
|
---|
145 | $this->attributes = $attributes;
|
---|
146 | }
|
---|
147 | /**
|
---|
148 | * @return GoogleCloudRetailV2CustomAttribute[]
|
---|
149 | */
|
---|
150 | public function getAttributes()
|
---|
151 | {
|
---|
152 | return $this->attributes;
|
---|
153 | }
|
---|
154 | /**
|
---|
155 | * @param GoogleCloudRetailV2Audience
|
---|
156 | */
|
---|
157 | public function setAudience(GoogleCloudRetailV2Audience $audience)
|
---|
158 | {
|
---|
159 | $this->audience = $audience;
|
---|
160 | }
|
---|
161 | /**
|
---|
162 | * @return GoogleCloudRetailV2Audience
|
---|
163 | */
|
---|
164 | public function getAudience()
|
---|
165 | {
|
---|
166 | return $this->audience;
|
---|
167 | }
|
---|
168 | /**
|
---|
169 | * @param string
|
---|
170 | */
|
---|
171 | public function setAvailability($availability)
|
---|
172 | {
|
---|
173 | $this->availability = $availability;
|
---|
174 | }
|
---|
175 | /**
|
---|
176 | * @return string
|
---|
177 | */
|
---|
178 | public function getAvailability()
|
---|
179 | {
|
---|
180 | return $this->availability;
|
---|
181 | }
|
---|
182 | /**
|
---|
183 | * @param int
|
---|
184 | */
|
---|
185 | public function setAvailableQuantity($availableQuantity)
|
---|
186 | {
|
---|
187 | $this->availableQuantity = $availableQuantity;
|
---|
188 | }
|
---|
189 | /**
|
---|
190 | * @return int
|
---|
191 | */
|
---|
192 | public function getAvailableQuantity()
|
---|
193 | {
|
---|
194 | return $this->availableQuantity;
|
---|
195 | }
|
---|
196 | /**
|
---|
197 | * @param string
|
---|
198 | */
|
---|
199 | public function setAvailableTime($availableTime)
|
---|
200 | {
|
---|
201 | $this->availableTime = $availableTime;
|
---|
202 | }
|
---|
203 | /**
|
---|
204 | * @return string
|
---|
205 | */
|
---|
206 | public function getAvailableTime()
|
---|
207 | {
|
---|
208 | return $this->availableTime;
|
---|
209 | }
|
---|
210 | /**
|
---|
211 | * @param string[]
|
---|
212 | */
|
---|
213 | public function setBrands($brands)
|
---|
214 | {
|
---|
215 | $this->brands = $brands;
|
---|
216 | }
|
---|
217 | /**
|
---|
218 | * @return string[]
|
---|
219 | */
|
---|
220 | public function getBrands()
|
---|
221 | {
|
---|
222 | return $this->brands;
|
---|
223 | }
|
---|
224 | /**
|
---|
225 | * @param string[]
|
---|
226 | */
|
---|
227 | public function setCategories($categories)
|
---|
228 | {
|
---|
229 | $this->categories = $categories;
|
---|
230 | }
|
---|
231 | /**
|
---|
232 | * @return string[]
|
---|
233 | */
|
---|
234 | public function getCategories()
|
---|
235 | {
|
---|
236 | return $this->categories;
|
---|
237 | }
|
---|
238 | /**
|
---|
239 | * @param string[]
|
---|
240 | */
|
---|
241 | public function setCollectionMemberIds($collectionMemberIds)
|
---|
242 | {
|
---|
243 | $this->collectionMemberIds = $collectionMemberIds;
|
---|
244 | }
|
---|
245 | /**
|
---|
246 | * @return string[]
|
---|
247 | */
|
---|
248 | public function getCollectionMemberIds()
|
---|
249 | {
|
---|
250 | return $this->collectionMemberIds;
|
---|
251 | }
|
---|
252 | /**
|
---|
253 | * @param GoogleCloudRetailV2ColorInfo
|
---|
254 | */
|
---|
255 | public function setColorInfo(GoogleCloudRetailV2ColorInfo $colorInfo)
|
---|
256 | {
|
---|
257 | $this->colorInfo = $colorInfo;
|
---|
258 | }
|
---|
259 | /**
|
---|
260 | * @return GoogleCloudRetailV2ColorInfo
|
---|
261 | */
|
---|
262 | public function getColorInfo()
|
---|
263 | {
|
---|
264 | return $this->colorInfo;
|
---|
265 | }
|
---|
266 | /**
|
---|
267 | * @param string[]
|
---|
268 | */
|
---|
269 | public function setConditions($conditions)
|
---|
270 | {
|
---|
271 | $this->conditions = $conditions;
|
---|
272 | }
|
---|
273 | /**
|
---|
274 | * @return string[]
|
---|
275 | */
|
---|
276 | public function getConditions()
|
---|
277 | {
|
---|
278 | return $this->conditions;
|
---|
279 | }
|
---|
280 | /**
|
---|
281 | * @param string
|
---|
282 | */
|
---|
283 | public function setDescription($description)
|
---|
284 | {
|
---|
285 | $this->description = $description;
|
---|
286 | }
|
---|
287 | /**
|
---|
288 | * @return string
|
---|
289 | */
|
---|
290 | public function getDescription()
|
---|
291 | {
|
---|
292 | return $this->description;
|
---|
293 | }
|
---|
294 | /**
|
---|
295 | * @param string
|
---|
296 | */
|
---|
297 | public function setExpireTime($expireTime)
|
---|
298 | {
|
---|
299 | $this->expireTime = $expireTime;
|
---|
300 | }
|
---|
301 | /**
|
---|
302 | * @return string
|
---|
303 | */
|
---|
304 | public function getExpireTime()
|
---|
305 | {
|
---|
306 | return $this->expireTime;
|
---|
307 | }
|
---|
308 | /**
|
---|
309 | * @param GoogleCloudRetailV2FulfillmentInfo[]
|
---|
310 | */
|
---|
311 | public function setFulfillmentInfo($fulfillmentInfo)
|
---|
312 | {
|
---|
313 | $this->fulfillmentInfo = $fulfillmentInfo;
|
---|
314 | }
|
---|
315 | /**
|
---|
316 | * @return GoogleCloudRetailV2FulfillmentInfo[]
|
---|
317 | */
|
---|
318 | public function getFulfillmentInfo()
|
---|
319 | {
|
---|
320 | return $this->fulfillmentInfo;
|
---|
321 | }
|
---|
322 | /**
|
---|
323 | * @param string
|
---|
324 | */
|
---|
325 | public function setGtin($gtin)
|
---|
326 | {
|
---|
327 | $this->gtin = $gtin;
|
---|
328 | }
|
---|
329 | /**
|
---|
330 | * @return string
|
---|
331 | */
|
---|
332 | public function getGtin()
|
---|
333 | {
|
---|
334 | return $this->gtin;
|
---|
335 | }
|
---|
336 | /**
|
---|
337 | * @param string
|
---|
338 | */
|
---|
339 | public function setId($id)
|
---|
340 | {
|
---|
341 | $this->id = $id;
|
---|
342 | }
|
---|
343 | /**
|
---|
344 | * @return string
|
---|
345 | */
|
---|
346 | public function getId()
|
---|
347 | {
|
---|
348 | return $this->id;
|
---|
349 | }
|
---|
350 | /**
|
---|
351 | * @param GoogleCloudRetailV2Image[]
|
---|
352 | */
|
---|
353 | public function setImages($images)
|
---|
354 | {
|
---|
355 | $this->images = $images;
|
---|
356 | }
|
---|
357 | /**
|
---|
358 | * @return GoogleCloudRetailV2Image[]
|
---|
359 | */
|
---|
360 | public function getImages()
|
---|
361 | {
|
---|
362 | return $this->images;
|
---|
363 | }
|
---|
364 | /**
|
---|
365 | * @param string
|
---|
366 | */
|
---|
367 | public function setLanguageCode($languageCode)
|
---|
368 | {
|
---|
369 | $this->languageCode = $languageCode;
|
---|
370 | }
|
---|
371 | /**
|
---|
372 | * @return string
|
---|
373 | */
|
---|
374 | public function getLanguageCode()
|
---|
375 | {
|
---|
376 | return $this->languageCode;
|
---|
377 | }
|
---|
378 | /**
|
---|
379 | * @param GoogleCloudRetailV2LocalInventory[]
|
---|
380 | */
|
---|
381 | public function setLocalInventories($localInventories)
|
---|
382 | {
|
---|
383 | $this->localInventories = $localInventories;
|
---|
384 | }
|
---|
385 | /**
|
---|
386 | * @return GoogleCloudRetailV2LocalInventory[]
|
---|
387 | */
|
---|
388 | public function getLocalInventories()
|
---|
389 | {
|
---|
390 | return $this->localInventories;
|
---|
391 | }
|
---|
392 | /**
|
---|
393 | * @param string[]
|
---|
394 | */
|
---|
395 | public function setMaterials($materials)
|
---|
396 | {
|
---|
397 | $this->materials = $materials;
|
---|
398 | }
|
---|
399 | /**
|
---|
400 | * @return string[]
|
---|
401 | */
|
---|
402 | public function getMaterials()
|
---|
403 | {
|
---|
404 | return $this->materials;
|
---|
405 | }
|
---|
406 | /**
|
---|
407 | * @param string
|
---|
408 | */
|
---|
409 | public function setName($name)
|
---|
410 | {
|
---|
411 | $this->name = $name;
|
---|
412 | }
|
---|
413 | /**
|
---|
414 | * @return string
|
---|
415 | */
|
---|
416 | public function getName()
|
---|
417 | {
|
---|
418 | return $this->name;
|
---|
419 | }
|
---|
420 | /**
|
---|
421 | * @param string[]
|
---|
422 | */
|
---|
423 | public function setPatterns($patterns)
|
---|
424 | {
|
---|
425 | $this->patterns = $patterns;
|
---|
426 | }
|
---|
427 | /**
|
---|
428 | * @return string[]
|
---|
429 | */
|
---|
430 | public function getPatterns()
|
---|
431 | {
|
---|
432 | return $this->patterns;
|
---|
433 | }
|
---|
434 | /**
|
---|
435 | * @param GoogleCloudRetailV2PriceInfo
|
---|
436 | */
|
---|
437 | public function setPriceInfo(GoogleCloudRetailV2PriceInfo $priceInfo)
|
---|
438 | {
|
---|
439 | $this->priceInfo = $priceInfo;
|
---|
440 | }
|
---|
441 | /**
|
---|
442 | * @return GoogleCloudRetailV2PriceInfo
|
---|
443 | */
|
---|
444 | public function getPriceInfo()
|
---|
445 | {
|
---|
446 | return $this->priceInfo;
|
---|
447 | }
|
---|
448 | /**
|
---|
449 | * @param string
|
---|
450 | */
|
---|
451 | public function setPrimaryProductId($primaryProductId)
|
---|
452 | {
|
---|
453 | $this->primaryProductId = $primaryProductId;
|
---|
454 | }
|
---|
455 | /**
|
---|
456 | * @return string
|
---|
457 | */
|
---|
458 | public function getPrimaryProductId()
|
---|
459 | {
|
---|
460 | return $this->primaryProductId;
|
---|
461 | }
|
---|
462 | /**
|
---|
463 | * @param GoogleCloudRetailV2Promotion[]
|
---|
464 | */
|
---|
465 | public function setPromotions($promotions)
|
---|
466 | {
|
---|
467 | $this->promotions = $promotions;
|
---|
468 | }
|
---|
469 | /**
|
---|
470 | * @return GoogleCloudRetailV2Promotion[]
|
---|
471 | */
|
---|
472 | public function getPromotions()
|
---|
473 | {
|
---|
474 | return $this->promotions;
|
---|
475 | }
|
---|
476 | /**
|
---|
477 | * @param string
|
---|
478 | */
|
---|
479 | public function setPublishTime($publishTime)
|
---|
480 | {
|
---|
481 | $this->publishTime = $publishTime;
|
---|
482 | }
|
---|
483 | /**
|
---|
484 | * @return string
|
---|
485 | */
|
---|
486 | public function getPublishTime()
|
---|
487 | {
|
---|
488 | return $this->publishTime;
|
---|
489 | }
|
---|
490 | /**
|
---|
491 | * @param GoogleCloudRetailV2Rating
|
---|
492 | */
|
---|
493 | public function setRating(GoogleCloudRetailV2Rating $rating)
|
---|
494 | {
|
---|
495 | $this->rating = $rating;
|
---|
496 | }
|
---|
497 | /**
|
---|
498 | * @return GoogleCloudRetailV2Rating
|
---|
499 | */
|
---|
500 | public function getRating()
|
---|
501 | {
|
---|
502 | return $this->rating;
|
---|
503 | }
|
---|
504 | /**
|
---|
505 | * @param string
|
---|
506 | */
|
---|
507 | public function setRetrievableFields($retrievableFields)
|
---|
508 | {
|
---|
509 | $this->retrievableFields = $retrievableFields;
|
---|
510 | }
|
---|
511 | /**
|
---|
512 | * @return string
|
---|
513 | */
|
---|
514 | public function getRetrievableFields()
|
---|
515 | {
|
---|
516 | return $this->retrievableFields;
|
---|
517 | }
|
---|
518 | /**
|
---|
519 | * @param string[]
|
---|
520 | */
|
---|
521 | public function setSizes($sizes)
|
---|
522 | {
|
---|
523 | $this->sizes = $sizes;
|
---|
524 | }
|
---|
525 | /**
|
---|
526 | * @return string[]
|
---|
527 | */
|
---|
528 | public function getSizes()
|
---|
529 | {
|
---|
530 | return $this->sizes;
|
---|
531 | }
|
---|
532 | /**
|
---|
533 | * @param string[]
|
---|
534 | */
|
---|
535 | public function setTags($tags)
|
---|
536 | {
|
---|
537 | $this->tags = $tags;
|
---|
538 | }
|
---|
539 | /**
|
---|
540 | * @return string[]
|
---|
541 | */
|
---|
542 | public function getTags()
|
---|
543 | {
|
---|
544 | return $this->tags;
|
---|
545 | }
|
---|
546 | /**
|
---|
547 | * @param string
|
---|
548 | */
|
---|
549 | public function setTitle($title)
|
---|
550 | {
|
---|
551 | $this->title = $title;
|
---|
552 | }
|
---|
553 | /**
|
---|
554 | * @return string
|
---|
555 | */
|
---|
556 | public function getTitle()
|
---|
557 | {
|
---|
558 | return $this->title;
|
---|
559 | }
|
---|
560 | /**
|
---|
561 | * @param string
|
---|
562 | */
|
---|
563 | public function setTtl($ttl)
|
---|
564 | {
|
---|
565 | $this->ttl = $ttl;
|
---|
566 | }
|
---|
567 | /**
|
---|
568 | * @return string
|
---|
569 | */
|
---|
570 | public function getTtl()
|
---|
571 | {
|
---|
572 | return $this->ttl;
|
---|
573 | }
|
---|
574 | /**
|
---|
575 | * @param string
|
---|
576 | */
|
---|
577 | public function setType($type)
|
---|
578 | {
|
---|
579 | $this->type = $type;
|
---|
580 | }
|
---|
581 | /**
|
---|
582 | * @return string
|
---|
583 | */
|
---|
584 | public function getType()
|
---|
585 | {
|
---|
586 | return $this->type;
|
---|
587 | }
|
---|
588 | /**
|
---|
589 | * @param string
|
---|
590 | */
|
---|
591 | public function setUri($uri)
|
---|
592 | {
|
---|
593 | $this->uri = $uri;
|
---|
594 | }
|
---|
595 | /**
|
---|
596 | * @return string
|
---|
597 | */
|
---|
598 | public function getUri()
|
---|
599 | {
|
---|
600 | return $this->uri;
|
---|
601 | }
|
---|
602 | /**
|
---|
603 | * @param GoogleCloudRetailV2Product[]
|
---|
604 | */
|
---|
605 | public function setVariants($variants)
|
---|
606 | {
|
---|
607 | $this->variants = $variants;
|
---|
608 | }
|
---|
609 | /**
|
---|
610 | * @return GoogleCloudRetailV2Product[]
|
---|
611 | */
|
---|
612 | public function getVariants()
|
---|
613 | {
|
---|
614 | return $this->variants;
|
---|
615 | }
|
---|
616 | }
|
---|
617 |
|
---|
618 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
619 | class_alias(GoogleCloudRetailV2Product::class, 'Google_Service_CloudRetail_GoogleCloudRetailV2Product');
|
---|