[e3d4e0a] | 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 |
|
---|
| 18 | namespace Google\Service\Dataproc;
|
---|
| 19 |
|
---|
| 20 | class TaskData extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'accumulatorUpdates';
|
---|
| 23 | protected $accumulatorUpdatesType = AccumulableInfo::class;
|
---|
| 24 | protected $accumulatorUpdatesDataType = 'array';
|
---|
| 25 | /**
|
---|
| 26 | * @var int
|
---|
| 27 | */
|
---|
| 28 | public $attempt;
|
---|
| 29 | /**
|
---|
| 30 | * @var string
|
---|
| 31 | */
|
---|
| 32 | public $durationMillis;
|
---|
| 33 | /**
|
---|
| 34 | * @var string
|
---|
| 35 | */
|
---|
| 36 | public $errorMessage;
|
---|
| 37 | /**
|
---|
| 38 | * @var string
|
---|
| 39 | */
|
---|
| 40 | public $executorId;
|
---|
| 41 | /**
|
---|
| 42 | * @var string[]
|
---|
| 43 | */
|
---|
| 44 | public $executorLogs;
|
---|
| 45 | /**
|
---|
| 46 | * @var string
|
---|
| 47 | */
|
---|
| 48 | public $gettingResultTimeMillis;
|
---|
| 49 | /**
|
---|
| 50 | * @var bool
|
---|
| 51 | */
|
---|
| 52 | public $hasMetrics;
|
---|
| 53 | /**
|
---|
| 54 | * @var string
|
---|
| 55 | */
|
---|
| 56 | public $host;
|
---|
| 57 | /**
|
---|
| 58 | * @var int
|
---|
| 59 | */
|
---|
| 60 | public $index;
|
---|
| 61 | /**
|
---|
| 62 | * @var string
|
---|
| 63 | */
|
---|
| 64 | public $launchTime;
|
---|
| 65 | /**
|
---|
| 66 | * @var int
|
---|
| 67 | */
|
---|
| 68 | public $partitionId;
|
---|
| 69 | /**
|
---|
| 70 | * @var string
|
---|
| 71 | */
|
---|
| 72 | public $resultFetchStart;
|
---|
| 73 | /**
|
---|
| 74 | * @var string
|
---|
| 75 | */
|
---|
| 76 | public $schedulerDelayMillis;
|
---|
| 77 | /**
|
---|
| 78 | * @var bool
|
---|
| 79 | */
|
---|
| 80 | public $speculative;
|
---|
| 81 | /**
|
---|
| 82 | * @var int
|
---|
| 83 | */
|
---|
| 84 | public $stageAttemptId;
|
---|
| 85 | /**
|
---|
| 86 | * @var string
|
---|
| 87 | */
|
---|
| 88 | public $stageId;
|
---|
| 89 | /**
|
---|
| 90 | * @var string
|
---|
| 91 | */
|
---|
| 92 | public $status;
|
---|
| 93 | /**
|
---|
| 94 | * @var string
|
---|
| 95 | */
|
---|
| 96 | public $taskId;
|
---|
| 97 | /**
|
---|
| 98 | * @var string
|
---|
| 99 | */
|
---|
| 100 | public $taskLocality;
|
---|
| 101 | protected $taskMetricsType = TaskMetrics::class;
|
---|
| 102 | protected $taskMetricsDataType = '';
|
---|
| 103 |
|
---|
| 104 | /**
|
---|
| 105 | * @param AccumulableInfo[]
|
---|
| 106 | */
|
---|
| 107 | public function setAccumulatorUpdates($accumulatorUpdates)
|
---|
| 108 | {
|
---|
| 109 | $this->accumulatorUpdates = $accumulatorUpdates;
|
---|
| 110 | }
|
---|
| 111 | /**
|
---|
| 112 | * @return AccumulableInfo[]
|
---|
| 113 | */
|
---|
| 114 | public function getAccumulatorUpdates()
|
---|
| 115 | {
|
---|
| 116 | return $this->accumulatorUpdates;
|
---|
| 117 | }
|
---|
| 118 | /**
|
---|
| 119 | * @param int
|
---|
| 120 | */
|
---|
| 121 | public function setAttempt($attempt)
|
---|
| 122 | {
|
---|
| 123 | $this->attempt = $attempt;
|
---|
| 124 | }
|
---|
| 125 | /**
|
---|
| 126 | * @return int
|
---|
| 127 | */
|
---|
| 128 | public function getAttempt()
|
---|
| 129 | {
|
---|
| 130 | return $this->attempt;
|
---|
| 131 | }
|
---|
| 132 | /**
|
---|
| 133 | * @param string
|
---|
| 134 | */
|
---|
| 135 | public function setDurationMillis($durationMillis)
|
---|
| 136 | {
|
---|
| 137 | $this->durationMillis = $durationMillis;
|
---|
| 138 | }
|
---|
| 139 | /**
|
---|
| 140 | * @return string
|
---|
| 141 | */
|
---|
| 142 | public function getDurationMillis()
|
---|
| 143 | {
|
---|
| 144 | return $this->durationMillis;
|
---|
| 145 | }
|
---|
| 146 | /**
|
---|
| 147 | * @param string
|
---|
| 148 | */
|
---|
| 149 | public function setErrorMessage($errorMessage)
|
---|
| 150 | {
|
---|
| 151 | $this->errorMessage = $errorMessage;
|
---|
| 152 | }
|
---|
| 153 | /**
|
---|
| 154 | * @return string
|
---|
| 155 | */
|
---|
| 156 | public function getErrorMessage()
|
---|
| 157 | {
|
---|
| 158 | return $this->errorMessage;
|
---|
| 159 | }
|
---|
| 160 | /**
|
---|
| 161 | * @param string
|
---|
| 162 | */
|
---|
| 163 | public function setExecutorId($executorId)
|
---|
| 164 | {
|
---|
| 165 | $this->executorId = $executorId;
|
---|
| 166 | }
|
---|
| 167 | /**
|
---|
| 168 | * @return string
|
---|
| 169 | */
|
---|
| 170 | public function getExecutorId()
|
---|
| 171 | {
|
---|
| 172 | return $this->executorId;
|
---|
| 173 | }
|
---|
| 174 | /**
|
---|
| 175 | * @param string[]
|
---|
| 176 | */
|
---|
| 177 | public function setExecutorLogs($executorLogs)
|
---|
| 178 | {
|
---|
| 179 | $this->executorLogs = $executorLogs;
|
---|
| 180 | }
|
---|
| 181 | /**
|
---|
| 182 | * @return string[]
|
---|
| 183 | */
|
---|
| 184 | public function getExecutorLogs()
|
---|
| 185 | {
|
---|
| 186 | return $this->executorLogs;
|
---|
| 187 | }
|
---|
| 188 | /**
|
---|
| 189 | * @param string
|
---|
| 190 | */
|
---|
| 191 | public function setGettingResultTimeMillis($gettingResultTimeMillis)
|
---|
| 192 | {
|
---|
| 193 | $this->gettingResultTimeMillis = $gettingResultTimeMillis;
|
---|
| 194 | }
|
---|
| 195 | /**
|
---|
| 196 | * @return string
|
---|
| 197 | */
|
---|
| 198 | public function getGettingResultTimeMillis()
|
---|
| 199 | {
|
---|
| 200 | return $this->gettingResultTimeMillis;
|
---|
| 201 | }
|
---|
| 202 | /**
|
---|
| 203 | * @param bool
|
---|
| 204 | */
|
---|
| 205 | public function setHasMetrics($hasMetrics)
|
---|
| 206 | {
|
---|
| 207 | $this->hasMetrics = $hasMetrics;
|
---|
| 208 | }
|
---|
| 209 | /**
|
---|
| 210 | * @return bool
|
---|
| 211 | */
|
---|
| 212 | public function getHasMetrics()
|
---|
| 213 | {
|
---|
| 214 | return $this->hasMetrics;
|
---|
| 215 | }
|
---|
| 216 | /**
|
---|
| 217 | * @param string
|
---|
| 218 | */
|
---|
| 219 | public function setHost($host)
|
---|
| 220 | {
|
---|
| 221 | $this->host = $host;
|
---|
| 222 | }
|
---|
| 223 | /**
|
---|
| 224 | * @return string
|
---|
| 225 | */
|
---|
| 226 | public function getHost()
|
---|
| 227 | {
|
---|
| 228 | return $this->host;
|
---|
| 229 | }
|
---|
| 230 | /**
|
---|
| 231 | * @param int
|
---|
| 232 | */
|
---|
| 233 | public function setIndex($index)
|
---|
| 234 | {
|
---|
| 235 | $this->index = $index;
|
---|
| 236 | }
|
---|
| 237 | /**
|
---|
| 238 | * @return int
|
---|
| 239 | */
|
---|
| 240 | public function getIndex()
|
---|
| 241 | {
|
---|
| 242 | return $this->index;
|
---|
| 243 | }
|
---|
| 244 | /**
|
---|
| 245 | * @param string
|
---|
| 246 | */
|
---|
| 247 | public function setLaunchTime($launchTime)
|
---|
| 248 | {
|
---|
| 249 | $this->launchTime = $launchTime;
|
---|
| 250 | }
|
---|
| 251 | /**
|
---|
| 252 | * @return string
|
---|
| 253 | */
|
---|
| 254 | public function getLaunchTime()
|
---|
| 255 | {
|
---|
| 256 | return $this->launchTime;
|
---|
| 257 | }
|
---|
| 258 | /**
|
---|
| 259 | * @param int
|
---|
| 260 | */
|
---|
| 261 | public function setPartitionId($partitionId)
|
---|
| 262 | {
|
---|
| 263 | $this->partitionId = $partitionId;
|
---|
| 264 | }
|
---|
| 265 | /**
|
---|
| 266 | * @return int
|
---|
| 267 | */
|
---|
| 268 | public function getPartitionId()
|
---|
| 269 | {
|
---|
| 270 | return $this->partitionId;
|
---|
| 271 | }
|
---|
| 272 | /**
|
---|
| 273 | * @param string
|
---|
| 274 | */
|
---|
| 275 | public function setResultFetchStart($resultFetchStart)
|
---|
| 276 | {
|
---|
| 277 | $this->resultFetchStart = $resultFetchStart;
|
---|
| 278 | }
|
---|
| 279 | /**
|
---|
| 280 | * @return string
|
---|
| 281 | */
|
---|
| 282 | public function getResultFetchStart()
|
---|
| 283 | {
|
---|
| 284 | return $this->resultFetchStart;
|
---|
| 285 | }
|
---|
| 286 | /**
|
---|
| 287 | * @param string
|
---|
| 288 | */
|
---|
| 289 | public function setSchedulerDelayMillis($schedulerDelayMillis)
|
---|
| 290 | {
|
---|
| 291 | $this->schedulerDelayMillis = $schedulerDelayMillis;
|
---|
| 292 | }
|
---|
| 293 | /**
|
---|
| 294 | * @return string
|
---|
| 295 | */
|
---|
| 296 | public function getSchedulerDelayMillis()
|
---|
| 297 | {
|
---|
| 298 | return $this->schedulerDelayMillis;
|
---|
| 299 | }
|
---|
| 300 | /**
|
---|
| 301 | * @param bool
|
---|
| 302 | */
|
---|
| 303 | public function setSpeculative($speculative)
|
---|
| 304 | {
|
---|
| 305 | $this->speculative = $speculative;
|
---|
| 306 | }
|
---|
| 307 | /**
|
---|
| 308 | * @return bool
|
---|
| 309 | */
|
---|
| 310 | public function getSpeculative()
|
---|
| 311 | {
|
---|
| 312 | return $this->speculative;
|
---|
| 313 | }
|
---|
| 314 | /**
|
---|
| 315 | * @param int
|
---|
| 316 | */
|
---|
| 317 | public function setStageAttemptId($stageAttemptId)
|
---|
| 318 | {
|
---|
| 319 | $this->stageAttemptId = $stageAttemptId;
|
---|
| 320 | }
|
---|
| 321 | /**
|
---|
| 322 | * @return int
|
---|
| 323 | */
|
---|
| 324 | public function getStageAttemptId()
|
---|
| 325 | {
|
---|
| 326 | return $this->stageAttemptId;
|
---|
| 327 | }
|
---|
| 328 | /**
|
---|
| 329 | * @param string
|
---|
| 330 | */
|
---|
| 331 | public function setStageId($stageId)
|
---|
| 332 | {
|
---|
| 333 | $this->stageId = $stageId;
|
---|
| 334 | }
|
---|
| 335 | /**
|
---|
| 336 | * @return string
|
---|
| 337 | */
|
---|
| 338 | public function getStageId()
|
---|
| 339 | {
|
---|
| 340 | return $this->stageId;
|
---|
| 341 | }
|
---|
| 342 | /**
|
---|
| 343 | * @param string
|
---|
| 344 | */
|
---|
| 345 | public function setStatus($status)
|
---|
| 346 | {
|
---|
| 347 | $this->status = $status;
|
---|
| 348 | }
|
---|
| 349 | /**
|
---|
| 350 | * @return string
|
---|
| 351 | */
|
---|
| 352 | public function getStatus()
|
---|
| 353 | {
|
---|
| 354 | return $this->status;
|
---|
| 355 | }
|
---|
| 356 | /**
|
---|
| 357 | * @param string
|
---|
| 358 | */
|
---|
| 359 | public function setTaskId($taskId)
|
---|
| 360 | {
|
---|
| 361 | $this->taskId = $taskId;
|
---|
| 362 | }
|
---|
| 363 | /**
|
---|
| 364 | * @return string
|
---|
| 365 | */
|
---|
| 366 | public function getTaskId()
|
---|
| 367 | {
|
---|
| 368 | return $this->taskId;
|
---|
| 369 | }
|
---|
| 370 | /**
|
---|
| 371 | * @param string
|
---|
| 372 | */
|
---|
| 373 | public function setTaskLocality($taskLocality)
|
---|
| 374 | {
|
---|
| 375 | $this->taskLocality = $taskLocality;
|
---|
| 376 | }
|
---|
| 377 | /**
|
---|
| 378 | * @return string
|
---|
| 379 | */
|
---|
| 380 | public function getTaskLocality()
|
---|
| 381 | {
|
---|
| 382 | return $this->taskLocality;
|
---|
| 383 | }
|
---|
| 384 | /**
|
---|
| 385 | * @param TaskMetrics
|
---|
| 386 | */
|
---|
| 387 | public function setTaskMetrics(TaskMetrics $taskMetrics)
|
---|
| 388 | {
|
---|
| 389 | $this->taskMetrics = $taskMetrics;
|
---|
| 390 | }
|
---|
| 391 | /**
|
---|
| 392 | * @return TaskMetrics
|
---|
| 393 | */
|
---|
| 394 | public function getTaskMetrics()
|
---|
| 395 | {
|
---|
| 396 | return $this->taskMetrics;
|
---|
| 397 | }
|
---|
| 398 | }
|
---|
| 399 |
|
---|
| 400 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 401 | class_alias(TaskData::class, 'Google_Service_Dataproc_TaskData');
|
---|