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\Dataproc; 19 20class Batch extends \Google\Collection 21{ 22 protected $collection_key = 'stateHistory'; 23 /** 24 * @var string 25 */ 26 public $createTime; 27 /** 28 * @var string 29 */ 30 public $creator; 31 protected $environmentConfigType = EnvironmentConfig::class; 32 protected $environmentConfigDataType = ''; 33 /** 34 * @var string[] 35 */ 36 public $labels; 37 /** 38 * @var string 39 */ 40 public $name; 41 /** 42 * @var string 43 */ 44 public $operation; 45 protected $pysparkBatchType = PySparkBatch::class; 46 protected $pysparkBatchDataType = ''; 47 protected $runtimeConfigType = RuntimeConfig::class; 48 protected $runtimeConfigDataType = ''; 49 protected $runtimeInfoType = RuntimeInfo::class; 50 protected $runtimeInfoDataType = ''; 51 protected $sparkBatchType = SparkBatch::class; 52 protected $sparkBatchDataType = ''; 53 protected $sparkRBatchType = SparkRBatch::class; 54 protected $sparkRBatchDataType = ''; 55 protected $sparkSqlBatchType = SparkSqlBatch::class; 56 protected $sparkSqlBatchDataType = ''; 57 /** 58 * @var string 59 */ 60 public $state; 61 protected $stateHistoryType = StateHistory::class; 62 protected $stateHistoryDataType = 'array'; 63 /** 64 * @var string 65 */ 66 public $stateMessage; 67 /** 68 * @var string 69 */ 70 public $stateTime; 71 /** 72 * @var string 73 */ 74 public $uuid; 75 76 /** 77 * @param string 78 */ 79 public function setCreateTime($createTime) 80 { 81 $this->createTime = $createTime; 82 } 83 /** 84 * @return string 85 */ 86 public function getCreateTime() 87 { 88 return $this->createTime; 89 } 90 /** 91 * @param string 92 */ 93 public function setCreator($creator) 94 { 95 $this->creator = $creator; 96 } 97 /** 98 * @return string 99 */ 100 public function getCreator() 101 { 102 return $this->creator; 103 } 104 /** 105 * @param EnvironmentConfig 106 */ 107 public function setEnvironmentConfig(EnvironmentConfig $environmentConfig) 108 { 109 $this->environmentConfig = $environmentConfig; 110 } 111 /** 112 * @return EnvironmentConfig 113 */ 114 public function getEnvironmentConfig() 115 { 116 return $this->environmentConfig; 117 } 118 /** 119 * @param string[] 120 */ 121 public function setLabels($labels) 122 { 123 $this->labels = $labels; 124 } 125 /** 126 * @return string[] 127 */ 128 public function getLabels() 129 { 130 return $this->labels; 131 } 132 /** 133 * @param string 134 */ 135 public function setName($name) 136 { 137 $this->name = $name; 138 } 139 /** 140 * @return string 141 */ 142 public function getName() 143 { 144 return $this->name; 145 } 146 /** 147 * @param string 148 */ 149 public function setOperation($operation) 150 { 151 $this->operation = $operation; 152 } 153 /** 154 * @return string 155 */ 156 public function getOperation() 157 { 158 return $this->operation; 159 } 160 /** 161 * @param PySparkBatch 162 */ 163 public function setPysparkBatch(PySparkBatch $pysparkBatch) 164 { 165 $this->pysparkBatch = $pysparkBatch; 166 } 167 /** 168 * @return PySparkBatch 169 */ 170 public function getPysparkBatch() 171 { 172 return $this->pysparkBatch; 173 } 174 /** 175 * @param RuntimeConfig 176 */ 177 public function setRuntimeConfig(RuntimeConfig $runtimeConfig) 178 { 179 $this->runtimeConfig = $runtimeConfig; 180 } 181 /** 182 * @return RuntimeConfig 183 */ 184 public function getRuntimeConfig() 185 { 186 return $this->runtimeConfig; 187 } 188 /** 189 * @param RuntimeInfo 190 */ 191 public function setRuntimeInfo(RuntimeInfo $runtimeInfo) 192 { 193 $this->runtimeInfo = $runtimeInfo; 194 } 195 /** 196 * @return RuntimeInfo 197 */ 198 public function getRuntimeInfo() 199 { 200 return $this->runtimeInfo; 201 } 202 /** 203 * @param SparkBatch 204 */ 205 public function setSparkBatch(SparkBatch $sparkBatch) 206 { 207 $this->sparkBatch = $sparkBatch; 208 } 209 /** 210 * @return SparkBatch 211 */ 212 public function getSparkBatch() 213 { 214 return $this->sparkBatch; 215 } 216 /** 217 * @param SparkRBatch 218 */ 219 public function setSparkRBatch(SparkRBatch $sparkRBatch) 220 { 221 $this->sparkRBatch = $sparkRBatch; 222 } 223 /** 224 * @return SparkRBatch 225 */ 226 public function getSparkRBatch() 227 { 228 return $this->sparkRBatch; 229 } 230 /** 231 * @param SparkSqlBatch 232 */ 233 public function setSparkSqlBatch(SparkSqlBatch $sparkSqlBatch) 234 { 235 $this->sparkSqlBatch = $sparkSqlBatch; 236 } 237 /** 238 * @return SparkSqlBatch 239 */ 240 public function getSparkSqlBatch() 241 { 242 return $this->sparkSqlBatch; 243 } 244 /** 245 * @param string 246 */ 247 public function setState($state) 248 { 249 $this->state = $state; 250 } 251 /** 252 * @return string 253 */ 254 public function getState() 255 { 256 return $this->state; 257 } 258 /** 259 * @param StateHistory[] 260 */ 261 public function setStateHistory($stateHistory) 262 { 263 $this->stateHistory = $stateHistory; 264 } 265 /** 266 * @return StateHistory[] 267 */ 268 public function getStateHistory() 269 { 270 return $this->stateHistory; 271 } 272 /** 273 * @param string 274 */ 275 public function setStateMessage($stateMessage) 276 { 277 $this->stateMessage = $stateMessage; 278 } 279 /** 280 * @return string 281 */ 282 public function getStateMessage() 283 { 284 return $this->stateMessage; 285 } 286 /** 287 * @param string 288 */ 289 public function setStateTime($stateTime) 290 { 291 $this->stateTime = $stateTime; 292 } 293 /** 294 * @return string 295 */ 296 public function getStateTime() 297 { 298 return $this->stateTime; 299 } 300 /** 301 * @param string 302 */ 303 public function setUuid($uuid) 304 { 305 $this->uuid = $uuid; 306 } 307 /** 308 * @return string 309 */ 310 public function getUuid() 311 { 312 return $this->uuid; 313 } 314} 315 316// Adding a class alias for backwards compatibility with the previous class name. 317class_alias(Batch::class, 'Google_Service_Dataproc_Batch'); 318