Ydb.Monitoring.ThreadPoolStatus */ class ThreadPoolStatus extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .Ydb.Monitoring.StatusFlag.Status overall = 1; */ protected $overall = 0; /** * Generated from protobuf field string name = 2; */ protected $name = ''; /** * Generated from protobuf field float usage = 3; */ protected $usage = 0.0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $overall * @type string $name * @type float $usage * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbMonitoring::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .Ydb.Monitoring.StatusFlag.Status overall = 1; * @return int */ public function getOverall() { return $this->overall; } /** * Generated from protobuf field .Ydb.Monitoring.StatusFlag.Status overall = 1; * @param int $var * @return $this */ public function setOverall($var) { GPBUtil::checkEnum($var, \Ydb\Monitoring\StatusFlag\Status::class); $this->overall = $var; return $this; } /** * Generated from protobuf field string name = 2; * @return string */ public function getName() { return $this->name; } /** * Generated from protobuf field string name = 2; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field float usage = 3; * @return float */ public function getUsage() { return $this->usage; } /** * Generated from protobuf field float usage = 3; * @param float $var * @return $this */ public function setUsage($var) { GPBUtil::checkFloat($var); $this->usage = $var; return $this; } }