Nenhuma descrição

Block.php 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. class Google_Service_Vision_Block extends Google_Collection
  18. {
  19. protected $collection_key = 'paragraphs';
  20. public $blockType;
  21. protected $boundingBoxType = 'Google_Service_Vision_BoundingPoly';
  22. protected $boundingBoxDataType = '';
  23. public $confidence;
  24. protected $paragraphsType = 'Google_Service_Vision_Paragraph';
  25. protected $paragraphsDataType = 'array';
  26. protected $propertyType = 'Google_Service_Vision_TextProperty';
  27. protected $propertyDataType = '';
  28. public function setBlockType($blockType)
  29. {
  30. $this->blockType = $blockType;
  31. }
  32. public function getBlockType()
  33. {
  34. return $this->blockType;
  35. }
  36. /**
  37. * @param Google_Service_Vision_BoundingPoly
  38. */
  39. public function setBoundingBox(Google_Service_Vision_BoundingPoly $boundingBox)
  40. {
  41. $this->boundingBox = $boundingBox;
  42. }
  43. /**
  44. * @return Google_Service_Vision_BoundingPoly
  45. */
  46. public function getBoundingBox()
  47. {
  48. return $this->boundingBox;
  49. }
  50. public function setConfidence($confidence)
  51. {
  52. $this->confidence = $confidence;
  53. }
  54. public function getConfidence()
  55. {
  56. return $this->confidence;
  57. }
  58. /**
  59. * @param Google_Service_Vision_Paragraph
  60. */
  61. public function setParagraphs($paragraphs)
  62. {
  63. $this->paragraphs = $paragraphs;
  64. }
  65. /**
  66. * @return Google_Service_Vision_Paragraph
  67. */
  68. public function getParagraphs()
  69. {
  70. return $this->paragraphs;
  71. }
  72. /**
  73. * @param Google_Service_Vision_TextProperty
  74. */
  75. public function setProperty(Google_Service_Vision_TextProperty $property)
  76. {
  77. $this->property = $property;
  78. }
  79. /**
  80. * @return Google_Service_Vision_TextProperty
  81. */
  82. public function getProperty()
  83. {
  84. return $this->property;
  85. }
  86. }