DescribeTableResult.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567
  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.DescribeTableResult</code>
  10. */
  11. class DescribeTableResult extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Description of scheme object
  15. *
  16. * Generated from protobuf field <code>.Ydb.Scheme.Entry self = 1;</code>
  17. */
  18. protected $self = null;
  19. /**
  20. * List of columns
  21. *
  22. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnMeta columns = 2;</code>
  23. */
  24. private $columns;
  25. /**
  26. * List of primary key columns
  27. *
  28. * Generated from protobuf field <code>repeated string primary_key = 3;</code>
  29. */
  30. private $primary_key;
  31. /**
  32. * List of key ranges for shard
  33. *
  34. * Generated from protobuf field <code>repeated .Ydb.TypedValue shard_key_bounds = 4;</code>
  35. */
  36. private $shard_key_bounds;
  37. /**
  38. * List of indexes
  39. *
  40. * Generated from protobuf field <code>repeated .Ydb.Table.TableIndexDescription indexes = 5;</code>
  41. */
  42. private $indexes;
  43. /**
  44. * Statistics of table
  45. *
  46. * Generated from protobuf field <code>.Ydb.Table.TableStats table_stats = 6;</code>
  47. */
  48. protected $table_stats = null;
  49. /**
  50. * TTL params
  51. *
  52. * Generated from protobuf field <code>.Ydb.Table.TtlSettings ttl_settings = 7;</code>
  53. */
  54. protected $ttl_settings = null;
  55. /**
  56. * Storage settings for table
  57. *
  58. * Generated from protobuf field <code>.Ydb.Table.StorageSettings storage_settings = 8;</code>
  59. */
  60. protected $storage_settings = null;
  61. /**
  62. * Column families
  63. *
  64. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamily column_families = 9;</code>
  65. */
  66. private $column_families;
  67. /**
  68. * Attributes
  69. *
  70. * Generated from protobuf field <code>map<string, string> attributes = 10;</code>
  71. */
  72. private $attributes;
  73. /**
  74. * Partitioning settings for table
  75. *
  76. * Generated from protobuf field <code>.Ydb.Table.PartitioningSettings partitioning_settings = 12;</code>
  77. */
  78. protected $partitioning_settings = null;
  79. /**
  80. * Bloom filter by key
  81. *
  82. * Generated from protobuf field <code>.Ydb.FeatureFlag.Status key_bloom_filter = 13;</code>
  83. */
  84. protected $key_bloom_filter = 0;
  85. /**
  86. * Read replicas settings for table
  87. *
  88. * Generated from protobuf field <code>.Ydb.Table.ReadReplicasSettings read_replicas_settings = 14;</code>
  89. */
  90. protected $read_replicas_settings = null;
  91. /**
  92. * List of changefeeds
  93. *
  94. * Generated from protobuf field <code>repeated .Ydb.Table.ChangefeedDescription changefeeds = 15;</code>
  95. */
  96. private $changefeeds;
  97. /**
  98. * Constructor.
  99. *
  100. * @param array $data {
  101. * Optional. Data for populating the Message object.
  102. *
  103. * @type \Ydb\Scheme\Entry $self
  104. * Description of scheme object
  105. * @type array<\Ydb\Table\ColumnMeta>|\Google\Protobuf\Internal\RepeatedField $columns
  106. * List of columns
  107. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $primary_key
  108. * List of primary key columns
  109. * @type array<\Ydb\TypedValue>|\Google\Protobuf\Internal\RepeatedField $shard_key_bounds
  110. * List of key ranges for shard
  111. * @type array<\Ydb\Table\TableIndexDescription>|\Google\Protobuf\Internal\RepeatedField $indexes
  112. * List of indexes
  113. * @type \Ydb\Table\TableStats $table_stats
  114. * Statistics of table
  115. * @type \Ydb\Table\TtlSettings $ttl_settings
  116. * TTL params
  117. * @type \Ydb\Table\StorageSettings $storage_settings
  118. * Storage settings for table
  119. * @type array<\Ydb\Table\ColumnFamily>|\Google\Protobuf\Internal\RepeatedField $column_families
  120. * Column families
  121. * @type array|\Google\Protobuf\Internal\MapField $attributes
  122. * Attributes
  123. * @type \Ydb\Table\PartitioningSettings $partitioning_settings
  124. * Partitioning settings for table
  125. * @type int $key_bloom_filter
  126. * Bloom filter by key
  127. * @type \Ydb\Table\ReadReplicasSettings $read_replicas_settings
  128. * Read replicas settings for table
  129. * @type array<\Ydb\Table\ChangefeedDescription>|\Google\Protobuf\Internal\RepeatedField $changefeeds
  130. * List of changefeeds
  131. * }
  132. */
  133. public function __construct($data = NULL) {
  134. \GPBMetadata\Protos\YdbTable::initOnce();
  135. parent::__construct($data);
  136. }
  137. /**
  138. * Description of scheme object
  139. *
  140. * Generated from protobuf field <code>.Ydb.Scheme.Entry self = 1;</code>
  141. * @return \Ydb\Scheme\Entry|null
  142. */
  143. public function getSelf()
  144. {
  145. return $this->self;
  146. }
  147. public function hasSelf()
  148. {
  149. return isset($this->self);
  150. }
  151. public function clearSelf()
  152. {
  153. unset($this->self);
  154. }
  155. /**
  156. * Description of scheme object
  157. *
  158. * Generated from protobuf field <code>.Ydb.Scheme.Entry self = 1;</code>
  159. * @param \Ydb\Scheme\Entry $var
  160. * @return $this
  161. */
  162. public function setSelf($var)
  163. {
  164. GPBUtil::checkMessage($var, \Ydb\Scheme\Entry::class);
  165. $this->self = $var;
  166. return $this;
  167. }
  168. /**
  169. * List of columns
  170. *
  171. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnMeta columns = 2;</code>
  172. * @return \Google\Protobuf\Internal\RepeatedField
  173. */
  174. public function getColumns()
  175. {
  176. return $this->columns;
  177. }
  178. /**
  179. * List of columns
  180. *
  181. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnMeta columns = 2;</code>
  182. * @param array<\Ydb\Table\ColumnMeta>|\Google\Protobuf\Internal\RepeatedField $var
  183. * @return $this
  184. */
  185. public function setColumns($var)
  186. {
  187. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ColumnMeta::class);
  188. $this->columns = $arr;
  189. return $this;
  190. }
  191. /**
  192. * List of primary key columns
  193. *
  194. * Generated from protobuf field <code>repeated string primary_key = 3;</code>
  195. * @return \Google\Protobuf\Internal\RepeatedField
  196. */
  197. public function getPrimaryKey()
  198. {
  199. return $this->primary_key;
  200. }
  201. /**
  202. * List of primary key columns
  203. *
  204. * Generated from protobuf field <code>repeated string primary_key = 3;</code>
  205. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  206. * @return $this
  207. */
  208. public function setPrimaryKey($var)
  209. {
  210. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  211. $this->primary_key = $arr;
  212. return $this;
  213. }
  214. /**
  215. * List of key ranges for shard
  216. *
  217. * Generated from protobuf field <code>repeated .Ydb.TypedValue shard_key_bounds = 4;</code>
  218. * @return \Google\Protobuf\Internal\RepeatedField
  219. */
  220. public function getShardKeyBounds()
  221. {
  222. return $this->shard_key_bounds;
  223. }
  224. /**
  225. * List of key ranges for shard
  226. *
  227. * Generated from protobuf field <code>repeated .Ydb.TypedValue shard_key_bounds = 4;</code>
  228. * @param array<\Ydb\TypedValue>|\Google\Protobuf\Internal\RepeatedField $var
  229. * @return $this
  230. */
  231. public function setShardKeyBounds($var)
  232. {
  233. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\TypedValue::class);
  234. $this->shard_key_bounds = $arr;
  235. return $this;
  236. }
  237. /**
  238. * List of indexes
  239. *
  240. * Generated from protobuf field <code>repeated .Ydb.Table.TableIndexDescription indexes = 5;</code>
  241. * @return \Google\Protobuf\Internal\RepeatedField
  242. */
  243. public function getIndexes()
  244. {
  245. return $this->indexes;
  246. }
  247. /**
  248. * List of indexes
  249. *
  250. * Generated from protobuf field <code>repeated .Ydb.Table.TableIndexDescription indexes = 5;</code>
  251. * @param array<\Ydb\Table\TableIndexDescription>|\Google\Protobuf\Internal\RepeatedField $var
  252. * @return $this
  253. */
  254. public function setIndexes($var)
  255. {
  256. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\TableIndexDescription::class);
  257. $this->indexes = $arr;
  258. return $this;
  259. }
  260. /**
  261. * Statistics of table
  262. *
  263. * Generated from protobuf field <code>.Ydb.Table.TableStats table_stats = 6;</code>
  264. * @return \Ydb\Table\TableStats|null
  265. */
  266. public function getTableStats()
  267. {
  268. return $this->table_stats;
  269. }
  270. public function hasTableStats()
  271. {
  272. return isset($this->table_stats);
  273. }
  274. public function clearTableStats()
  275. {
  276. unset($this->table_stats);
  277. }
  278. /**
  279. * Statistics of table
  280. *
  281. * Generated from protobuf field <code>.Ydb.Table.TableStats table_stats = 6;</code>
  282. * @param \Ydb\Table\TableStats $var
  283. * @return $this
  284. */
  285. public function setTableStats($var)
  286. {
  287. GPBUtil::checkMessage($var, \Ydb\Table\TableStats::class);
  288. $this->table_stats = $var;
  289. return $this;
  290. }
  291. /**
  292. * TTL params
  293. *
  294. * Generated from protobuf field <code>.Ydb.Table.TtlSettings ttl_settings = 7;</code>
  295. * @return \Ydb\Table\TtlSettings|null
  296. */
  297. public function getTtlSettings()
  298. {
  299. return $this->ttl_settings;
  300. }
  301. public function hasTtlSettings()
  302. {
  303. return isset($this->ttl_settings);
  304. }
  305. public function clearTtlSettings()
  306. {
  307. unset($this->ttl_settings);
  308. }
  309. /**
  310. * TTL params
  311. *
  312. * Generated from protobuf field <code>.Ydb.Table.TtlSettings ttl_settings = 7;</code>
  313. * @param \Ydb\Table\TtlSettings $var
  314. * @return $this
  315. */
  316. public function setTtlSettings($var)
  317. {
  318. GPBUtil::checkMessage($var, \Ydb\Table\TtlSettings::class);
  319. $this->ttl_settings = $var;
  320. return $this;
  321. }
  322. /**
  323. * Storage settings for table
  324. *
  325. * Generated from protobuf field <code>.Ydb.Table.StorageSettings storage_settings = 8;</code>
  326. * @return \Ydb\Table\StorageSettings|null
  327. */
  328. public function getStorageSettings()
  329. {
  330. return $this->storage_settings;
  331. }
  332. public function hasStorageSettings()
  333. {
  334. return isset($this->storage_settings);
  335. }
  336. public function clearStorageSettings()
  337. {
  338. unset($this->storage_settings);
  339. }
  340. /**
  341. * Storage settings for table
  342. *
  343. * Generated from protobuf field <code>.Ydb.Table.StorageSettings storage_settings = 8;</code>
  344. * @param \Ydb\Table\StorageSettings $var
  345. * @return $this
  346. */
  347. public function setStorageSettings($var)
  348. {
  349. GPBUtil::checkMessage($var, \Ydb\Table\StorageSettings::class);
  350. $this->storage_settings = $var;
  351. return $this;
  352. }
  353. /**
  354. * Column families
  355. *
  356. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamily column_families = 9;</code>
  357. * @return \Google\Protobuf\Internal\RepeatedField
  358. */
  359. public function getColumnFamilies()
  360. {
  361. return $this->column_families;
  362. }
  363. /**
  364. * Column families
  365. *
  366. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamily column_families = 9;</code>
  367. * @param array<\Ydb\Table\ColumnFamily>|\Google\Protobuf\Internal\RepeatedField $var
  368. * @return $this
  369. */
  370. public function setColumnFamilies($var)
  371. {
  372. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ColumnFamily::class);
  373. $this->column_families = $arr;
  374. return $this;
  375. }
  376. /**
  377. * Attributes
  378. *
  379. * Generated from protobuf field <code>map<string, string> attributes = 10;</code>
  380. * @return \Google\Protobuf\Internal\MapField
  381. */
  382. public function getAttributes()
  383. {
  384. return $this->attributes;
  385. }
  386. /**
  387. * Attributes
  388. *
  389. * Generated from protobuf field <code>map<string, string> attributes = 10;</code>
  390. * @param array|\Google\Protobuf\Internal\MapField $var
  391. * @return $this
  392. */
  393. public function setAttributes($var)
  394. {
  395. $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
  396. $this->attributes = $arr;
  397. return $this;
  398. }
  399. /**
  400. * Partitioning settings for table
  401. *
  402. * Generated from protobuf field <code>.Ydb.Table.PartitioningSettings partitioning_settings = 12;</code>
  403. * @return \Ydb\Table\PartitioningSettings|null
  404. */
  405. public function getPartitioningSettings()
  406. {
  407. return $this->partitioning_settings;
  408. }
  409. public function hasPartitioningSettings()
  410. {
  411. return isset($this->partitioning_settings);
  412. }
  413. public function clearPartitioningSettings()
  414. {
  415. unset($this->partitioning_settings);
  416. }
  417. /**
  418. * Partitioning settings for table
  419. *
  420. * Generated from protobuf field <code>.Ydb.Table.PartitioningSettings partitioning_settings = 12;</code>
  421. * @param \Ydb\Table\PartitioningSettings $var
  422. * @return $this
  423. */
  424. public function setPartitioningSettings($var)
  425. {
  426. GPBUtil::checkMessage($var, \Ydb\Table\PartitioningSettings::class);
  427. $this->partitioning_settings = $var;
  428. return $this;
  429. }
  430. /**
  431. * Bloom filter by key
  432. *
  433. * Generated from protobuf field <code>.Ydb.FeatureFlag.Status key_bloom_filter = 13;</code>
  434. * @return int
  435. */
  436. public function getKeyBloomFilter()
  437. {
  438. return $this->key_bloom_filter;
  439. }
  440. /**
  441. * Bloom filter by key
  442. *
  443. * Generated from protobuf field <code>.Ydb.FeatureFlag.Status key_bloom_filter = 13;</code>
  444. * @param int $var
  445. * @return $this
  446. */
  447. public function setKeyBloomFilter($var)
  448. {
  449. GPBUtil::checkEnum($var, \Ydb\FeatureFlag\Status::class);
  450. $this->key_bloom_filter = $var;
  451. return $this;
  452. }
  453. /**
  454. * Read replicas settings for table
  455. *
  456. * Generated from protobuf field <code>.Ydb.Table.ReadReplicasSettings read_replicas_settings = 14;</code>
  457. * @return \Ydb\Table\ReadReplicasSettings|null
  458. */
  459. public function getReadReplicasSettings()
  460. {
  461. return $this->read_replicas_settings;
  462. }
  463. public function hasReadReplicasSettings()
  464. {
  465. return isset($this->read_replicas_settings);
  466. }
  467. public function clearReadReplicasSettings()
  468. {
  469. unset($this->read_replicas_settings);
  470. }
  471. /**
  472. * Read replicas settings for table
  473. *
  474. * Generated from protobuf field <code>.Ydb.Table.ReadReplicasSettings read_replicas_settings = 14;</code>
  475. * @param \Ydb\Table\ReadReplicasSettings $var
  476. * @return $this
  477. */
  478. public function setReadReplicasSettings($var)
  479. {
  480. GPBUtil::checkMessage($var, \Ydb\Table\ReadReplicasSettings::class);
  481. $this->read_replicas_settings = $var;
  482. return $this;
  483. }
  484. /**
  485. * List of changefeeds
  486. *
  487. * Generated from protobuf field <code>repeated .Ydb.Table.ChangefeedDescription changefeeds = 15;</code>
  488. * @return \Google\Protobuf\Internal\RepeatedField
  489. */
  490. public function getChangefeeds()
  491. {
  492. return $this->changefeeds;
  493. }
  494. /**
  495. * List of changefeeds
  496. *
  497. * Generated from protobuf field <code>repeated .Ydb.Table.ChangefeedDescription changefeeds = 15;</code>
  498. * @param array<\Ydb\Table\ChangefeedDescription>|\Google\Protobuf\Internal\RepeatedField $var
  499. * @return $this
  500. */
  501. public function setChangefeeds($var)
  502. {
  503. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ChangefeedDescription::class);
  504. $this->changefeeds = $arr;
  505. return $this;
  506. }
  507. }