Ydb.Monitoring.StorageStatus
*/
class StorageStatus extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .Ydb.Monitoring.StatusFlag.Status overall = 1;
*/
protected $overall = 0;
/**
* Generated from protobuf field repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
*/
private $pools;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $overall
* @type array<\Ydb\Monitoring\StoragePoolStatus>|\Google\Protobuf\Internal\RepeatedField $pools
* }
*/
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 repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getPools()
{
return $this->pools;
}
/**
* Generated from protobuf field repeated .Ydb.Monitoring.StoragePoolStatus pools = 2;
* @param array<\Ydb\Monitoring\StoragePoolStatus>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setPools($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Monitoring\StoragePoolStatus::class);
$this->pools = $arr;
return $this;
}
}