StorageSettings.php 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  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.StorageSettings</code>
  10. */
  11. class StorageSettings extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * This specifies internal channel 0 commit log storage pool
  15. * Fastest available storage recommended, negligible amounts of short-lived data
  16. *
  17. * Generated from protobuf field <code>.Ydb.Table.StoragePool tablet_commit_log0 = 1;</code>
  18. */
  19. protected $tablet_commit_log0 = null;
  20. /**
  21. * This specifies internal channel 1 commit log storage pool
  22. * Fastest available storage recommended, small amounts of short-lived data
  23. *
  24. * Generated from protobuf field <code>.Ydb.Table.StoragePool tablet_commit_log1 = 2;</code>
  25. */
  26. protected $tablet_commit_log1 = null;
  27. /**
  28. * This specifies external blobs storage pool
  29. *
  30. * Generated from protobuf field <code>.Ydb.Table.StoragePool external = 4;</code>
  31. */
  32. protected $external = null;
  33. /**
  34. * Optionally store large values in "external blobs"
  35. * WARNING: DO NOT USE
  36. * This feature is experimental and should not be used, restrictions apply:
  37. * * Table cannot split/merge when this is enabled
  38. * * Table cannot be copied or backed up when this is enabled
  39. * * This feature cannot be disabled once enabled for a table
  40. *
  41. * Generated from protobuf field <code>.Ydb.FeatureFlag.Status store_external_blobs = 5;</code>
  42. */
  43. protected $store_external_blobs = 0;
  44. /**
  45. * Constructor.
  46. *
  47. * @param array $data {
  48. * Optional. Data for populating the Message object.
  49. *
  50. * @type \Ydb\Table\StoragePool $tablet_commit_log0
  51. * This specifies internal channel 0 commit log storage pool
  52. * Fastest available storage recommended, negligible amounts of short-lived data
  53. * @type \Ydb\Table\StoragePool $tablet_commit_log1
  54. * This specifies internal channel 1 commit log storage pool
  55. * Fastest available storage recommended, small amounts of short-lived data
  56. * @type \Ydb\Table\StoragePool $external
  57. * This specifies external blobs storage pool
  58. * @type int $store_external_blobs
  59. * Optionally store large values in "external blobs"
  60. * WARNING: DO NOT USE
  61. * This feature is experimental and should not be used, restrictions apply:
  62. * * Table cannot split/merge when this is enabled
  63. * * Table cannot be copied or backed up when this is enabled
  64. * * This feature cannot be disabled once enabled for a table
  65. * }
  66. */
  67. public function __construct($data = NULL) {
  68. \GPBMetadata\Protos\YdbTable::initOnce();
  69. parent::__construct($data);
  70. }
  71. /**
  72. * This specifies internal channel 0 commit log storage pool
  73. * Fastest available storage recommended, negligible amounts of short-lived data
  74. *
  75. * Generated from protobuf field <code>.Ydb.Table.StoragePool tablet_commit_log0 = 1;</code>
  76. * @return \Ydb\Table\StoragePool|null
  77. */
  78. public function getTabletCommitLog0()
  79. {
  80. return $this->tablet_commit_log0;
  81. }
  82. public function hasTabletCommitLog0()
  83. {
  84. return isset($this->tablet_commit_log0);
  85. }
  86. public function clearTabletCommitLog0()
  87. {
  88. unset($this->tablet_commit_log0);
  89. }
  90. /**
  91. * This specifies internal channel 0 commit log storage pool
  92. * Fastest available storage recommended, negligible amounts of short-lived data
  93. *
  94. * Generated from protobuf field <code>.Ydb.Table.StoragePool tablet_commit_log0 = 1;</code>
  95. * @param \Ydb\Table\StoragePool $var
  96. * @return $this
  97. */
  98. public function setTabletCommitLog0($var)
  99. {
  100. GPBUtil::checkMessage($var, \Ydb\Table\StoragePool::class);
  101. $this->tablet_commit_log0 = $var;
  102. return $this;
  103. }
  104. /**
  105. * This specifies internal channel 1 commit log storage pool
  106. * Fastest available storage recommended, small amounts of short-lived data
  107. *
  108. * Generated from protobuf field <code>.Ydb.Table.StoragePool tablet_commit_log1 = 2;</code>
  109. * @return \Ydb\Table\StoragePool|null
  110. */
  111. public function getTabletCommitLog1()
  112. {
  113. return $this->tablet_commit_log1;
  114. }
  115. public function hasTabletCommitLog1()
  116. {
  117. return isset($this->tablet_commit_log1);
  118. }
  119. public function clearTabletCommitLog1()
  120. {
  121. unset($this->tablet_commit_log1);
  122. }
  123. /**
  124. * This specifies internal channel 1 commit log storage pool
  125. * Fastest available storage recommended, small amounts of short-lived data
  126. *
  127. * Generated from protobuf field <code>.Ydb.Table.StoragePool tablet_commit_log1 = 2;</code>
  128. * @param \Ydb\Table\StoragePool $var
  129. * @return $this
  130. */
  131. public function setTabletCommitLog1($var)
  132. {
  133. GPBUtil::checkMessage($var, \Ydb\Table\StoragePool::class);
  134. $this->tablet_commit_log1 = $var;
  135. return $this;
  136. }
  137. /**
  138. * This specifies external blobs storage pool
  139. *
  140. * Generated from protobuf field <code>.Ydb.Table.StoragePool external = 4;</code>
  141. * @return \Ydb\Table\StoragePool|null
  142. */
  143. public function getExternal()
  144. {
  145. return $this->external;
  146. }
  147. public function hasExternal()
  148. {
  149. return isset($this->external);
  150. }
  151. public function clearExternal()
  152. {
  153. unset($this->external);
  154. }
  155. /**
  156. * This specifies external blobs storage pool
  157. *
  158. * Generated from protobuf field <code>.Ydb.Table.StoragePool external = 4;</code>
  159. * @param \Ydb\Table\StoragePool $var
  160. * @return $this
  161. */
  162. public function setExternal($var)
  163. {
  164. GPBUtil::checkMessage($var, \Ydb\Table\StoragePool::class);
  165. $this->external = $var;
  166. return $this;
  167. }
  168. /**
  169. * Optionally store large values in "external blobs"
  170. * WARNING: DO NOT USE
  171. * This feature is experimental and should not be used, restrictions apply:
  172. * * Table cannot split/merge when this is enabled
  173. * * Table cannot be copied or backed up when this is enabled
  174. * * This feature cannot be disabled once enabled for a table
  175. *
  176. * Generated from protobuf field <code>.Ydb.FeatureFlag.Status store_external_blobs = 5;</code>
  177. * @return int
  178. */
  179. public function getStoreExternalBlobs()
  180. {
  181. return $this->store_external_blobs;
  182. }
  183. /**
  184. * Optionally store large values in "external blobs"
  185. * WARNING: DO NOT USE
  186. * This feature is experimental and should not be used, restrictions apply:
  187. * * Table cannot split/merge when this is enabled
  188. * * Table cannot be copied or backed up when this is enabled
  189. * * This feature cannot be disabled once enabled for a table
  190. *
  191. * Generated from protobuf field <code>.Ydb.FeatureFlag.Status store_external_blobs = 5;</code>
  192. * @param int $var
  193. * @return $this
  194. */
  195. public function setStoreExternalBlobs($var)
  196. {
  197. GPBUtil::checkEnum($var, \Ydb\FeatureFlag\Status::class);
  198. $this->store_external_blobs = $var;
  199. return $this;
  200. }
  201. }