Ydb.Table.StoragePolicy
*/
class StoragePolicy extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string preset_name = 1;
*/
protected $preset_name = '';
/**
* Generated from protobuf field .Ydb.Table.StoragePool syslog = 2;
*/
protected $syslog = null;
/**
* Generated from protobuf field .Ydb.Table.StoragePool log = 3;
*/
protected $log = null;
/**
* Generated from protobuf field .Ydb.Table.StoragePool data = 4;
*/
protected $data = null;
/**
* Generated from protobuf field .Ydb.Table.StoragePool external = 5;
*/
protected $external = null;
/**
* Generated from protobuf field .Ydb.FeatureFlag.Status keep_in_memory = 6;
*/
protected $keep_in_memory = 0;
/**
* Generated from protobuf field repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
*/
private $column_families;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $preset_name
* @type \Ydb\Table\StoragePool $syslog
* @type \Ydb\Table\StoragePool $log
* @type \Ydb\Table\StoragePool $data
* @type \Ydb\Table\StoragePool $external
* @type int $keep_in_memory
* @type array<\Ydb\Table\ColumnFamilyPolicy>|\Google\Protobuf\Internal\RepeatedField $column_families
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Protos\YdbTable::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field string preset_name = 1;
* @return string
*/
public function getPresetName()
{
return $this->preset_name;
}
/**
* Generated from protobuf field string preset_name = 1;
* @param string $var
* @return $this
*/
public function setPresetName($var)
{
GPBUtil::checkString($var, True);
$this->preset_name = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Table.StoragePool syslog = 2;
* @return \Ydb\Table\StoragePool|null
*/
public function getSyslog()
{
return $this->syslog;
}
public function hasSyslog()
{
return isset($this->syslog);
}
public function clearSyslog()
{
unset($this->syslog);
}
/**
* Generated from protobuf field .Ydb.Table.StoragePool syslog = 2;
* @param \Ydb\Table\StoragePool $var
* @return $this
*/
public function setSyslog($var)
{
GPBUtil::checkMessage($var, \Ydb\Table\StoragePool::class);
$this->syslog = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Table.StoragePool log = 3;
* @return \Ydb\Table\StoragePool|null
*/
public function getLog()
{
return $this->log;
}
public function hasLog()
{
return isset($this->log);
}
public function clearLog()
{
unset($this->log);
}
/**
* Generated from protobuf field .Ydb.Table.StoragePool log = 3;
* @param \Ydb\Table\StoragePool $var
* @return $this
*/
public function setLog($var)
{
GPBUtil::checkMessage($var, \Ydb\Table\StoragePool::class);
$this->log = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Table.StoragePool data = 4;
* @return \Ydb\Table\StoragePool|null
*/
public function getData()
{
return $this->data;
}
public function hasData()
{
return isset($this->data);
}
public function clearData()
{
unset($this->data);
}
/**
* Generated from protobuf field .Ydb.Table.StoragePool data = 4;
* @param \Ydb\Table\StoragePool $var
* @return $this
*/
public function setData($var)
{
GPBUtil::checkMessage($var, \Ydb\Table\StoragePool::class);
$this->data = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Table.StoragePool external = 5;
* @return \Ydb\Table\StoragePool|null
*/
public function getExternal()
{
return $this->external;
}
public function hasExternal()
{
return isset($this->external);
}
public function clearExternal()
{
unset($this->external);
}
/**
* Generated from protobuf field .Ydb.Table.StoragePool external = 5;
* @param \Ydb\Table\StoragePool $var
* @return $this
*/
public function setExternal($var)
{
GPBUtil::checkMessage($var, \Ydb\Table\StoragePool::class);
$this->external = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @return int
*/
public function getKeepInMemory()
{
return $this->keep_in_memory;
}
/**
* Generated from protobuf field .Ydb.FeatureFlag.Status keep_in_memory = 6;
* @param int $var
* @return $this
*/
public function setKeepInMemory($var)
{
GPBUtil::checkEnum($var, \Ydb\FeatureFlag\Status::class);
$this->keep_in_memory = $var;
return $this;
}
/**
* Generated from protobuf field repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getColumnFamilies()
{
return $this->column_families;
}
/**
* Generated from protobuf field repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;
* @param array<\Ydb\Table\ColumnFamilyPolicy>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setColumnFamilies($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ColumnFamilyPolicy::class);
$this->column_families = $arr;
return $this;
}
}