<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: src/proto/grpc/testing/control.proto

namespace Grpc\Testing;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * <pre>
 * Basic summary that can be computed from ClientStats and ServerStats
 * once the scenario has finished.
 * </pre>
 *
 * Protobuf type <code>grpc.testing.ScenarioResultSummary</code>
 */
class ScenarioResultSummary extends \Google\Protobuf\Internal\Message
{
    /**
     * <pre>
     * Total number of operations per second over all clients.
     * </pre>
     *
     * <code>double qps = 1;</code>
     */
    private $qps = 0.0;
    /**
     * <pre>
     * QPS per one server core.
     * </pre>
     *
     * <code>double qps_per_server_core = 2;</code>
     */
    private $qps_per_server_core = 0.0;
    /**
     * <pre>
     * server load based on system_time (0.85 =&gt; 85%)
     * </pre>
     *
     * <code>double server_system_time = 3;</code>
     */
    private $server_system_time = 0.0;
    /**
     * <pre>
     * server load based on user_time (0.85 =&gt; 85%)
     * </pre>
     *
     * <code>double server_user_time = 4;</code>
     */
    private $server_user_time = 0.0;
    /**
     * <pre>
     * client load based on system_time (0.85 =&gt; 85%)
     * </pre>
     *
     * <code>double client_system_time = 5;</code>
     */
    private $client_system_time = 0.0;
    /**
     * <pre>
     * client load based on user_time (0.85 =&gt; 85%)
     * </pre>
     *
     * <code>double client_user_time = 6;</code>
     */
    private $client_user_time = 0.0;
    /**
     * <pre>
     * X% latency percentiles (in nanoseconds)
     * </pre>
     *
     * <code>double latency_50 = 7;</code>
     */
    private $latency_50 = 0.0;
    /**
     * <code>double latency_90 = 8;</code>
     */
    private $latency_90 = 0.0;
    /**
     * <code>double latency_95 = 9;</code>
     */
    private $latency_95 = 0.0;
    /**
     * <code>double latency_99 = 10;</code>
     */
    private $latency_99 = 0.0;
    /**
     * <code>double latency_999 = 11;</code>
     */
    private $latency_999 = 0.0;
    /**
     * <pre>
     * server cpu usage percentage
     * </pre>
     *
     * <code>double server_cpu_usage = 12;</code>
     */
    private $server_cpu_usage = 0.0;
    /**
     * <pre>
     * Number of requests that succeeded/failed
     * </pre>
     *
     * <code>double successful_requests_per_second = 13;</code>
     */
    private $successful_requests_per_second = 0.0;
    /**
     * <code>double failed_requests_per_second = 14;</code>
     */
    private $failed_requests_per_second = 0.0;

    public function __construct() {
        \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce();
        parent::__construct();
    }

    /**
     * <pre>
     * Total number of operations per second over all clients.
     * </pre>
     *
     * <code>double qps = 1;</code>
     */
    public function getQps()
    {
        return $this->qps;
    }

    /**
     * <pre>
     * Total number of operations per second over all clients.
     * </pre>
     *
     * <code>double qps = 1;</code>
     */
    public function setQps($var)
    {
        GPBUtil::checkDouble($var);
        $this->qps = $var;
    }

    /**
     * <pre>
     * QPS per one server core.
     * </pre>
     *
     * <code>double qps_per_server_core = 2;</code>
     */
    public function getQpsPerServerCore()
    {
        return $this->qps_per_server_core;
    }

    /**
     * <pre>
     * QPS per one server core.
     * </pre>
     *
     * <code>double qps_per_server_core = 2;</code>
     */
    public function setQpsPerServerCore($var)
    {
        GPBUtil::checkDouble($var);
        $this->qps_per_server_core = $var;
    }

    /**
     * <pre>
     * server load based on system_time (0.85 =&gt; 85%)
     * </pre>
     *
     * <code>double server_system_time = 3;</code>
     */
    public function getServerSystemTime()
    {
        return $this->server_system_time;
    }

    /**
     * <pre>
     * server load based on system_time (0.85 =&gt; 85%)
     * </pre>
     *
     * <code>double server_system_time = 3;</code>
     */
    public function setServerSystemTime($var)
    {
        GPBUtil::checkDouble($var);
        $this->server_system_time = $var;
    }

    /**
     * <pre>
     * server load based on user_time (0.85 =&gt; 85%)
     * </pre>
     *
     * <code>double server_user_time = 4;</code>
     */
    public function getServerUserTime()
    {
        return $this->server_user_time;
    }

    /**
     * <pre>
     * server load based on user_time (0.85 =&gt; 85%)
     * </pre>
     *
     * <code>double server_user_time = 4;</code>
     */
    public function setServerUserTime($var)
    {
        GPBUtil::checkDouble($var);
        $this->server_user_time = $var;
    }

    /**
     * <pre>
     * client load based on system_time (0.85 =&gt; 85%)
     * </pre>
     *
     * <code>double client_system_time = 5;</code>
     */
    public function getClientSystemTime()
    {
        return $this->client_system_time;
    }

    /**
     * <pre>
     * client load based on system_time (0.85 =&gt; 85%)
     * </pre>
     *
     * <code>double client_system_time = 5;</code>
     */
    public function setClientSystemTime($var)
    {
        GPBUtil::checkDouble($var);
        $this->client_system_time = $var;
    }

    /**
     * <pre>
     * client load based on user_time (0.85 =&gt; 85%)
     * </pre>
     *
     * <code>double client_user_time = 6;</code>
     */
    public function getClientUserTime()
    {
        return $this->client_user_time;
    }

    /**
     * <pre>
     * client load based on user_time (0.85 =&gt; 85%)
     * </pre>
     *
     * <code>double client_user_time = 6;</code>
     */
    public function setClientUserTime($var)
    {
        GPBUtil::checkDouble($var);
        $this->client_user_time = $var;
    }

    /**
     * <pre>
     * X% latency percentiles (in nanoseconds)
     * </pre>
     *
     * <code>double latency_50 = 7;</code>
     */
    public function getLatency50()
    {
        return $this->latency_50;
    }

    /**
     * <pre>
     * X% latency percentiles (in nanoseconds)
     * </pre>
     *
     * <code>double latency_50 = 7;</code>
     */
    public function setLatency50($var)
    {
        GPBUtil::checkDouble($var);
        $this->latency_50 = $var;
    }

    /**
     * <code>double latency_90 = 8;</code>
     */
    public function getLatency90()
    {
        return $this->latency_90;
    }

    /**
     * <code>double latency_90 = 8;</code>
     */
    public function setLatency90($var)
    {
        GPBUtil::checkDouble($var);
        $this->latency_90 = $var;
    }

    /**
     * <code>double latency_95 = 9;</code>
     */
    public function getLatency95()
    {
        return $this->latency_95;
    }

    /**
     * <code>double latency_95 = 9;</code>
     */
    public function setLatency95($var)
    {
        GPBUtil::checkDouble($var);
        $this->latency_95 = $var;
    }

    /**
     * <code>double latency_99 = 10;</code>
     */
    public function getLatency99()
    {
        return $this->latency_99;
    }

    /**
     * <code>double latency_99 = 10;</code>
     */
    public function setLatency99($var)
    {
        GPBUtil::checkDouble($var);
        $this->latency_99 = $var;
    }

    /**
     * <code>double latency_999 = 11;</code>
     */
    public function getLatency999()
    {
        return $this->latency_999;
    }

    /**
     * <code>double latency_999 = 11;</code>
     */
    public function setLatency999($var)
    {
        GPBUtil::checkDouble($var);
        $this->latency_999 = $var;
    }

    /**
     * <pre>
     * server cpu usage percentage
     * </pre>
     *
     * <code>double server_cpu_usage = 12;</code>
     */
    public function getServerCpuUsage()
    {
        return $this->server_cpu_usage;
    }

    /**
     * <pre>
     * server cpu usage percentage
     * </pre>
     *
     * <code>double server_cpu_usage = 12;</code>
     */
    public function setServerCpuUsage($var)
    {
        GPBUtil::checkDouble($var);
        $this->server_cpu_usage = $var;
    }

    /**
     * <pre>
     * Number of requests that succeeded/failed
     * </pre>
     *
     * <code>double successful_requests_per_second = 13;</code>
     */
    public function getSuccessfulRequestsPerSecond()
    {
        return $this->successful_requests_per_second;
    }

    /**
     * <pre>
     * Number of requests that succeeded/failed
     * </pre>
     *
     * <code>double successful_requests_per_second = 13;</code>
     */
    public function setSuccessfulRequestsPerSecond($var)
    {
        GPBUtil::checkDouble($var);
        $this->successful_requests_per_second = $var;
    }

    /**
     * <code>double failed_requests_per_second = 14;</code>
     */
    public function getFailedRequestsPerSecond()
    {
        return $this->failed_requests_per_second;
    }

    /**
     * <code>double failed_requests_per_second = 14;</code>
     */
    public function setFailedRequestsPerSecond($var)
    {
        GPBUtil::checkDouble($var);
        $this->failed_requests_per_second = $var;
    }

}

