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
18namespace Google\Service\CloudVideoIntelligence;
19
20class GoogleCloudVideointelligenceV1VideoAnnotationResults extends \Google\Collection
21{
22  protected $collection_key = 'textAnnotations';
23  protected $errorType = GoogleRpcStatus::class;
24  protected $errorDataType = '';
25  protected $explicitAnnotationType = GoogleCloudVideointelligenceV1ExplicitContentAnnotation::class;
26  protected $explicitAnnotationDataType = '';
27  protected $faceAnnotationsType = GoogleCloudVideointelligenceV1FaceAnnotation::class;
28  protected $faceAnnotationsDataType = 'array';
29  protected $faceDetectionAnnotationsType = GoogleCloudVideointelligenceV1FaceDetectionAnnotation::class;
30  protected $faceDetectionAnnotationsDataType = 'array';
31  protected $frameLabelAnnotationsType = GoogleCloudVideointelligenceV1LabelAnnotation::class;
32  protected $frameLabelAnnotationsDataType = 'array';
33  /**
34   * @var string
35   */
36  public $inputUri;
37  protected $logoRecognitionAnnotationsType = GoogleCloudVideointelligenceV1LogoRecognitionAnnotation::class;
38  protected $logoRecognitionAnnotationsDataType = 'array';
39  protected $objectAnnotationsType = GoogleCloudVideointelligenceV1ObjectTrackingAnnotation::class;
40  protected $objectAnnotationsDataType = 'array';
41  protected $personDetectionAnnotationsType = GoogleCloudVideointelligenceV1PersonDetectionAnnotation::class;
42  protected $personDetectionAnnotationsDataType = 'array';
43  protected $segmentType = GoogleCloudVideointelligenceV1VideoSegment::class;
44  protected $segmentDataType = '';
45  protected $segmentLabelAnnotationsType = GoogleCloudVideointelligenceV1LabelAnnotation::class;
46  protected $segmentLabelAnnotationsDataType = 'array';
47  protected $segmentPresenceLabelAnnotationsType = GoogleCloudVideointelligenceV1LabelAnnotation::class;
48  protected $segmentPresenceLabelAnnotationsDataType = 'array';
49  protected $shotAnnotationsType = GoogleCloudVideointelligenceV1VideoSegment::class;
50  protected $shotAnnotationsDataType = 'array';
51  protected $shotLabelAnnotationsType = GoogleCloudVideointelligenceV1LabelAnnotation::class;
52  protected $shotLabelAnnotationsDataType = 'array';
53  protected $shotPresenceLabelAnnotationsType = GoogleCloudVideointelligenceV1LabelAnnotation::class;
54  protected $shotPresenceLabelAnnotationsDataType = 'array';
55  protected $speechTranscriptionsType = GoogleCloudVideointelligenceV1SpeechTranscription::class;
56  protected $speechTranscriptionsDataType = 'array';
57  protected $textAnnotationsType = GoogleCloudVideointelligenceV1TextAnnotation::class;
58  protected $textAnnotationsDataType = 'array';
59
60  /**
61   * @param GoogleRpcStatus
62   */
63  public function setError(GoogleRpcStatus $error)
64  {
65    $this->error = $error;
66  }
67  /**
68   * @return GoogleRpcStatus
69   */
70  public function getError()
71  {
72    return $this->error;
73  }
74  /**
75   * @param GoogleCloudVideointelligenceV1ExplicitContentAnnotation
76   */
77  public function setExplicitAnnotation(GoogleCloudVideointelligenceV1ExplicitContentAnnotation $explicitAnnotation)
78  {
79    $this->explicitAnnotation = $explicitAnnotation;
80  }
81  /**
82   * @return GoogleCloudVideointelligenceV1ExplicitContentAnnotation
83   */
84  public function getExplicitAnnotation()
85  {
86    return $this->explicitAnnotation;
87  }
88  /**
89   * @param GoogleCloudVideointelligenceV1FaceAnnotation[]
90   */
91  public function setFaceAnnotations($faceAnnotations)
92  {
93    $this->faceAnnotations = $faceAnnotations;
94  }
95  /**
96   * @return GoogleCloudVideointelligenceV1FaceAnnotation[]
97   */
98  public function getFaceAnnotations()
99  {
100    return $this->faceAnnotations;
101  }
102  /**
103   * @param GoogleCloudVideointelligenceV1FaceDetectionAnnotation[]
104   */
105  public function setFaceDetectionAnnotations($faceDetectionAnnotations)
106  {
107    $this->faceDetectionAnnotations = $faceDetectionAnnotations;
108  }
109  /**
110   * @return GoogleCloudVideointelligenceV1FaceDetectionAnnotation[]
111   */
112  public function getFaceDetectionAnnotations()
113  {
114    return $this->faceDetectionAnnotations;
115  }
116  /**
117   * @param GoogleCloudVideointelligenceV1LabelAnnotation[]
118   */
119  public function setFrameLabelAnnotations($frameLabelAnnotations)
120  {
121    $this->frameLabelAnnotations = $frameLabelAnnotations;
122  }
123  /**
124   * @return GoogleCloudVideointelligenceV1LabelAnnotation[]
125   */
126  public function getFrameLabelAnnotations()
127  {
128    return $this->frameLabelAnnotations;
129  }
130  /**
131   * @param string
132   */
133  public function setInputUri($inputUri)
134  {
135    $this->inputUri = $inputUri;
136  }
137  /**
138   * @return string
139   */
140  public function getInputUri()
141  {
142    return $this->inputUri;
143  }
144  /**
145   * @param GoogleCloudVideointelligenceV1LogoRecognitionAnnotation[]
146   */
147  public function setLogoRecognitionAnnotations($logoRecognitionAnnotations)
148  {
149    $this->logoRecognitionAnnotations = $logoRecognitionAnnotations;
150  }
151  /**
152   * @return GoogleCloudVideointelligenceV1LogoRecognitionAnnotation[]
153   */
154  public function getLogoRecognitionAnnotations()
155  {
156    return $this->logoRecognitionAnnotations;
157  }
158  /**
159   * @param GoogleCloudVideointelligenceV1ObjectTrackingAnnotation[]
160   */
161  public function setObjectAnnotations($objectAnnotations)
162  {
163    $this->objectAnnotations = $objectAnnotations;
164  }
165  /**
166   * @return GoogleCloudVideointelligenceV1ObjectTrackingAnnotation[]
167   */
168  public function getObjectAnnotations()
169  {
170    return $this->objectAnnotations;
171  }
172  /**
173   * @param GoogleCloudVideointelligenceV1PersonDetectionAnnotation[]
174   */
175  public function setPersonDetectionAnnotations($personDetectionAnnotations)
176  {
177    $this->personDetectionAnnotations = $personDetectionAnnotations;
178  }
179  /**
180   * @return GoogleCloudVideointelligenceV1PersonDetectionAnnotation[]
181   */
182  public function getPersonDetectionAnnotations()
183  {
184    return $this->personDetectionAnnotations;
185  }
186  /**
187   * @param GoogleCloudVideointelligenceV1VideoSegment
188   */
189  public function setSegment(GoogleCloudVideointelligenceV1VideoSegment $segment)
190  {
191    $this->segment = $segment;
192  }
193  /**
194   * @return GoogleCloudVideointelligenceV1VideoSegment
195   */
196  public function getSegment()
197  {
198    return $this->segment;
199  }
200  /**
201   * @param GoogleCloudVideointelligenceV1LabelAnnotation[]
202   */
203  public function setSegmentLabelAnnotations($segmentLabelAnnotations)
204  {
205    $this->segmentLabelAnnotations = $segmentLabelAnnotations;
206  }
207  /**
208   * @return GoogleCloudVideointelligenceV1LabelAnnotation[]
209   */
210  public function getSegmentLabelAnnotations()
211  {
212    return $this->segmentLabelAnnotations;
213  }
214  /**
215   * @param GoogleCloudVideointelligenceV1LabelAnnotation[]
216   */
217  public function setSegmentPresenceLabelAnnotations($segmentPresenceLabelAnnotations)
218  {
219    $this->segmentPresenceLabelAnnotations = $segmentPresenceLabelAnnotations;
220  }
221  /**
222   * @return GoogleCloudVideointelligenceV1LabelAnnotation[]
223   */
224  public function getSegmentPresenceLabelAnnotations()
225  {
226    return $this->segmentPresenceLabelAnnotations;
227  }
228  /**
229   * @param GoogleCloudVideointelligenceV1VideoSegment[]
230   */
231  public function setShotAnnotations($shotAnnotations)
232  {
233    $this->shotAnnotations = $shotAnnotations;
234  }
235  /**
236   * @return GoogleCloudVideointelligenceV1VideoSegment[]
237   */
238  public function getShotAnnotations()
239  {
240    return $this->shotAnnotations;
241  }
242  /**
243   * @param GoogleCloudVideointelligenceV1LabelAnnotation[]
244   */
245  public function setShotLabelAnnotations($shotLabelAnnotations)
246  {
247    $this->shotLabelAnnotations = $shotLabelAnnotations;
248  }
249  /**
250   * @return GoogleCloudVideointelligenceV1LabelAnnotation[]
251   */
252  public function getShotLabelAnnotations()
253  {
254    return $this->shotLabelAnnotations;
255  }
256  /**
257   * @param GoogleCloudVideointelligenceV1LabelAnnotation[]
258   */
259  public function setShotPresenceLabelAnnotations($shotPresenceLabelAnnotations)
260  {
261    $this->shotPresenceLabelAnnotations = $shotPresenceLabelAnnotations;
262  }
263  /**
264   * @return GoogleCloudVideointelligenceV1LabelAnnotation[]
265   */
266  public function getShotPresenceLabelAnnotations()
267  {
268    return $this->shotPresenceLabelAnnotations;
269  }
270  /**
271   * @param GoogleCloudVideointelligenceV1SpeechTranscription[]
272   */
273  public function setSpeechTranscriptions($speechTranscriptions)
274  {
275    $this->speechTranscriptions = $speechTranscriptions;
276  }
277  /**
278   * @return GoogleCloudVideointelligenceV1SpeechTranscription[]
279   */
280  public function getSpeechTranscriptions()
281  {
282    return $this->speechTranscriptions;
283  }
284  /**
285   * @param GoogleCloudVideointelligenceV1TextAnnotation[]
286   */
287  public function setTextAnnotations($textAnnotations)
288  {
289    $this->textAnnotations = $textAnnotations;
290  }
291  /**
292   * @return GoogleCloudVideointelligenceV1TextAnnotation[]
293   */
294  public function getTextAnnotations()
295  {
296    return $this->textAnnotations;
297  }
298}
299
300// Adding a class alias for backwards compatibility with the previous class name.
301class_alias(GoogleCloudVideointelligenceV1VideoAnnotationResults::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoAnnotationResults');
302