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 Job extends \Google\Collection
21{
22  protected $collection_key = 'yarnApplications';
23  /**
24   * @var bool
25   */
26  public $done;
27  /**
28   * @var string
29   */
30  public $driverControlFilesUri;
31  /**
32   * @var string
33   */
34  public $driverOutputResourceUri;
35  protected $hadoopJobType = HadoopJob::class;
36  protected $hadoopJobDataType = '';
37  protected $hiveJobType = HiveJob::class;
38  protected $hiveJobDataType = '';
39  /**
40   * @var string
41   */
42  public $jobUuid;
43  /**
44   * @var string[]
45   */
46  public $labels;
47  protected $pigJobType = PigJob::class;
48  protected $pigJobDataType = '';
49  protected $placementType = JobPlacement::class;
50  protected $placementDataType = '';
51  protected $prestoJobType = PrestoJob::class;
52  protected $prestoJobDataType = '';
53  protected $pysparkJobType = PySparkJob::class;
54  protected $pysparkJobDataType = '';
55  protected $referenceType = JobReference::class;
56  protected $referenceDataType = '';
57  protected $schedulingType = JobScheduling::class;
58  protected $schedulingDataType = '';
59  protected $sparkJobType = SparkJob::class;
60  protected $sparkJobDataType = '';
61  protected $sparkRJobType = SparkRJob::class;
62  protected $sparkRJobDataType = '';
63  protected $sparkSqlJobType = SparkSqlJob::class;
64  protected $sparkSqlJobDataType = '';
65  protected $statusType = JobStatus::class;
66  protected $statusDataType = '';
67  protected $statusHistoryType = JobStatus::class;
68  protected $statusHistoryDataType = 'array';
69  protected $yarnApplicationsType = YarnApplication::class;
70  protected $yarnApplicationsDataType = 'array';
71
72  /**
73   * @param bool
74   */
75  public function setDone($done)
76  {
77    $this->done = $done;
78  }
79  /**
80   * @return bool
81   */
82  public function getDone()
83  {
84    return $this->done;
85  }
86  /**
87   * @param string
88   */
89  public function setDriverControlFilesUri($driverControlFilesUri)
90  {
91    $this->driverControlFilesUri = $driverControlFilesUri;
92  }
93  /**
94   * @return string
95   */
96  public function getDriverControlFilesUri()
97  {
98    return $this->driverControlFilesUri;
99  }
100  /**
101   * @param string
102   */
103  public function setDriverOutputResourceUri($driverOutputResourceUri)
104  {
105    $this->driverOutputResourceUri = $driverOutputResourceUri;
106  }
107  /**
108   * @return string
109   */
110  public function getDriverOutputResourceUri()
111  {
112    return $this->driverOutputResourceUri;
113  }
114  /**
115   * @param HadoopJob
116   */
117  public function setHadoopJob(HadoopJob $hadoopJob)
118  {
119    $this->hadoopJob = $hadoopJob;
120  }
121  /**
122   * @return HadoopJob
123   */
124  public function getHadoopJob()
125  {
126    return $this->hadoopJob;
127  }
128  /**
129   * @param HiveJob
130   */
131  public function setHiveJob(HiveJob $hiveJob)
132  {
133    $this->hiveJob = $hiveJob;
134  }
135  /**
136   * @return HiveJob
137   */
138  public function getHiveJob()
139  {
140    return $this->hiveJob;
141  }
142  /**
143   * @param string
144   */
145  public function setJobUuid($jobUuid)
146  {
147    $this->jobUuid = $jobUuid;
148  }
149  /**
150   * @return string
151   */
152  public function getJobUuid()
153  {
154    return $this->jobUuid;
155  }
156  /**
157   * @param string[]
158   */
159  public function setLabels($labels)
160  {
161    $this->labels = $labels;
162  }
163  /**
164   * @return string[]
165   */
166  public function getLabels()
167  {
168    return $this->labels;
169  }
170  /**
171   * @param PigJob
172   */
173  public function setPigJob(PigJob $pigJob)
174  {
175    $this->pigJob = $pigJob;
176  }
177  /**
178   * @return PigJob
179   */
180  public function getPigJob()
181  {
182    return $this->pigJob;
183  }
184  /**
185   * @param JobPlacement
186   */
187  public function setPlacement(JobPlacement $placement)
188  {
189    $this->placement = $placement;
190  }
191  /**
192   * @return JobPlacement
193   */
194  public function getPlacement()
195  {
196    return $this->placement;
197  }
198  /**
199   * @param PrestoJob
200   */
201  public function setPrestoJob(PrestoJob $prestoJob)
202  {
203    $this->prestoJob = $prestoJob;
204  }
205  /**
206   * @return PrestoJob
207   */
208  public function getPrestoJob()
209  {
210    return $this->prestoJob;
211  }
212  /**
213   * @param PySparkJob
214   */
215  public function setPysparkJob(PySparkJob $pysparkJob)
216  {
217    $this->pysparkJob = $pysparkJob;
218  }
219  /**
220   * @return PySparkJob
221   */
222  public function getPysparkJob()
223  {
224    return $this->pysparkJob;
225  }
226  /**
227   * @param JobReference
228   */
229  public function setReference(JobReference $reference)
230  {
231    $this->reference = $reference;
232  }
233  /**
234   * @return JobReference
235   */
236  public function getReference()
237  {
238    return $this->reference;
239  }
240  /**
241   * @param JobScheduling
242   */
243  public function setScheduling(JobScheduling $scheduling)
244  {
245    $this->scheduling = $scheduling;
246  }
247  /**
248   * @return JobScheduling
249   */
250  public function getScheduling()
251  {
252    return $this->scheduling;
253  }
254  /**
255   * @param SparkJob
256   */
257  public function setSparkJob(SparkJob $sparkJob)
258  {
259    $this->sparkJob = $sparkJob;
260  }
261  /**
262   * @return SparkJob
263   */
264  public function getSparkJob()
265  {
266    return $this->sparkJob;
267  }
268  /**
269   * @param SparkRJob
270   */
271  public function setSparkRJob(SparkRJob $sparkRJob)
272  {
273    $this->sparkRJob = $sparkRJob;
274  }
275  /**
276   * @return SparkRJob
277   */
278  public function getSparkRJob()
279  {
280    return $this->sparkRJob;
281  }
282  /**
283   * @param SparkSqlJob
284   */
285  public function setSparkSqlJob(SparkSqlJob $sparkSqlJob)
286  {
287    $this->sparkSqlJob = $sparkSqlJob;
288  }
289  /**
290   * @return SparkSqlJob
291   */
292  public function getSparkSqlJob()
293  {
294    return $this->sparkSqlJob;
295  }
296  /**
297   * @param JobStatus
298   */
299  public function setStatus(JobStatus $status)
300  {
301    $this->status = $status;
302  }
303  /**
304   * @return JobStatus
305   */
306  public function getStatus()
307  {
308    return $this->status;
309  }
310  /**
311   * @param JobStatus[]
312   */
313  public function setStatusHistory($statusHistory)
314  {
315    $this->statusHistory = $statusHistory;
316  }
317  /**
318   * @return JobStatus[]
319   */
320  public function getStatusHistory()
321  {
322    return $this->statusHistory;
323  }
324  /**
325   * @param YarnApplication[]
326   */
327  public function setYarnApplications($yarnApplications)
328  {
329    $this->yarnApplications = $yarnApplications;
330  }
331  /**
332   * @return YarnApplication[]
333   */
334  public function getYarnApplications()
335  {
336    return $this->yarnApplications;
337  }
338}
339
340// Adding a class alias for backwards compatibility with the previous class name.
341class_alias(Job::class, 'Google_Service_Dataproc_Job');
342