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 WorkItemStatus extends \Google\Collection
21{
22  protected $collection_key = 'metricUpdates';
23  /**
24   * @var bool
25   */
26  public $completed;
27  protected $counterUpdatesType = CounterUpdate::class;
28  protected $counterUpdatesDataType = 'array';
29  protected $dynamicSourceSplitType = DynamicSourceSplit::class;
30  protected $dynamicSourceSplitDataType = '';
31  protected $errorsType = Status::class;
32  protected $errorsDataType = 'array';
33  protected $metricUpdatesType = MetricUpdate::class;
34  protected $metricUpdatesDataType = 'array';
35  protected $progressType = ApproximateProgress::class;
36  protected $progressDataType = '';
37  /**
38   * @var string
39   */
40  public $reportIndex;
41  protected $reportedProgressType = ApproximateReportedProgress::class;
42  protected $reportedProgressDataType = '';
43  /**
44   * @var string
45   */
46  public $requestedLeaseDuration;
47  protected $sourceForkType = SourceFork::class;
48  protected $sourceForkDataType = '';
49  protected $sourceOperationResponseType = SourceOperationResponse::class;
50  protected $sourceOperationResponseDataType = '';
51  protected $stopPositionType = Position::class;
52  protected $stopPositionDataType = '';
53  public $totalThrottlerWaitTimeSeconds;
54  /**
55   * @var string
56   */
57  public $workItemId;
58
59  /**
60   * @param bool
61   */
62  public function setCompleted($completed)
63  {
64    $this->completed = $completed;
65  }
66  /**
67   * @return bool
68   */
69  public function getCompleted()
70  {
71    return $this->completed;
72  }
73  /**
74   * @param CounterUpdate[]
75   */
76  public function setCounterUpdates($counterUpdates)
77  {
78    $this->counterUpdates = $counterUpdates;
79  }
80  /**
81   * @return CounterUpdate[]
82   */
83  public function getCounterUpdates()
84  {
85    return $this->counterUpdates;
86  }
87  /**
88   * @param DynamicSourceSplit
89   */
90  public function setDynamicSourceSplit(DynamicSourceSplit $dynamicSourceSplit)
91  {
92    $this->dynamicSourceSplit = $dynamicSourceSplit;
93  }
94  /**
95   * @return DynamicSourceSplit
96   */
97  public function getDynamicSourceSplit()
98  {
99    return $this->dynamicSourceSplit;
100  }
101  /**
102   * @param Status[]
103   */
104  public function setErrors($errors)
105  {
106    $this->errors = $errors;
107  }
108  /**
109   * @return Status[]
110   */
111  public function getErrors()
112  {
113    return $this->errors;
114  }
115  /**
116   * @param MetricUpdate[]
117   */
118  public function setMetricUpdates($metricUpdates)
119  {
120    $this->metricUpdates = $metricUpdates;
121  }
122  /**
123   * @return MetricUpdate[]
124   */
125  public function getMetricUpdates()
126  {
127    return $this->metricUpdates;
128  }
129  /**
130   * @param ApproximateProgress
131   */
132  public function setProgress(ApproximateProgress $progress)
133  {
134    $this->progress = $progress;
135  }
136  /**
137   * @return ApproximateProgress
138   */
139  public function getProgress()
140  {
141    return $this->progress;
142  }
143  /**
144   * @param string
145   */
146  public function setReportIndex($reportIndex)
147  {
148    $this->reportIndex = $reportIndex;
149  }
150  /**
151   * @return string
152   */
153  public function getReportIndex()
154  {
155    return $this->reportIndex;
156  }
157  /**
158   * @param ApproximateReportedProgress
159   */
160  public function setReportedProgress(ApproximateReportedProgress $reportedProgress)
161  {
162    $this->reportedProgress = $reportedProgress;
163  }
164  /**
165   * @return ApproximateReportedProgress
166   */
167  public function getReportedProgress()
168  {
169    return $this->reportedProgress;
170  }
171  /**
172   * @param string
173   */
174  public function setRequestedLeaseDuration($requestedLeaseDuration)
175  {
176    $this->requestedLeaseDuration = $requestedLeaseDuration;
177  }
178  /**
179   * @return string
180   */
181  public function getRequestedLeaseDuration()
182  {
183    return $this->requestedLeaseDuration;
184  }
185  /**
186   * @param SourceFork
187   */
188  public function setSourceFork(SourceFork $sourceFork)
189  {
190    $this->sourceFork = $sourceFork;
191  }
192  /**
193   * @return SourceFork
194   */
195  public function getSourceFork()
196  {
197    return $this->sourceFork;
198  }
199  /**
200   * @param SourceOperationResponse
201   */
202  public function setSourceOperationResponse(SourceOperationResponse $sourceOperationResponse)
203  {
204    $this->sourceOperationResponse = $sourceOperationResponse;
205  }
206  /**
207   * @return SourceOperationResponse
208   */
209  public function getSourceOperationResponse()
210  {
211    return $this->sourceOperationResponse;
212  }
213  /**
214   * @param Position
215   */
216  public function setStopPosition(Position $stopPosition)
217  {
218    $this->stopPosition = $stopPosition;
219  }
220  /**
221   * @return Position
222   */
223  public function getStopPosition()
224  {
225    return $this->stopPosition;
226  }
227  public function setTotalThrottlerWaitTimeSeconds($totalThrottlerWaitTimeSeconds)
228  {
229    $this->totalThrottlerWaitTimeSeconds = $totalThrottlerWaitTimeSeconds;
230  }
231  public function getTotalThrottlerWaitTimeSeconds()
232  {
233    return $this->totalThrottlerWaitTimeSeconds;
234  }
235  /**
236   * @param string
237   */
238  public function setWorkItemId($workItemId)
239  {
240    $this->workItemId = $workItemId;
241  }
242  /**
243   * @return string
244   */
245  public function getWorkItemId()
246  {
247    return $this->workItemId;
248  }
249}
250
251// Adding a class alias for backwards compatibility with the previous class name.
252class_alias(WorkItemStatus::class, 'Google_Service_Dataflow_WorkItemStatus');
253