123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_table.proto
- namespace Ydb\Table;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Table.StoragePolicy</code>
- */
- class StoragePolicy extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>string preset_name = 1;</code>
- */
- protected $preset_name = '';
- /**
- * Generated from protobuf field <code>.Ydb.Table.StoragePool syslog = 2;</code>
- */
- protected $syslog = null;
- /**
- * Generated from protobuf field <code>.Ydb.Table.StoragePool log = 3;</code>
- */
- protected $log = null;
- /**
- * Generated from protobuf field <code>.Ydb.Table.StoragePool data = 4;</code>
- */
- protected $data = null;
- /**
- * Generated from protobuf field <code>.Ydb.Table.StoragePool external = 5;</code>
- */
- protected $external = null;
- /**
- * Generated from protobuf field <code>.Ydb.FeatureFlag.Status keep_in_memory = 6;</code>
- */
- protected $keep_in_memory = 0;
- /**
- * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;</code>
- */
- 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 <code>string preset_name = 1;</code>
- * @return string
- */
- public function getPresetName()
- {
- return $this->preset_name;
- }
- /**
- * Generated from protobuf field <code>string preset_name = 1;</code>
- * @param string $var
- * @return $this
- */
- public function setPresetName($var)
- {
- GPBUtil::checkString($var, True);
- $this->preset_name = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Table.StoragePool syslog = 2;</code>
- * @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 <code>.Ydb.Table.StoragePool syslog = 2;</code>
- * @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 <code>.Ydb.Table.StoragePool log = 3;</code>
- * @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 <code>.Ydb.Table.StoragePool log = 3;</code>
- * @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 <code>.Ydb.Table.StoragePool data = 4;</code>
- * @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 <code>.Ydb.Table.StoragePool data = 4;</code>
- * @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 <code>.Ydb.Table.StoragePool external = 5;</code>
- * @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 <code>.Ydb.Table.StoragePool external = 5;</code>
- * @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 <code>.Ydb.FeatureFlag.Status keep_in_memory = 6;</code>
- * @return int
- */
- public function getKeepInMemory()
- {
- return $this->keep_in_memory;
- }
- /**
- * Generated from protobuf field <code>.Ydb.FeatureFlag.Status keep_in_memory = 6;</code>
- * @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 <code>repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getColumnFamilies()
- {
- return $this->column_families;
- }
- /**
- * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;</code>
- * @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;
- }
- }
|