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