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  /**
18   * The "hostedmodels" collection of methods.
19   * Typical usage is:
20   *  <code>
21   *   $predictionService = new Google_PredictionService(...);
22   *   $hostedmodels = $predictionService->hostedmodels;
23   *  </code>
24   */
25  class Google_HostedmodelsServiceResource extends Google_ServiceResource {
26
27    /**
28     * Submit input and request an output against a hosted model. (hostedmodels.predict)
29     *
30     * @param string $project The project associated with the model.
31     * @param string $hostedModelName The name of a hosted model.
32     * @param Google_Input $postBody
33     * @param array $optParams Optional parameters.
34     * @return Google_Output
35     */
36    public function predict($project, $hostedModelName, Google_Input $postBody, $optParams = array()) {
37      $params = array('project' => $project, 'hostedModelName' => $hostedModelName, 'postBody' => $postBody);
38      $params = array_merge($params, $optParams);
39      $data = $this->__call('predict', array($params));
40      if ($this->useObjects()) {
41        return new Google_Output($data);
42      } else {
43        return $data;
44      }
45    }
46  }
47
48  /**
49   * The "trainedmodels" collection of methods.
50   * Typical usage is:
51   *  <code>
52   *   $predictionService = new Google_PredictionService(...);
53   *   $trainedmodels = $predictionService->trainedmodels;
54   *  </code>
55   */
56  class Google_TrainedmodelsServiceResource extends Google_ServiceResource {
57
58    /**
59     * Get analysis of the model and the data the model was trained on. (trainedmodels.analyze)
60     *
61     * @param string $project The project associated with the model.
62     * @param string $id The unique name for the predictive model.
63     * @param array $optParams Optional parameters.
64     * @return Google_Analyze
65     */
66    public function analyze($project, $id, $optParams = array()) {
67      $params = array('project' => $project, 'id' => $id);
68      $params = array_merge($params, $optParams);
69      $data = $this->__call('analyze', array($params));
70      if ($this->useObjects()) {
71        return new Google_Analyze($data);
72      } else {
73        return $data;
74      }
75    }
76    /**
77     * Delete a trained model. (trainedmodels.delete)
78     *
79     * @param string $project The project associated with the model.
80     * @param string $id The unique name for the predictive model.
81     * @param array $optParams Optional parameters.
82     */
83    public function delete($project, $id, $optParams = array()) {
84      $params = array('project' => $project, 'id' => $id);
85      $params = array_merge($params, $optParams);
86      $data = $this->__call('delete', array($params));
87      return $data;
88    }
89    /**
90     * Check training status of your model. (trainedmodels.get)
91     *
92     * @param string $project The project associated with the model.
93     * @param string $id The unique name for the predictive model.
94     * @param array $optParams Optional parameters.
95     * @return Google_Insert2
96     */
97    public function get($project, $id, $optParams = array()) {
98      $params = array('project' => $project, 'id' => $id);
99      $params = array_merge($params, $optParams);
100      $data = $this->__call('get', array($params));
101      if ($this->useObjects()) {
102        return new Google_Insert2($data);
103      } else {
104        return $data;
105      }
106    }
107    /**
108     * Train a Prediction API model. (trainedmodels.insert)
109     *
110     * @param string $project The project associated with the model.
111     * @param Google_Insert $postBody
112     * @param array $optParams Optional parameters.
113     * @return Google_Insert2
114     */
115    public function insert($project, Google_Insert $postBody, $optParams = array()) {
116      $params = array('project' => $project, 'postBody' => $postBody);
117      $params = array_merge($params, $optParams);
118      $data = $this->__call('insert', array($params));
119      if ($this->useObjects()) {
120        return new Google_Insert2($data);
121      } else {
122        return $data;
123      }
124    }
125    /**
126     * List available models. (trainedmodels.list)
127     *
128     * @param string $project The project associated with the model.
129     * @param array $optParams Optional parameters.
130     *
131     * @opt_param string maxResults Maximum number of results to return.
132     * @opt_param string pageToken Pagination token.
133     * @return Google_PredictionList
134     */
135    public function listTrainedmodels($project, $optParams = array()) {
136      $params = array('project' => $project);
137      $params = array_merge($params, $optParams);
138      $data = $this->__call('list', array($params));
139      if ($this->useObjects()) {
140        return new Google_PredictionList($data);
141      } else {
142        return $data;
143      }
144    }
145    /**
146     * Submit model id and request a prediction. (trainedmodels.predict)
147     *
148     * @param string $project The project associated with the model.
149     * @param string $id The unique name for the predictive model.
150     * @param Google_Input $postBody
151     * @param array $optParams Optional parameters.
152     * @return Google_Output
153     */
154    public function predict($project, $id, Google_Input $postBody, $optParams = array()) {
155      $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody);
156      $params = array_merge($params, $optParams);
157      $data = $this->__call('predict', array($params));
158      if ($this->useObjects()) {
159        return new Google_Output($data);
160      } else {
161        return $data;
162      }
163    }
164    /**
165     * Add new data to a trained model. (trainedmodels.update)
166     *
167     * @param string $project The project associated with the model.
168     * @param string $id The unique name for the predictive model.
169     * @param Google_Update $postBody
170     * @param array $optParams Optional parameters.
171     * @return Google_Insert2
172     */
173    public function update($project, $id, Google_Update $postBody, $optParams = array()) {
174      $params = array('project' => $project, 'id' => $id, 'postBody' => $postBody);
175      $params = array_merge($params, $optParams);
176      $data = $this->__call('update', array($params));
177      if ($this->useObjects()) {
178        return new Google_Insert2($data);
179      } else {
180        return $data;
181      }
182    }
183  }
184
185/**
186 * Service definition for Google_Prediction (v1.6).
187 *
188 * <p>
189 * Lets you access a cloud hosted machine learning service that makes it easy to build smart apps
190 * </p>
191 *
192 * <p>
193 * For more information about this service, see the
194 * <a href="https://developers.google.com/prediction/docs/developer-guide" target="_blank">API Documentation</a>
195 * </p>
196 *
197 * @author Google, Inc.
198 */
199class Google_PredictionService extends Google_Service {
200  public $hostedmodels;
201  public $trainedmodels;
202  /**
203   * Constructs the internal representation of the Prediction service.
204   *
205   * @param Google_Client $client
206   */
207  public function __construct(Google_Client $client) {
208    $this->servicePath = 'prediction/v1.6/projects/';
209    $this->version = 'v1.6';
210    $this->serviceName = 'prediction';
211
212    $client->addService($this->serviceName, $this->version);
213    $this->hostedmodels = new Google_HostedmodelsServiceResource($this, $this->serviceName, 'hostedmodels', json_decode('{"methods": {"predict": {"id": "prediction.hostedmodels.predict", "path": "{project}/hostedmodels/{hostedModelName}/predict", "httpMethod": "POST", "parameters": {"hostedModelName": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Input"}, "response": {"$ref": "Output"}, "scopes": ["https://www.googleapis.com/auth/prediction"]}}}', true));
214    $this->trainedmodels = new Google_TrainedmodelsServiceResource($this, $this->serviceName, 'trainedmodels', json_decode('{"methods": {"analyze": {"id": "prediction.trainedmodels.analyze", "path": "{project}/trainedmodels/{id}/analyze", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Analyze"}, "scopes": ["https://www.googleapis.com/auth/prediction"]}, "delete": {"id": "prediction.trainedmodels.delete", "path": "{project}/trainedmodels/{id}", "httpMethod": "DELETE", "parameters": {"id": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/prediction"]}, "get": {"id": "prediction.trainedmodels.get", "path": "{project}/trainedmodels/{id}", "httpMethod": "GET", "parameters": {"id": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Insert2"}, "scopes": ["https://www.googleapis.com/auth/prediction"]}, "insert": {"id": "prediction.trainedmodels.insert", "path": "{project}/trainedmodels", "httpMethod": "POST", "parameters": {"project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Insert"}, "response": {"$ref": "Insert2"}, "scopes": ["https://www.googleapis.com/auth/devstorage.full_control", "https://www.googleapis.com/auth/devstorage.read_only", "https://www.googleapis.com/auth/devstorage.read_write", "https://www.googleapis.com/auth/prediction"]}, "list": {"id": "prediction.trainedmodels.list", "path": "{project}/trainedmodels/list", "httpMethod": "GET", "parameters": {"maxResults": {"type": "integer", "format": "uint32", "minimum": "0", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "project": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "List"}, "scopes": ["https://www.googleapis.com/auth/prediction"]}, "predict": {"id": "prediction.trainedmodels.predict", "path": "{project}/trainedmodels/{id}/predict", "httpMethod": "POST", "parameters": {"id": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Input"}, "response": {"$ref": "Output"}, "scopes": ["https://www.googleapis.com/auth/prediction"]}, "update": {"id": "prediction.trainedmodels.update", "path": "{project}/trainedmodels/{id}", "httpMethod": "PUT", "parameters": {"id": {"type": "string", "required": true, "location": "path"}, "project": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Update"}, "response": {"$ref": "Insert2"}, "scopes": ["https://www.googleapis.com/auth/prediction"]}}}', true));
215
216  }
217}
218
219
220
221class Google_Analyze extends Google_Model {
222  protected $__dataDescriptionType = 'Google_AnalyzeDataDescription';
223  protected $__dataDescriptionDataType = '';
224  public $dataDescription;
225  public $errors;
226  public $id;
227  public $kind;
228  protected $__modelDescriptionType = 'Google_AnalyzeModelDescription';
229  protected $__modelDescriptionDataType = '';
230  public $modelDescription;
231  public $selfLink;
232  public function setDataDescription(Google_AnalyzeDataDescription $dataDescription) {
233    $this->dataDescription = $dataDescription;
234  }
235  public function getDataDescription() {
236    return $this->dataDescription;
237  }
238  public function setErrors(/* array(Google_string) */ $errors) {
239    $this->assertIsArray($errors, 'Google_string', __METHOD__);
240    $this->errors = $errors;
241  }
242  public function getErrors() {
243    return $this->errors;
244  }
245  public function setId( $id) {
246    $this->id = $id;
247  }
248  public function getId() {
249    return $this->id;
250  }
251  public function setKind( $kind) {
252    $this->kind = $kind;
253  }
254  public function getKind() {
255    return $this->kind;
256  }
257  public function setModelDescription(Google_AnalyzeModelDescription $modelDescription) {
258    $this->modelDescription = $modelDescription;
259  }
260  public function getModelDescription() {
261    return $this->modelDescription;
262  }
263  public function setSelfLink( $selfLink) {
264    $this->selfLink = $selfLink;
265  }
266  public function getSelfLink() {
267    return $this->selfLink;
268  }
269}
270
271class Google_AnalyzeDataDescription extends Google_Model {
272  protected $__featuresType = 'Google_AnalyzeDataDescriptionFeatures';
273  protected $__featuresDataType = 'array';
274  public $features;
275  protected $__outputFeatureType = 'Google_AnalyzeDataDescriptionOutputFeature';
276  protected $__outputFeatureDataType = '';
277  public $outputFeature;
278  public function setFeatures(/* array(Google_AnalyzeDataDescriptionFeatures) */ $features) {
279    $this->assertIsArray($features, 'Google_AnalyzeDataDescriptionFeatures', __METHOD__);
280    $this->features = $features;
281  }
282  public function getFeatures() {
283    return $this->features;
284  }
285  public function setOutputFeature(Google_AnalyzeDataDescriptionOutputFeature $outputFeature) {
286    $this->outputFeature = $outputFeature;
287  }
288  public function getOutputFeature() {
289    return $this->outputFeature;
290  }
291}
292
293class Google_AnalyzeDataDescriptionFeatures extends Google_Model {
294  protected $__categoricalType = 'Google_AnalyzeDataDescriptionFeaturesCategorical';
295  protected $__categoricalDataType = '';
296  public $categorical;
297  public $index;
298  protected $__numericType = 'Google_AnalyzeDataDescriptionFeaturesNumeric';
299  protected $__numericDataType = '';
300  public $numeric;
301  protected $__textType = 'Google_AnalyzeDataDescriptionFeaturesText';
302  protected $__textDataType = '';
303  public $text;
304  public function setCategorical(Google_AnalyzeDataDescriptionFeaturesCategorical $categorical) {
305    $this->categorical = $categorical;
306  }
307  public function getCategorical() {
308    return $this->categorical;
309  }
310  public function setIndex( $index) {
311    $this->index = $index;
312  }
313  public function getIndex() {
314    return $this->index;
315  }
316  public function setNumeric(Google_AnalyzeDataDescriptionFeaturesNumeric $numeric) {
317    $this->numeric = $numeric;
318  }
319  public function getNumeric() {
320    return $this->numeric;
321  }
322  public function setText(Google_AnalyzeDataDescriptionFeaturesText $text) {
323    $this->text = $text;
324  }
325  public function getText() {
326    return $this->text;
327  }
328}
329
330class Google_AnalyzeDataDescriptionFeaturesCategorical extends Google_Model {
331  public $count;
332  protected $__valuesType = 'Google_AnalyzeDataDescriptionFeaturesCategoricalValues';
333  protected $__valuesDataType = 'array';
334  public $values;
335  public function setCount( $count) {
336    $this->count = $count;
337  }
338  public function getCount() {
339    return $this->count;
340  }
341  public function setValues(/* array(Google_AnalyzeDataDescriptionFeaturesCategoricalValues) */ $values) {
342    $this->assertIsArray($values, 'Google_AnalyzeDataDescriptionFeaturesCategoricalValues', __METHOD__);
343    $this->values = $values;
344  }
345  public function getValues() {
346    return $this->values;
347  }
348}
349
350class Google_AnalyzeDataDescriptionFeaturesCategoricalValues extends Google_Model {
351  public $count;
352  public $value;
353  public function setCount( $count) {
354    $this->count = $count;
355  }
356  public function getCount() {
357    return $this->count;
358  }
359  public function setValue( $value) {
360    $this->value = $value;
361  }
362  public function getValue() {
363    return $this->value;
364  }
365}
366
367class Google_AnalyzeDataDescriptionFeaturesNumeric extends Google_Model {
368  public $count;
369  public $mean;
370  public $variance;
371  public function setCount( $count) {
372    $this->count = $count;
373  }
374  public function getCount() {
375    return $this->count;
376  }
377  public function setMean( $mean) {
378    $this->mean = $mean;
379  }
380  public function getMean() {
381    return $this->mean;
382  }
383  public function setVariance( $variance) {
384    $this->variance = $variance;
385  }
386  public function getVariance() {
387    return $this->variance;
388  }
389}
390
391class Google_AnalyzeDataDescriptionFeaturesText extends Google_Model {
392  public $count;
393  public function setCount( $count) {
394    $this->count = $count;
395  }
396  public function getCount() {
397    return $this->count;
398  }
399}
400
401class Google_AnalyzeDataDescriptionOutputFeature extends Google_Model {
402  protected $__numericType = 'Google_AnalyzeDataDescriptionOutputFeatureNumeric';
403  protected $__numericDataType = '';
404  public $numeric;
405  protected $__textType = 'Google_AnalyzeDataDescriptionOutputFeatureText';
406  protected $__textDataType = 'array';
407  public $text;
408  public function setNumeric(Google_AnalyzeDataDescriptionOutputFeatureNumeric $numeric) {
409    $this->numeric = $numeric;
410  }
411  public function getNumeric() {
412    return $this->numeric;
413  }
414  public function setText(/* array(Google_AnalyzeDataDescriptionOutputFeatureText) */ $text) {
415    $this->assertIsArray($text, 'Google_AnalyzeDataDescriptionOutputFeatureText', __METHOD__);
416    $this->text = $text;
417  }
418  public function getText() {
419    return $this->text;
420  }
421}
422
423class Google_AnalyzeDataDescriptionOutputFeatureNumeric extends Google_Model {
424  public $count;
425  public $mean;
426  public $variance;
427  public function setCount( $count) {
428    $this->count = $count;
429  }
430  public function getCount() {
431    return $this->count;
432  }
433  public function setMean( $mean) {
434    $this->mean = $mean;
435  }
436  public function getMean() {
437    return $this->mean;
438  }
439  public function setVariance( $variance) {
440    $this->variance = $variance;
441  }
442  public function getVariance() {
443    return $this->variance;
444  }
445}
446
447class Google_AnalyzeDataDescriptionOutputFeatureText extends Google_Model {
448  public $count;
449  public $value;
450  public function setCount( $count) {
451    $this->count = $count;
452  }
453  public function getCount() {
454    return $this->count;
455  }
456  public function setValue( $value) {
457    $this->value = $value;
458  }
459  public function getValue() {
460    return $this->value;
461  }
462}
463
464class Google_AnalyzeModelDescription extends Google_Model {
465  public $confusionMatrix;
466  public $confusionMatrixRowTotals;
467  protected $__modelinfoType = 'Google_Insert2';
468  protected $__modelinfoDataType = '';
469  public $modelinfo;
470  public function setConfusionMatrix( $confusionMatrix) {
471    $this->confusionMatrix = $confusionMatrix;
472  }
473  public function getConfusionMatrix() {
474    return $this->confusionMatrix;
475  }
476  public function setConfusionMatrixRowTotals( $confusionMatrixRowTotals) {
477    $this->confusionMatrixRowTotals = $confusionMatrixRowTotals;
478  }
479  public function getConfusionMatrixRowTotals() {
480    return $this->confusionMatrixRowTotals;
481  }
482  public function setModelinfo(Google_Insert2 $modelinfo) {
483    $this->modelinfo = $modelinfo;
484  }
485  public function getModelinfo() {
486    return $this->modelinfo;
487  }
488}
489
490class Google_Input extends Google_Model {
491  protected $__inputType = 'Google_InputInput';
492  protected $__inputDataType = '';
493  public $input;
494  public function setInput(Google_InputInput $input) {
495    $this->input = $input;
496  }
497  public function getInput() {
498    return $this->input;
499  }
500}
501
502class Google_InputInput extends Google_Model {
503  public $csvInstance;
504  public function setCsvInstance(/* array(Google_object) */ $csvInstance) {
505    $this->assertIsArray($csvInstance, 'Google_object', __METHOD__);
506    $this->csvInstance = $csvInstance;
507  }
508  public function getCsvInstance() {
509    return $this->csvInstance;
510  }
511}
512
513class Google_Insert extends Google_Model {
514  public $id;
515  public $modelType;
516  public $sourceModel;
517  public $storageDataLocation;
518  public $storagePMMLLocation;
519  public $storagePMMLModelLocation;
520  protected $__trainingInstancesType = 'Google_InsertTrainingInstances';
521  protected $__trainingInstancesDataType = 'array';
522  public $trainingInstances;
523  public $utility;
524  public function setId( $id) {
525    $this->id = $id;
526  }
527  public function getId() {
528    return $this->id;
529  }
530  public function setModelType( $modelType) {
531    $this->modelType = $modelType;
532  }
533  public function getModelType() {
534    return $this->modelType;
535  }
536  public function setSourceModel( $sourceModel) {
537    $this->sourceModel = $sourceModel;
538  }
539  public function getSourceModel() {
540    return $this->sourceModel;
541  }
542  public function setStorageDataLocation( $storageDataLocation) {
543    $this->storageDataLocation = $storageDataLocation;
544  }
545  public function getStorageDataLocation() {
546    return $this->storageDataLocation;
547  }
548  public function setStoragePMMLLocation( $storagePMMLLocation) {
549    $this->storagePMMLLocation = $storagePMMLLocation;
550  }
551  public function getStoragePMMLLocation() {
552    return $this->storagePMMLLocation;
553  }
554  public function setStoragePMMLModelLocation( $storagePMMLModelLocation) {
555    $this->storagePMMLModelLocation = $storagePMMLModelLocation;
556  }
557  public function getStoragePMMLModelLocation() {
558    return $this->storagePMMLModelLocation;
559  }
560  public function setTrainingInstances(/* array(Google_InsertTrainingInstances) */ $trainingInstances) {
561    $this->assertIsArray($trainingInstances, 'Google_InsertTrainingInstances', __METHOD__);
562    $this->trainingInstances = $trainingInstances;
563  }
564  public function getTrainingInstances() {
565    return $this->trainingInstances;
566  }
567  public function setUtility(/* array(Google_double) */ $utility) {
568    $this->assertIsArray($utility, 'Google_double', __METHOD__);
569    $this->utility = $utility;
570  }
571  public function getUtility() {
572    return $this->utility;
573  }
574}
575
576class Google_Insert2 extends Google_Model {
577  public $created;
578  public $id;
579  public $kind;
580  protected $__modelInfoType = 'Google_Insert2ModelInfo';
581  protected $__modelInfoDataType = '';
582  public $modelInfo;
583  public $modelType;
584  public $selfLink;
585  public $storageDataLocation;
586  public $storagePMMLLocation;
587  public $storagePMMLModelLocation;
588  public $trainingComplete;
589  public $trainingStatus;
590  public function setCreated( $created) {
591    $this->created = $created;
592  }
593  public function getCreated() {
594    return $this->created;
595  }
596  public function setId( $id) {
597    $this->id = $id;
598  }
599  public function getId() {
600    return $this->id;
601  }
602  public function setKind( $kind) {
603    $this->kind = $kind;
604  }
605  public function getKind() {
606    return $this->kind;
607  }
608  public function setModelInfo(Google_Insert2ModelInfo $modelInfo) {
609    $this->modelInfo = $modelInfo;
610  }
611  public function getModelInfo() {
612    return $this->modelInfo;
613  }
614  public function setModelType( $modelType) {
615    $this->modelType = $modelType;
616  }
617  public function getModelType() {
618    return $this->modelType;
619  }
620  public function setSelfLink( $selfLink) {
621    $this->selfLink = $selfLink;
622  }
623  public function getSelfLink() {
624    return $this->selfLink;
625  }
626  public function setStorageDataLocation( $storageDataLocation) {
627    $this->storageDataLocation = $storageDataLocation;
628  }
629  public function getStorageDataLocation() {
630    return $this->storageDataLocation;
631  }
632  public function setStoragePMMLLocation( $storagePMMLLocation) {
633    $this->storagePMMLLocation = $storagePMMLLocation;
634  }
635  public function getStoragePMMLLocation() {
636    return $this->storagePMMLLocation;
637  }
638  public function setStoragePMMLModelLocation( $storagePMMLModelLocation) {
639    $this->storagePMMLModelLocation = $storagePMMLModelLocation;
640  }
641  public function getStoragePMMLModelLocation() {
642    return $this->storagePMMLModelLocation;
643  }
644  public function setTrainingComplete( $trainingComplete) {
645    $this->trainingComplete = $trainingComplete;
646  }
647  public function getTrainingComplete() {
648    return $this->trainingComplete;
649  }
650  public function setTrainingStatus( $trainingStatus) {
651    $this->trainingStatus = $trainingStatus;
652  }
653  public function getTrainingStatus() {
654    return $this->trainingStatus;
655  }
656}
657
658class Google_Insert2ModelInfo extends Google_Model {
659  public $classWeightedAccuracy;
660  public $classificationAccuracy;
661  public $meanSquaredError;
662  public $modelType;
663  public $numberInstances;
664  public $numberLabels;
665  public function setClassWeightedAccuracy( $classWeightedAccuracy) {
666    $this->classWeightedAccuracy = $classWeightedAccuracy;
667  }
668  public function getClassWeightedAccuracy() {
669    return $this->classWeightedAccuracy;
670  }
671  public function setClassificationAccuracy( $classificationAccuracy) {
672    $this->classificationAccuracy = $classificationAccuracy;
673  }
674  public function getClassificationAccuracy() {
675    return $this->classificationAccuracy;
676  }
677  public function setMeanSquaredError( $meanSquaredError) {
678    $this->meanSquaredError = $meanSquaredError;
679  }
680  public function getMeanSquaredError() {
681    return $this->meanSquaredError;
682  }
683  public function setModelType( $modelType) {
684    $this->modelType = $modelType;
685  }
686  public function getModelType() {
687    return $this->modelType;
688  }
689  public function setNumberInstances( $numberInstances) {
690    $this->numberInstances = $numberInstances;
691  }
692  public function getNumberInstances() {
693    return $this->numberInstances;
694  }
695  public function setNumberLabels( $numberLabels) {
696    $this->numberLabels = $numberLabels;
697  }
698  public function getNumberLabels() {
699    return $this->numberLabels;
700  }
701}
702
703class Google_InsertTrainingInstances extends Google_Model {
704  public $csvInstance;
705  public $output;
706  public function setCsvInstance(/* array(Google_object) */ $csvInstance) {
707    $this->assertIsArray($csvInstance, 'Google_object', __METHOD__);
708    $this->csvInstance = $csvInstance;
709  }
710  public function getCsvInstance() {
711    return $this->csvInstance;
712  }
713  public function setOutput( $output) {
714    $this->output = $output;
715  }
716  public function getOutput() {
717    return $this->output;
718  }
719}
720
721class Google_Output extends Google_Model {
722  public $id;
723  public $kind;
724  public $outputLabel;
725  protected $__outputMultiType = 'Google_OutputOutputMulti';
726  protected $__outputMultiDataType = 'array';
727  public $outputMulti;
728  public $outputValue;
729  public $selfLink;
730  public function setId( $id) {
731    $this->id = $id;
732  }
733  public function getId() {
734    return $this->id;
735  }
736  public function setKind( $kind) {
737    $this->kind = $kind;
738  }
739  public function getKind() {
740    return $this->kind;
741  }
742  public function setOutputLabel( $outputLabel) {
743    $this->outputLabel = $outputLabel;
744  }
745  public function getOutputLabel() {
746    return $this->outputLabel;
747  }
748  public function setOutputMulti(/* array(Google_OutputOutputMulti) */ $outputMulti) {
749    $this->assertIsArray($outputMulti, 'Google_OutputOutputMulti', __METHOD__);
750    $this->outputMulti = $outputMulti;
751  }
752  public function getOutputMulti() {
753    return $this->outputMulti;
754  }
755  public function setOutputValue( $outputValue) {
756    $this->outputValue = $outputValue;
757  }
758  public function getOutputValue() {
759    return $this->outputValue;
760  }
761  public function setSelfLink( $selfLink) {
762    $this->selfLink = $selfLink;
763  }
764  public function getSelfLink() {
765    return $this->selfLink;
766  }
767}
768
769class Google_OutputOutputMulti extends Google_Model {
770  public $label;
771  public $score;
772  public function setLabel( $label) {
773    $this->label = $label;
774  }
775  public function getLabel() {
776    return $this->label;
777  }
778  public function setScore( $score) {
779    $this->score = $score;
780  }
781  public function getScore() {
782    return $this->score;
783  }
784}
785
786class Google_PredictionList extends Google_Model {
787  protected $__itemsType = 'Google_Insert2';
788  protected $__itemsDataType = 'array';
789  public $items;
790  public $kind;
791  public $nextPageToken;
792  public $selfLink;
793  public function setItems(/* array(Google_Insert2) */ $items) {
794    $this->assertIsArray($items, 'Google_Insert2', __METHOD__);
795    $this->items = $items;
796  }
797  public function getItems() {
798    return $this->items;
799  }
800  public function setKind( $kind) {
801    $this->kind = $kind;
802  }
803  public function getKind() {
804    return $this->kind;
805  }
806  public function setNextPageToken( $nextPageToken) {
807    $this->nextPageToken = $nextPageToken;
808  }
809  public function getNextPageToken() {
810    return $this->nextPageToken;
811  }
812  public function setSelfLink( $selfLink) {
813    $this->selfLink = $selfLink;
814  }
815  public function getSelfLink() {
816    return $this->selfLink;
817  }
818}
819
820class Google_Update extends Google_Model {
821  public $csvInstance;
822  public $output;
823  public function setCsvInstance(/* array(Google_object) */ $csvInstance) {
824    $this->assertIsArray($csvInstance, 'Google_object', __METHOD__);
825    $this->csvInstance = $csvInstance;
826  }
827  public function getCsvInstance() {
828    return $this->csvInstance;
829  }
830  public function setOutput( $output) {
831    $this->output = $output;
832  }
833  public function getOutput() {
834    return $this->output;
835  }
836}
837