Ydb.Table.ColumnFamilyPolicy */ class ColumnFamilyPolicy extends \Google\Protobuf\Internal\Message { /** * Name of the column family, the name "default" must be used for the * primary column family that contains as least primary key columns * * Generated from protobuf field string name = 1; */ protected $name = ''; /** * Storage settings for the column group (default to values in storage policy) * * Generated from protobuf field .Ydb.Table.StoragePool data = 2; */ protected $data = null; /** * Generated from protobuf field .Ydb.Table.StoragePool external = 3; */ protected $external = null; /** * When enabled table data will be kept in memory * WARNING: DO NOT USE * * Generated from protobuf field .Ydb.FeatureFlag.Status keep_in_memory = 4; */ protected $keep_in_memory = 0; /** * Optionally specify whether data should be compressed * * Generated from protobuf field .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5; */ protected $compression = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * Name of the column family, the name "default" must be used for the * primary column family that contains as least primary key columns * @type \Ydb\Table\StoragePool $data * Storage settings for the column group (default to values in storage policy) * @type \Ydb\Table\StoragePool $external * @type int $keep_in_memory * When enabled table data will be kept in memory * WARNING: DO NOT USE * @type int $compression * Optionally specify whether data should be compressed * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTable::initOnce(); parent::__construct($data); } /** * Name of the column family, the name "default" must be used for the * primary column family that contains as least primary key columns * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * Name of the column family, the name "default" must be used for the * primary column family that contains as least primary key columns * * 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; } /** * Storage settings for the column group (default to values in storage policy) * * Generated from protobuf field .Ydb.Table.StoragePool data = 2; * @return \Ydb\Table\StoragePool|null */ public function getData() { return $this->data; } public function hasData() { return isset($this->data); } public function clearData() { unset($this->data); } /** * Storage settings for the column group (default to values in storage policy) * * Generated from protobuf field .Ydb.Table.StoragePool data = 2; * @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 = 3; * @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 = 3; * @param \Ydb\Table\StoragePool $var * @return $this */ public function setExternal($var) { GPBUtil::checkMessage($var, \Ydb\Table\StoragePool::class); $this->external = $var; return $this; } /** * When enabled table data will be kept in memory * WARNING: DO NOT USE * * Generated from protobuf field .Ydb.FeatureFlag.Status keep_in_memory = 4; * @return int */ public function getKeepInMemory() { return $this->keep_in_memory; } /** * When enabled table data will be kept in memory * WARNING: DO NOT USE * * Generated from protobuf field .Ydb.FeatureFlag.Status keep_in_memory = 4; * @param int $var * @return $this */ public function setKeepInMemory($var) { GPBUtil::checkEnum($var, \Ydb\FeatureFlag\Status::class); $this->keep_in_memory = $var; return $this; } /** * Optionally specify whether data should be compressed * * Generated from protobuf field .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5; * @return int */ public function getCompression() { return $this->compression; } /** * Optionally specify whether data should be compressed * * Generated from protobuf field .Ydb.Table.ColumnFamilyPolicy.Compression compression = 5; * @param int $var * @return $this */ public function setCompression($var) { GPBUtil::checkEnum($var, \Ydb\Table\ColumnFamilyPolicy\Compression::class); $this->compression = $var; return $this; } }