GoogleCloudVisionV1p3beta1Product.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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. namespace Google\Service\Vision;
  18. class GoogleCloudVisionV1p3beta1Product extends \Google\Collection
  19. {
  20. protected $collection_key = 'productLabels';
  21. /**
  22. * @var string
  23. */
  24. public $description;
  25. /**
  26. * @var string
  27. */
  28. public $displayName;
  29. /**
  30. * @var string
  31. */
  32. public $name;
  33. /**
  34. * @var string
  35. */
  36. public $productCategory;
  37. protected $productLabelsType = GoogleCloudVisionV1p3beta1ProductKeyValue::class;
  38. protected $productLabelsDataType = 'array';
  39. /**
  40. * @param string
  41. */
  42. public function setDescription($description)
  43. {
  44. $this->description = $description;
  45. }
  46. /**
  47. * @return string
  48. */
  49. public function getDescription()
  50. {
  51. return $this->description;
  52. }
  53. /**
  54. * @param string
  55. */
  56. public function setDisplayName($displayName)
  57. {
  58. $this->displayName = $displayName;
  59. }
  60. /**
  61. * @return string
  62. */
  63. public function getDisplayName()
  64. {
  65. return $this->displayName;
  66. }
  67. /**
  68. * @param string
  69. */
  70. public function setName($name)
  71. {
  72. $this->name = $name;
  73. }
  74. /**
  75. * @return string
  76. */
  77. public function getName()
  78. {
  79. return $this->name;
  80. }
  81. /**
  82. * @param string
  83. */
  84. public function setProductCategory($productCategory)
  85. {
  86. $this->productCategory = $productCategory;
  87. }
  88. /**
  89. * @return string
  90. */
  91. public function getProductCategory()
  92. {
  93. return $this->productCategory;
  94. }
  95. /**
  96. * @param GoogleCloudVisionV1p3beta1ProductKeyValue[]
  97. */
  98. public function setProductLabels($productLabels)
  99. {
  100. $this->productLabels = $productLabels;
  101. }
  102. /**
  103. * @return GoogleCloudVisionV1p3beta1ProductKeyValue[]
  104. */
  105. public function getProductLabels()
  106. {
  107. return $this->productLabels;
  108. }
  109. }
  110. // Adding a class alias for backwards compatibility with the previous class name.
  111. class_alias(GoogleCloudVisionV1p3beta1Product::class, 'Google_Service_Vision_GoogleCloudVisionV1p3beta1Product');