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 
18 namespace Google\Service\CloudVideoIntelligence;
19 
20 class GoogleCloudVideointelligenceV1beta2LabelAnnotation extends \Google\Collection
21 {
22   protected $collection_key = 'segments';
23   protected $categoryEntitiesType = GoogleCloudVideointelligenceV1beta2Entity::class;
24   protected $categoryEntitiesDataType = 'array';
25   protected $entityType = GoogleCloudVideointelligenceV1beta2Entity::class;
26   protected $entityDataType = '';
27   protected $framesType = GoogleCloudVideointelligenceV1beta2LabelFrame::class;
28   protected $framesDataType = 'array';
29   protected $segmentsType = GoogleCloudVideointelligenceV1beta2LabelSegment::class;
30   protected $segmentsDataType = 'array';
31   /**
32    * @var string
33    */
34   public $version;
35 
36   /**
37    * @param GoogleCloudVideointelligenceV1beta2Entity[]
38    */
39   public function setCategoryEntities($categoryEntities)
40   {
41     $this->categoryEntities = $categoryEntities;
42   }
43   /**
44    * @return GoogleCloudVideointelligenceV1beta2Entity[]
45    */
46   public function getCategoryEntities()
47   {
48     return $this->categoryEntities;
49   }
50   /**
51    * @param GoogleCloudVideointelligenceV1beta2Entity
52    */
53   public function setEntity(GoogleCloudVideointelligenceV1beta2Entity $entity)
54   {
55     $this->entity = $entity;
56   }
57   /**
58    * @return GoogleCloudVideointelligenceV1beta2Entity
59    */
60   public function getEntity()
61   {
62     return $this->entity;
63   }
64   /**
65    * @param GoogleCloudVideointelligenceV1beta2LabelFrame[]
66    */
67   public function setFrames($frames)
68   {
69     $this->frames = $frames;
70   }
71   /**
72    * @return GoogleCloudVideointelligenceV1beta2LabelFrame[]
73    */
74   public function getFrames()
75   {
76     return $this->frames;
77   }
78   /**
79    * @param GoogleCloudVideointelligenceV1beta2LabelSegment[]
80    */
81   public function setSegments($segments)
82   {
83     $this->segments = $segments;
84   }
85   /**
86    * @return GoogleCloudVideointelligenceV1beta2LabelSegment[]
87    */
88   public function getSegments()
89   {
90     return $this->segments;
91   }
92   /**
93    * @param string
94    */
95   public function setVersion($version)
96   {
97     $this->version = $version;
98   }
99   /**
100    * @return string
101    */
102   public function getVersion()
103   {
104     return $this->version;
105   }
106 }
107 
108 // Adding a class alias for backwards compatibility with the previous class name.
109 class_alias(GoogleCloudVideointelligenceV1beta2LabelAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2LabelAnnotation');
110