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 WorkItemServiceState extends \Google\Collection
21{
22  protected $collection_key = 'metricShortId';
23  protected $completeWorkStatusType = Status::class;
24  protected $completeWorkStatusDataType = '';
25  /**
26   * @var array[]
27   */
28  public $harnessData;
29  protected $hotKeyDetectionType = HotKeyDetection::class;
30  protected $hotKeyDetectionDataType = '';
31  /**
32   * @var string
33   */
34  public $leaseExpireTime;
35  protected $metricShortIdType = MetricShortId::class;
36  protected $metricShortIdDataType = 'array';
37  /**
38   * @var string
39   */
40  public $nextReportIndex;
41  /**
42   * @var string
43   */
44  public $reportStatusInterval;
45  protected $splitRequestType = ApproximateSplitRequest::class;
46  protected $splitRequestDataType = '';
47  protected $suggestedStopPointType = ApproximateProgress::class;
48  protected $suggestedStopPointDataType = '';
49  protected $suggestedStopPositionType = Position::class;
50  protected $suggestedStopPositionDataType = '';
51
52  /**
53   * @param Status
54   */
55  public function setCompleteWorkStatus(Status $completeWorkStatus)
56  {
57    $this->completeWorkStatus = $completeWorkStatus;
58  }
59  /**
60   * @return Status
61   */
62  public function getCompleteWorkStatus()
63  {
64    return $this->completeWorkStatus;
65  }
66  /**
67   * @param array[]
68   */
69  public function setHarnessData($harnessData)
70  {
71    $this->harnessData = $harnessData;
72  }
73  /**
74   * @return array[]
75   */
76  public function getHarnessData()
77  {
78    return $this->harnessData;
79  }
80  /**
81   * @param HotKeyDetection
82   */
83  public function setHotKeyDetection(HotKeyDetection $hotKeyDetection)
84  {
85    $this->hotKeyDetection = $hotKeyDetection;
86  }
87  /**
88   * @return HotKeyDetection
89   */
90  public function getHotKeyDetection()
91  {
92    return $this->hotKeyDetection;
93  }
94  /**
95   * @param string
96   */
97  public function setLeaseExpireTime($leaseExpireTime)
98  {
99    $this->leaseExpireTime = $leaseExpireTime;
100  }
101  /**
102   * @return string
103   */
104  public function getLeaseExpireTime()
105  {
106    return $this->leaseExpireTime;
107  }
108  /**
109   * @param MetricShortId[]
110   */
111  public function setMetricShortId($metricShortId)
112  {
113    $this->metricShortId = $metricShortId;
114  }
115  /**
116   * @return MetricShortId[]
117   */
118  public function getMetricShortId()
119  {
120    return $this->metricShortId;
121  }
122  /**
123   * @param string
124   */
125  public function setNextReportIndex($nextReportIndex)
126  {
127    $this->nextReportIndex = $nextReportIndex;
128  }
129  /**
130   * @return string
131   */
132  public function getNextReportIndex()
133  {
134    return $this->nextReportIndex;
135  }
136  /**
137   * @param string
138   */
139  public function setReportStatusInterval($reportStatusInterval)
140  {
141    $this->reportStatusInterval = $reportStatusInterval;
142  }
143  /**
144   * @return string
145   */
146  public function getReportStatusInterval()
147  {
148    return $this->reportStatusInterval;
149  }
150  /**
151   * @param ApproximateSplitRequest
152   */
153  public function setSplitRequest(ApproximateSplitRequest $splitRequest)
154  {
155    $this->splitRequest = $splitRequest;
156  }
157  /**
158   * @return ApproximateSplitRequest
159   */
160  public function getSplitRequest()
161  {
162    return $this->splitRequest;
163  }
164  /**
165   * @param ApproximateProgress
166   */
167  public function setSuggestedStopPoint(ApproximateProgress $suggestedStopPoint)
168  {
169    $this->suggestedStopPoint = $suggestedStopPoint;
170  }
171  /**
172   * @return ApproximateProgress
173   */
174  public function getSuggestedStopPoint()
175  {
176    return $this->suggestedStopPoint;
177  }
178  /**
179   * @param Position
180   */
181  public function setSuggestedStopPosition(Position $suggestedStopPosition)
182  {
183    $this->suggestedStopPosition = $suggestedStopPosition;
184  }
185  /**
186   * @return Position
187   */
188  public function getSuggestedStopPosition()
189  {
190    return $this->suggestedStopPosition;
191  }
192}
193
194// Adding a class alias for backwards compatibility with the previous class name.
195class_alias(WorkItemServiceState::class, 'Google_Service_Dataflow_WorkItemServiceState');
196