1<?php
2# Generated by the protocol buffer compiler.  DO NOT EDIT!
3# source: src/proto/grpc/testing/control.proto
4
5namespace Grpc\Testing;
6
7use Google\Protobuf\Internal\GPBType;
8use Google\Protobuf\Internal\RepeatedField;
9use Google\Protobuf\Internal\GPBUtil;
10
11/**
12 * Basic summary that can be computed from ClientStats and ServerStats
13 * once the scenario has finished.
14 *
15 * Generated from protobuf message <code>grpc.testing.ScenarioResultSummary</code>
16 */
17class ScenarioResultSummary extends \Google\Protobuf\Internal\Message
18{
19    /**
20     * Total number of operations per second over all clients.
21     *
22     * Generated from protobuf field <code>double qps = 1;</code>
23     */
24    private $qps = 0.0;
25    /**
26     * QPS per one server core.
27     *
28     * Generated from protobuf field <code>double qps_per_server_core = 2;</code>
29     */
30    private $qps_per_server_core = 0.0;
31    /**
32     * server load based on system_time (0.85 => 85%)
33     *
34     * Generated from protobuf field <code>double server_system_time = 3;</code>
35     */
36    private $server_system_time = 0.0;
37    /**
38     * server load based on user_time (0.85 => 85%)
39     *
40     * Generated from protobuf field <code>double server_user_time = 4;</code>
41     */
42    private $server_user_time = 0.0;
43    /**
44     * client load based on system_time (0.85 => 85%)
45     *
46     * Generated from protobuf field <code>double client_system_time = 5;</code>
47     */
48    private $client_system_time = 0.0;
49    /**
50     * client load based on user_time (0.85 => 85%)
51     *
52     * Generated from protobuf field <code>double client_user_time = 6;</code>
53     */
54    private $client_user_time = 0.0;
55    /**
56     * X% latency percentiles (in nanoseconds)
57     *
58     * Generated from protobuf field <code>double latency_50 = 7;</code>
59     */
60    private $latency_50 = 0.0;
61    /**
62     * Generated from protobuf field <code>double latency_90 = 8;</code>
63     */
64    private $latency_90 = 0.0;
65    /**
66     * Generated from protobuf field <code>double latency_95 = 9;</code>
67     */
68    private $latency_95 = 0.0;
69    /**
70     * Generated from protobuf field <code>double latency_99 = 10;</code>
71     */
72    private $latency_99 = 0.0;
73    /**
74     * Generated from protobuf field <code>double latency_999 = 11;</code>
75     */
76    private $latency_999 = 0.0;
77    /**
78     * server cpu usage percentage
79     *
80     * Generated from protobuf field <code>double server_cpu_usage = 12;</code>
81     */
82    private $server_cpu_usage = 0.0;
83    /**
84     * Number of requests that succeeded/failed
85     *
86     * Generated from protobuf field <code>double successful_requests_per_second = 13;</code>
87     */
88    private $successful_requests_per_second = 0.0;
89    /**
90     * Generated from protobuf field <code>double failed_requests_per_second = 14;</code>
91     */
92    private $failed_requests_per_second = 0.0;
93    /**
94     * Number of polls called inside completion queue per request
95     *
96     * Generated from protobuf field <code>double client_polls_per_request = 15;</code>
97     */
98    private $client_polls_per_request = 0.0;
99    /**
100     * Generated from protobuf field <code>double server_polls_per_request = 16;</code>
101     */
102    private $server_polls_per_request = 0.0;
103    /**
104     * Queries per CPU-sec over all servers or clients
105     *
106     * Generated from protobuf field <code>double server_queries_per_cpu_sec = 17;</code>
107     */
108    private $server_queries_per_cpu_sec = 0.0;
109    /**
110     * Generated from protobuf field <code>double client_queries_per_cpu_sec = 18;</code>
111     */
112    private $client_queries_per_cpu_sec = 0.0;
113
114    public function __construct() {
115        \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
116        parent::__construct();
117    }
118
119    /**
120     * Total number of operations per second over all clients.
121     *
122     * Generated from protobuf field <code>double qps = 1;</code>
123     * @return float
124     */
125    public function getQps()
126    {
127        return $this->qps;
128    }
129
130    /**
131     * Total number of operations per second over all clients.
132     *
133     * Generated from protobuf field <code>double qps = 1;</code>
134     * @param float $var
135     * @return $this
136     */
137    public function setQps($var)
138    {
139        GPBUtil::checkDouble($var);
140        $this->qps = $var;
141
142        return $this;
143    }
144
145    /**
146     * QPS per one server core.
147     *
148     * Generated from protobuf field <code>double qps_per_server_core = 2;</code>
149     * @return float
150     */
151    public function getQpsPerServerCore()
152    {
153        return $this->qps_per_server_core;
154    }
155
156    /**
157     * QPS per one server core.
158     *
159     * Generated from protobuf field <code>double qps_per_server_core = 2;</code>
160     * @param float $var
161     * @return $this
162     */
163    public function setQpsPerServerCore($var)
164    {
165        GPBUtil::checkDouble($var);
166        $this->qps_per_server_core = $var;
167
168        return $this;
169    }
170
171    /**
172     * server load based on system_time (0.85 => 85%)
173     *
174     * Generated from protobuf field <code>double server_system_time = 3;</code>
175     * @return float
176     */
177    public function getServerSystemTime()
178    {
179        return $this->server_system_time;
180    }
181
182    /**
183     * server load based on system_time (0.85 => 85%)
184     *
185     * Generated from protobuf field <code>double server_system_time = 3;</code>
186     * @param float $var
187     * @return $this
188     */
189    public function setServerSystemTime($var)
190    {
191        GPBUtil::checkDouble($var);
192        $this->server_system_time = $var;
193
194        return $this;
195    }
196
197    /**
198     * server load based on user_time (0.85 => 85%)
199     *
200     * Generated from protobuf field <code>double server_user_time = 4;</code>
201     * @return float
202     */
203    public function getServerUserTime()
204    {
205        return $this->server_user_time;
206    }
207
208    /**
209     * server load based on user_time (0.85 => 85%)
210     *
211     * Generated from protobuf field <code>double server_user_time = 4;</code>
212     * @param float $var
213     * @return $this
214     */
215    public function setServerUserTime($var)
216    {
217        GPBUtil::checkDouble($var);
218        $this->server_user_time = $var;
219
220        return $this;
221    }
222
223    /**
224     * client load based on system_time (0.85 => 85%)
225     *
226     * Generated from protobuf field <code>double client_system_time = 5;</code>
227     * @return float
228     */
229    public function getClientSystemTime()
230    {
231        return $this->client_system_time;
232    }
233
234    /**
235     * client load based on system_time (0.85 => 85%)
236     *
237     * Generated from protobuf field <code>double client_system_time = 5;</code>
238     * @param float $var
239     * @return $this
240     */
241    public function setClientSystemTime($var)
242    {
243        GPBUtil::checkDouble($var);
244        $this->client_system_time = $var;
245
246        return $this;
247    }
248
249    /**
250     * client load based on user_time (0.85 => 85%)
251     *
252     * Generated from protobuf field <code>double client_user_time = 6;</code>
253     * @return float
254     */
255    public function getClientUserTime()
256    {
257        return $this->client_user_time;
258    }
259
260    /**
261     * client load based on user_time (0.85 => 85%)
262     *
263     * Generated from protobuf field <code>double client_user_time = 6;</code>
264     * @param float $var
265     * @return $this
266     */
267    public function setClientUserTime($var)
268    {
269        GPBUtil::checkDouble($var);
270        $this->client_user_time = $var;
271
272        return $this;
273    }
274
275    /**
276     * X% latency percentiles (in nanoseconds)
277     *
278     * Generated from protobuf field <code>double latency_50 = 7;</code>
279     * @return float
280     */
281    public function getLatency50()
282    {
283        return $this->latency_50;
284    }
285
286    /**
287     * X% latency percentiles (in nanoseconds)
288     *
289     * Generated from protobuf field <code>double latency_50 = 7;</code>
290     * @param float $var
291     * @return $this
292     */
293    public function setLatency50($var)
294    {
295        GPBUtil::checkDouble($var);
296        $this->latency_50 = $var;
297
298        return $this;
299    }
300
301    /**
302     * Generated from protobuf field <code>double latency_90 = 8;</code>
303     * @return float
304     */
305    public function getLatency90()
306    {
307        return $this->latency_90;
308    }
309
310    /**
311     * Generated from protobuf field <code>double latency_90 = 8;</code>
312     * @param float $var
313     * @return $this
314     */
315    public function setLatency90($var)
316    {
317        GPBUtil::checkDouble($var);
318        $this->latency_90 = $var;
319
320        return $this;
321    }
322
323    /**
324     * Generated from protobuf field <code>double latency_95 = 9;</code>
325     * @return float
326     */
327    public function getLatency95()
328    {
329        return $this->latency_95;
330    }
331
332    /**
333     * Generated from protobuf field <code>double latency_95 = 9;</code>
334     * @param float $var
335     * @return $this
336     */
337    public function setLatency95($var)
338    {
339        GPBUtil::checkDouble($var);
340        $this->latency_95 = $var;
341
342        return $this;
343    }
344
345    /**
346     * Generated from protobuf field <code>double latency_99 = 10;</code>
347     * @return float
348     */
349    public function getLatency99()
350    {
351        return $this->latency_99;
352    }
353
354    /**
355     * Generated from protobuf field <code>double latency_99 = 10;</code>
356     * @param float $var
357     * @return $this
358     */
359    public function setLatency99($var)
360    {
361        GPBUtil::checkDouble($var);
362        $this->latency_99 = $var;
363
364        return $this;
365    }
366
367    /**
368     * Generated from protobuf field <code>double latency_999 = 11;</code>
369     * @return float
370     */
371    public function getLatency999()
372    {
373        return $this->latency_999;
374    }
375
376    /**
377     * Generated from protobuf field <code>double latency_999 = 11;</code>
378     * @param float $var
379     * @return $this
380     */
381    public function setLatency999($var)
382    {
383        GPBUtil::checkDouble($var);
384        $this->latency_999 = $var;
385
386        return $this;
387    }
388
389    /**
390     * server cpu usage percentage
391     *
392     * Generated from protobuf field <code>double server_cpu_usage = 12;</code>
393     * @return float
394     */
395    public function getServerCpuUsage()
396    {
397        return $this->server_cpu_usage;
398    }
399
400    /**
401     * server cpu usage percentage
402     *
403     * Generated from protobuf field <code>double server_cpu_usage = 12;</code>
404     * @param float $var
405     * @return $this
406     */
407    public function setServerCpuUsage($var)
408    {
409        GPBUtil::checkDouble($var);
410        $this->server_cpu_usage = $var;
411
412        return $this;
413    }
414
415    /**
416     * Number of requests that succeeded/failed
417     *
418     * Generated from protobuf field <code>double successful_requests_per_second = 13;</code>
419     * @return float
420     */
421    public function getSuccessfulRequestsPerSecond()
422    {
423        return $this->successful_requests_per_second;
424    }
425
426    /**
427     * Number of requests that succeeded/failed
428     *
429     * Generated from protobuf field <code>double successful_requests_per_second = 13;</code>
430     * @param float $var
431     * @return $this
432     */
433    public function setSuccessfulRequestsPerSecond($var)
434    {
435        GPBUtil::checkDouble($var);
436        $this->successful_requests_per_second = $var;
437
438        return $this;
439    }
440
441    /**
442     * Generated from protobuf field <code>double failed_requests_per_second = 14;</code>
443     * @return float
444     */
445    public function getFailedRequestsPerSecond()
446    {
447        return $this->failed_requests_per_second;
448    }
449
450    /**
451     * Generated from protobuf field <code>double failed_requests_per_second = 14;</code>
452     * @param float $var
453     * @return $this
454     */
455    public function setFailedRequestsPerSecond($var)
456    {
457        GPBUtil::checkDouble($var);
458        $this->failed_requests_per_second = $var;
459
460        return $this;
461    }
462
463    /**
464     * Number of polls called inside completion queue per request
465     *
466     * Generated from protobuf field <code>double client_polls_per_request = 15;</code>
467     * @return float
468     */
469    public function getClientPollsPerRequest()
470    {
471        return $this->client_polls_per_request;
472    }
473
474    /**
475     * Number of polls called inside completion queue per request
476     *
477     * Generated from protobuf field <code>double client_polls_per_request = 15;</code>
478     * @param float $var
479     * @return $this
480     */
481    public function setClientPollsPerRequest($var)
482    {
483        GPBUtil::checkDouble($var);
484        $this->client_polls_per_request = $var;
485
486        return $this;
487    }
488
489    /**
490     * Generated from protobuf field <code>double server_polls_per_request = 16;</code>
491     * @return float
492     */
493    public function getServerPollsPerRequest()
494    {
495        return $this->server_polls_per_request;
496    }
497
498    /**
499     * Generated from protobuf field <code>double server_polls_per_request = 16;</code>
500     * @param float $var
501     * @return $this
502     */
503    public function setServerPollsPerRequest($var)
504    {
505        GPBUtil::checkDouble($var);
506        $this->server_polls_per_request = $var;
507
508        return $this;
509    }
510
511    /**
512     * Queries per CPU-sec over all servers or clients
513     *
514     * Generated from protobuf field <code>double server_queries_per_cpu_sec = 17;</code>
515     * @return float
516     */
517    public function getServerQueriesPerCpuSec()
518    {
519        return $this->server_queries_per_cpu_sec;
520    }
521
522    /**
523     * Queries per CPU-sec over all servers or clients
524     *
525     * Generated from protobuf field <code>double server_queries_per_cpu_sec = 17;</code>
526     * @param float $var
527     * @return $this
528     */
529    public function setServerQueriesPerCpuSec($var)
530    {
531        GPBUtil::checkDouble($var);
532        $this->server_queries_per_cpu_sec = $var;
533
534        return $this;
535    }
536
537    /**
538     * Generated from protobuf field <code>double client_queries_per_cpu_sec = 18;</code>
539     * @return float
540     */
541    public function getClientQueriesPerCpuSec()
542    {
543        return $this->client_queries_per_cpu_sec;
544    }
545
546    /**
547     * Generated from protobuf field <code>double client_queries_per_cpu_sec = 18;</code>
548     * @param float $var
549     * @return $this
550     */
551    public function setClientQueriesPerCpuSec($var)
552    {
553        GPBUtil::checkDouble($var);
554        $this->client_queries_per_cpu_sec = $var;
555
556        return $this;
557    }
558
559}
560
561