[e3d4e0a] | 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 WorkerMessage extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | protected $dataSamplingReportType = DataSamplingReport::class;
|
---|
| 23 | protected $dataSamplingReportDataType = '';
|
---|
| 24 | /**
|
---|
| 25 | * @var string[]
|
---|
| 26 | */
|
---|
| 27 | public $labels;
|
---|
| 28 | protected $perWorkerMetricsType = PerWorkerMetrics::class;
|
---|
| 29 | protected $perWorkerMetricsDataType = '';
|
---|
| 30 | protected $streamingScalingReportType = StreamingScalingReport::class;
|
---|
| 31 | protected $streamingScalingReportDataType = '';
|
---|
| 32 | /**
|
---|
| 33 | * @var string
|
---|
| 34 | */
|
---|
| 35 | public $time;
|
---|
| 36 | protected $workerHealthReportType = WorkerHealthReport::class;
|
---|
| 37 | protected $workerHealthReportDataType = '';
|
---|
| 38 | protected $workerLifecycleEventType = WorkerLifecycleEvent::class;
|
---|
| 39 | protected $workerLifecycleEventDataType = '';
|
---|
| 40 | protected $workerMessageCodeType = WorkerMessageCode::class;
|
---|
| 41 | protected $workerMessageCodeDataType = '';
|
---|
| 42 | protected $workerMetricsType = ResourceUtilizationReport::class;
|
---|
| 43 | protected $workerMetricsDataType = '';
|
---|
| 44 | protected $workerShutdownNoticeType = WorkerShutdownNotice::class;
|
---|
| 45 | protected $workerShutdownNoticeDataType = '';
|
---|
| 46 | protected $workerThreadScalingReportType = WorkerThreadScalingReport::class;
|
---|
| 47 | protected $workerThreadScalingReportDataType = '';
|
---|
| 48 |
|
---|
| 49 | /**
|
---|
| 50 | * @param DataSamplingReport
|
---|
| 51 | */
|
---|
| 52 | public function setDataSamplingReport(DataSamplingReport $dataSamplingReport)
|
---|
| 53 | {
|
---|
| 54 | $this->dataSamplingReport = $dataSamplingReport;
|
---|
| 55 | }
|
---|
| 56 | /**
|
---|
| 57 | * @return DataSamplingReport
|
---|
| 58 | */
|
---|
| 59 | public function getDataSamplingReport()
|
---|
| 60 | {
|
---|
| 61 | return $this->dataSamplingReport;
|
---|
| 62 | }
|
---|
| 63 | /**
|
---|
| 64 | * @param string[]
|
---|
| 65 | */
|
---|
| 66 | public function setLabels($labels)
|
---|
| 67 | {
|
---|
| 68 | $this->labels = $labels;
|
---|
| 69 | }
|
---|
| 70 | /**
|
---|
| 71 | * @return string[]
|
---|
| 72 | */
|
---|
| 73 | public function getLabels()
|
---|
| 74 | {
|
---|
| 75 | return $this->labels;
|
---|
| 76 | }
|
---|
| 77 | /**
|
---|
| 78 | * @param PerWorkerMetrics
|
---|
| 79 | */
|
---|
| 80 | public function setPerWorkerMetrics(PerWorkerMetrics $perWorkerMetrics)
|
---|
| 81 | {
|
---|
| 82 | $this->perWorkerMetrics = $perWorkerMetrics;
|
---|
| 83 | }
|
---|
| 84 | /**
|
---|
| 85 | * @return PerWorkerMetrics
|
---|
| 86 | */
|
---|
| 87 | public function getPerWorkerMetrics()
|
---|
| 88 | {
|
---|
| 89 | return $this->perWorkerMetrics;
|
---|
| 90 | }
|
---|
| 91 | /**
|
---|
| 92 | * @param StreamingScalingReport
|
---|
| 93 | */
|
---|
| 94 | public function setStreamingScalingReport(StreamingScalingReport $streamingScalingReport)
|
---|
| 95 | {
|
---|
| 96 | $this->streamingScalingReport = $streamingScalingReport;
|
---|
| 97 | }
|
---|
| 98 | /**
|
---|
| 99 | * @return StreamingScalingReport
|
---|
| 100 | */
|
---|
| 101 | public function getStreamingScalingReport()
|
---|
| 102 | {
|
---|
| 103 | return $this->streamingScalingReport;
|
---|
| 104 | }
|
---|
| 105 | /**
|
---|
| 106 | * @param string
|
---|
| 107 | */
|
---|
| 108 | public function setTime($time)
|
---|
| 109 | {
|
---|
| 110 | $this->time = $time;
|
---|
| 111 | }
|
---|
| 112 | /**
|
---|
| 113 | * @return string
|
---|
| 114 | */
|
---|
| 115 | public function getTime()
|
---|
| 116 | {
|
---|
| 117 | return $this->time;
|
---|
| 118 | }
|
---|
| 119 | /**
|
---|
| 120 | * @param WorkerHealthReport
|
---|
| 121 | */
|
---|
| 122 | public function setWorkerHealthReport(WorkerHealthReport $workerHealthReport)
|
---|
| 123 | {
|
---|
| 124 | $this->workerHealthReport = $workerHealthReport;
|
---|
| 125 | }
|
---|
| 126 | /**
|
---|
| 127 | * @return WorkerHealthReport
|
---|
| 128 | */
|
---|
| 129 | public function getWorkerHealthReport()
|
---|
| 130 | {
|
---|
| 131 | return $this->workerHealthReport;
|
---|
| 132 | }
|
---|
| 133 | /**
|
---|
| 134 | * @param WorkerLifecycleEvent
|
---|
| 135 | */
|
---|
| 136 | public function setWorkerLifecycleEvent(WorkerLifecycleEvent $workerLifecycleEvent)
|
---|
| 137 | {
|
---|
| 138 | $this->workerLifecycleEvent = $workerLifecycleEvent;
|
---|
| 139 | }
|
---|
| 140 | /**
|
---|
| 141 | * @return WorkerLifecycleEvent
|
---|
| 142 | */
|
---|
| 143 | public function getWorkerLifecycleEvent()
|
---|
| 144 | {
|
---|
| 145 | return $this->workerLifecycleEvent;
|
---|
| 146 | }
|
---|
| 147 | /**
|
---|
| 148 | * @param WorkerMessageCode
|
---|
| 149 | */
|
---|
| 150 | public function setWorkerMessageCode(WorkerMessageCode $workerMessageCode)
|
---|
| 151 | {
|
---|
| 152 | $this->workerMessageCode = $workerMessageCode;
|
---|
| 153 | }
|
---|
| 154 | /**
|
---|
| 155 | * @return WorkerMessageCode
|
---|
| 156 | */
|
---|
| 157 | public function getWorkerMessageCode()
|
---|
| 158 | {
|
---|
| 159 | return $this->workerMessageCode;
|
---|
| 160 | }
|
---|
| 161 | /**
|
---|
| 162 | * @param ResourceUtilizationReport
|
---|
| 163 | */
|
---|
| 164 | public function setWorkerMetrics(ResourceUtilizationReport $workerMetrics)
|
---|
| 165 | {
|
---|
| 166 | $this->workerMetrics = $workerMetrics;
|
---|
| 167 | }
|
---|
| 168 | /**
|
---|
| 169 | * @return ResourceUtilizationReport
|
---|
| 170 | */
|
---|
| 171 | public function getWorkerMetrics()
|
---|
| 172 | {
|
---|
| 173 | return $this->workerMetrics;
|
---|
| 174 | }
|
---|
| 175 | /**
|
---|
| 176 | * @param WorkerShutdownNotice
|
---|
| 177 | */
|
---|
| 178 | public function setWorkerShutdownNotice(WorkerShutdownNotice $workerShutdownNotice)
|
---|
| 179 | {
|
---|
| 180 | $this->workerShutdownNotice = $workerShutdownNotice;
|
---|
| 181 | }
|
---|
| 182 | /**
|
---|
| 183 | * @return WorkerShutdownNotice
|
---|
| 184 | */
|
---|
| 185 | public function getWorkerShutdownNotice()
|
---|
| 186 | {
|
---|
| 187 | return $this->workerShutdownNotice;
|
---|
| 188 | }
|
---|
| 189 | /**
|
---|
| 190 | * @param WorkerThreadScalingReport
|
---|
| 191 | */
|
---|
| 192 | public function setWorkerThreadScalingReport(WorkerThreadScalingReport $workerThreadScalingReport)
|
---|
| 193 | {
|
---|
| 194 | $this->workerThreadScalingReport = $workerThreadScalingReport;
|
---|
| 195 | }
|
---|
| 196 | /**
|
---|
| 197 | * @return WorkerThreadScalingReport
|
---|
| 198 | */
|
---|
| 199 | public function getWorkerThreadScalingReport()
|
---|
| 200 | {
|
---|
| 201 | return $this->workerThreadScalingReport;
|
---|
| 202 | }
|
---|
| 203 | }
|
---|
| 204 |
|
---|
| 205 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 206 | class_alias(WorkerMessage::class, 'Google_Service_Dataflow_WorkerMessage');
|
---|