PluginProbe
Authorizer / 2.6.10
Authorizer v2.6.10
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / vendor / google-api-php-client / src / Google / Service / Prediction.php

Prediction.php in Authorizer 2.6.10, at vendor/google-api-php-client/src/Google/Service/Prediction.php

1,207 lines 30.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16 /**
17 * Service definition for Prediction (v1.6).
18 *
19 * <p>
20 * Lets you access a cloud hosted machine learning service that makes it easy to
21 * build smart apps</p>
22 *
23 * <p>
24 * For more information about this service, see the API
25 * <a href="https://developers.google.com/prediction/docs/developer-guide" target="_blank">Documentation</a>
26 * </p>
27 *
28 * @author Google, Inc.
29 */
30 class Google_Service_Prediction extends Google_Service
31 {
32 /** Manage your data and permissions in Google Cloud Storage. */
33 const DEVSTORAGE_FULL_CONTROL =
34 "https://www.googleapis.com/auth/devstorage.full_control";
35 /** View your data in Google Cloud Storage. */
36 const DEVSTORAGE_READ_ONLY =
37 "https://www.googleapis.com/auth/devstorage.read_only";
38 /** Manage your data in Google Cloud Storage. */
39 const DEVSTORAGE_READ_WRITE =
40 "https://www.googleapis.com/auth/devstorage.read_write";
41 /** Manage your data in the Google Prediction API. */
42 const PREDICTION =
43 "https://www.googleapis.com/auth/prediction";
44
45 public $hostedmodels;
46 public $trainedmodels;
47
48
49 /**
50 * Constructs the internal representation of the Prediction service.
51 *
52 * @param Google_Client $client
53 */
54 public function __construct(Google_Client $client)
55 {
56 parent::__construct($client);
57 $this->rootUrl = 'https://www.googleapis.com/';
58 $this->servicePath = 'prediction/v1.6/projects/';
59 $this->version = 'v1.6';
60 $this->serviceName = 'prediction';
61
62 $this->hostedmodels = new Google_Service_Prediction_Hostedmodels_Resource(
63 $this,
64 $this->serviceName,
65 'hostedmodels',
66 array(
67 'methods' => array(
68 'predict' => array(
69 'path' => '{project}/hostedmodels/{hostedModelName}/predict',
70 'httpMethod' => 'POST',
71 'parameters' => array(
72 'project' => array(
73 'location' => 'path',
74 'type' => 'string',
75 'required' => true,
76 ),
77 'hostedModelName' => array(
78 'location' => 'path',
79 'type' => 'string',
80 'required' => true,
81 ),
82 ),
83 ),
84 )
85 )
86 );
87 $this->trainedmodels = new Google_Service_Prediction_Trainedmodels_Resource(
88 $this,
89 $this->serviceName,
90 'trainedmodels',
91 array(
92 'methods' => array(
93 'analyze' => array(
94 'path' => '{project}/trainedmodels/{id}/analyze',
95 'httpMethod' => 'GET',
96 'parameters' => array(
97 'project' => array(
98 'location' => 'path',
99 'type' => 'string',
100 'required' => true,
101 ),
102 'id' => array(
103 'location' => 'path',
104 'type' => 'string',
105 'required' => true,
106 ),
107 ),
108 ),'delete' => array(
109 'path' => '{project}/trainedmodels/{id}',
110 'httpMethod' => 'DELETE',
111 'parameters' => array(
112 'project' => array(
113 'location' => 'path',
114 'type' => 'string',
115 'required' => true,
116 ),
117 'id' => array(
118 'location' => 'path',
119 'type' => 'string',
120 'required' => true,
121 ),
122 ),
123 ),'get' => array(
124 'path' => '{project}/trainedmodels/{id}',
125 'httpMethod' => 'GET',
126 'parameters' => array(
127 'project' => array(
128 'location' => 'path',
129 'type' => 'string',
130 'required' => true,
131 ),
132 'id' => array(
133 'location' => 'path',
134 'type' => 'string',
135 'required' => true,
136 ),
137 ),
138 ),'insert' => array(
139 'path' => '{project}/trainedmodels',
140 'httpMethod' => 'POST',
141 'parameters' => array(
142 'project' => array(
143 'location' => 'path',
144 'type' => 'string',
145 'required' => true,
146 ),
147 ),
148 ),'list' => array(
149 'path' => '{project}/trainedmodels/list',
150 'httpMethod' => 'GET',
151 'parameters' => array(
152 'project' => array(
153 'location' => 'path',
154 'type' => 'string',
155 'required' => true,
156 ),
157 'maxResults' => array(
158 'location' => 'query',
159 'type' => 'integer',
160 ),
161 'pageToken' => array(
162 'location' => 'query',
163 'type' => 'string',
164 ),
165 ),
166 ),'predict' => array(
167 'path' => '{project}/trainedmodels/{id}/predict',
168 'httpMethod' => 'POST',
169 'parameters' => array(
170 'project' => array(
171 'location' => 'path',
172 'type' => 'string',
173 'required' => true,
174 ),
175 'id' => array(
176 'location' => 'path',
177 'type' => 'string',
178 'required' => true,
179 ),
180 ),
181 ),'update' => array(
182 'path' => '{project}/trainedmodels/{id}',
183 'httpMethod' => 'PUT',
184 'parameters' => array(
185 'project' => array(
186 'location' => 'path',
187 'type' => 'string',
188 'required' => true,
189 ),
190 'id' => array(
191 'location' => 'path',
192 'type' => 'string',
193 'required' => true,
194 ),
195 ),
196 ),
197 )
198 )
199 );
200 }
201 }
202
203
204 /**
205 * The "hostedmodels" collection of methods.
206 * Typical usage is:
207 * <code>
208 * $predictionService = new Google_Service_Prediction(...);
209 * $hostedmodels = $predictionService->hostedmodels;
210 * </code>
211 */
212 class Google_Service_Prediction_Hostedmodels_Resource extends Google_Service_Resource
213 {
214
215 /**
216 * Submit input and request an output against a hosted model.
217 * (hostedmodels.predict)
218 *
219 * @param string $project The project associated with the model.
220 * @param string $hostedModelName The name of a hosted model.
221 * @param Google_Input $postBody
222 * @param array $optParams Optional parameters.
223 * @return Google_Service_Prediction_Output
224 */
225 public function predict($project, $hostedModelName, Google_Service_Prediction_Input $postBody, $optParams = array())
226 {
227 $params = array('project' => $project, 'hostedModelName' => $hostedModelName, 'postBody' => $postBody);
228 $params = array_merge($params, $optParams);
229 return $this->call('predict', array($params), "Google_Service_Prediction_Output");
230 }
231 }
232
233 /**
234 * The "trainedmodels" collection of methods.
235 * Typical usage is:
236 * <code>
237 * $predictionService = new Google_Service_Prediction(...);
238 * $trainedmodels = $predictionService->trainedmodels;
239 * </code>
240 */
241 class Google_Service_Prediction_Trainedmodels_Resource extends Google_Service_Resource
242 {
243
244 /**
245 * Get analysis of the model and the data the model was trained on.
246 * (trainedmodels.analyze)
247 *
248 * @param string $project The project associated with the model.
249 * @param string $id The unique name for the predictive model.
250 * @param array $optParams Optional parameters.
251 * @return Google_Service_Prediction_Analyze
252 */
253 public function analyze($project, $id, $optParams = array())
254 {
255 $params = array('project' => $project, 'id' => $id);
256 $params = array_merge($params, $optParams);
257 return $this->call('analyze', array($params), "Google_Service_Prediction_Analyze");
258 }
259
260 /**
261 * Delete a trained model. (trainedmodels.delete)
262 *
263 * @param string $project The project associated with the model.
264 * @param string $id The unique name for the predictive model.
265 * @param array $optParams Optional parameters.
266 */
267 public function delete($project, $id, $optParams = array())
268 {
269 $params = array('project' => $project, 'id' => $id);
270 $params = array_merge($params, $optParams);
271 return $this->call('delete', array($params));
272 }
273
274 /**
275 * Check training status of your model. (trainedmodels.get)
276 *
277 * @param string $project The project associated with the model.
278 * @param string $id The unique name for the predictive model.
279 * @param array $optParams Optional parameters.
280 * @return Google_Service_Prediction_Insert2
281 */
282 public function get($project, $id, $optParams = array())
283 {
284 $params = array('project' => $project, 'id' => $id);
285 $params = array_merge($params, $optParams);
286 return $this->call('get', array($params), "Google_Service_Prediction_Insert2");
287 }
288
289 /**
290 * Train a Prediction API model. (trainedmodels.insert)
291 *
292 * @param string $project The project associated with the model.
293 * @param Google_Insert $postBody
294 * @param array $optParams Optional parameters.
295 * @return Google_Service_Prediction_Insert2
296 */
297 public function insert($project, Google_Service_Prediction_Insert $postBody, $optParams = array())
298 {
299 $params = array('project' => $project, 'postBody' => $postBody);
300 $params = array_merge($params, $optParams);
301 return $this->call('insert', array($params), "Google_Service_Prediction_Insert2");
302 }
303
304 /**
305 * List available models. (trainedmodels.listTrainedmodels)
306 *
307 * @param string $project The project associated with the model.
308 * @param array $optParams Optional parameters.
309 *
310 * @opt_param string maxResults Maximum number of results to return.
311 * @opt_param string pageToken Pagination token.
312 * @return Google_Service_Prediction_PredictionList
313 */
314 public function listTrainedmodels($project, $optParams = array())
315 {
316 $params = array('project' => $project);
317 $params = array_merge($params, $optParams);
318 return $this->call('list', array($params), "Google_Service_Prediction_PredictionList");
319 }
320
321 /**
322 * Submit model id and request a prediction. (trainedmodels.predict)
323 *
324 * @param string $project The project associated with the model.
325 * @param string $id The unique name for the predictive model.
326 * @param Google_Input $postBody
327 * @param array $optParams Optional parameters.
328 * @return Google_Service_Prediction_Output
329 */
330 public function predict($project, $id, Google_Service_Prediction_Input $postBody, $optParams = array())
331 {
332 $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody);
333 $params = array_merge($params, $optParams);
334 return $this->call('predict', array($params), "Google_Service_Prediction_Output");
335 }
336
337 /**
338 * Add new data to a trained model. (trainedmodels.update)
339 *
340 * @param string $project The project associated with the model.
341 * @param string $id The unique name for the predictive model.
342 * @param Google_Update $postBody
343 * @param array $optParams Optional parameters.
344 * @return Google_Service_Prediction_Insert2
345 */
346 public function update($project, $id, Google_Service_Prediction_Update $postBody, $optParams = array())
347 {
348 $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody);
349 $params = array_merge($params, $optParams);
350 return $this->call('update', array($params), "Google_Service_Prediction_Insert2");
351 }
352 }
353
354
355
356
357 class Google_Service_Prediction_Analyze extends Google_Collection
358 {
359 protected $collection_key = 'errors';
360 protected $internal_gapi_mappings = array(
361 );
362 protected $dataDescriptionType = 'Google_Service_Prediction_AnalyzeDataDescription';
363 protected $dataDescriptionDataType = '';
364 public $errors;
365 public $id;
366 public $kind;
367 protected $modelDescriptionType = 'Google_Service_Prediction_AnalyzeModelDescription';
368 protected $modelDescriptionDataType = '';
369 public $selfLink;
370
371
372 public function setDataDescription(Google_Service_Prediction_AnalyzeDataDescription $dataDescription)
373 {
374 $this->dataDescription = $dataDescription;
375 }
376 public function getDataDescription()
377 {
378 return $this->dataDescription;
379 }
380 public function setErrors($errors)
381 {
382 $this->errors = $errors;
383 }
384 public function getErrors()
385 {
386 return $this->errors;
387 }
388 public function setId($id)
389 {
390 $this->id = $id;
391 }
392 public function getId()
393 {
394 return $this->id;
395 }
396 public function setKind($kind)
397 {
398 $this->kind = $kind;
399 }
400 public function getKind()
401 {
402 return $this->kind;
403 }
404 public function setModelDescription(Google_Service_Prediction_AnalyzeModelDescription $modelDescription)
405 {
406 $this->modelDescription = $modelDescription;
407 }
408 public function getModelDescription()
409 {
410 return $this->modelDescription;
411 }
412 public function setSelfLink($selfLink)
413 {
414 $this->selfLink = $selfLink;
415 }
416 public function getSelfLink()
417 {
418 return $this->selfLink;
419 }
420 }
421
422 class Google_Service_Prediction_AnalyzeDataDescription extends Google_Collection
423 {
424 protected $collection_key = 'features';
425 protected $internal_gapi_mappings = array(
426 );
427 protected $featuresType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeatures';
428 protected $featuresDataType = 'array';
429 protected $outputFeatureType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature';
430 protected $outputFeatureDataType = '';
431
432
433 public function setFeatures($features)
434 {
435 $this->features = $features;
436 }
437 public function getFeatures()
438 {
439 return $this->features;
440 }
441 public function setOutputFeature(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature $outputFeature)
442 {
443 $this->outputFeature = $outputFeature;
444 }
445 public function getOutputFeature()
446 {
447 return $this->outputFeature;
448 }
449 }
450
451 class Google_Service_Prediction_AnalyzeDataDescriptionFeatures extends Google_Model
452 {
453 protected $internal_gapi_mappings = array(
454 );
455 protected $categoricalType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical';
456 protected $categoricalDataType = '';
457 public $index;
458 protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric';
459 protected $numericDataType = '';
460 protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText';
461 protected $textDataType = '';
462
463
464 public function setCategorical(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical $categorical)
465 {
466 $this->categorical = $categorical;
467 }
468 public function getCategorical()
469 {
470 return $this->categorical;
471 }
472 public function setIndex($index)
473 {
474 $this->index = $index;
475 }
476 public function getIndex()
477 {
478 return $this->index;
479 }
480 public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric $numeric)
481 {
482 $this->numeric = $numeric;
483 }
484 public function getNumeric()
485 {
486 return $this->numeric;
487 }
488 public function setText(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText $text)
489 {
490 $this->text = $text;
491 }
492 public function getText()
493 {
494 return $this->text;
495 }
496 }
497
498 class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extends Google_Collection
499 {
500 protected $collection_key = 'values';
501 protected $internal_gapi_mappings = array(
502 );
503 public $count;
504 protected $valuesType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues';
505 protected $valuesDataType = 'array';
506
507
508 public function setCount($count)
509 {
510 $this->count = $count;
511 }
512 public function getCount()
513 {
514 return $this->count;
515 }
516 public function setValues($values)
517 {
518 $this->values = $values;
519 }
520 public function getValues()
521 {
522 return $this->values;
523 }
524 }
525
526 class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues extends Google_Model
527 {
528 protected $internal_gapi_mappings = array(
529 );
530 public $count;
531 public $value;
532
533
534 public function setCount($count)
535 {
536 $this->count = $count;
537 }
538 public function getCount()
539 {
540 return $this->count;
541 }
542 public function setValue($value)
543 {
544 $this->value = $value;
545 }
546 public function getValue()
547 {
548 return $this->value;
549 }
550 }
551
552 class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric extends Google_Model
553 {
554 protected $internal_gapi_mappings = array(
555 );
556 public $count;
557 public $mean;
558 public $variance;
559
560
561 public function setCount($count)
562 {
563 $this->count = $count;
564 }
565 public function getCount()
566 {
567 return $this->count;
568 }
569 public function setMean($mean)
570 {
571 $this->mean = $mean;
572 }
573 public function getMean()
574 {
575 return $this->mean;
576 }
577 public function setVariance($variance)
578 {
579 $this->variance = $variance;
580 }
581 public function getVariance()
582 {
583 return $this->variance;
584 }
585 }
586
587 class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText extends Google_Model
588 {
589 protected $internal_gapi_mappings = array(
590 );
591 public $count;
592
593
594 public function setCount($count)
595 {
596 $this->count = $count;
597 }
598 public function getCount()
599 {
600 return $this->count;
601 }
602 }
603
604 class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Google_Collection
605 {
606 protected $collection_key = 'text';
607 protected $internal_gapi_mappings = array(
608 );
609 protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric';
610 protected $numericDataType = '';
611 protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText';
612 protected $textDataType = 'array';
613
614
615 public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric $numeric)
616 {
617 $this->numeric = $numeric;
618 }
619 public function getNumeric()
620 {
621 return $this->numeric;
622 }
623 public function setText($text)
624 {
625 $this->text = $text;
626 }
627 public function getText()
628 {
629 return $this->text;
630 }
631 }
632
633 class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric extends Google_Model
634 {
635 protected $internal_gapi_mappings = array(
636 );
637 public $count;
638 public $mean;
639 public $variance;
640
641
642 public function setCount($count)
643 {
644 $this->count = $count;
645 }
646 public function getCount()
647 {
648 return $this->count;
649 }
650 public function setMean($mean)
651 {
652 $this->mean = $mean;
653 }
654 public function getMean()
655 {
656 return $this->mean;
657 }
658 public function setVariance($variance)
659 {
660 $this->variance = $variance;
661 }
662 public function getVariance()
663 {
664 return $this->variance;
665 }
666 }
667
668 class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText extends Google_Model
669 {
670 protected $internal_gapi_mappings = array(
671 );
672 public $count;
673 public $value;
674
675
676 public function setCount($count)
677 {
678 $this->count = $count;
679 }
680 public function getCount()
681 {
682 return $this->count;
683 }
684 public function setValue($value)
685 {
686 $this->value = $value;
687 }
688 public function getValue()
689 {
690 return $this->value;
691 }
692 }
693
694 class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model
695 {
696 protected $internal_gapi_mappings = array(
697 );
698 public $confusionMatrix;
699 public $confusionMatrixRowTotals;
700 protected $modelinfoType = 'Google_Service_Prediction_Insert2';
701 protected $modelinfoDataType = '';
702
703
704 public function setConfusionMatrix($confusionMatrix)
705 {
706 $this->confusionMatrix = $confusionMatrix;
707 }
708 public function getConfusionMatrix()
709 {
710 return $this->confusionMatrix;
711 }
712 public function setConfusionMatrixRowTotals($confusionMatrixRowTotals)
713 {
714 $this->confusionMatrixRowTotals = $confusionMatrixRowTotals;
715 }
716 public function getConfusionMatrixRowTotals()
717 {
718 return $this->confusionMatrixRowTotals;
719 }
720 public function setModelinfo(Google_Service_Prediction_Insert2 $modelinfo)
721 {
722 $this->modelinfo = $modelinfo;
723 }
724 public function getModelinfo()
725 {
726 return $this->modelinfo;
727 }
728 }
729
730 class Google_Service_Prediction_Input extends Google_Model
731 {
732 protected $internal_gapi_mappings = array(
733 );
734 protected $inputType = 'Google_Service_Prediction_InputInput';
735 protected $inputDataType = '';
736
737
738 public function setInput(Google_Service_Prediction_InputInput $input)
739 {
740 $this->input = $input;
741 }
742 public function getInput()
743 {
744 return $this->input;
745 }
746 }
747
748 class Google_Service_Prediction_InputInput extends Google_Collection
749 {
750 protected $collection_key = 'csvInstance';
751 protected $internal_gapi_mappings = array(
752 );
753 public $csvInstance;
754
755
756 public function setCsvInstance($csvInstance)
757 {
758 $this->csvInstance = $csvInstance;
759 }
760 public function getCsvInstance()
761 {
762 return $this->csvInstance;
763 }
764 }
765
766 class Google_Service_Prediction_Insert extends Google_Collection
767 {
768 protected $collection_key = 'utility';
769 protected $internal_gapi_mappings = array(
770 );
771 public $id;
772 public $modelType;
773 public $sourceModel;
774 public $storageDataLocation;
775 public $storagePMMLLocation;
776 public $storagePMMLModelLocation;
777 protected $trainingInstancesType = 'Google_Service_Prediction_InsertTrainingInstances';
778 protected $trainingInstancesDataType = 'array';
779 public $utility;
780
781
782 public function setId($id)
783 {
784 $this->id = $id;
785 }
786 public function getId()
787 {
788 return $this->id;
789 }
790 public function setModelType($modelType)
791 {
792 $this->modelType = $modelType;
793 }
794 public function getModelType()
795 {
796 return $this->modelType;
797 }
798 public function setSourceModel($sourceModel)
799 {
800 $this->sourceModel = $sourceModel;
801 }
802 public function getSourceModel()
803 {
804 return $this->sourceModel;
805 }
806 public function setStorageDataLocation($storageDataLocation)
807 {
808 $this->storageDataLocation = $storageDataLocation;
809 }
810 public function getStorageDataLocation()
811 {
812 return $this->storageDataLocation;
813 }
814 public function setStoragePMMLLocation($storagePMMLLocation)
815 {
816 $this->storagePMMLLocation = $storagePMMLLocation;
817 }
818 public function getStoragePMMLLocation()
819 {
820 return $this->storagePMMLLocation;
821 }
822 public function setStoragePMMLModelLocation($storagePMMLModelLocation)
823 {
824 $this->storagePMMLModelLocation = $storagePMMLModelLocation;
825 }
826 public function getStoragePMMLModelLocation()
827 {
828 return $this->storagePMMLModelLocation;
829 }
830 public function setTrainingInstances($trainingInstances)
831 {
832 $this->trainingInstances = $trainingInstances;
833 }
834 public function getTrainingInstances()
835 {
836 return $this->trainingInstances;
837 }
838 public function setUtility($utility)
839 {
840 $this->utility = $utility;
841 }
842 public function getUtility()
843 {
844 return $this->utility;
845 }
846 }
847
848 class Google_Service_Prediction_Insert2 extends Google_Model
849 {
850 protected $internal_gapi_mappings = array(
851 );
852 public $created;
853 public $id;
854 public $kind;
855 protected $modelInfoType = 'Google_Service_Prediction_Insert2ModelInfo';
856 protected $modelInfoDataType = '';
857 public $modelType;
858 public $selfLink;
859 public $storageDataLocation;
860 public $storagePMMLLocation;
861 public $storagePMMLModelLocation;
862 public $trainingComplete;
863 public $trainingStatus;
864
865
866 public function setCreated($created)
867 {
868 $this->created = $created;
869 }
870 public function getCreated()
871 {
872 return $this->created;
873 }
874 public function setId($id)
875 {
876 $this->id = $id;
877 }
878 public function getId()
879 {
880 return $this->id;
881 }
882 public function setKind($kind)
883 {
884 $this->kind = $kind;
885 }
886 public function getKind()
887 {
888 return $this->kind;
889 }
890 public function setModelInfo(Google_Service_Prediction_Insert2ModelInfo $modelInfo)
891 {
892 $this->modelInfo = $modelInfo;
893 }
894 public function getModelInfo()
895 {
896 return $this->modelInfo;
897 }
898 public function setModelType($modelType)
899 {
900 $this->modelType = $modelType;
901 }
902 public function getModelType()
903 {
904 return $this->modelType;
905 }
906 public function setSelfLink($selfLink)
907 {
908 $this->selfLink = $selfLink;
909 }
910 public function getSelfLink()
911 {
912 return $this->selfLink;
913 }
914 public function setStorageDataLocation($storageDataLocation)
915 {
916 $this->storageDataLocation = $storageDataLocation;
917 }
918 public function getStorageDataLocation()
919 {
920 return $this->storageDataLocation;
921 }
922 public function setStoragePMMLLocation($storagePMMLLocation)
923 {
924 $this->storagePMMLLocation = $storagePMMLLocation;
925 }
926 public function getStoragePMMLLocation()
927 {
928 return $this->storagePMMLLocation;
929 }
930 public function setStoragePMMLModelLocation($storagePMMLModelLocation)
931 {
932 $this->storagePMMLModelLocation = $storagePMMLModelLocation;
933 }
934 public function getStoragePMMLModelLocation()
935 {
936 return $this->storagePMMLModelLocation;
937 }
938 public function setTrainingComplete($trainingComplete)
939 {
940 $this->trainingComplete = $trainingComplete;
941 }
942 public function getTrainingComplete()
943 {
944 return $this->trainingComplete;
945 }
946 public function setTrainingStatus($trainingStatus)
947 {
948 $this->trainingStatus = $trainingStatus;
949 }
950 public function getTrainingStatus()
951 {
952 return $this->trainingStatus;
953 }
954 }
955
956 class Google_Service_Prediction_Insert2ModelInfo extends Google_Model
957 {
958 protected $internal_gapi_mappings = array(
959 );
960 public $classWeightedAccuracy;
961 public $classificationAccuracy;
962 public $meanSquaredError;
963 public $modelType;
964 public $numberInstances;
965 public $numberLabels;
966
967
968 public function setClassWeightedAccuracy($classWeightedAccuracy)
969 {
970 $this->classWeightedAccuracy = $classWeightedAccuracy;
971 }
972 public function getClassWeightedAccuracy()
973 {
974 return $this->classWeightedAccuracy;
975 }
976 public function setClassificationAccuracy($classificationAccuracy)
977 {
978 $this->classificationAccuracy = $classificationAccuracy;
979 }
980 public function getClassificationAccuracy()
981 {
982 return $this->classificationAccuracy;
983 }
984 public function setMeanSquaredError($meanSquaredError)
985 {
986 $this->meanSquaredError = $meanSquaredError;
987 }
988 public function getMeanSquaredError()
989 {
990 return $this->meanSquaredError;
991 }
992 public function setModelType($modelType)
993 {
994 $this->modelType = $modelType;
995 }
996 public function getModelType()
997 {
998 return $this->modelType;
999 }
1000 public function setNumberInstances($numberInstances)
1001 {
1002 $this->numberInstances = $numberInstances;
1003 }
1004 public function getNumberInstances()
1005 {
1006 return $this->numberInstances;
1007 }
1008 public function setNumberLabels($numberLabels)
1009 {
1010 $this->numberLabels = $numberLabels;
1011 }
1012 public function getNumberLabels()
1013 {
1014 return $this->numberLabels;
1015 }
1016 }
1017
1018 class Google_Service_Prediction_InsertTrainingInstances extends Google_Collection
1019 {
1020 protected $collection_key = 'csvInstance';
1021 protected $internal_gapi_mappings = array(
1022 );
1023 public $csvInstance;
1024 public $output;
1025
1026
1027 public function setCsvInstance($csvInstance)
1028 {
1029 $this->csvInstance = $csvInstance;
1030 }
1031 public function getCsvInstance()
1032 {
1033 return $this->csvInstance;
1034 }
1035 public function setOutput($output)
1036 {
1037 $this->output = $output;
1038 }
1039 public function getOutput()
1040 {
1041 return $this->output;
1042 }
1043 }
1044
1045 class Google_Service_Prediction_Output extends Google_Collection
1046 {
1047 protected $collection_key = 'outputMulti';
1048 protected $internal_gapi_mappings = array(
1049 );
1050 public $id;
1051 public $kind;
1052 public $outputLabel;
1053 protected $outputMultiType = 'Google_Service_Prediction_OutputOutputMulti';
1054 protected $outputMultiDataType = 'array';
1055 public $outputValue;
1056 public $selfLink;
1057
1058
1059 public function setId($id)
1060 {
1061 $this->id = $id;
1062 }
1063 public function getId()
1064 {
1065 return $this->id;
1066 }
1067 public function setKind($kind)
1068 {
1069 $this->kind = $kind;
1070 }
1071 public function getKind()
1072 {
1073 return $this->kind;
1074 }
1075 public function setOutputLabel($outputLabel)
1076 {
1077 $this->outputLabel = $outputLabel;
1078 }
1079 public function getOutputLabel()
1080 {
1081 return $this->outputLabel;
1082 }
1083 public function setOutputMulti($outputMulti)
1084 {
1085 $this->outputMulti = $outputMulti;
1086 }
1087 public function getOutputMulti()
1088 {
1089 return $this->outputMulti;
1090 }
1091 public function setOutputValue($outputValue)
1092 {
1093 $this->outputValue = $outputValue;
1094 }
1095 public function getOutputValue()
1096 {
1097 return $this->outputValue;
1098 }
1099 public function setSelfLink($selfLink)
1100 {
1101 $this->selfLink = $selfLink;
1102 }
1103 public function getSelfLink()
1104 {
1105 return $this->selfLink;
1106 }
1107 }
1108
1109 class Google_Service_Prediction_OutputOutputMulti extends Google_Model
1110 {
1111 protected $internal_gapi_mappings = array(
1112 );
1113 public $label;
1114 public $score;
1115
1116
1117 public function setLabel($label)
1118 {
1119 $this->label = $label;
1120 }
1121 public function getLabel()
1122 {
1123 return $this->label;
1124 }
1125 public function setScore($score)
1126 {
1127 $this->score = $score;
1128 }
1129 public function getScore()
1130 {
1131 return $this->score;
1132 }
1133 }
1134
1135 class Google_Service_Prediction_PredictionList extends Google_Collection
1136 {
1137 protected $collection_key = 'items';
1138 protected $internal_gapi_mappings = array(
1139 );
1140 protected $itemsType = 'Google_Service_Prediction_Insert2';
1141 protected $itemsDataType = 'array';
1142 public $kind;
1143 public $nextPageToken;
1144 public $selfLink;
1145
1146
1147 public function setItems($items)
1148 {
1149 $this->items = $items;
1150 }
1151 public function getItems()
1152 {
1153 return $this->items;
1154 }
1155 public function setKind($kind)
1156 {
1157 $this->kind = $kind;
1158 }
1159 public function getKind()
1160 {
1161 return $this->kind;
1162 }
1163 public function setNextPageToken($nextPageToken)
1164 {
1165 $this->nextPageToken = $nextPageToken;
1166 }
1167 public function getNextPageToken()
1168 {
1169 return $this->nextPageToken;
1170 }
1171 public function setSelfLink($selfLink)
1172 {
1173 $this->selfLink = $selfLink;
1174 }
1175 public function getSelfLink()
1176 {
1177 return $this->selfLink;
1178 }
1179 }
1180
1181 class Google_Service_Prediction_Update extends Google_Collection
1182 {
1183 protected $collection_key = 'csvInstance';
1184 protected $internal_gapi_mappings = array(
1185 );
1186 public $csvInstance;
1187 public $output;
1188
1189
1190 public function setCsvInstance($csvInstance)
1191 {
1192 $this->csvInstance = $csvInstance;
1193 }
1194 public function getCsvInstance()
1195 {
1196 return $this->csvInstance;
1197 }
1198 public function setOutput($output)
1199 {
1200 $this->output = $output;
1201 }
1202 public function getOutput()
1203 {
1204 return $this->output;
1205 }
1206 }
1207