grpc.testing.TestOrcaReport */ class TestOrcaReport extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field double cpu_utilization = 1; */ protected $cpu_utilization = 0.0; /** * Generated from protobuf field double memory_utilization = 2; */ protected $memory_utilization = 0.0; /** * Generated from protobuf field map request_cost = 3; */ private $request_cost; /** * Generated from protobuf field map utilization = 4; */ private $utilization; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type float $cpu_utilization * @type float $memory_utilization * @type array|\Google\Protobuf\Internal\MapField $request_cost * @type array|\Google\Protobuf\Internal\MapField $utilization * } */ public function __construct($data = NULL) { \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); parent::__construct($data); } /** * Generated from protobuf field double cpu_utilization = 1; * @return float */ public function getCpuUtilization() { return $this->cpu_utilization; } /** * Generated from protobuf field double cpu_utilization = 1; * @param float $var * @return $this */ public function setCpuUtilization($var) { GPBUtil::checkDouble($var); $this->cpu_utilization = $var; return $this; } /** * Generated from protobuf field double memory_utilization = 2; * @return float */ public function getMemoryUtilization() { return $this->memory_utilization; } /** * Generated from protobuf field double memory_utilization = 2; * @param float $var * @return $this */ public function setMemoryUtilization($var) { GPBUtil::checkDouble($var); $this->memory_utilization = $var; return $this; } /** * Generated from protobuf field map request_cost = 3; * @return \Google\Protobuf\Internal\MapField */ public function getRequestCost() { return $this->request_cost; } /** * Generated from protobuf field map request_cost = 3; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setRequestCost($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::DOUBLE); $this->request_cost = $arr; return $this; } /** * Generated from protobuf field map utilization = 4; * @return \Google\Protobuf\Internal\MapField */ public function getUtilization() { return $this->utilization; } /** * Generated from protobuf field map utilization = 4; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ public function setUtilization($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::DOUBLE); $this->utilization = $arr; return $this; } }