Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

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