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\Dataproc;
|
---|
19 |
|
---|
20 | class StreamingQueryProgress extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'stateOperators';
|
---|
23 | /**
|
---|
24 | * @var string
|
---|
25 | */
|
---|
26 | public $batchDuration;
|
---|
27 | /**
|
---|
28 | * @var string
|
---|
29 | */
|
---|
30 | public $batchId;
|
---|
31 | /**
|
---|
32 | * @var string[]
|
---|
33 | */
|
---|
34 | public $durationMillis;
|
---|
35 | /**
|
---|
36 | * @var string[]
|
---|
37 | */
|
---|
38 | public $eventTime;
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $name;
|
---|
43 | /**
|
---|
44 | * @var string[]
|
---|
45 | */
|
---|
46 | public $observedMetrics;
|
---|
47 | /**
|
---|
48 | * @var string
|
---|
49 | */
|
---|
50 | public $runId;
|
---|
51 | protected $sinkType = SinkProgress::class;
|
---|
52 | protected $sinkDataType = '';
|
---|
53 | protected $sourcesType = SourceProgress::class;
|
---|
54 | protected $sourcesDataType = 'array';
|
---|
55 | protected $stateOperatorsType = StateOperatorProgress::class;
|
---|
56 | protected $stateOperatorsDataType = 'array';
|
---|
57 | /**
|
---|
58 | * @var string
|
---|
59 | */
|
---|
60 | public $streamingQueryProgressId;
|
---|
61 | /**
|
---|
62 | * @var string
|
---|
63 | */
|
---|
64 | public $timestamp;
|
---|
65 |
|
---|
66 | /**
|
---|
67 | * @param string
|
---|
68 | */
|
---|
69 | public function setBatchDuration($batchDuration)
|
---|
70 | {
|
---|
71 | $this->batchDuration = $batchDuration;
|
---|
72 | }
|
---|
73 | /**
|
---|
74 | * @return string
|
---|
75 | */
|
---|
76 | public function getBatchDuration()
|
---|
77 | {
|
---|
78 | return $this->batchDuration;
|
---|
79 | }
|
---|
80 | /**
|
---|
81 | * @param string
|
---|
82 | */
|
---|
83 | public function setBatchId($batchId)
|
---|
84 | {
|
---|
85 | $this->batchId = $batchId;
|
---|
86 | }
|
---|
87 | /**
|
---|
88 | * @return string
|
---|
89 | */
|
---|
90 | public function getBatchId()
|
---|
91 | {
|
---|
92 | return $this->batchId;
|
---|
93 | }
|
---|
94 | /**
|
---|
95 | * @param string[]
|
---|
96 | */
|
---|
97 | public function setDurationMillis($durationMillis)
|
---|
98 | {
|
---|
99 | $this->durationMillis = $durationMillis;
|
---|
100 | }
|
---|
101 | /**
|
---|
102 | * @return string[]
|
---|
103 | */
|
---|
104 | public function getDurationMillis()
|
---|
105 | {
|
---|
106 | return $this->durationMillis;
|
---|
107 | }
|
---|
108 | /**
|
---|
109 | * @param string[]
|
---|
110 | */
|
---|
111 | public function setEventTime($eventTime)
|
---|
112 | {
|
---|
113 | $this->eventTime = $eventTime;
|
---|
114 | }
|
---|
115 | /**
|
---|
116 | * @return string[]
|
---|
117 | */
|
---|
118 | public function getEventTime()
|
---|
119 | {
|
---|
120 | return $this->eventTime;
|
---|
121 | }
|
---|
122 | /**
|
---|
123 | * @param string
|
---|
124 | */
|
---|
125 | public function setName($name)
|
---|
126 | {
|
---|
127 | $this->name = $name;
|
---|
128 | }
|
---|
129 | /**
|
---|
130 | * @return string
|
---|
131 | */
|
---|
132 | public function getName()
|
---|
133 | {
|
---|
134 | return $this->name;
|
---|
135 | }
|
---|
136 | /**
|
---|
137 | * @param string[]
|
---|
138 | */
|
---|
139 | public function setObservedMetrics($observedMetrics)
|
---|
140 | {
|
---|
141 | $this->observedMetrics = $observedMetrics;
|
---|
142 | }
|
---|
143 | /**
|
---|
144 | * @return string[]
|
---|
145 | */
|
---|
146 | public function getObservedMetrics()
|
---|
147 | {
|
---|
148 | return $this->observedMetrics;
|
---|
149 | }
|
---|
150 | /**
|
---|
151 | * @param string
|
---|
152 | */
|
---|
153 | public function setRunId($runId)
|
---|
154 | {
|
---|
155 | $this->runId = $runId;
|
---|
156 | }
|
---|
157 | /**
|
---|
158 | * @return string
|
---|
159 | */
|
---|
160 | public function getRunId()
|
---|
161 | {
|
---|
162 | return $this->runId;
|
---|
163 | }
|
---|
164 | /**
|
---|
165 | * @param SinkProgress
|
---|
166 | */
|
---|
167 | public function setSink(SinkProgress $sink)
|
---|
168 | {
|
---|
169 | $this->sink = $sink;
|
---|
170 | }
|
---|
171 | /**
|
---|
172 | * @return SinkProgress
|
---|
173 | */
|
---|
174 | public function getSink()
|
---|
175 | {
|
---|
176 | return $this->sink;
|
---|
177 | }
|
---|
178 | /**
|
---|
179 | * @param SourceProgress[]
|
---|
180 | */
|
---|
181 | public function setSources($sources)
|
---|
182 | {
|
---|
183 | $this->sources = $sources;
|
---|
184 | }
|
---|
185 | /**
|
---|
186 | * @return SourceProgress[]
|
---|
187 | */
|
---|
188 | public function getSources()
|
---|
189 | {
|
---|
190 | return $this->sources;
|
---|
191 | }
|
---|
192 | /**
|
---|
193 | * @param StateOperatorProgress[]
|
---|
194 | */
|
---|
195 | public function setStateOperators($stateOperators)
|
---|
196 | {
|
---|
197 | $this->stateOperators = $stateOperators;
|
---|
198 | }
|
---|
199 | /**
|
---|
200 | * @return StateOperatorProgress[]
|
---|
201 | */
|
---|
202 | public function getStateOperators()
|
---|
203 | {
|
---|
204 | return $this->stateOperators;
|
---|
205 | }
|
---|
206 | /**
|
---|
207 | * @param string
|
---|
208 | */
|
---|
209 | public function setStreamingQueryProgressId($streamingQueryProgressId)
|
---|
210 | {
|
---|
211 | $this->streamingQueryProgressId = $streamingQueryProgressId;
|
---|
212 | }
|
---|
213 | /**
|
---|
214 | * @return string
|
---|
215 | */
|
---|
216 | public function getStreamingQueryProgressId()
|
---|
217 | {
|
---|
218 | return $this->streamingQueryProgressId;
|
---|
219 | }
|
---|
220 | /**
|
---|
221 | * @param string
|
---|
222 | */
|
---|
223 | public function setTimestamp($timestamp)
|
---|
224 | {
|
---|
225 | $this->timestamp = $timestamp;
|
---|
226 | }
|
---|
227 | /**
|
---|
228 | * @return string
|
---|
229 | */
|
---|
230 | public function getTimestamp()
|
---|
231 | {
|
---|
232 | return $this->timestamp;
|
---|
233 | }
|
---|
234 | }
|
---|
235 |
|
---|
236 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
237 | class_alias(StreamingQueryProgress::class, 'Google_Service_Dataproc_StreamingQueryProgress');
|
---|