GoogleCloudVideointelligenceV1FaceAnnotation.php 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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\CloudVideoIntelligence;
  18. class GoogleCloudVideointelligenceV1FaceAnnotation extends \Google\Collection
  19. {
  20. protected $collection_key = 'segments';
  21. protected $framesType = GoogleCloudVideointelligenceV1FaceFrame::class;
  22. protected $framesDataType = 'array';
  23. protected $segmentsType = GoogleCloudVideointelligenceV1FaceSegment::class;
  24. protected $segmentsDataType = 'array';
  25. /**
  26. * Thumbnail of a representative face view (in JPEG format).
  27. *
  28. * @var string
  29. */
  30. public $thumbnail;
  31. /**
  32. * All video frames where a face was detected.
  33. *
  34. * @param GoogleCloudVideointelligenceV1FaceFrame[] $frames
  35. */
  36. public function setFrames($frames)
  37. {
  38. $this->frames = $frames;
  39. }
  40. /**
  41. * @return GoogleCloudVideointelligenceV1FaceFrame[]
  42. */
  43. public function getFrames()
  44. {
  45. return $this->frames;
  46. }
  47. /**
  48. * All video segments where a face was detected.
  49. *
  50. * @param GoogleCloudVideointelligenceV1FaceSegment[] $segments
  51. */
  52. public function setSegments($segments)
  53. {
  54. $this->segments = $segments;
  55. }
  56. /**
  57. * @return GoogleCloudVideointelligenceV1FaceSegment[]
  58. */
  59. public function getSegments()
  60. {
  61. return $this->segments;
  62. }
  63. /**
  64. * Thumbnail of a representative face view (in JPEG format).
  65. *
  66. * @param string $thumbnail
  67. */
  68. public function setThumbnail($thumbnail)
  69. {
  70. $this->thumbnail = $thumbnail;
  71. }
  72. /**
  73. * @return string
  74. */
  75. public function getThumbnail()
  76. {
  77. return $this->thumbnail;
  78. }
  79. }
  80. // Adding a class alias for backwards compatibility with the previous class name.
  81. class_alias(GoogleCloudVideointelligenceV1FaceAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1FaceAnnotation');