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 GoogleCloudVideointelligenceV1LabelAnnotation extends \Google\Collection
21{
22  protected $collection_key = 'segments';
23  protected $categoryEntitiesType = GoogleCloudVideointelligenceV1Entity::class;
24  protected $categoryEntitiesDataType = 'array';
25  protected $entityType = GoogleCloudVideointelligenceV1Entity::class;
26  protected $entityDataType = '';
27  protected $framesType = GoogleCloudVideointelligenceV1LabelFrame::class;
28  protected $framesDataType = 'array';
29  protected $segmentsType = GoogleCloudVideointelligenceV1LabelSegment::class;
30  protected $segmentsDataType = 'array';
31  /**
32   * @var string
33   */
34  public $version;
35
36  /**
37   * @param GoogleCloudVideointelligenceV1Entity[]
38   */
39  public function setCategoryEntities($categoryEntities)
40  {
41    $this->categoryEntities = $categoryEntities;
42  }
43  /**
44   * @return GoogleCloudVideointelligenceV1Entity[]
45   */
46  public function getCategoryEntities()
47  {
48    return $this->categoryEntities;
49  }
50  /**
51   * @param GoogleCloudVideointelligenceV1Entity
52   */
53  public function setEntity(GoogleCloudVideointelligenceV1Entity $entity)
54  {
55    $this->entity = $entity;
56  }
57  /**
58   * @return GoogleCloudVideointelligenceV1Entity
59   */
60  public function getEntity()
61  {
62    return $this->entity;
63  }
64  /**
65   * @param GoogleCloudVideointelligenceV1LabelFrame[]
66   */
67  public function setFrames($frames)
68  {
69    $this->frames = $frames;
70  }
71  /**
72   * @return GoogleCloudVideointelligenceV1LabelFrame[]
73   */
74  public function getFrames()
75  {
76    return $this->frames;
77  }
78  /**
79   * @param GoogleCloudVideointelligenceV1LabelSegment[]
80   */
81  public function setSegments($segments)
82  {
83    $this->segments = $segments;
84  }
85  /**
86   * @return GoogleCloudVideointelligenceV1LabelSegment[]
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.
109class_alias(GoogleCloudVideointelligenceV1LabelAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1LabelAnnotation');
110