Ydb.Monitoring.DatabaseStatus */ class DatabaseStatus extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field string name = 1; */ protected $name = ''; /** * Generated from protobuf field .Ydb.Monitoring.StatusFlag.Status overall = 2; */ protected $overall = 0; /** * Generated from protobuf field .Ydb.Monitoring.StorageStatus storage = 3; */ protected $storage = null; /** * Generated from protobuf field .Ydb.Monitoring.ComputeStatus compute = 4; */ protected $compute = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * @type int $overall * @type \Ydb\Monitoring\StorageStatus $storage * @type \Ydb\Monitoring\ComputeStatus $compute * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbMonitoring::initOnce(); parent::__construct($data); } /** * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field .Ydb.Monitoring.StatusFlag.Status overall = 2; * @return int */ public function getOverall() { return $this->overall; } /** * Generated from protobuf field .Ydb.Monitoring.StatusFlag.Status overall = 2; * @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 .Ydb.Monitoring.StorageStatus storage = 3; * @return \Ydb\Monitoring\StorageStatus|null */ public function getStorage() { return $this->storage; } public function hasStorage() { return isset($this->storage); } public function clearStorage() { unset($this->storage); } /** * Generated from protobuf field .Ydb.Monitoring.StorageStatus storage = 3; * @param \Ydb\Monitoring\StorageStatus $var * @return $this */ public function setStorage($var) { GPBUtil::checkMessage($var, \Ydb\Monitoring\StorageStatus::class); $this->storage = $var; return $this; } /** * Generated from protobuf field .Ydb.Monitoring.ComputeStatus compute = 4; * @return \Ydb\Monitoring\ComputeStatus|null */ public function getCompute() { return $this->compute; } public function hasCompute() { return isset($this->compute); } public function clearCompute() { unset($this->compute); } /** * Generated from protobuf field .Ydb.Monitoring.ComputeStatus compute = 4; * @param \Ydb\Monitoring\ComputeStatus $var * @return $this */ public function setCompute($var) { GPBUtil::checkMessage($var, \Ydb\Monitoring\ComputeStatus::class); $this->compute = $var; return $this; } }