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\Dataflow; 19 20class Job extends \Google\Collection 21{ 22 protected $collection_key = 'tempFiles'; 23 /** 24 * @var string 25 */ 26 public $clientRequestId; 27 /** 28 * @var string 29 */ 30 public $createTime; 31 /** 32 * @var string 33 */ 34 public $createdFromSnapshotId; 35 /** 36 * @var string 37 */ 38 public $currentState; 39 /** 40 * @var string 41 */ 42 public $currentStateTime; 43 protected $environmentType = Environment::class; 44 protected $environmentDataType = ''; 45 protected $executionInfoType = JobExecutionInfo::class; 46 protected $executionInfoDataType = ''; 47 /** 48 * @var string 49 */ 50 public $id; 51 protected $jobMetadataType = JobMetadata::class; 52 protected $jobMetadataDataType = ''; 53 /** 54 * @var string[] 55 */ 56 public $labels; 57 /** 58 * @var string 59 */ 60 public $location; 61 /** 62 * @var string 63 */ 64 public $name; 65 protected $pipelineDescriptionType = PipelineDescription::class; 66 protected $pipelineDescriptionDataType = ''; 67 /** 68 * @var string 69 */ 70 public $projectId; 71 /** 72 * @var string 73 */ 74 public $replaceJobId; 75 /** 76 * @var string 77 */ 78 public $replacedByJobId; 79 /** 80 * @var string 81 */ 82 public $requestedState; 83 /** 84 * @var bool 85 */ 86 public $satisfiesPzs; 87 protected $stageStatesType = ExecutionStageState::class; 88 protected $stageStatesDataType = 'array'; 89 /** 90 * @var string 91 */ 92 public $startTime; 93 protected $stepsType = Step::class; 94 protected $stepsDataType = 'array'; 95 /** 96 * @var string 97 */ 98 public $stepsLocation; 99 /** 100 * @var string[] 101 */ 102 public $tempFiles; 103 /** 104 * @var string[] 105 */ 106 public $transformNameMapping; 107 /** 108 * @var string 109 */ 110 public $type; 111 112 /** 113 * @param string 114 */ 115 public function setClientRequestId($clientRequestId) 116 { 117 $this->clientRequestId = $clientRequestId; 118 } 119 /** 120 * @return string 121 */ 122 public function getClientRequestId() 123 { 124 return $this->clientRequestId; 125 } 126 /** 127 * @param string 128 */ 129 public function setCreateTime($createTime) 130 { 131 $this->createTime = $createTime; 132 } 133 /** 134 * @return string 135 */ 136 public function getCreateTime() 137 { 138 return $this->createTime; 139 } 140 /** 141 * @param string 142 */ 143 public function setCreatedFromSnapshotId($createdFromSnapshotId) 144 { 145 $this->createdFromSnapshotId = $createdFromSnapshotId; 146 } 147 /** 148 * @return string 149 */ 150 public function getCreatedFromSnapshotId() 151 { 152 return $this->createdFromSnapshotId; 153 } 154 /** 155 * @param string 156 */ 157 public function setCurrentState($currentState) 158 { 159 $this->currentState = $currentState; 160 } 161 /** 162 * @return string 163 */ 164 public function getCurrentState() 165 { 166 return $this->currentState; 167 } 168 /** 169 * @param string 170 */ 171 public function setCurrentStateTime($currentStateTime) 172 { 173 $this->currentStateTime = $currentStateTime; 174 } 175 /** 176 * @return string 177 */ 178 public function getCurrentStateTime() 179 { 180 return $this->currentStateTime; 181 } 182 /** 183 * @param Environment 184 */ 185 public function setEnvironment(Environment $environment) 186 { 187 $this->environment = $environment; 188 } 189 /** 190 * @return Environment 191 */ 192 public function getEnvironment() 193 { 194 return $this->environment; 195 } 196 /** 197 * @param JobExecutionInfo 198 */ 199 public function setExecutionInfo(JobExecutionInfo $executionInfo) 200 { 201 $this->executionInfo = $executionInfo; 202 } 203 /** 204 * @return JobExecutionInfo 205 */ 206 public function getExecutionInfo() 207 { 208 return $this->executionInfo; 209 } 210 /** 211 * @param string 212 */ 213 public function setId($id) 214 { 215 $this->id = $id; 216 } 217 /** 218 * @return string 219 */ 220 public function getId() 221 { 222 return $this->id; 223 } 224 /** 225 * @param JobMetadata 226 */ 227 public function setJobMetadata(JobMetadata $jobMetadata) 228 { 229 $this->jobMetadata = $jobMetadata; 230 } 231 /** 232 * @return JobMetadata 233 */ 234 public function getJobMetadata() 235 { 236 return $this->jobMetadata; 237 } 238 /** 239 * @param string[] 240 */ 241 public function setLabels($labels) 242 { 243 $this->labels = $labels; 244 } 245 /** 246 * @return string[] 247 */ 248 public function getLabels() 249 { 250 return $this->labels; 251 } 252 /** 253 * @param string 254 */ 255 public function setLocation($location) 256 { 257 $this->location = $location; 258 } 259 /** 260 * @return string 261 */ 262 public function getLocation() 263 { 264 return $this->location; 265 } 266 /** 267 * @param string 268 */ 269 public function setName($name) 270 { 271 $this->name = $name; 272 } 273 /** 274 * @return string 275 */ 276 public function getName() 277 { 278 return $this->name; 279 } 280 /** 281 * @param PipelineDescription 282 */ 283 public function setPipelineDescription(PipelineDescription $pipelineDescription) 284 { 285 $this->pipelineDescription = $pipelineDescription; 286 } 287 /** 288 * @return PipelineDescription 289 */ 290 public function getPipelineDescription() 291 { 292 return $this->pipelineDescription; 293 } 294 /** 295 * @param string 296 */ 297 public function setProjectId($projectId) 298 { 299 $this->projectId = $projectId; 300 } 301 /** 302 * @return string 303 */ 304 public function getProjectId() 305 { 306 return $this->projectId; 307 } 308 /** 309 * @param string 310 */ 311 public function setReplaceJobId($replaceJobId) 312 { 313 $this->replaceJobId = $replaceJobId; 314 } 315 /** 316 * @return string 317 */ 318 public function getReplaceJobId() 319 { 320 return $this->replaceJobId; 321 } 322 /** 323 * @param string 324 */ 325 public function setReplacedByJobId($replacedByJobId) 326 { 327 $this->replacedByJobId = $replacedByJobId; 328 } 329 /** 330 * @return string 331 */ 332 public function getReplacedByJobId() 333 { 334 return $this->replacedByJobId; 335 } 336 /** 337 * @param string 338 */ 339 public function setRequestedState($requestedState) 340 { 341 $this->requestedState = $requestedState; 342 } 343 /** 344 * @return string 345 */ 346 public function getRequestedState() 347 { 348 return $this->requestedState; 349 } 350 /** 351 * @param bool 352 */ 353 public function setSatisfiesPzs($satisfiesPzs) 354 { 355 $this->satisfiesPzs = $satisfiesPzs; 356 } 357 /** 358 * @return bool 359 */ 360 public function getSatisfiesPzs() 361 { 362 return $this->satisfiesPzs; 363 } 364 /** 365 * @param ExecutionStageState[] 366 */ 367 public function setStageStates($stageStates) 368 { 369 $this->stageStates = $stageStates; 370 } 371 /** 372 * @return ExecutionStageState[] 373 */ 374 public function getStageStates() 375 { 376 return $this->stageStates; 377 } 378 /** 379 * @param string 380 */ 381 public function setStartTime($startTime) 382 { 383 $this->startTime = $startTime; 384 } 385 /** 386 * @return string 387 */ 388 public function getStartTime() 389 { 390 return $this->startTime; 391 } 392 /** 393 * @param Step[] 394 */ 395 public function setSteps($steps) 396 { 397 $this->steps = $steps; 398 } 399 /** 400 * @return Step[] 401 */ 402 public function getSteps() 403 { 404 return $this->steps; 405 } 406 /** 407 * @param string 408 */ 409 public function setStepsLocation($stepsLocation) 410 { 411 $this->stepsLocation = $stepsLocation; 412 } 413 /** 414 * @return string 415 */ 416 public function getStepsLocation() 417 { 418 return $this->stepsLocation; 419 } 420 /** 421 * @param string[] 422 */ 423 public function setTempFiles($tempFiles) 424 { 425 $this->tempFiles = $tempFiles; 426 } 427 /** 428 * @return string[] 429 */ 430 public function getTempFiles() 431 { 432 return $this->tempFiles; 433 } 434 /** 435 * @param string[] 436 */ 437 public function setTransformNameMapping($transformNameMapping) 438 { 439 $this->transformNameMapping = $transformNameMapping; 440 } 441 /** 442 * @return string[] 443 */ 444 public function getTransformNameMapping() 445 { 446 return $this->transformNameMapping; 447 } 448 /** 449 * @param string 450 */ 451 public function setType($type) 452 { 453 $this->type = $type; 454 } 455 /** 456 * @return string 457 */ 458 public function getType() 459 { 460 return $this->type; 461 } 462} 463 464// Adding a class alias for backwards compatibility with the previous class name. 465class_alias(Job::class, 'Google_Service_Dataflow_Job'); 466