GoogleCloudVisionV1p4beta1FaceAnnotation.php 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  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 GoogleCloudVisionV1p4beta1FaceAnnotation extends \Google\Collection
  19. {
  20. protected $collection_key = 'recognitionResult';
  21. /**
  22. * @var string
  23. */
  24. public $angerLikelihood;
  25. /**
  26. * @var string
  27. */
  28. public $blurredLikelihood;
  29. protected $boundingPolyType = GoogleCloudVisionV1p4beta1BoundingPoly::class;
  30. protected $boundingPolyDataType = '';
  31. /**
  32. * @var float
  33. */
  34. public $detectionConfidence;
  35. protected $fdBoundingPolyType = GoogleCloudVisionV1p4beta1BoundingPoly::class;
  36. protected $fdBoundingPolyDataType = '';
  37. /**
  38. * @var string
  39. */
  40. public $headwearLikelihood;
  41. /**
  42. * @var string
  43. */
  44. public $joyLikelihood;
  45. /**
  46. * @var float
  47. */
  48. public $landmarkingConfidence;
  49. protected $landmarksType = GoogleCloudVisionV1p4beta1FaceAnnotationLandmark::class;
  50. protected $landmarksDataType = 'array';
  51. /**
  52. * @var float
  53. */
  54. public $panAngle;
  55. protected $recognitionResultType = GoogleCloudVisionV1p4beta1FaceRecognitionResult::class;
  56. protected $recognitionResultDataType = 'array';
  57. /**
  58. * @var float
  59. */
  60. public $rollAngle;
  61. /**
  62. * @var string
  63. */
  64. public $sorrowLikelihood;
  65. /**
  66. * @var string
  67. */
  68. public $surpriseLikelihood;
  69. /**
  70. * @var float
  71. */
  72. public $tiltAngle;
  73. /**
  74. * @var string
  75. */
  76. public $underExposedLikelihood;
  77. /**
  78. * @param string
  79. */
  80. public function setAngerLikelihood($angerLikelihood)
  81. {
  82. $this->angerLikelihood = $angerLikelihood;
  83. }
  84. /**
  85. * @return string
  86. */
  87. public function getAngerLikelihood()
  88. {
  89. return $this->angerLikelihood;
  90. }
  91. /**
  92. * @param string
  93. */
  94. public function setBlurredLikelihood($blurredLikelihood)
  95. {
  96. $this->blurredLikelihood = $blurredLikelihood;
  97. }
  98. /**
  99. * @return string
  100. */
  101. public function getBlurredLikelihood()
  102. {
  103. return $this->blurredLikelihood;
  104. }
  105. /**
  106. * @param GoogleCloudVisionV1p4beta1BoundingPoly
  107. */
  108. public function setBoundingPoly(GoogleCloudVisionV1p4beta1BoundingPoly $boundingPoly)
  109. {
  110. $this->boundingPoly = $boundingPoly;
  111. }
  112. /**
  113. * @return GoogleCloudVisionV1p4beta1BoundingPoly
  114. */
  115. public function getBoundingPoly()
  116. {
  117. return $this->boundingPoly;
  118. }
  119. /**
  120. * @param float
  121. */
  122. public function setDetectionConfidence($detectionConfidence)
  123. {
  124. $this->detectionConfidence = $detectionConfidence;
  125. }
  126. /**
  127. * @return float
  128. */
  129. public function getDetectionConfidence()
  130. {
  131. return $this->detectionConfidence;
  132. }
  133. /**
  134. * @param GoogleCloudVisionV1p4beta1BoundingPoly
  135. */
  136. public function setFdBoundingPoly(GoogleCloudVisionV1p4beta1BoundingPoly $fdBoundingPoly)
  137. {
  138. $this->fdBoundingPoly = $fdBoundingPoly;
  139. }
  140. /**
  141. * @return GoogleCloudVisionV1p4beta1BoundingPoly
  142. */
  143. public function getFdBoundingPoly()
  144. {
  145. return $this->fdBoundingPoly;
  146. }
  147. /**
  148. * @param string
  149. */
  150. public function setHeadwearLikelihood($headwearLikelihood)
  151. {
  152. $this->headwearLikelihood = $headwearLikelihood;
  153. }
  154. /**
  155. * @return string
  156. */
  157. public function getHeadwearLikelihood()
  158. {
  159. return $this->headwearLikelihood;
  160. }
  161. /**
  162. * @param string
  163. */
  164. public function setJoyLikelihood($joyLikelihood)
  165. {
  166. $this->joyLikelihood = $joyLikelihood;
  167. }
  168. /**
  169. * @return string
  170. */
  171. public function getJoyLikelihood()
  172. {
  173. return $this->joyLikelihood;
  174. }
  175. /**
  176. * @param float
  177. */
  178. public function setLandmarkingConfidence($landmarkingConfidence)
  179. {
  180. $this->landmarkingConfidence = $landmarkingConfidence;
  181. }
  182. /**
  183. * @return float
  184. */
  185. public function getLandmarkingConfidence()
  186. {
  187. return $this->landmarkingConfidence;
  188. }
  189. /**
  190. * @param GoogleCloudVisionV1p4beta1FaceAnnotationLandmark[]
  191. */
  192. public function setLandmarks($landmarks)
  193. {
  194. $this->landmarks = $landmarks;
  195. }
  196. /**
  197. * @return GoogleCloudVisionV1p4beta1FaceAnnotationLandmark[]
  198. */
  199. public function getLandmarks()
  200. {
  201. return $this->landmarks;
  202. }
  203. /**
  204. * @param float
  205. */
  206. public function setPanAngle($panAngle)
  207. {
  208. $this->panAngle = $panAngle;
  209. }
  210. /**
  211. * @return float
  212. */
  213. public function getPanAngle()
  214. {
  215. return $this->panAngle;
  216. }
  217. /**
  218. * @param GoogleCloudVisionV1p4beta1FaceRecognitionResult[]
  219. */
  220. public function setRecognitionResult($recognitionResult)
  221. {
  222. $this->recognitionResult = $recognitionResult;
  223. }
  224. /**
  225. * @return GoogleCloudVisionV1p4beta1FaceRecognitionResult[]
  226. */
  227. public function getRecognitionResult()
  228. {
  229. return $this->recognitionResult;
  230. }
  231. /**
  232. * @param float
  233. */
  234. public function setRollAngle($rollAngle)
  235. {
  236. $this->rollAngle = $rollAngle;
  237. }
  238. /**
  239. * @return float
  240. */
  241. public function getRollAngle()
  242. {
  243. return $this->rollAngle;
  244. }
  245. /**
  246. * @param string
  247. */
  248. public function setSorrowLikelihood($sorrowLikelihood)
  249. {
  250. $this->sorrowLikelihood = $sorrowLikelihood;
  251. }
  252. /**
  253. * @return string
  254. */
  255. public function getSorrowLikelihood()
  256. {
  257. return $this->sorrowLikelihood;
  258. }
  259. /**
  260. * @param string
  261. */
  262. public function setSurpriseLikelihood($surpriseLikelihood)
  263. {
  264. $this->surpriseLikelihood = $surpriseLikelihood;
  265. }
  266. /**
  267. * @return string
  268. */
  269. public function getSurpriseLikelihood()
  270. {
  271. return $this->surpriseLikelihood;
  272. }
  273. /**
  274. * @param float
  275. */
  276. public function setTiltAngle($tiltAngle)
  277. {
  278. $this->tiltAngle = $tiltAngle;
  279. }
  280. /**
  281. * @return float
  282. */
  283. public function getTiltAngle()
  284. {
  285. return $this->tiltAngle;
  286. }
  287. /**
  288. * @param string
  289. */
  290. public function setUnderExposedLikelihood($underExposedLikelihood)
  291. {
  292. $this->underExposedLikelihood = $underExposedLikelihood;
  293. }
  294. /**
  295. * @return string
  296. */
  297. public function getUnderExposedLikelihood()
  298. {
  299. return $this->underExposedLikelihood;
  300. }
  301. }
  302. // Adding a class alias for backwards compatibility with the previous class name.
  303. class_alias(GoogleCloudVisionV1p4beta1FaceAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p4beta1FaceAnnotation');