Ydb.Monitoring.ComputeStatus
*/
class ComputeStatus 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.ComputeNodeStatus nodes = 2;
*/
private $nodes;
/**
* Generated from protobuf field repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
*/
private $tablets;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type int $overall
* @type array<\Ydb\Monitoring\ComputeNodeStatus>|\Google\Protobuf\Internal\RepeatedField $nodes
* @type array<\Ydb\Monitoring\ComputeTabletStatus>|\Google\Protobuf\Internal\RepeatedField $tablets
* }
*/
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.ComputeNodeStatus nodes = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getNodes()
{
return $this->nodes;
}
/**
* Generated from protobuf field repeated .Ydb.Monitoring.ComputeNodeStatus nodes = 2;
* @param array<\Ydb\Monitoring\ComputeNodeStatus>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setNodes($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Monitoring\ComputeNodeStatus::class);
$this->nodes = $arr;
return $this;
}
/**
* Generated from protobuf field repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getTablets()
{
return $this->tablets;
}
/**
* Generated from protobuf field repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;
* @param array<\Ydb\Monitoring\ComputeTabletStatus>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setTablets($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Monitoring\ComputeTabletStatus::class);
$this->tablets = $arr;
return $this;
}
}