1<?php 2/* 3 * Copyright 2014 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 18namespace Google\Service\Bigquery; 19 20class TrainingRun extends \Google\Collection 21{ 22 protected $collection_key = 'results'; 23 protected $classLevelGlobalExplanationsType = GlobalExplanation::class; 24 protected $classLevelGlobalExplanationsDataType = 'array'; 25 protected $dataSplitResultType = DataSplitResult::class; 26 protected $dataSplitResultDataType = ''; 27 protected $evaluationMetricsType = EvaluationMetrics::class; 28 protected $evaluationMetricsDataType = ''; 29 protected $modelLevelGlobalExplanationType = GlobalExplanation::class; 30 protected $modelLevelGlobalExplanationDataType = ''; 31 protected $resultsType = IterationResult::class; 32 protected $resultsDataType = 'array'; 33 /** 34 * @var string 35 */ 36 public $startTime; 37 protected $trainingOptionsType = TrainingOptions::class; 38 protected $trainingOptionsDataType = ''; 39 /** 40 * @var string 41 */ 42 public $vertexAiModelId; 43 /** 44 * @var string 45 */ 46 public $vertexAiModelVersion; 47 48 /** 49 * @param GlobalExplanation[] 50 */ 51 public function setClassLevelGlobalExplanations($classLevelGlobalExplanations) 52 { 53 $this->classLevelGlobalExplanations = $classLevelGlobalExplanations; 54 } 55 /** 56 * @return GlobalExplanation[] 57 */ 58 public function getClassLevelGlobalExplanations() 59 { 60 return $this->classLevelGlobalExplanations; 61 } 62 /** 63 * @param DataSplitResult 64 */ 65 public function setDataSplitResult(DataSplitResult $dataSplitResult) 66 { 67 $this->dataSplitResult = $dataSplitResult; 68 } 69 /** 70 * @return DataSplitResult 71 */ 72 public function getDataSplitResult() 73 { 74 return $this->dataSplitResult; 75 } 76 /** 77 * @param EvaluationMetrics 78 */ 79 public function setEvaluationMetrics(EvaluationMetrics $evaluationMetrics) 80 { 81 $this->evaluationMetrics = $evaluationMetrics; 82 } 83 /** 84 * @return EvaluationMetrics 85 */ 86 public function getEvaluationMetrics() 87 { 88 return $this->evaluationMetrics; 89 } 90 /** 91 * @param GlobalExplanation 92 */ 93 public function setModelLevelGlobalExplanation(GlobalExplanation $modelLevelGlobalExplanation) 94 { 95 $this->modelLevelGlobalExplanation = $modelLevelGlobalExplanation; 96 } 97 /** 98 * @return GlobalExplanation 99 */ 100 public function getModelLevelGlobalExplanation() 101 { 102 return $this->modelLevelGlobalExplanation; 103 } 104 /** 105 * @param IterationResult[] 106 */ 107 public function setResults($results) 108 { 109 $this->results = $results; 110 } 111 /** 112 * @return IterationResult[] 113 */ 114 public function getResults() 115 { 116 return $this->results; 117 } 118 /** 119 * @param string 120 */ 121 public function setStartTime($startTime) 122 { 123 $this->startTime = $startTime; 124 } 125 /** 126 * @return string 127 */ 128 public function getStartTime() 129 { 130 return $this->startTime; 131 } 132 /** 133 * @param TrainingOptions 134 */ 135 public function setTrainingOptions(TrainingOptions $trainingOptions) 136 { 137 $this->trainingOptions = $trainingOptions; 138 } 139 /** 140 * @return TrainingOptions 141 */ 142 public function getTrainingOptions() 143 { 144 return $this->trainingOptions; 145 } 146 /** 147 * @param string 148 */ 149 public function setVertexAiModelId($vertexAiModelId) 150 { 151 $this->vertexAiModelId = $vertexAiModelId; 152 } 153 /** 154 * @return string 155 */ 156 public function getVertexAiModelId() 157 { 158 return $this->vertexAiModelId; 159 } 160 /** 161 * @param string 162 */ 163 public function setVertexAiModelVersion($vertexAiModelVersion) 164 { 165 $this->vertexAiModelVersion = $vertexAiModelVersion; 166 } 167 /** 168 * @return string 169 */ 170 public function getVertexAiModelVersion() 171 { 172 return $this->vertexAiModelVersion; 173 } 174} 175 176// Adding a class alias for backwards compatibility with the previous class name. 177class_alias(TrainingRun::class, 'Google_Service_Bigquery_TrainingRun'); 178