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\Dataflow;
|
---|
19 |
|
---|
20 | class WorkItem extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'packages';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $configuration;
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $id;
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $initialReportIndex;
|
---|
35 | /**
|
---|
36 | * @var string
|
---|
37 | */
|
---|
38 | public $jobId;
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $leaseExpireTime;
|
---|
43 | protected $mapTaskType = MapTask::class;
|
---|
44 | protected $mapTaskDataType = '';
|
---|
45 | protected $packagesType = Package::class;
|
---|
46 | protected $packagesDataType = 'array';
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $projectId;
|
---|
51 | /**
|
---|
52 | * @var string
|
---|
53 | */
|
---|
54 | public $reportStatusInterval;
|
---|
55 | protected $seqMapTaskType = SeqMapTask::class;
|
---|
56 | protected $seqMapTaskDataType = '';
|
---|
57 | protected $shellTaskType = ShellTask::class;
|
---|
58 | protected $shellTaskDataType = '';
|
---|
59 | protected $sourceOperationTaskType = SourceOperationRequest::class;
|
---|
60 | protected $sourceOperationTaskDataType = '';
|
---|
61 | protected $streamingComputationTaskType = StreamingComputationTask::class;
|
---|
62 | protected $streamingComputationTaskDataType = '';
|
---|
63 | protected $streamingConfigTaskType = StreamingConfigTask::class;
|
---|
64 | protected $streamingConfigTaskDataType = '';
|
---|
65 | protected $streamingSetupTaskType = StreamingSetupTask::class;
|
---|
66 | protected $streamingSetupTaskDataType = '';
|
---|
67 |
|
---|
68 | /**
|
---|
69 | * @param string
|
---|
70 | */
|
---|
71 | public function setConfiguration($configuration)
|
---|
72 | {
|
---|
73 | $this->configuration = $configuration;
|
---|
74 | }
|
---|
75 | /**
|
---|
76 | * @return string
|
---|
77 | */
|
---|
78 | public function getConfiguration()
|
---|
79 | {
|
---|
80 | return $this->configuration;
|
---|
81 | }
|
---|
82 | /**
|
---|
83 | * @param string
|
---|
84 | */
|
---|
85 | public function setId($id)
|
---|
86 | {
|
---|
87 | $this->id = $id;
|
---|
88 | }
|
---|
89 | /**
|
---|
90 | * @return string
|
---|
91 | */
|
---|
92 | public function getId()
|
---|
93 | {
|
---|
94 | return $this->id;
|
---|
95 | }
|
---|
96 | /**
|
---|
97 | * @param string
|
---|
98 | */
|
---|
99 | public function setInitialReportIndex($initialReportIndex)
|
---|
100 | {
|
---|
101 | $this->initialReportIndex = $initialReportIndex;
|
---|
102 | }
|
---|
103 | /**
|
---|
104 | * @return string
|
---|
105 | */
|
---|
106 | public function getInitialReportIndex()
|
---|
107 | {
|
---|
108 | return $this->initialReportIndex;
|
---|
109 | }
|
---|
110 | /**
|
---|
111 | * @param string
|
---|
112 | */
|
---|
113 | public function setJobId($jobId)
|
---|
114 | {
|
---|
115 | $this->jobId = $jobId;
|
---|
116 | }
|
---|
117 | /**
|
---|
118 | * @return string
|
---|
119 | */
|
---|
120 | public function getJobId()
|
---|
121 | {
|
---|
122 | return $this->jobId;
|
---|
123 | }
|
---|
124 | /**
|
---|
125 | * @param string
|
---|
126 | */
|
---|
127 | public function setLeaseExpireTime($leaseExpireTime)
|
---|
128 | {
|
---|
129 | $this->leaseExpireTime = $leaseExpireTime;
|
---|
130 | }
|
---|
131 | /**
|
---|
132 | * @return string
|
---|
133 | */
|
---|
134 | public function getLeaseExpireTime()
|
---|
135 | {
|
---|
136 | return $this->leaseExpireTime;
|
---|
137 | }
|
---|
138 | /**
|
---|
139 | * @param MapTask
|
---|
140 | */
|
---|
141 | public function setMapTask(MapTask $mapTask)
|
---|
142 | {
|
---|
143 | $this->mapTask = $mapTask;
|
---|
144 | }
|
---|
145 | /**
|
---|
146 | * @return MapTask
|
---|
147 | */
|
---|
148 | public function getMapTask()
|
---|
149 | {
|
---|
150 | return $this->mapTask;
|
---|
151 | }
|
---|
152 | /**
|
---|
153 | * @param Package[]
|
---|
154 | */
|
---|
155 | public function setPackages($packages)
|
---|
156 | {
|
---|
157 | $this->packages = $packages;
|
---|
158 | }
|
---|
159 | /**
|
---|
160 | * @return Package[]
|
---|
161 | */
|
---|
162 | public function getPackages()
|
---|
163 | {
|
---|
164 | return $this->packages;
|
---|
165 | }
|
---|
166 | /**
|
---|
167 | * @param string
|
---|
168 | */
|
---|
169 | public function setProjectId($projectId)
|
---|
170 | {
|
---|
171 | $this->projectId = $projectId;
|
---|
172 | }
|
---|
173 | /**
|
---|
174 | * @return string
|
---|
175 | */
|
---|
176 | public function getProjectId()
|
---|
177 | {
|
---|
178 | return $this->projectId;
|
---|
179 | }
|
---|
180 | /**
|
---|
181 | * @param string
|
---|
182 | */
|
---|
183 | public function setReportStatusInterval($reportStatusInterval)
|
---|
184 | {
|
---|
185 | $this->reportStatusInterval = $reportStatusInterval;
|
---|
186 | }
|
---|
187 | /**
|
---|
188 | * @return string
|
---|
189 | */
|
---|
190 | public function getReportStatusInterval()
|
---|
191 | {
|
---|
192 | return $this->reportStatusInterval;
|
---|
193 | }
|
---|
194 | /**
|
---|
195 | * @param SeqMapTask
|
---|
196 | */
|
---|
197 | public function setSeqMapTask(SeqMapTask $seqMapTask)
|
---|
198 | {
|
---|
199 | $this->seqMapTask = $seqMapTask;
|
---|
200 | }
|
---|
201 | /**
|
---|
202 | * @return SeqMapTask
|
---|
203 | */
|
---|
204 | public function getSeqMapTask()
|
---|
205 | {
|
---|
206 | return $this->seqMapTask;
|
---|
207 | }
|
---|
208 | /**
|
---|
209 | * @param ShellTask
|
---|
210 | */
|
---|
211 | public function setShellTask(ShellTask $shellTask)
|
---|
212 | {
|
---|
213 | $this->shellTask = $shellTask;
|
---|
214 | }
|
---|
215 | /**
|
---|
216 | * @return ShellTask
|
---|
217 | */
|
---|
218 | public function getShellTask()
|
---|
219 | {
|
---|
220 | return $this->shellTask;
|
---|
221 | }
|
---|
222 | /**
|
---|
223 | * @param SourceOperationRequest
|
---|
224 | */
|
---|
225 | public function setSourceOperationTask(SourceOperationRequest $sourceOperationTask)
|
---|
226 | {
|
---|
227 | $this->sourceOperationTask = $sourceOperationTask;
|
---|
228 | }
|
---|
229 | /**
|
---|
230 | * @return SourceOperationRequest
|
---|
231 | */
|
---|
232 | public function getSourceOperationTask()
|
---|
233 | {
|
---|
234 | return $this->sourceOperationTask;
|
---|
235 | }
|
---|
236 | /**
|
---|
237 | * @param StreamingComputationTask
|
---|
238 | */
|
---|
239 | public function setStreamingComputationTask(StreamingComputationTask $streamingComputationTask)
|
---|
240 | {
|
---|
241 | $this->streamingComputationTask = $streamingComputationTask;
|
---|
242 | }
|
---|
243 | /**
|
---|
244 | * @return StreamingComputationTask
|
---|
245 | */
|
---|
246 | public function getStreamingComputationTask()
|
---|
247 | {
|
---|
248 | return $this->streamingComputationTask;
|
---|
249 | }
|
---|
250 | /**
|
---|
251 | * @param StreamingConfigTask
|
---|
252 | */
|
---|
253 | public function setStreamingConfigTask(StreamingConfigTask $streamingConfigTask)
|
---|
254 | {
|
---|
255 | $this->streamingConfigTask = $streamingConfigTask;
|
---|
256 | }
|
---|
257 | /**
|
---|
258 | * @return StreamingConfigTask
|
---|
259 | */
|
---|
260 | public function getStreamingConfigTask()
|
---|
261 | {
|
---|
262 | return $this->streamingConfigTask;
|
---|
263 | }
|
---|
264 | /**
|
---|
265 | * @param StreamingSetupTask
|
---|
266 | */
|
---|
267 | public function setStreamingSetupTask(StreamingSetupTask $streamingSetupTask)
|
---|
268 | {
|
---|
269 | $this->streamingSetupTask = $streamingSetupTask;
|
---|
270 | }
|
---|
271 | /**
|
---|
272 | * @return StreamingSetupTask
|
---|
273 | */
|
---|
274 | public function getStreamingSetupTask()
|
---|
275 | {
|
---|
276 | return $this->streamingSetupTask;
|
---|
277 | }
|
---|
278 | }
|
---|
279 |
|
---|
280 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
281 | class_alias(WorkItem::class, 'Google_Service_Dataflow_WorkItem');
|
---|