GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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 GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress extends \Google\Model
  19. {
  20. /**
  21. * Unspecified.
  22. */
  23. public const FEATURE_FEATURE_UNSPECIFIED = 'FEATURE_UNSPECIFIED';
  24. /**
  25. * Label detection. Detect objects, such as dog or flower.
  26. */
  27. public const FEATURE_LABEL_DETECTION = 'LABEL_DETECTION';
  28. /**
  29. * Shot change detection.
  30. */
  31. public const FEATURE_SHOT_CHANGE_DETECTION = 'SHOT_CHANGE_DETECTION';
  32. /**
  33. * Explicit content detection.
  34. */
  35. public const FEATURE_EXPLICIT_CONTENT_DETECTION = 'EXPLICIT_CONTENT_DETECTION';
  36. /**
  37. * Human face detection.
  38. */
  39. public const FEATURE_FACE_DETECTION = 'FACE_DETECTION';
  40. /**
  41. * Speech transcription.
  42. */
  43. public const FEATURE_SPEECH_TRANSCRIPTION = 'SPEECH_TRANSCRIPTION';
  44. /**
  45. * OCR text detection and tracking.
  46. */
  47. public const FEATURE_TEXT_DETECTION = 'TEXT_DETECTION';
  48. /**
  49. * Object detection and tracking.
  50. */
  51. public const FEATURE_OBJECT_TRACKING = 'OBJECT_TRACKING';
  52. /**
  53. * Logo detection, tracking, and recognition.
  54. */
  55. public const FEATURE_LOGO_RECOGNITION = 'LOGO_RECOGNITION';
  56. /**
  57. * Person detection.
  58. */
  59. public const FEATURE_PERSON_DETECTION = 'PERSON_DETECTION';
  60. protected $exportStatusType = GoogleCloudVideointelligenceV1p1beta1ExportToOutputUriStatus::class;
  61. protected $exportStatusDataType = '';
  62. /**
  63. * Specifies which feature is being tracked if the request contains more than
  64. * one feature.
  65. *
  66. * @var string
  67. */
  68. public $feature;
  69. /**
  70. * Video file location in [Cloud Storage](https://cloud.google.com/storage/).
  71. *
  72. * @var string
  73. */
  74. public $inputUri;
  75. /**
  76. * Approximate percentage processed thus far. Guaranteed to be 100 when fully
  77. * processed.
  78. *
  79. * @var int
  80. */
  81. public $progressPercent;
  82. protected $segmentType = GoogleCloudVideointelligenceV1p1beta1VideoSegment::class;
  83. protected $segmentDataType = '';
  84. /**
  85. * Time when the request was received.
  86. *
  87. * @var string
  88. */
  89. public $startTime;
  90. /**
  91. * Time of the most recent update.
  92. *
  93. * @var string
  94. */
  95. public $updateTime;
  96. /**
  97. * Status of exporting annotation response to user specified `output_uri`.
  98. * Only set if `output_uri` is set in the request.
  99. *
  100. * @param GoogleCloudVideointelligenceV1p1beta1ExportToOutputUriStatus $exportStatus
  101. */
  102. public function setExportStatus(GoogleCloudVideointelligenceV1p1beta1ExportToOutputUriStatus $exportStatus)
  103. {
  104. $this->exportStatus = $exportStatus;
  105. }
  106. /**
  107. * @return GoogleCloudVideointelligenceV1p1beta1ExportToOutputUriStatus
  108. */
  109. public function getExportStatus()
  110. {
  111. return $this->exportStatus;
  112. }
  113. /**
  114. * Specifies which feature is being tracked if the request contains more than
  115. * one feature.
  116. *
  117. * Accepted values: FEATURE_UNSPECIFIED, LABEL_DETECTION,
  118. * SHOT_CHANGE_DETECTION, EXPLICIT_CONTENT_DETECTION, FACE_DETECTION,
  119. * SPEECH_TRANSCRIPTION, TEXT_DETECTION, OBJECT_TRACKING, LOGO_RECOGNITION,
  120. * PERSON_DETECTION
  121. *
  122. * @param self::FEATURE_* $feature
  123. */
  124. public function setFeature($feature)
  125. {
  126. $this->feature = $feature;
  127. }
  128. /**
  129. * @return self::FEATURE_*
  130. */
  131. public function getFeature()
  132. {
  133. return $this->feature;
  134. }
  135. /**
  136. * Video file location in [Cloud Storage](https://cloud.google.com/storage/).
  137. *
  138. * @param string $inputUri
  139. */
  140. public function setInputUri($inputUri)
  141. {
  142. $this->inputUri = $inputUri;
  143. }
  144. /**
  145. * @return string
  146. */
  147. public function getInputUri()
  148. {
  149. return $this->inputUri;
  150. }
  151. /**
  152. * Approximate percentage processed thus far. Guaranteed to be 100 when fully
  153. * processed.
  154. *
  155. * @param int $progressPercent
  156. */
  157. public function setProgressPercent($progressPercent)
  158. {
  159. $this->progressPercent = $progressPercent;
  160. }
  161. /**
  162. * @return int
  163. */
  164. public function getProgressPercent()
  165. {
  166. return $this->progressPercent;
  167. }
  168. /**
  169. * Specifies which segment is being tracked if the request contains more than
  170. * one segment.
  171. *
  172. * @param GoogleCloudVideointelligenceV1p1beta1VideoSegment $segment
  173. */
  174. public function setSegment(GoogleCloudVideointelligenceV1p1beta1VideoSegment $segment)
  175. {
  176. $this->segment = $segment;
  177. }
  178. /**
  179. * @return GoogleCloudVideointelligenceV1p1beta1VideoSegment
  180. */
  181. public function getSegment()
  182. {
  183. return $this->segment;
  184. }
  185. /**
  186. * Time when the request was received.
  187. *
  188. * @param string $startTime
  189. */
  190. public function setStartTime($startTime)
  191. {
  192. $this->startTime = $startTime;
  193. }
  194. /**
  195. * @return string
  196. */
  197. public function getStartTime()
  198. {
  199. return $this->startTime;
  200. }
  201. /**
  202. * Time of the most recent update.
  203. *
  204. * @param string $updateTime
  205. */
  206. public function setUpdateTime($updateTime)
  207. {
  208. $this->updateTime = $updateTime;
  209. }
  210. /**
  211. * @return string
  212. */
  213. public function getUpdateTime()
  214. {
  215. return $this->updateTime;
  216. }
  217. }
  218. // Adding a class alias for backwards compatibility with the previous class name.
  219. class_alias(GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress');