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\Vision;
19
20class GoogleCloudVisionV1p3beta1EntityAnnotation extends \Google\Collection
21{
22  protected $collection_key = 'properties';
23  protected $boundingPolyType = GoogleCloudVisionV1p3beta1BoundingPoly::class;
24  protected $boundingPolyDataType = '';
25  /**
26   * @var float
27   */
28  public $confidence;
29  /**
30   * @var string
31   */
32  public $description;
33  /**
34   * @var string
35   */
36  public $locale;
37  protected $locationsType = GoogleCloudVisionV1p3beta1LocationInfo::class;
38  protected $locationsDataType = 'array';
39  /**
40   * @var string
41   */
42  public $mid;
43  protected $propertiesType = GoogleCloudVisionV1p3beta1Property::class;
44  protected $propertiesDataType = 'array';
45  /**
46   * @var float
47   */
48  public $score;
49  /**
50   * @var float
51   */
52  public $topicality;
53
54  /**
55   * @param GoogleCloudVisionV1p3beta1BoundingPoly
56   */
57  public function setBoundingPoly(GoogleCloudVisionV1p3beta1BoundingPoly $boundingPoly)
58  {
59    $this->boundingPoly = $boundingPoly;
60  }
61  /**
62   * @return GoogleCloudVisionV1p3beta1BoundingPoly
63   */
64  public function getBoundingPoly()
65  {
66    return $this->boundingPoly;
67  }
68  /**
69   * @param float
70   */
71  public function setConfidence($confidence)
72  {
73    $this->confidence = $confidence;
74  }
75  /**
76   * @return float
77   */
78  public function getConfidence()
79  {
80    return $this->confidence;
81  }
82  /**
83   * @param string
84   */
85  public function setDescription($description)
86  {
87    $this->description = $description;
88  }
89  /**
90   * @return string
91   */
92  public function getDescription()
93  {
94    return $this->description;
95  }
96  /**
97   * @param string
98   */
99  public function setLocale($locale)
100  {
101    $this->locale = $locale;
102  }
103  /**
104   * @return string
105   */
106  public function getLocale()
107  {
108    return $this->locale;
109  }
110  /**
111   * @param GoogleCloudVisionV1p3beta1LocationInfo[]
112   */
113  public function setLocations($locations)
114  {
115    $this->locations = $locations;
116  }
117  /**
118   * @return GoogleCloudVisionV1p3beta1LocationInfo[]
119   */
120  public function getLocations()
121  {
122    return $this->locations;
123  }
124  /**
125   * @param string
126   */
127  public function setMid($mid)
128  {
129    $this->mid = $mid;
130  }
131  /**
132   * @return string
133   */
134  public function getMid()
135  {
136    return $this->mid;
137  }
138  /**
139   * @param GoogleCloudVisionV1p3beta1Property[]
140   */
141  public function setProperties($properties)
142  {
143    $this->properties = $properties;
144  }
145  /**
146   * @return GoogleCloudVisionV1p3beta1Property[]
147   */
148  public function getProperties()
149  {
150    return $this->properties;
151  }
152  /**
153   * @param float
154   */
155  public function setScore($score)
156  {
157    $this->score = $score;
158  }
159  /**
160   * @return float
161   */
162  public function getScore()
163  {
164    return $this->score;
165  }
166  /**
167   * @param float
168   */
169  public function setTopicality($topicality)
170  {
171    $this->topicality = $topicality;
172  }
173  /**
174   * @return float
175   */
176  public function getTopicality()
177  {
178    return $this->topicality;
179  }
180}
181
182// Adding a class alias for backwards compatibility with the previous class name.
183class_alias(GoogleCloudVisionV1p3beta1EntityAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p3beta1EntityAnnotation');
184