ImageContext.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 ImageContext extends \Google\Collection
  19. {
  20. protected $collection_key = 'languageHints';
  21. protected $cropHintsParamsType = CropHintsParams::class;
  22. protected $cropHintsParamsDataType = '';
  23. /**
  24. * @var string[]
  25. */
  26. public $languageHints;
  27. protected $latLongRectType = LatLongRect::class;
  28. protected $latLongRectDataType = '';
  29. protected $productSearchParamsType = ProductSearchParams::class;
  30. protected $productSearchParamsDataType = '';
  31. protected $textDetectionParamsType = TextDetectionParams::class;
  32. protected $textDetectionParamsDataType = '';
  33. protected $webDetectionParamsType = WebDetectionParams::class;
  34. protected $webDetectionParamsDataType = '';
  35. /**
  36. * @param CropHintsParams
  37. */
  38. public function setCropHintsParams(CropHintsParams $cropHintsParams)
  39. {
  40. $this->cropHintsParams = $cropHintsParams;
  41. }
  42. /**
  43. * @return CropHintsParams
  44. */
  45. public function getCropHintsParams()
  46. {
  47. return $this->cropHintsParams;
  48. }
  49. /**
  50. * @param string[]
  51. */
  52. public function setLanguageHints($languageHints)
  53. {
  54. $this->languageHints = $languageHints;
  55. }
  56. /**
  57. * @return string[]
  58. */
  59. public function getLanguageHints()
  60. {
  61. return $this->languageHints;
  62. }
  63. /**
  64. * @param LatLongRect
  65. */
  66. public function setLatLongRect(LatLongRect $latLongRect)
  67. {
  68. $this->latLongRect = $latLongRect;
  69. }
  70. /**
  71. * @return LatLongRect
  72. */
  73. public function getLatLongRect()
  74. {
  75. return $this->latLongRect;
  76. }
  77. /**
  78. * @param ProductSearchParams
  79. */
  80. public function setProductSearchParams(ProductSearchParams $productSearchParams)
  81. {
  82. $this->productSearchParams = $productSearchParams;
  83. }
  84. /**
  85. * @return ProductSearchParams
  86. */
  87. public function getProductSearchParams()
  88. {
  89. return $this->productSearchParams;
  90. }
  91. /**
  92. * @param TextDetectionParams
  93. */
  94. public function setTextDetectionParams(TextDetectionParams $textDetectionParams)
  95. {
  96. $this->textDetectionParams = $textDetectionParams;
  97. }
  98. /**
  99. * @return TextDetectionParams
  100. */
  101. public function getTextDetectionParams()
  102. {
  103. return $this->textDetectionParams;
  104. }
  105. /**
  106. * @param WebDetectionParams
  107. */
  108. public function setWebDetectionParams(WebDetectionParams $webDetectionParams)
  109. {
  110. $this->webDetectionParams = $webDetectionParams;
  111. }
  112. /**
  113. * @return WebDetectionParams
  114. */
  115. public function getWebDetectionParams()
  116. {
  117. return $this->webDetectionParams;
  118. }
  119. }
  120. // Adding a class alias for backwards compatibility with the previous class name.
  121. class_alias(ImageContext::class, 'Google_Service_Vision_ImageContext');