StoragePolicy.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_table.proto
  4. namespace Ydb\Table;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Generated from protobuf message <code>Ydb.Table.StoragePolicy</code>
  10. */
  11. class StoragePolicy extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>string preset_name = 1;</code>
  15. */
  16. protected $preset_name = '';
  17. /**
  18. * Generated from protobuf field <code>.Ydb.Table.StoragePool syslog = 2;</code>
  19. */
  20. protected $syslog = null;
  21. /**
  22. * Generated from protobuf field <code>.Ydb.Table.StoragePool log = 3;</code>
  23. */
  24. protected $log = null;
  25. /**
  26. * Generated from protobuf field <code>.Ydb.Table.StoragePool data = 4;</code>
  27. */
  28. protected $data = null;
  29. /**
  30. * Generated from protobuf field <code>.Ydb.Table.StoragePool external = 5;</code>
  31. */
  32. protected $external = null;
  33. /**
  34. * Generated from protobuf field <code>.Ydb.FeatureFlag.Status keep_in_memory = 6;</code>
  35. */
  36. protected $keep_in_memory = 0;
  37. /**
  38. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;</code>
  39. */
  40. private $column_families;
  41. /**
  42. * Constructor.
  43. *
  44. * @param array $data {
  45. * Optional. Data for populating the Message object.
  46. *
  47. * @type string $preset_name
  48. * @type \Ydb\Table\StoragePool $syslog
  49. * @type \Ydb\Table\StoragePool $log
  50. * @type \Ydb\Table\StoragePool $data
  51. * @type \Ydb\Table\StoragePool $external
  52. * @type int $keep_in_memory
  53. * @type array<\Ydb\Table\ColumnFamilyPolicy>|\Google\Protobuf\Internal\RepeatedField $column_families
  54. * }
  55. */
  56. public function __construct($data = NULL) {
  57. \GPBMetadata\Protos\YdbTable::initOnce();
  58. parent::__construct($data);
  59. }
  60. /**
  61. * Generated from protobuf field <code>string preset_name = 1;</code>
  62. * @return string
  63. */
  64. public function getPresetName()
  65. {
  66. return $this->preset_name;
  67. }
  68. /**
  69. * Generated from protobuf field <code>string preset_name = 1;</code>
  70. * @param string $var
  71. * @return $this
  72. */
  73. public function setPresetName($var)
  74. {
  75. GPBUtil::checkString($var, True);
  76. $this->preset_name = $var;
  77. return $this;
  78. }
  79. /**
  80. * Generated from protobuf field <code>.Ydb.Table.StoragePool syslog = 2;</code>
  81. * @return \Ydb\Table\StoragePool|null
  82. */
  83. public function getSyslog()
  84. {
  85. return $this->syslog;
  86. }
  87. public function hasSyslog()
  88. {
  89. return isset($this->syslog);
  90. }
  91. public function clearSyslog()
  92. {
  93. unset($this->syslog);
  94. }
  95. /**
  96. * Generated from protobuf field <code>.Ydb.Table.StoragePool syslog = 2;</code>
  97. * @param \Ydb\Table\StoragePool $var
  98. * @return $this
  99. */
  100. public function setSyslog($var)
  101. {
  102. GPBUtil::checkMessage($var, \Ydb\Table\StoragePool::class);
  103. $this->syslog = $var;
  104. return $this;
  105. }
  106. /**
  107. * Generated from protobuf field <code>.Ydb.Table.StoragePool log = 3;</code>
  108. * @return \Ydb\Table\StoragePool|null
  109. */
  110. public function getLog()
  111. {
  112. return $this->log;
  113. }
  114. public function hasLog()
  115. {
  116. return isset($this->log);
  117. }
  118. public function clearLog()
  119. {
  120. unset($this->log);
  121. }
  122. /**
  123. * Generated from protobuf field <code>.Ydb.Table.StoragePool log = 3;</code>
  124. * @param \Ydb\Table\StoragePool $var
  125. * @return $this
  126. */
  127. public function setLog($var)
  128. {
  129. GPBUtil::checkMessage($var, \Ydb\Table\StoragePool::class);
  130. $this->log = $var;
  131. return $this;
  132. }
  133. /**
  134. * Generated from protobuf field <code>.Ydb.Table.StoragePool data = 4;</code>
  135. * @return \Ydb\Table\StoragePool|null
  136. */
  137. public function getData()
  138. {
  139. return $this->data;
  140. }
  141. public function hasData()
  142. {
  143. return isset($this->data);
  144. }
  145. public function clearData()
  146. {
  147. unset($this->data);
  148. }
  149. /**
  150. * Generated from protobuf field <code>.Ydb.Table.StoragePool data = 4;</code>
  151. * @param \Ydb\Table\StoragePool $var
  152. * @return $this
  153. */
  154. public function setData($var)
  155. {
  156. GPBUtil::checkMessage($var, \Ydb\Table\StoragePool::class);
  157. $this->data = $var;
  158. return $this;
  159. }
  160. /**
  161. * Generated from protobuf field <code>.Ydb.Table.StoragePool external = 5;</code>
  162. * @return \Ydb\Table\StoragePool|null
  163. */
  164. public function getExternal()
  165. {
  166. return $this->external;
  167. }
  168. public function hasExternal()
  169. {
  170. return isset($this->external);
  171. }
  172. public function clearExternal()
  173. {
  174. unset($this->external);
  175. }
  176. /**
  177. * Generated from protobuf field <code>.Ydb.Table.StoragePool external = 5;</code>
  178. * @param \Ydb\Table\StoragePool $var
  179. * @return $this
  180. */
  181. public function setExternal($var)
  182. {
  183. GPBUtil::checkMessage($var, \Ydb\Table\StoragePool::class);
  184. $this->external = $var;
  185. return $this;
  186. }
  187. /**
  188. * Generated from protobuf field <code>.Ydb.FeatureFlag.Status keep_in_memory = 6;</code>
  189. * @return int
  190. */
  191. public function getKeepInMemory()
  192. {
  193. return $this->keep_in_memory;
  194. }
  195. /**
  196. * Generated from protobuf field <code>.Ydb.FeatureFlag.Status keep_in_memory = 6;</code>
  197. * @param int $var
  198. * @return $this
  199. */
  200. public function setKeepInMemory($var)
  201. {
  202. GPBUtil::checkEnum($var, \Ydb\FeatureFlag\Status::class);
  203. $this->keep_in_memory = $var;
  204. return $this;
  205. }
  206. /**
  207. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;</code>
  208. * @return \Google\Protobuf\Internal\RepeatedField
  209. */
  210. public function getColumnFamilies()
  211. {
  212. return $this->column_families;
  213. }
  214. /**
  215. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamilyPolicy column_families = 7;</code>
  216. * @param array<\Ydb\Table\ColumnFamilyPolicy>|\Google\Protobuf\Internal\RepeatedField $var
  217. * @return $this
  218. */
  219. public function setColumnFamilies($var)
  220. {
  221. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ColumnFamilyPolicy::class);
  222. $this->column_families = $arr;
  223. return $this;
  224. }
  225. }