TableProfile.php 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  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.TableProfile</code>
  10. */
  11. class TableProfile 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.StoragePolicy storage_policy = 2;</code>
  19. */
  20. protected $storage_policy = null;
  21. /**
  22. * Generated from protobuf field <code>.Ydb.Table.CompactionPolicy compaction_policy = 3;</code>
  23. */
  24. protected $compaction_policy = null;
  25. /**
  26. * Generated from protobuf field <code>.Ydb.Table.PartitioningPolicy partitioning_policy = 4;</code>
  27. */
  28. protected $partitioning_policy = null;
  29. /**
  30. * Generated from protobuf field <code>.Ydb.Table.ExecutionPolicy execution_policy = 5;</code>
  31. */
  32. protected $execution_policy = null;
  33. /**
  34. * Generated from protobuf field <code>.Ydb.Table.ReplicationPolicy replication_policy = 6;</code>
  35. */
  36. protected $replication_policy = null;
  37. /**
  38. * Generated from protobuf field <code>.Ydb.Table.CachingPolicy caching_policy = 7;</code>
  39. */
  40. protected $caching_policy = null;
  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\StoragePolicy $storage_policy
  49. * @type \Ydb\Table\CompactionPolicy $compaction_policy
  50. * @type \Ydb\Table\PartitioningPolicy $partitioning_policy
  51. * @type \Ydb\Table\ExecutionPolicy $execution_policy
  52. * @type \Ydb\Table\ReplicationPolicy $replication_policy
  53. * @type \Ydb\Table\CachingPolicy $caching_policy
  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.StoragePolicy storage_policy = 2;</code>
  81. * @return \Ydb\Table\StoragePolicy|null
  82. */
  83. public function getStoragePolicy()
  84. {
  85. return $this->storage_policy;
  86. }
  87. public function hasStoragePolicy()
  88. {
  89. return isset($this->storage_policy);
  90. }
  91. public function clearStoragePolicy()
  92. {
  93. unset($this->storage_policy);
  94. }
  95. /**
  96. * Generated from protobuf field <code>.Ydb.Table.StoragePolicy storage_policy = 2;</code>
  97. * @param \Ydb\Table\StoragePolicy $var
  98. * @return $this
  99. */
  100. public function setStoragePolicy($var)
  101. {
  102. GPBUtil::checkMessage($var, \Ydb\Table\StoragePolicy::class);
  103. $this->storage_policy = $var;
  104. return $this;
  105. }
  106. /**
  107. * Generated from protobuf field <code>.Ydb.Table.CompactionPolicy compaction_policy = 3;</code>
  108. * @return \Ydb\Table\CompactionPolicy|null
  109. */
  110. public function getCompactionPolicy()
  111. {
  112. return $this->compaction_policy;
  113. }
  114. public function hasCompactionPolicy()
  115. {
  116. return isset($this->compaction_policy);
  117. }
  118. public function clearCompactionPolicy()
  119. {
  120. unset($this->compaction_policy);
  121. }
  122. /**
  123. * Generated from protobuf field <code>.Ydb.Table.CompactionPolicy compaction_policy = 3;</code>
  124. * @param \Ydb\Table\CompactionPolicy $var
  125. * @return $this
  126. */
  127. public function setCompactionPolicy($var)
  128. {
  129. GPBUtil::checkMessage($var, \Ydb\Table\CompactionPolicy::class);
  130. $this->compaction_policy = $var;
  131. return $this;
  132. }
  133. /**
  134. * Generated from protobuf field <code>.Ydb.Table.PartitioningPolicy partitioning_policy = 4;</code>
  135. * @return \Ydb\Table\PartitioningPolicy|null
  136. */
  137. public function getPartitioningPolicy()
  138. {
  139. return $this->partitioning_policy;
  140. }
  141. public function hasPartitioningPolicy()
  142. {
  143. return isset($this->partitioning_policy);
  144. }
  145. public function clearPartitioningPolicy()
  146. {
  147. unset($this->partitioning_policy);
  148. }
  149. /**
  150. * Generated from protobuf field <code>.Ydb.Table.PartitioningPolicy partitioning_policy = 4;</code>
  151. * @param \Ydb\Table\PartitioningPolicy $var
  152. * @return $this
  153. */
  154. public function setPartitioningPolicy($var)
  155. {
  156. GPBUtil::checkMessage($var, \Ydb\Table\PartitioningPolicy::class);
  157. $this->partitioning_policy = $var;
  158. return $this;
  159. }
  160. /**
  161. * Generated from protobuf field <code>.Ydb.Table.ExecutionPolicy execution_policy = 5;</code>
  162. * @return \Ydb\Table\ExecutionPolicy|null
  163. */
  164. public function getExecutionPolicy()
  165. {
  166. return $this->execution_policy;
  167. }
  168. public function hasExecutionPolicy()
  169. {
  170. return isset($this->execution_policy);
  171. }
  172. public function clearExecutionPolicy()
  173. {
  174. unset($this->execution_policy);
  175. }
  176. /**
  177. * Generated from protobuf field <code>.Ydb.Table.ExecutionPolicy execution_policy = 5;</code>
  178. * @param \Ydb\Table\ExecutionPolicy $var
  179. * @return $this
  180. */
  181. public function setExecutionPolicy($var)
  182. {
  183. GPBUtil::checkMessage($var, \Ydb\Table\ExecutionPolicy::class);
  184. $this->execution_policy = $var;
  185. return $this;
  186. }
  187. /**
  188. * Generated from protobuf field <code>.Ydb.Table.ReplicationPolicy replication_policy = 6;</code>
  189. * @return \Ydb\Table\ReplicationPolicy|null
  190. */
  191. public function getReplicationPolicy()
  192. {
  193. return $this->replication_policy;
  194. }
  195. public function hasReplicationPolicy()
  196. {
  197. return isset($this->replication_policy);
  198. }
  199. public function clearReplicationPolicy()
  200. {
  201. unset($this->replication_policy);
  202. }
  203. /**
  204. * Generated from protobuf field <code>.Ydb.Table.ReplicationPolicy replication_policy = 6;</code>
  205. * @param \Ydb\Table\ReplicationPolicy $var
  206. * @return $this
  207. */
  208. public function setReplicationPolicy($var)
  209. {
  210. GPBUtil::checkMessage($var, \Ydb\Table\ReplicationPolicy::class);
  211. $this->replication_policy = $var;
  212. return $this;
  213. }
  214. /**
  215. * Generated from protobuf field <code>.Ydb.Table.CachingPolicy caching_policy = 7;</code>
  216. * @return \Ydb\Table\CachingPolicy|null
  217. */
  218. public function getCachingPolicy()
  219. {
  220. return $this->caching_policy;
  221. }
  222. public function hasCachingPolicy()
  223. {
  224. return isset($this->caching_policy);
  225. }
  226. public function clearCachingPolicy()
  227. {
  228. unset($this->caching_policy);
  229. }
  230. /**
  231. * Generated from protobuf field <code>.Ydb.Table.CachingPolicy caching_policy = 7;</code>
  232. * @param \Ydb\Table\CachingPolicy $var
  233. * @return $this
  234. */
  235. public function setCachingPolicy($var)
  236. {
  237. GPBUtil::checkMessage($var, \Ydb\Table\CachingPolicy::class);
  238. $this->caching_policy = $var;
  239. return $this;
  240. }
  241. }