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