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 OrderedJob extends \Google\Collection
21{
22  protected $collection_key = 'prerequisiteStepIds';
23  protected $hadoopJobType = HadoopJob::class;
24  protected $hadoopJobDataType = '';
25  protected $hiveJobType = HiveJob::class;
26  protected $hiveJobDataType = '';
27  /**
28   * @var string[]
29   */
30  public $labels;
31  protected $pigJobType = PigJob::class;
32  protected $pigJobDataType = '';
33  /**
34   * @var string[]
35   */
36  public $prerequisiteStepIds;
37  protected $prestoJobType = PrestoJob::class;
38  protected $prestoJobDataType = '';
39  protected $pysparkJobType = PySparkJob::class;
40  protected $pysparkJobDataType = '';
41  protected $schedulingType = JobScheduling::class;
42  protected $schedulingDataType = '';
43  protected $sparkJobType = SparkJob::class;
44  protected $sparkJobDataType = '';
45  protected $sparkRJobType = SparkRJob::class;
46  protected $sparkRJobDataType = '';
47  protected $sparkSqlJobType = SparkSqlJob::class;
48  protected $sparkSqlJobDataType = '';
49  /**
50   * @var string
51   */
52  public $stepId;
53
54  /**
55   * @param HadoopJob
56   */
57  public function setHadoopJob(HadoopJob $hadoopJob)
58  {
59    $this->hadoopJob = $hadoopJob;
60  }
61  /**
62   * @return HadoopJob
63   */
64  public function getHadoopJob()
65  {
66    return $this->hadoopJob;
67  }
68  /**
69   * @param HiveJob
70   */
71  public function setHiveJob(HiveJob $hiveJob)
72  {
73    $this->hiveJob = $hiveJob;
74  }
75  /**
76   * @return HiveJob
77   */
78  public function getHiveJob()
79  {
80    return $this->hiveJob;
81  }
82  /**
83   * @param string[]
84   */
85  public function setLabels($labels)
86  {
87    $this->labels = $labels;
88  }
89  /**
90   * @return string[]
91   */
92  public function getLabels()
93  {
94    return $this->labels;
95  }
96  /**
97   * @param PigJob
98   */
99  public function setPigJob(PigJob $pigJob)
100  {
101    $this->pigJob = $pigJob;
102  }
103  /**
104   * @return PigJob
105   */
106  public function getPigJob()
107  {
108    return $this->pigJob;
109  }
110  /**
111   * @param string[]
112   */
113  public function setPrerequisiteStepIds($prerequisiteStepIds)
114  {
115    $this->prerequisiteStepIds = $prerequisiteStepIds;
116  }
117  /**
118   * @return string[]
119   */
120  public function getPrerequisiteStepIds()
121  {
122    return $this->prerequisiteStepIds;
123  }
124  /**
125   * @param PrestoJob
126   */
127  public function setPrestoJob(PrestoJob $prestoJob)
128  {
129    $this->prestoJob = $prestoJob;
130  }
131  /**
132   * @return PrestoJob
133   */
134  public function getPrestoJob()
135  {
136    return $this->prestoJob;
137  }
138  /**
139   * @param PySparkJob
140   */
141  public function setPysparkJob(PySparkJob $pysparkJob)
142  {
143    $this->pysparkJob = $pysparkJob;
144  }
145  /**
146   * @return PySparkJob
147   */
148  public function getPysparkJob()
149  {
150    return $this->pysparkJob;
151  }
152  /**
153   * @param JobScheduling
154   */
155  public function setScheduling(JobScheduling $scheduling)
156  {
157    $this->scheduling = $scheduling;
158  }
159  /**
160   * @return JobScheduling
161   */
162  public function getScheduling()
163  {
164    return $this->scheduling;
165  }
166  /**
167   * @param SparkJob
168   */
169  public function setSparkJob(SparkJob $sparkJob)
170  {
171    $this->sparkJob = $sparkJob;
172  }
173  /**
174   * @return SparkJob
175   */
176  public function getSparkJob()
177  {
178    return $this->sparkJob;
179  }
180  /**
181   * @param SparkRJob
182   */
183  public function setSparkRJob(SparkRJob $sparkRJob)
184  {
185    $this->sparkRJob = $sparkRJob;
186  }
187  /**
188   * @return SparkRJob
189   */
190  public function getSparkRJob()
191  {
192    return $this->sparkRJob;
193  }
194  /**
195   * @param SparkSqlJob
196   */
197  public function setSparkSqlJob(SparkSqlJob $sparkSqlJob)
198  {
199    $this->sparkSqlJob = $sparkSqlJob;
200  }
201  /**
202   * @return SparkSqlJob
203   */
204  public function getSparkSqlJob()
205  {
206    return $this->sparkSqlJob;
207  }
208  /**
209   * @param string
210   */
211  public function setStepId($stepId)
212  {
213    $this->stepId = $stepId;
214  }
215  /**
216   * @return string
217   */
218  public function getStepId()
219  {
220    return $this->stepId;
221  }
222}
223
224// Adding a class alias for backwards compatibility with the previous class name.
225class_alias(OrderedJob::class, 'Google_Service_Dataproc_OrderedJob');
226