GoogleCloudVisionV1p3beta1Paragraph.php 2.4 KB

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