GoogleCloudVisionV1p1beta1Block.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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 GoogleCloudVisionV1p1beta1Block extends \Google\Collection
  19. {
  20. protected $collection_key = 'paragraphs';
  21. /**
  22. * @var string
  23. */
  24. public $blockType;
  25. protected $boundingBoxType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
  26. protected $boundingBoxDataType = '';
  27. /**
  28. * @var float
  29. */
  30. public $confidence;
  31. protected $paragraphsType = GoogleCloudVisionV1p1beta1Paragraph::class;
  32. protected $paragraphsDataType = 'array';
  33. protected $propertyType = GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::class;
  34. protected $propertyDataType = '';
  35. /**
  36. * @param string
  37. */
  38. public function setBlockType($blockType)
  39. {
  40. $this->blockType = $blockType;
  41. }
  42. /**
  43. * @return string
  44. */
  45. public function getBlockType()
  46. {
  47. return $this->blockType;
  48. }
  49. /**
  50. * @param GoogleCloudVisionV1p1beta1BoundingPoly
  51. */
  52. public function setBoundingBox(GoogleCloudVisionV1p1beta1BoundingPoly $boundingBox)
  53. {
  54. $this->boundingBox = $boundingBox;
  55. }
  56. /**
  57. * @return GoogleCloudVisionV1p1beta1BoundingPoly
  58. */
  59. public function getBoundingBox()
  60. {
  61. return $this->boundingBox;
  62. }
  63. /**
  64. * @param float
  65. */
  66. public function setConfidence($confidence)
  67. {
  68. $this->confidence = $confidence;
  69. }
  70. /**
  71. * @return float
  72. */
  73. public function getConfidence()
  74. {
  75. return $this->confidence;
  76. }
  77. /**
  78. * @param GoogleCloudVisionV1p1beta1Paragraph[]
  79. */
  80. public function setParagraphs($paragraphs)
  81. {
  82. $this->paragraphs = $paragraphs;
  83. }
  84. /**
  85. * @return GoogleCloudVisionV1p1beta1Paragraph[]
  86. */
  87. public function getParagraphs()
  88. {
  89. return $this->paragraphs;
  90. }
  91. /**
  92. * @param GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
  93. */
  94. public function setProperty(GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property)
  95. {
  96. $this->property = $property;
  97. }
  98. /**
  99. * @return GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
  100. */
  101. public function getProperty()
  102. {
  103. return $this->property;
  104. }
  105. }
  106. // Adding a class alias for backwards compatibility with the previous class name.
  107. class_alias(GoogleCloudVisionV1p1beta1Block::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1Block');