GoogleCloudVisionV1p1beta1Symbol.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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 GoogleCloudVisionV1p1beta1Symbol extends \Google\Model
  19. {
  20. protected $boundingBoxType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
  21. protected $boundingBoxDataType = '';
  22. /**
  23. * @var float
  24. */
  25. public $confidence;
  26. protected $propertyType = GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::class;
  27. protected $propertyDataType = '';
  28. /**
  29. * @var string
  30. */
  31. public $text;
  32. /**
  33. * @param GoogleCloudVisionV1p1beta1BoundingPoly
  34. */
  35. public function setBoundingBox(GoogleCloudVisionV1p1beta1BoundingPoly $boundingBox)
  36. {
  37. $this->boundingBox = $boundingBox;
  38. }
  39. /**
  40. * @return GoogleCloudVisionV1p1beta1BoundingPoly
  41. */
  42. public function getBoundingBox()
  43. {
  44. return $this->boundingBox;
  45. }
  46. /**
  47. * @param float
  48. */
  49. public function setConfidence($confidence)
  50. {
  51. $this->confidence = $confidence;
  52. }
  53. /**
  54. * @return float
  55. */
  56. public function getConfidence()
  57. {
  58. return $this->confidence;
  59. }
  60. /**
  61. * @param GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
  62. */
  63. public function setProperty(GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property)
  64. {
  65. $this->property = $property;
  66. }
  67. /**
  68. * @return GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
  69. */
  70. public function getProperty()
  71. {
  72. return $this->property;
  73. }
  74. /**
  75. * @param string
  76. */
  77. public function setText($text)
  78. {
  79. $this->text = $text;
  80. }
  81. /**
  82. * @return string
  83. */
  84. public function getText()
  85. {
  86. return $this->text;
  87. }
  88. }
  89. // Adding a class alias for backwards compatibility with the previous class name.
  90. class_alias(GoogleCloudVisionV1p1beta1Symbol::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1Symbol');