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\CloudNaturalLanguage;
|
---|
19 |
|
---|
20 | class XPSEvaluationMetrics extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var string
|
---|
24 | */
|
---|
25 | public $annotationSpecIdToken;
|
---|
26 | /**
|
---|
27 | * @var int
|
---|
28 | */
|
---|
29 | public $category;
|
---|
30 | /**
|
---|
31 | * @var int
|
---|
32 | */
|
---|
33 | public $evaluatedExampleCount;
|
---|
34 | protected $imageClassificationEvalMetricsType = XPSClassificationEvaluationMetrics::class;
|
---|
35 | protected $imageClassificationEvalMetricsDataType = '';
|
---|
36 | protected $imageObjectDetectionEvalMetricsType = XPSImageObjectDetectionEvaluationMetrics::class;
|
---|
37 | protected $imageObjectDetectionEvalMetricsDataType = '';
|
---|
38 | protected $imageSegmentationEvalMetricsType = XPSImageSegmentationEvaluationMetrics::class;
|
---|
39 | protected $imageSegmentationEvalMetricsDataType = '';
|
---|
40 | /**
|
---|
41 | * @var string
|
---|
42 | */
|
---|
43 | public $label;
|
---|
44 | protected $regressionEvalMetricsType = XPSRegressionEvaluationMetrics::class;
|
---|
45 | protected $regressionEvalMetricsDataType = '';
|
---|
46 | protected $tablesClassificationEvalMetricsType = XPSClassificationEvaluationMetrics::class;
|
---|
47 | protected $tablesClassificationEvalMetricsDataType = '';
|
---|
48 | protected $tablesEvalMetricsType = XPSTablesEvaluationMetrics::class;
|
---|
49 | protected $tablesEvalMetricsDataType = '';
|
---|
50 | protected $textClassificationEvalMetricsType = XPSClassificationEvaluationMetrics::class;
|
---|
51 | protected $textClassificationEvalMetricsDataType = '';
|
---|
52 | protected $textExtractionEvalMetricsType = XPSTextExtractionEvaluationMetrics::class;
|
---|
53 | protected $textExtractionEvalMetricsDataType = '';
|
---|
54 | protected $textSentimentEvalMetricsType = XPSTextSentimentEvaluationMetrics::class;
|
---|
55 | protected $textSentimentEvalMetricsDataType = '';
|
---|
56 | protected $translationEvalMetricsType = XPSTranslationEvaluationMetrics::class;
|
---|
57 | protected $translationEvalMetricsDataType = '';
|
---|
58 | protected $videoActionRecognitionEvalMetricsType = XPSVideoActionRecognitionEvaluationMetrics::class;
|
---|
59 | protected $videoActionRecognitionEvalMetricsDataType = '';
|
---|
60 | protected $videoClassificationEvalMetricsType = XPSClassificationEvaluationMetrics::class;
|
---|
61 | protected $videoClassificationEvalMetricsDataType = '';
|
---|
62 | protected $videoObjectTrackingEvalMetricsType = XPSVideoObjectTrackingEvaluationMetrics::class;
|
---|
63 | protected $videoObjectTrackingEvalMetricsDataType = '';
|
---|
64 |
|
---|
65 | /**
|
---|
66 | * @param string
|
---|
67 | */
|
---|
68 | public function setAnnotationSpecIdToken($annotationSpecIdToken)
|
---|
69 | {
|
---|
70 | $this->annotationSpecIdToken = $annotationSpecIdToken;
|
---|
71 | }
|
---|
72 | /**
|
---|
73 | * @return string
|
---|
74 | */
|
---|
75 | public function getAnnotationSpecIdToken()
|
---|
76 | {
|
---|
77 | return $this->annotationSpecIdToken;
|
---|
78 | }
|
---|
79 | /**
|
---|
80 | * @param int
|
---|
81 | */
|
---|
82 | public function setCategory($category)
|
---|
83 | {
|
---|
84 | $this->category = $category;
|
---|
85 | }
|
---|
86 | /**
|
---|
87 | * @return int
|
---|
88 | */
|
---|
89 | public function getCategory()
|
---|
90 | {
|
---|
91 | return $this->category;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @param int
|
---|
95 | */
|
---|
96 | public function setEvaluatedExampleCount($evaluatedExampleCount)
|
---|
97 | {
|
---|
98 | $this->evaluatedExampleCount = $evaluatedExampleCount;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @return int
|
---|
102 | */
|
---|
103 | public function getEvaluatedExampleCount()
|
---|
104 | {
|
---|
105 | return $this->evaluatedExampleCount;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @param XPSClassificationEvaluationMetrics
|
---|
109 | */
|
---|
110 | public function setImageClassificationEvalMetrics(XPSClassificationEvaluationMetrics $imageClassificationEvalMetrics)
|
---|
111 | {
|
---|
112 | $this->imageClassificationEvalMetrics = $imageClassificationEvalMetrics;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @return XPSClassificationEvaluationMetrics
|
---|
116 | */
|
---|
117 | public function getImageClassificationEvalMetrics()
|
---|
118 | {
|
---|
119 | return $this->imageClassificationEvalMetrics;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @param XPSImageObjectDetectionEvaluationMetrics
|
---|
123 | */
|
---|
124 | public function setImageObjectDetectionEvalMetrics(XPSImageObjectDetectionEvaluationMetrics $imageObjectDetectionEvalMetrics)
|
---|
125 | {
|
---|
126 | $this->imageObjectDetectionEvalMetrics = $imageObjectDetectionEvalMetrics;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @return XPSImageObjectDetectionEvaluationMetrics
|
---|
130 | */
|
---|
131 | public function getImageObjectDetectionEvalMetrics()
|
---|
132 | {
|
---|
133 | return $this->imageObjectDetectionEvalMetrics;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @param XPSImageSegmentationEvaluationMetrics
|
---|
137 | */
|
---|
138 | public function setImageSegmentationEvalMetrics(XPSImageSegmentationEvaluationMetrics $imageSegmentationEvalMetrics)
|
---|
139 | {
|
---|
140 | $this->imageSegmentationEvalMetrics = $imageSegmentationEvalMetrics;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @return XPSImageSegmentationEvaluationMetrics
|
---|
144 | */
|
---|
145 | public function getImageSegmentationEvalMetrics()
|
---|
146 | {
|
---|
147 | return $this->imageSegmentationEvalMetrics;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @param string
|
---|
151 | */
|
---|
152 | public function setLabel($label)
|
---|
153 | {
|
---|
154 | $this->label = $label;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @return string
|
---|
158 | */
|
---|
159 | public function getLabel()
|
---|
160 | {
|
---|
161 | return $this->label;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @param XPSRegressionEvaluationMetrics
|
---|
165 | */
|
---|
166 | public function setRegressionEvalMetrics(XPSRegressionEvaluationMetrics $regressionEvalMetrics)
|
---|
167 | {
|
---|
168 | $this->regressionEvalMetrics = $regressionEvalMetrics;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @return XPSRegressionEvaluationMetrics
|
---|
172 | */
|
---|
173 | public function getRegressionEvalMetrics()
|
---|
174 | {
|
---|
175 | return $this->regressionEvalMetrics;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @param XPSClassificationEvaluationMetrics
|
---|
179 | */
|
---|
180 | public function setTablesClassificationEvalMetrics(XPSClassificationEvaluationMetrics $tablesClassificationEvalMetrics)
|
---|
181 | {
|
---|
182 | $this->tablesClassificationEvalMetrics = $tablesClassificationEvalMetrics;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @return XPSClassificationEvaluationMetrics
|
---|
186 | */
|
---|
187 | public function getTablesClassificationEvalMetrics()
|
---|
188 | {
|
---|
189 | return $this->tablesClassificationEvalMetrics;
|
---|
190 | }
|
---|
191 | /**
|
---|
192 | * @param XPSTablesEvaluationMetrics
|
---|
193 | */
|
---|
194 | public function setTablesEvalMetrics(XPSTablesEvaluationMetrics $tablesEvalMetrics)
|
---|
195 | {
|
---|
196 | $this->tablesEvalMetrics = $tablesEvalMetrics;
|
---|
197 | }
|
---|
198 | /**
|
---|
199 | * @return XPSTablesEvaluationMetrics
|
---|
200 | */
|
---|
201 | public function getTablesEvalMetrics()
|
---|
202 | {
|
---|
203 | return $this->tablesEvalMetrics;
|
---|
204 | }
|
---|
205 | /**
|
---|
206 | * @param XPSClassificationEvaluationMetrics
|
---|
207 | */
|
---|
208 | public function setTextClassificationEvalMetrics(XPSClassificationEvaluationMetrics $textClassificationEvalMetrics)
|
---|
209 | {
|
---|
210 | $this->textClassificationEvalMetrics = $textClassificationEvalMetrics;
|
---|
211 | }
|
---|
212 | /**
|
---|
213 | * @return XPSClassificationEvaluationMetrics
|
---|
214 | */
|
---|
215 | public function getTextClassificationEvalMetrics()
|
---|
216 | {
|
---|
217 | return $this->textClassificationEvalMetrics;
|
---|
218 | }
|
---|
219 | /**
|
---|
220 | * @param XPSTextExtractionEvaluationMetrics
|
---|
221 | */
|
---|
222 | public function setTextExtractionEvalMetrics(XPSTextExtractionEvaluationMetrics $textExtractionEvalMetrics)
|
---|
223 | {
|
---|
224 | $this->textExtractionEvalMetrics = $textExtractionEvalMetrics;
|
---|
225 | }
|
---|
226 | /**
|
---|
227 | * @return XPSTextExtractionEvaluationMetrics
|
---|
228 | */
|
---|
229 | public function getTextExtractionEvalMetrics()
|
---|
230 | {
|
---|
231 | return $this->textExtractionEvalMetrics;
|
---|
232 | }
|
---|
233 | /**
|
---|
234 | * @param XPSTextSentimentEvaluationMetrics
|
---|
235 | */
|
---|
236 | public function setTextSentimentEvalMetrics(XPSTextSentimentEvaluationMetrics $textSentimentEvalMetrics)
|
---|
237 | {
|
---|
238 | $this->textSentimentEvalMetrics = $textSentimentEvalMetrics;
|
---|
239 | }
|
---|
240 | /**
|
---|
241 | * @return XPSTextSentimentEvaluationMetrics
|
---|
242 | */
|
---|
243 | public function getTextSentimentEvalMetrics()
|
---|
244 | {
|
---|
245 | return $this->textSentimentEvalMetrics;
|
---|
246 | }
|
---|
247 | /**
|
---|
248 | * @param XPSTranslationEvaluationMetrics
|
---|
249 | */
|
---|
250 | public function setTranslationEvalMetrics(XPSTranslationEvaluationMetrics $translationEvalMetrics)
|
---|
251 | {
|
---|
252 | $this->translationEvalMetrics = $translationEvalMetrics;
|
---|
253 | }
|
---|
254 | /**
|
---|
255 | * @return XPSTranslationEvaluationMetrics
|
---|
256 | */
|
---|
257 | public function getTranslationEvalMetrics()
|
---|
258 | {
|
---|
259 | return $this->translationEvalMetrics;
|
---|
260 | }
|
---|
261 | /**
|
---|
262 | * @param XPSVideoActionRecognitionEvaluationMetrics
|
---|
263 | */
|
---|
264 | public function setVideoActionRecognitionEvalMetrics(XPSVideoActionRecognitionEvaluationMetrics $videoActionRecognitionEvalMetrics)
|
---|
265 | {
|
---|
266 | $this->videoActionRecognitionEvalMetrics = $videoActionRecognitionEvalMetrics;
|
---|
267 | }
|
---|
268 | /**
|
---|
269 | * @return XPSVideoActionRecognitionEvaluationMetrics
|
---|
270 | */
|
---|
271 | public function getVideoActionRecognitionEvalMetrics()
|
---|
272 | {
|
---|
273 | return $this->videoActionRecognitionEvalMetrics;
|
---|
274 | }
|
---|
275 | /**
|
---|
276 | * @param XPSClassificationEvaluationMetrics
|
---|
277 | */
|
---|
278 | public function setVideoClassificationEvalMetrics(XPSClassificationEvaluationMetrics $videoClassificationEvalMetrics)
|
---|
279 | {
|
---|
280 | $this->videoClassificationEvalMetrics = $videoClassificationEvalMetrics;
|
---|
281 | }
|
---|
282 | /**
|
---|
283 | * @return XPSClassificationEvaluationMetrics
|
---|
284 | */
|
---|
285 | public function getVideoClassificationEvalMetrics()
|
---|
286 | {
|
---|
287 | return $this->videoClassificationEvalMetrics;
|
---|
288 | }
|
---|
289 | /**
|
---|
290 | * @param XPSVideoObjectTrackingEvaluationMetrics
|
---|
291 | */
|
---|
292 | public function setVideoObjectTrackingEvalMetrics(XPSVideoObjectTrackingEvaluationMetrics $videoObjectTrackingEvalMetrics)
|
---|
293 | {
|
---|
294 | $this->videoObjectTrackingEvalMetrics = $videoObjectTrackingEvalMetrics;
|
---|
295 | }
|
---|
296 | /**
|
---|
297 | * @return XPSVideoObjectTrackingEvaluationMetrics
|
---|
298 | */
|
---|
299 | public function getVideoObjectTrackingEvalMetrics()
|
---|
300 | {
|
---|
301 | return $this->videoObjectTrackingEvalMetrics;
|
---|
302 | }
|
---|
303 | }
|
---|
304 |
|
---|
305 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
306 | class_alias(XPSEvaluationMetrics::class, 'Google_Service_CloudNaturalLanguage_XPSEvaluationMetrics');
|
---|