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 JobStatistics extends \Google\Collection 21{ 22 protected $collection_key = 'reservationUsage'; 23 protected $internal_gapi_mappings = [ 24 "reservationId" => "reservation_id", 25 ]; 26 public $completionRatio; 27 protected $copyType = JobStatistics5::class; 28 protected $copyDataType = ''; 29 /** 30 * @var string 31 */ 32 public $creationTime; 33 /** 34 * @var string 35 */ 36 public $endTime; 37 protected $extractType = JobStatistics4::class; 38 protected $extractDataType = ''; 39 protected $loadType = JobStatistics3::class; 40 protected $loadDataType = ''; 41 /** 42 * @var string 43 */ 44 public $numChildJobs; 45 /** 46 * @var string 47 */ 48 public $parentJobId; 49 protected $queryType = JobStatistics2::class; 50 protected $queryDataType = ''; 51 /** 52 * @var string[] 53 */ 54 public $quotaDeferments; 55 protected $reservationUsageType = JobStatisticsReservationUsage::class; 56 protected $reservationUsageDataType = 'array'; 57 /** 58 * @var string 59 */ 60 public $reservationId; 61 protected $rowLevelSecurityStatisticsType = RowLevelSecurityStatistics::class; 62 protected $rowLevelSecurityStatisticsDataType = ''; 63 protected $scriptStatisticsType = ScriptStatistics::class; 64 protected $scriptStatisticsDataType = ''; 65 protected $sessionInfoType = SessionInfo::class; 66 protected $sessionInfoDataType = ''; 67 /** 68 * @var string 69 */ 70 public $startTime; 71 /** 72 * @var string 73 */ 74 public $totalBytesProcessed; 75 /** 76 * @var string 77 */ 78 public $totalSlotMs; 79 protected $transactionInfoType = TransactionInfo::class; 80 protected $transactionInfoDataType = ''; 81 82 public function setCompletionRatio($completionRatio) 83 { 84 $this->completionRatio = $completionRatio; 85 } 86 public function getCompletionRatio() 87 { 88 return $this->completionRatio; 89 } 90 /** 91 * @param JobStatistics5 92 */ 93 public function setCopy(JobStatistics5 $copy) 94 { 95 $this->copy = $copy; 96 } 97 /** 98 * @return JobStatistics5 99 */ 100 public function getCopy() 101 { 102 return $this->copy; 103 } 104 /** 105 * @param string 106 */ 107 public function setCreationTime($creationTime) 108 { 109 $this->creationTime = $creationTime; 110 } 111 /** 112 * @return string 113 */ 114 public function getCreationTime() 115 { 116 return $this->creationTime; 117 } 118 /** 119 * @param string 120 */ 121 public function setEndTime($endTime) 122 { 123 $this->endTime = $endTime; 124 } 125 /** 126 * @return string 127 */ 128 public function getEndTime() 129 { 130 return $this->endTime; 131 } 132 /** 133 * @param JobStatistics4 134 */ 135 public function setExtract(JobStatistics4 $extract) 136 { 137 $this->extract = $extract; 138 } 139 /** 140 * @return JobStatistics4 141 */ 142 public function getExtract() 143 { 144 return $this->extract; 145 } 146 /** 147 * @param JobStatistics3 148 */ 149 public function setLoad(JobStatistics3 $load) 150 { 151 $this->load = $load; 152 } 153 /** 154 * @return JobStatistics3 155 */ 156 public function getLoad() 157 { 158 return $this->load; 159 } 160 /** 161 * @param string 162 */ 163 public function setNumChildJobs($numChildJobs) 164 { 165 $this->numChildJobs = $numChildJobs; 166 } 167 /** 168 * @return string 169 */ 170 public function getNumChildJobs() 171 { 172 return $this->numChildJobs; 173 } 174 /** 175 * @param string 176 */ 177 public function setParentJobId($parentJobId) 178 { 179 $this->parentJobId = $parentJobId; 180 } 181 /** 182 * @return string 183 */ 184 public function getParentJobId() 185 { 186 return $this->parentJobId; 187 } 188 /** 189 * @param JobStatistics2 190 */ 191 public function setQuery(JobStatistics2 $query) 192 { 193 $this->query = $query; 194 } 195 /** 196 * @return JobStatistics2 197 */ 198 public function getQuery() 199 { 200 return $this->query; 201 } 202 /** 203 * @param string[] 204 */ 205 public function setQuotaDeferments($quotaDeferments) 206 { 207 $this->quotaDeferments = $quotaDeferments; 208 } 209 /** 210 * @return string[] 211 */ 212 public function getQuotaDeferments() 213 { 214 return $this->quotaDeferments; 215 } 216 /** 217 * @param JobStatisticsReservationUsage[] 218 */ 219 public function setReservationUsage($reservationUsage) 220 { 221 $this->reservationUsage = $reservationUsage; 222 } 223 /** 224 * @return JobStatisticsReservationUsage[] 225 */ 226 public function getReservationUsage() 227 { 228 return $this->reservationUsage; 229 } 230 /** 231 * @param string 232 */ 233 public function setReservationId($reservationId) 234 { 235 $this->reservationId = $reservationId; 236 } 237 /** 238 * @return string 239 */ 240 public function getReservationId() 241 { 242 return $this->reservationId; 243 } 244 /** 245 * @param RowLevelSecurityStatistics 246 */ 247 public function setRowLevelSecurityStatistics(RowLevelSecurityStatistics $rowLevelSecurityStatistics) 248 { 249 $this->rowLevelSecurityStatistics = $rowLevelSecurityStatistics; 250 } 251 /** 252 * @return RowLevelSecurityStatistics 253 */ 254 public function getRowLevelSecurityStatistics() 255 { 256 return $this->rowLevelSecurityStatistics; 257 } 258 /** 259 * @param ScriptStatistics 260 */ 261 public function setScriptStatistics(ScriptStatistics $scriptStatistics) 262 { 263 $this->scriptStatistics = $scriptStatistics; 264 } 265 /** 266 * @return ScriptStatistics 267 */ 268 public function getScriptStatistics() 269 { 270 return $this->scriptStatistics; 271 } 272 /** 273 * @param SessionInfo 274 */ 275 public function setSessionInfo(SessionInfo $sessionInfo) 276 { 277 $this->sessionInfo = $sessionInfo; 278 } 279 /** 280 * @return SessionInfo 281 */ 282 public function getSessionInfo() 283 { 284 return $this->sessionInfo; 285 } 286 /** 287 * @param string 288 */ 289 public function setStartTime($startTime) 290 { 291 $this->startTime = $startTime; 292 } 293 /** 294 * @return string 295 */ 296 public function getStartTime() 297 { 298 return $this->startTime; 299 } 300 /** 301 * @param string 302 */ 303 public function setTotalBytesProcessed($totalBytesProcessed) 304 { 305 $this->totalBytesProcessed = $totalBytesProcessed; 306 } 307 /** 308 * @return string 309 */ 310 public function getTotalBytesProcessed() 311 { 312 return $this->totalBytesProcessed; 313 } 314 /** 315 * @param string 316 */ 317 public function setTotalSlotMs($totalSlotMs) 318 { 319 $this->totalSlotMs = $totalSlotMs; 320 } 321 /** 322 * @return string 323 */ 324 public function getTotalSlotMs() 325 { 326 return $this->totalSlotMs; 327 } 328 /** 329 * @param TransactionInfo 330 */ 331 public function setTransactionInfo(TransactionInfo $transactionInfo) 332 { 333 $this->transactionInfo = $transactionInfo; 334 } 335 /** 336 * @return TransactionInfo 337 */ 338 public function getTransactionInfo() 339 { 340 return $this->transactionInfo; 341 } 342} 343 344// Adding a class alias for backwards compatibility with the previous class name. 345class_alias(JobStatistics::class, 'Google_Service_Bigquery_JobStatistics'); 346