Ydb.Cms.Resources
*/
class Resources extends \Google\Protobuf\Internal\Message
{
/**
* Storage resources.
*
* Generated from protobuf field repeated .Ydb.Cms.StorageUnits storage_units = 1;
*/
private $storage_units;
/**
* Computational resources.
*
* Generated from protobuf field repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
*/
private $computational_units;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type array<\Ydb\Cms\StorageUnits>|\Google\Protobuf\Internal\RepeatedField $storage_units
* Storage resources.
* @type array<\Ydb\Cms\ComputationalUnits>|\Google\Protobuf\Internal\RepeatedField $computational_units
* Computational resources.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbCms::initOnce();
parent::__construct($data);
}
/**
* Storage resources.
*
* Generated from protobuf field repeated .Ydb.Cms.StorageUnits storage_units = 1;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getStorageUnits()
{
return $this->storage_units;
}
/**
* Storage resources.
*
* Generated from protobuf field repeated .Ydb.Cms.StorageUnits storage_units = 1;
* @param array<\Ydb\Cms\StorageUnits>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setStorageUnits($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\StorageUnits::class);
$this->storage_units = $arr;
return $this;
}
/**
* Computational resources.
*
* Generated from protobuf field repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getComputationalUnits()
{
return $this->computational_units;
}
/**
* Computational resources.
*
* Generated from protobuf field repeated .Ydb.Cms.ComputationalUnits computational_units = 2;
* @param array<\Ydb\Cms\ComputationalUnits>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setComputationalUnits($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\ComputationalUnits::class);
$this->computational_units = $arr;
return $this;
}
}