PluginProbe
Authorizer / 2.2
Authorizer v2.2
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 / inc / google-api-php-client / src / Google / Service / Prediction.php

Prediction.php in Authorizer 2.2, at inc/google-api-php-client/src/Google/Service/Prediction.php

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