MDL-51531 libraries: Upgrade google libraries to 1.1.5
[moodle.git] / lib / google / src / Google / Service / Prediction.php
blobc57b41d0b367ef5352998fe10f75370f796ee282
1 <?php
2 /*
3 * Copyright 2010 Google Inc.
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
18 /**
19 * Service definition for Prediction (v1.6).
21 * <p>
22 * Lets you access a cloud hosted machine learning service that makes it easy to
23 * build smart apps</p>
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>
30 * @author Google, Inc.
32 class Google_Service_Prediction extends Google_Service
34 /** Manage your data and permissions in Google Cloud Storage. */
35 const DEVSTORAGE_FULL_CONTROL =
36 "https://www.googleapis.com/auth/devstorage.full_control";
37 /** View your data in Google Cloud Storage. */
38 const DEVSTORAGE_READ_ONLY =
39 "https://www.googleapis.com/auth/devstorage.read_only";
40 /** Manage your data in Google Cloud Storage. */
41 const DEVSTORAGE_READ_WRITE =
42 "https://www.googleapis.com/auth/devstorage.read_write";
43 /** Manage your data in the Google Prediction API. */
44 const PREDICTION =
45 "https://www.googleapis.com/auth/prediction";
47 public $hostedmodels;
48 public $trainedmodels;
51 /**
52 * Constructs the internal representation of the Prediction service.
54 * @param Google_Client $client
56 public function __construct(Google_Client $client)
58 parent::__construct($client);
59 $this->rootUrl = 'https://www.googleapis.com/';
60 $this->servicePath = 'prediction/v1.6/projects/';
61 $this->version = 'v1.6';
62 $this->serviceName = 'prediction';
64 $this->hostedmodels = new Google_Service_Prediction_Hostedmodels_Resource(
65 $this,
66 $this->serviceName,
67 'hostedmodels',
68 array(
69 'methods' => array(
70 'predict' => array(
71 'path' => '{project}/hostedmodels/{hostedModelName}/predict',
72 'httpMethod' => 'POST',
73 'parameters' => array(
74 'project' => array(
75 'location' => 'path',
76 'type' => 'string',
77 'required' => true,
79 'hostedModelName' => array(
80 'location' => 'path',
81 'type' => 'string',
82 'required' => true,
89 $this->trainedmodels = new Google_Service_Prediction_Trainedmodels_Resource(
90 $this,
91 $this->serviceName,
92 'trainedmodels',
93 array(
94 'methods' => array(
95 'analyze' => array(
96 'path' => '{project}/trainedmodels/{id}/analyze',
97 'httpMethod' => 'GET',
98 'parameters' => array(
99 'project' => array(
100 'location' => 'path',
101 'type' => 'string',
102 'required' => true,
104 'id' => array(
105 'location' => 'path',
106 'type' => 'string',
107 'required' => true,
110 ),'delete' => array(
111 'path' => '{project}/trainedmodels/{id}',
112 'httpMethod' => 'DELETE',
113 'parameters' => array(
114 'project' => array(
115 'location' => 'path',
116 'type' => 'string',
117 'required' => true,
119 'id' => array(
120 'location' => 'path',
121 'type' => 'string',
122 'required' => true,
125 ),'get' => array(
126 'path' => '{project}/trainedmodels/{id}',
127 'httpMethod' => 'GET',
128 'parameters' => array(
129 'project' => array(
130 'location' => 'path',
131 'type' => 'string',
132 'required' => true,
134 'id' => array(
135 'location' => 'path',
136 'type' => 'string',
137 'required' => true,
140 ),'insert' => array(
141 'path' => '{project}/trainedmodels',
142 'httpMethod' => 'POST',
143 'parameters' => array(
144 'project' => array(
145 'location' => 'path',
146 'type' => 'string',
147 'required' => true,
150 ),'list' => array(
151 'path' => '{project}/trainedmodels/list',
152 'httpMethod' => 'GET',
153 'parameters' => array(
154 'project' => array(
155 'location' => 'path',
156 'type' => 'string',
157 'required' => true,
159 'pageToken' => array(
160 'location' => 'query',
161 'type' => 'string',
163 'maxResults' => array(
164 'location' => 'query',
165 'type' => 'integer',
168 ),'predict' => array(
169 'path' => '{project}/trainedmodels/{id}/predict',
170 'httpMethod' => 'POST',
171 'parameters' => array(
172 'project' => array(
173 'location' => 'path',
174 'type' => 'string',
175 'required' => true,
177 'id' => array(
178 'location' => 'path',
179 'type' => 'string',
180 'required' => true,
183 ),'update' => array(
184 'path' => '{project}/trainedmodels/{id}',
185 'httpMethod' => 'PUT',
186 'parameters' => array(
187 'project' => array(
188 'location' => 'path',
189 'type' => 'string',
190 'required' => true,
192 'id' => array(
193 'location' => 'path',
194 'type' => 'string',
195 'required' => true,
207 * The "hostedmodels" collection of methods.
208 * Typical usage is:
209 * <code>
210 * $predictionService = new Google_Service_Prediction(...);
211 * $hostedmodels = $predictionService->hostedmodels;
212 * </code>
214 class Google_Service_Prediction_Hostedmodels_Resource extends Google_Service_Resource
218 * Submit input and request an output against a hosted model.
219 * (hostedmodels.predict)
221 * @param string $project The project associated with the model.
222 * @param string $hostedModelName The name of a hosted model.
223 * @param Google_Input $postBody
224 * @param array $optParams Optional parameters.
225 * @return Google_Service_Prediction_Output
227 public function predict($project, $hostedModelName, Google_Service_Prediction_Input $postBody, $optParams = array())
229 $params = array('project' => $project, 'hostedModelName' => $hostedModelName, 'postBody' => $postBody);
230 $params = array_merge($params, $optParams);
231 return $this->call('predict', array($params), "Google_Service_Prediction_Output");
236 * The "trainedmodels" collection of methods.
237 * Typical usage is:
238 * <code>
239 * $predictionService = new Google_Service_Prediction(...);
240 * $trainedmodels = $predictionService->trainedmodels;
241 * </code>
243 class Google_Service_Prediction_Trainedmodels_Resource extends Google_Service_Resource
247 * Get analysis of the model and the data the model was trained on.
248 * (trainedmodels.analyze)
250 * @param string $project The project associated with the model.
251 * @param string $id The unique name for the predictive model.
252 * @param array $optParams Optional parameters.
253 * @return Google_Service_Prediction_Analyze
255 public function analyze($project, $id, $optParams = array())
257 $params = array('project' => $project, 'id' => $id);
258 $params = array_merge($params, $optParams);
259 return $this->call('analyze', array($params), "Google_Service_Prediction_Analyze");
263 * Delete a trained model. (trainedmodels.delete)
265 * @param string $project The project associated with the model.
266 * @param string $id The unique name for the predictive model.
267 * @param array $optParams Optional parameters.
269 public function delete($project, $id, $optParams = array())
271 $params = array('project' => $project, 'id' => $id);
272 $params = array_merge($params, $optParams);
273 return $this->call('delete', array($params));
277 * Check training status of your model. (trainedmodels.get)
279 * @param string $project The project associated with the model.
280 * @param string $id The unique name for the predictive model.
281 * @param array $optParams Optional parameters.
282 * @return Google_Service_Prediction_Insert2
284 public function get($project, $id, $optParams = array())
286 $params = array('project' => $project, 'id' => $id);
287 $params = array_merge($params, $optParams);
288 return $this->call('get', array($params), "Google_Service_Prediction_Insert2");
292 * Train a Prediction API model. (trainedmodels.insert)
294 * @param string $project The project associated with the model.
295 * @param Google_Insert $postBody
296 * @param array $optParams Optional parameters.
297 * @return Google_Service_Prediction_Insert2
299 public function insert($project, Google_Service_Prediction_Insert $postBody, $optParams = array())
301 $params = array('project' => $project, 'postBody' => $postBody);
302 $params = array_merge($params, $optParams);
303 return $this->call('insert', array($params), "Google_Service_Prediction_Insert2");
307 * List available models. (trainedmodels.listTrainedmodels)
309 * @param string $project The project associated with the model.
310 * @param array $optParams Optional parameters.
312 * @opt_param string pageToken Pagination token.
313 * @opt_param string maxResults Maximum number of results to return.
314 * @return Google_Service_Prediction_PredictionList
316 public function listTrainedmodels($project, $optParams = array())
318 $params = array('project' => $project);
319 $params = array_merge($params, $optParams);
320 return $this->call('list', array($params), "Google_Service_Prediction_PredictionList");
324 * Submit model id and request a prediction. (trainedmodels.predict)
326 * @param string $project The project associated with the model.
327 * @param string $id The unique name for the predictive model.
328 * @param Google_Input $postBody
329 * @param array $optParams Optional parameters.
330 * @return Google_Service_Prediction_Output
332 public function predict($project, $id, Google_Service_Prediction_Input $postBody, $optParams = array())
334 $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody);
335 $params = array_merge($params, $optParams);
336 return $this->call('predict', array($params), "Google_Service_Prediction_Output");
340 * Add new data to a trained model. (trainedmodels.update)
342 * @param string $project The project associated with the model.
343 * @param string $id The unique name for the predictive model.
344 * @param Google_Update $postBody
345 * @param array $optParams Optional parameters.
346 * @return Google_Service_Prediction_Insert2
348 public function update($project, $id, Google_Service_Prediction_Update $postBody, $optParams = array())
350 $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody);
351 $params = array_merge($params, $optParams);
352 return $this->call('update', array($params), "Google_Service_Prediction_Insert2");
359 class Google_Service_Prediction_Analyze extends Google_Collection
361 protected $collection_key = 'errors';
362 protected $internal_gapi_mappings = array(
364 protected $dataDescriptionType = 'Google_Service_Prediction_AnalyzeDataDescription';
365 protected $dataDescriptionDataType = '';
366 public $errors;
367 public $id;
368 public $kind;
369 protected $modelDescriptionType = 'Google_Service_Prediction_AnalyzeModelDescription';
370 protected $modelDescriptionDataType = '';
371 public $selfLink;
374 public function setDataDescription(Google_Service_Prediction_AnalyzeDataDescription $dataDescription)
376 $this->dataDescription = $dataDescription;
378 public function getDataDescription()
380 return $this->dataDescription;
382 public function setErrors($errors)
384 $this->errors = $errors;
386 public function getErrors()
388 return $this->errors;
390 public function setId($id)
392 $this->id = $id;
394 public function getId()
396 return $this->id;
398 public function setKind($kind)
400 $this->kind = $kind;
402 public function getKind()
404 return $this->kind;
406 public function setModelDescription(Google_Service_Prediction_AnalyzeModelDescription $modelDescription)
408 $this->modelDescription = $modelDescription;
410 public function getModelDescription()
412 return $this->modelDescription;
414 public function setSelfLink($selfLink)
416 $this->selfLink = $selfLink;
418 public function getSelfLink()
420 return $this->selfLink;
424 class Google_Service_Prediction_AnalyzeDataDescription extends Google_Collection
426 protected $collection_key = 'features';
427 protected $internal_gapi_mappings = array(
429 protected $featuresType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeatures';
430 protected $featuresDataType = 'array';
431 protected $outputFeatureType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature';
432 protected $outputFeatureDataType = '';
435 public function setFeatures($features)
437 $this->features = $features;
439 public function getFeatures()
441 return $this->features;
443 public function setOutputFeature(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature $outputFeature)
445 $this->outputFeature = $outputFeature;
447 public function getOutputFeature()
449 return $this->outputFeature;
453 class Google_Service_Prediction_AnalyzeDataDescriptionFeatures extends Google_Model
455 protected $internal_gapi_mappings = array(
457 protected $categoricalType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical';
458 protected $categoricalDataType = '';
459 public $index;
460 protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric';
461 protected $numericDataType = '';
462 protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText';
463 protected $textDataType = '';
466 public function setCategorical(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical $categorical)
468 $this->categorical = $categorical;
470 public function getCategorical()
472 return $this->categorical;
474 public function setIndex($index)
476 $this->index = $index;
478 public function getIndex()
480 return $this->index;
482 public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric $numeric)
484 $this->numeric = $numeric;
486 public function getNumeric()
488 return $this->numeric;
490 public function setText(Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText $text)
492 $this->text = $text;
494 public function getText()
496 return $this->text;
500 class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategorical extends Google_Collection
502 protected $collection_key = 'values';
503 protected $internal_gapi_mappings = array(
505 public $count;
506 protected $valuesType = 'Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues';
507 protected $valuesDataType = 'array';
510 public function setCount($count)
512 $this->count = $count;
514 public function getCount()
516 return $this->count;
518 public function setValues($values)
520 $this->values = $values;
522 public function getValues()
524 return $this->values;
528 class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesCategoricalValues extends Google_Model
530 protected $internal_gapi_mappings = array(
532 public $count;
533 public $value;
536 public function setCount($count)
538 $this->count = $count;
540 public function getCount()
542 return $this->count;
544 public function setValue($value)
546 $this->value = $value;
548 public function getValue()
550 return $this->value;
554 class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesNumeric extends Google_Model
556 protected $internal_gapi_mappings = array(
558 public $count;
559 public $mean;
560 public $variance;
563 public function setCount($count)
565 $this->count = $count;
567 public function getCount()
569 return $this->count;
571 public function setMean($mean)
573 $this->mean = $mean;
575 public function getMean()
577 return $this->mean;
579 public function setVariance($variance)
581 $this->variance = $variance;
583 public function getVariance()
585 return $this->variance;
589 class Google_Service_Prediction_AnalyzeDataDescriptionFeaturesText extends Google_Model
591 protected $internal_gapi_mappings = array(
593 public $count;
596 public function setCount($count)
598 $this->count = $count;
600 public function getCount()
602 return $this->count;
606 class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeature extends Google_Collection
608 protected $collection_key = 'text';
609 protected $internal_gapi_mappings = array(
611 protected $numericType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric';
612 protected $numericDataType = '';
613 protected $textType = 'Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText';
614 protected $textDataType = 'array';
617 public function setNumeric(Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric $numeric)
619 $this->numeric = $numeric;
621 public function getNumeric()
623 return $this->numeric;
625 public function setText($text)
627 $this->text = $text;
629 public function getText()
631 return $this->text;
635 class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureNumeric extends Google_Model
637 protected $internal_gapi_mappings = array(
639 public $count;
640 public $mean;
641 public $variance;
644 public function setCount($count)
646 $this->count = $count;
648 public function getCount()
650 return $this->count;
652 public function setMean($mean)
654 $this->mean = $mean;
656 public function getMean()
658 return $this->mean;
660 public function setVariance($variance)
662 $this->variance = $variance;
664 public function getVariance()
666 return $this->variance;
670 class Google_Service_Prediction_AnalyzeDataDescriptionOutputFeatureText extends Google_Model
672 protected $internal_gapi_mappings = array(
674 public $count;
675 public $value;
678 public function setCount($count)
680 $this->count = $count;
682 public function getCount()
684 return $this->count;
686 public function setValue($value)
688 $this->value = $value;
690 public function getValue()
692 return $this->value;
696 class Google_Service_Prediction_AnalyzeErrors extends Google_Model
700 class Google_Service_Prediction_AnalyzeModelDescription extends Google_Model
702 protected $internal_gapi_mappings = array(
704 public $confusionMatrix;
705 public $confusionMatrixRowTotals;
706 protected $modelinfoType = 'Google_Service_Prediction_Insert2';
707 protected $modelinfoDataType = '';
710 public function setConfusionMatrix($confusionMatrix)
712 $this->confusionMatrix = $confusionMatrix;
714 public function getConfusionMatrix()
716 return $this->confusionMatrix;
718 public function setConfusionMatrixRowTotals($confusionMatrixRowTotals)
720 $this->confusionMatrixRowTotals = $confusionMatrixRowTotals;
722 public function getConfusionMatrixRowTotals()
724 return $this->confusionMatrixRowTotals;
726 public function setModelinfo(Google_Service_Prediction_Insert2 $modelinfo)
728 $this->modelinfo = $modelinfo;
730 public function getModelinfo()
732 return $this->modelinfo;
736 class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrix extends Google_Model
740 class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixElement extends Google_Model
744 class Google_Service_Prediction_AnalyzeModelDescriptionConfusionMatrixRowTotals extends Google_Model
748 class Google_Service_Prediction_Input extends Google_Model
750 protected $internal_gapi_mappings = array(
752 protected $inputType = 'Google_Service_Prediction_InputInput';
753 protected $inputDataType = '';
756 public function setInput(Google_Service_Prediction_InputInput $input)
758 $this->input = $input;
760 public function getInput()
762 return $this->input;
766 class Google_Service_Prediction_InputInput extends Google_Collection
768 protected $collection_key = 'csvInstance';
769 protected $internal_gapi_mappings = array(
771 public $csvInstance;
774 public function setCsvInstance($csvInstance)
776 $this->csvInstance = $csvInstance;
778 public function getCsvInstance()
780 return $this->csvInstance;
784 class Google_Service_Prediction_Insert extends Google_Collection
786 protected $collection_key = 'utility';
787 protected $internal_gapi_mappings = array(
789 public $id;
790 public $modelType;
791 public $sourceModel;
792 public $storageDataLocation;
793 public $storagePMMLLocation;
794 public $storagePMMLModelLocation;
795 protected $trainingInstancesType = 'Google_Service_Prediction_InsertTrainingInstances';
796 protected $trainingInstancesDataType = 'array';
797 public $utility;
800 public function setId($id)
802 $this->id = $id;
804 public function getId()
806 return $this->id;
808 public function setModelType($modelType)
810 $this->modelType = $modelType;
812 public function getModelType()
814 return $this->modelType;
816 public function setSourceModel($sourceModel)
818 $this->sourceModel = $sourceModel;
820 public function getSourceModel()
822 return $this->sourceModel;
824 public function setStorageDataLocation($storageDataLocation)
826 $this->storageDataLocation = $storageDataLocation;
828 public function getStorageDataLocation()
830 return $this->storageDataLocation;
832 public function setStoragePMMLLocation($storagePMMLLocation)
834 $this->storagePMMLLocation = $storagePMMLLocation;
836 public function getStoragePMMLLocation()
838 return $this->storagePMMLLocation;
840 public function setStoragePMMLModelLocation($storagePMMLModelLocation)
842 $this->storagePMMLModelLocation = $storagePMMLModelLocation;
844 public function getStoragePMMLModelLocation()
846 return $this->storagePMMLModelLocation;
848 public function setTrainingInstances($trainingInstances)
850 $this->trainingInstances = $trainingInstances;
852 public function getTrainingInstances()
854 return $this->trainingInstances;
856 public function setUtility($utility)
858 $this->utility = $utility;
860 public function getUtility()
862 return $this->utility;
866 class Google_Service_Prediction_Insert2 extends Google_Model
868 protected $internal_gapi_mappings = array(
870 public $created;
871 public $id;
872 public $kind;
873 protected $modelInfoType = 'Google_Service_Prediction_Insert2ModelInfo';
874 protected $modelInfoDataType = '';
875 public $modelType;
876 public $selfLink;
877 public $storageDataLocation;
878 public $storagePMMLLocation;
879 public $storagePMMLModelLocation;
880 public $trainingComplete;
881 public $trainingStatus;
884 public function setCreated($created)
886 $this->created = $created;
888 public function getCreated()
890 return $this->created;
892 public function setId($id)
894 $this->id = $id;
896 public function getId()
898 return $this->id;
900 public function setKind($kind)
902 $this->kind = $kind;
904 public function getKind()
906 return $this->kind;
908 public function setModelInfo(Google_Service_Prediction_Insert2ModelInfo $modelInfo)
910 $this->modelInfo = $modelInfo;
912 public function getModelInfo()
914 return $this->modelInfo;
916 public function setModelType($modelType)
918 $this->modelType = $modelType;
920 public function getModelType()
922 return $this->modelType;
924 public function setSelfLink($selfLink)
926 $this->selfLink = $selfLink;
928 public function getSelfLink()
930 return $this->selfLink;
932 public function setStorageDataLocation($storageDataLocation)
934 $this->storageDataLocation = $storageDataLocation;
936 public function getStorageDataLocation()
938 return $this->storageDataLocation;
940 public function setStoragePMMLLocation($storagePMMLLocation)
942 $this->storagePMMLLocation = $storagePMMLLocation;
944 public function getStoragePMMLLocation()
946 return $this->storagePMMLLocation;
948 public function setStoragePMMLModelLocation($storagePMMLModelLocation)
950 $this->storagePMMLModelLocation = $storagePMMLModelLocation;
952 public function getStoragePMMLModelLocation()
954 return $this->storagePMMLModelLocation;
956 public function setTrainingComplete($trainingComplete)
958 $this->trainingComplete = $trainingComplete;
960 public function getTrainingComplete()
962 return $this->trainingComplete;
964 public function setTrainingStatus($trainingStatus)
966 $this->trainingStatus = $trainingStatus;
968 public function getTrainingStatus()
970 return $this->trainingStatus;
974 class Google_Service_Prediction_Insert2ModelInfo extends Google_Model
976 protected $internal_gapi_mappings = array(
978 public $classWeightedAccuracy;
979 public $classificationAccuracy;
980 public $meanSquaredError;
981 public $modelType;
982 public $numberInstances;
983 public $numberLabels;
986 public function setClassWeightedAccuracy($classWeightedAccuracy)
988 $this->classWeightedAccuracy = $classWeightedAccuracy;
990 public function getClassWeightedAccuracy()
992 return $this->classWeightedAccuracy;
994 public function setClassificationAccuracy($classificationAccuracy)
996 $this->classificationAccuracy = $classificationAccuracy;
998 public function getClassificationAccuracy()
1000 return $this->classificationAccuracy;
1002 public function setMeanSquaredError($meanSquaredError)
1004 $this->meanSquaredError = $meanSquaredError;
1006 public function getMeanSquaredError()
1008 return $this->meanSquaredError;
1010 public function setModelType($modelType)
1012 $this->modelType = $modelType;
1014 public function getModelType()
1016 return $this->modelType;
1018 public function setNumberInstances($numberInstances)
1020 $this->numberInstances = $numberInstances;
1022 public function getNumberInstances()
1024 return $this->numberInstances;
1026 public function setNumberLabels($numberLabels)
1028 $this->numberLabels = $numberLabels;
1030 public function getNumberLabels()
1032 return $this->numberLabels;
1036 class Google_Service_Prediction_InsertTrainingInstances extends Google_Collection
1038 protected $collection_key = 'csvInstance';
1039 protected $internal_gapi_mappings = array(
1041 public $csvInstance;
1042 public $output;
1045 public function setCsvInstance($csvInstance)
1047 $this->csvInstance = $csvInstance;
1049 public function getCsvInstance()
1051 return $this->csvInstance;
1053 public function setOutput($output)
1055 $this->output = $output;
1057 public function getOutput()
1059 return $this->output;
1063 class Google_Service_Prediction_InsertUtility extends Google_Model
1067 class Google_Service_Prediction_Output extends Google_Collection
1069 protected $collection_key = 'outputMulti';
1070 protected $internal_gapi_mappings = array(
1072 public $id;
1073 public $kind;
1074 public $outputLabel;
1075 protected $outputMultiType = 'Google_Service_Prediction_OutputOutputMulti';
1076 protected $outputMultiDataType = 'array';
1077 public $outputValue;
1078 public $selfLink;
1081 public function setId($id)
1083 $this->id = $id;
1085 public function getId()
1087 return $this->id;
1089 public function setKind($kind)
1091 $this->kind = $kind;
1093 public function getKind()
1095 return $this->kind;
1097 public function setOutputLabel($outputLabel)
1099 $this->outputLabel = $outputLabel;
1101 public function getOutputLabel()
1103 return $this->outputLabel;
1105 public function setOutputMulti($outputMulti)
1107 $this->outputMulti = $outputMulti;
1109 public function getOutputMulti()
1111 return $this->outputMulti;
1113 public function setOutputValue($outputValue)
1115 $this->outputValue = $outputValue;
1117 public function getOutputValue()
1119 return $this->outputValue;
1121 public function setSelfLink($selfLink)
1123 $this->selfLink = $selfLink;
1125 public function getSelfLink()
1127 return $this->selfLink;
1131 class Google_Service_Prediction_OutputOutputMulti extends Google_Model
1133 protected $internal_gapi_mappings = array(
1135 public $label;
1136 public $score;
1139 public function setLabel($label)
1141 $this->label = $label;
1143 public function getLabel()
1145 return $this->label;
1147 public function setScore($score)
1149 $this->score = $score;
1151 public function getScore()
1153 return $this->score;
1157 class Google_Service_Prediction_PredictionList extends Google_Collection
1159 protected $collection_key = 'items';
1160 protected $internal_gapi_mappings = array(
1162 protected $itemsType = 'Google_Service_Prediction_Insert2';
1163 protected $itemsDataType = 'array';
1164 public $kind;
1165 public $nextPageToken;
1166 public $selfLink;
1169 public function setItems($items)
1171 $this->items = $items;
1173 public function getItems()
1175 return $this->items;
1177 public function setKind($kind)
1179 $this->kind = $kind;
1181 public function getKind()
1183 return $this->kind;
1185 public function setNextPageToken($nextPageToken)
1187 $this->nextPageToken = $nextPageToken;
1189 public function getNextPageToken()
1191 return $this->nextPageToken;
1193 public function setSelfLink($selfLink)
1195 $this->selfLink = $selfLink;
1197 public function getSelfLink()
1199 return $this->selfLink;
1203 class Google_Service_Prediction_Update extends Google_Collection
1205 protected $collection_key = 'csvInstance';
1206 protected $internal_gapi_mappings = array(
1208 public $csvInstance;
1209 public $output;
1212 public function setCsvInstance($csvInstance)
1214 $this->csvInstance = $csvInstance;
1216 public function getCsvInstance()
1218 return $this->csvInstance;
1220 public function setOutput($output)
1222 $this->output = $output;
1224 public function getOutput()
1226 return $this->output;