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