AlterTableRequest.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  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. * Alter table with given path
  10. *
  11. * Generated from protobuf message <code>Ydb.Table.AlterTableRequest</code>
  12. */
  13. class AlterTableRequest extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Session identifier
  17. *
  18. * Generated from protobuf field <code>string session_id = 1;</code>
  19. */
  20. protected $session_id = '';
  21. /**
  22. * Full path
  23. *
  24. * Generated from protobuf field <code>string path = 2;</code>
  25. */
  26. protected $path = '';
  27. /**
  28. * Columns (name, type) to add
  29. *
  30. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnMeta add_columns = 3;</code>
  31. */
  32. private $add_columns;
  33. /**
  34. * Columns to remove
  35. *
  36. * Generated from protobuf field <code>repeated string drop_columns = 4;</code>
  37. */
  38. private $drop_columns;
  39. /**
  40. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 5;</code>
  41. */
  42. protected $operation_params = null;
  43. /**
  44. * Columns to alter
  45. *
  46. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnMeta alter_columns = 6;</code>
  47. */
  48. private $alter_columns;
  49. /**
  50. * Add secondary indexes
  51. *
  52. * Generated from protobuf field <code>repeated .Ydb.Table.TableIndex add_indexes = 9;</code>
  53. */
  54. private $add_indexes;
  55. /**
  56. * Remove secondary indexes
  57. *
  58. * Generated from protobuf field <code>repeated string drop_indexes = 10;</code>
  59. */
  60. private $drop_indexes;
  61. /**
  62. * Change table storage settings
  63. *
  64. * Generated from protobuf field <code>.Ydb.Table.StorageSettings alter_storage_settings = 11;</code>
  65. */
  66. protected $alter_storage_settings = null;
  67. /**
  68. * Add/alter column families
  69. *
  70. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamily add_column_families = 12;</code>
  71. */
  72. private $add_column_families;
  73. /**
  74. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamily alter_column_families = 13;</code>
  75. */
  76. private $alter_column_families;
  77. /**
  78. * Alter attributes. Leave the value blank to drop an attribute.
  79. * Cannot be used in combination with other fields (except session_id and path) at the moment.
  80. *
  81. * Generated from protobuf field <code>map<string, string> alter_attributes = 14 [(.Ydb.length) = {</code>
  82. */
  83. private $alter_attributes;
  84. /**
  85. * Set predefined named set of settings for table compaction ["default", "small_table", "log_table"].
  86. * Set "default" to use default preset.
  87. *
  88. * Generated from protobuf field <code>string set_compaction_policy = 15;</code>
  89. */
  90. protected $set_compaction_policy = '';
  91. /**
  92. * Change table partitioning settings
  93. *
  94. * Generated from protobuf field <code>.Ydb.Table.PartitioningSettings alter_partitioning_settings = 16;</code>
  95. */
  96. protected $alter_partitioning_settings = null;
  97. /**
  98. * Enable/disable bloom filter by key
  99. *
  100. * Generated from protobuf field <code>.Ydb.FeatureFlag.Status set_key_bloom_filter = 17;</code>
  101. */
  102. protected $set_key_bloom_filter = 0;
  103. /**
  104. * Set read replicas settings for table
  105. *
  106. * Generated from protobuf field <code>.Ydb.Table.ReadReplicasSettings set_read_replicas_settings = 18;</code>
  107. */
  108. protected $set_read_replicas_settings = null;
  109. /**
  110. * Add change feeds
  111. *
  112. * Generated from protobuf field <code>repeated .Ydb.Table.Changefeed add_changefeeds = 19;</code>
  113. */
  114. private $add_changefeeds;
  115. /**
  116. * Remove change feeds (by its names)
  117. *
  118. * Generated from protobuf field <code>repeated string drop_changefeeds = 20;</code>
  119. */
  120. private $drop_changefeeds;
  121. /**
  122. * Rename existed index
  123. *
  124. * Generated from protobuf field <code>repeated .Ydb.Table.RenameIndexItem rename_indexes = 21;</code>
  125. */
  126. private $rename_indexes;
  127. protected $ttl_action;
  128. /**
  129. * Constructor.
  130. *
  131. * @param array $data {
  132. * Optional. Data for populating the Message object.
  133. *
  134. * @type string $session_id
  135. * Session identifier
  136. * @type string $path
  137. * Full path
  138. * @type array<\Ydb\Table\ColumnMeta>|\Google\Protobuf\Internal\RepeatedField $add_columns
  139. * Columns (name, type) to add
  140. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $drop_columns
  141. * Columns to remove
  142. * @type \Ydb\Operations\OperationParams $operation_params
  143. * @type array<\Ydb\Table\ColumnMeta>|\Google\Protobuf\Internal\RepeatedField $alter_columns
  144. * Columns to alter
  145. * @type \Ydb\Table\TtlSettings $set_ttl_settings
  146. * @type \Google\Protobuf\GPBEmpty $drop_ttl_settings
  147. * @type array<\Ydb\Table\TableIndex>|\Google\Protobuf\Internal\RepeatedField $add_indexes
  148. * Add secondary indexes
  149. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $drop_indexes
  150. * Remove secondary indexes
  151. * @type \Ydb\Table\StorageSettings $alter_storage_settings
  152. * Change table storage settings
  153. * @type array<\Ydb\Table\ColumnFamily>|\Google\Protobuf\Internal\RepeatedField $add_column_families
  154. * Add/alter column families
  155. * @type array<\Ydb\Table\ColumnFamily>|\Google\Protobuf\Internal\RepeatedField $alter_column_families
  156. * @type array|\Google\Protobuf\Internal\MapField $alter_attributes
  157. * Alter attributes. Leave the value blank to drop an attribute.
  158. * Cannot be used in combination with other fields (except session_id and path) at the moment.
  159. * @type string $set_compaction_policy
  160. * Set predefined named set of settings for table compaction ["default", "small_table", "log_table"].
  161. * Set "default" to use default preset.
  162. * @type \Ydb\Table\PartitioningSettings $alter_partitioning_settings
  163. * Change table partitioning settings
  164. * @type int $set_key_bloom_filter
  165. * Enable/disable bloom filter by key
  166. * @type \Ydb\Table\ReadReplicasSettings $set_read_replicas_settings
  167. * Set read replicas settings for table
  168. * @type array<\Ydb\Table\Changefeed>|\Google\Protobuf\Internal\RepeatedField $add_changefeeds
  169. * Add change feeds
  170. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $drop_changefeeds
  171. * Remove change feeds (by its names)
  172. * @type array<\Ydb\Table\RenameIndexItem>|\Google\Protobuf\Internal\RepeatedField $rename_indexes
  173. * Rename existed index
  174. * }
  175. */
  176. public function __construct($data = NULL) {
  177. \GPBMetadata\Protos\YdbTable::initOnce();
  178. parent::__construct($data);
  179. }
  180. /**
  181. * Session identifier
  182. *
  183. * Generated from protobuf field <code>string session_id = 1;</code>
  184. * @return string
  185. */
  186. public function getSessionId()
  187. {
  188. return $this->session_id;
  189. }
  190. /**
  191. * Session identifier
  192. *
  193. * Generated from protobuf field <code>string session_id = 1;</code>
  194. * @param string $var
  195. * @return $this
  196. */
  197. public function setSessionId($var)
  198. {
  199. GPBUtil::checkString($var, True);
  200. $this->session_id = $var;
  201. return $this;
  202. }
  203. /**
  204. * Full path
  205. *
  206. * Generated from protobuf field <code>string path = 2;</code>
  207. * @return string
  208. */
  209. public function getPath()
  210. {
  211. return $this->path;
  212. }
  213. /**
  214. * Full path
  215. *
  216. * Generated from protobuf field <code>string path = 2;</code>
  217. * @param string $var
  218. * @return $this
  219. */
  220. public function setPath($var)
  221. {
  222. GPBUtil::checkString($var, True);
  223. $this->path = $var;
  224. return $this;
  225. }
  226. /**
  227. * Columns (name, type) to add
  228. *
  229. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnMeta add_columns = 3;</code>
  230. * @return \Google\Protobuf\Internal\RepeatedField
  231. */
  232. public function getAddColumns()
  233. {
  234. return $this->add_columns;
  235. }
  236. /**
  237. * Columns (name, type) to add
  238. *
  239. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnMeta add_columns = 3;</code>
  240. * @param array<\Ydb\Table\ColumnMeta>|\Google\Protobuf\Internal\RepeatedField $var
  241. * @return $this
  242. */
  243. public function setAddColumns($var)
  244. {
  245. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ColumnMeta::class);
  246. $this->add_columns = $arr;
  247. return $this;
  248. }
  249. /**
  250. * Columns to remove
  251. *
  252. * Generated from protobuf field <code>repeated string drop_columns = 4;</code>
  253. * @return \Google\Protobuf\Internal\RepeatedField
  254. */
  255. public function getDropColumns()
  256. {
  257. return $this->drop_columns;
  258. }
  259. /**
  260. * Columns to remove
  261. *
  262. * Generated from protobuf field <code>repeated string drop_columns = 4;</code>
  263. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  264. * @return $this
  265. */
  266. public function setDropColumns($var)
  267. {
  268. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  269. $this->drop_columns = $arr;
  270. return $this;
  271. }
  272. /**
  273. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 5;</code>
  274. * @return \Ydb\Operations\OperationParams|null
  275. */
  276. public function getOperationParams()
  277. {
  278. return $this->operation_params;
  279. }
  280. public function hasOperationParams()
  281. {
  282. return isset($this->operation_params);
  283. }
  284. public function clearOperationParams()
  285. {
  286. unset($this->operation_params);
  287. }
  288. /**
  289. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 5;</code>
  290. * @param \Ydb\Operations\OperationParams $var
  291. * @return $this
  292. */
  293. public function setOperationParams($var)
  294. {
  295. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  296. $this->operation_params = $var;
  297. return $this;
  298. }
  299. /**
  300. * Columns to alter
  301. *
  302. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnMeta alter_columns = 6;</code>
  303. * @return \Google\Protobuf\Internal\RepeatedField
  304. */
  305. public function getAlterColumns()
  306. {
  307. return $this->alter_columns;
  308. }
  309. /**
  310. * Columns to alter
  311. *
  312. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnMeta alter_columns = 6;</code>
  313. * @param array<\Ydb\Table\ColumnMeta>|\Google\Protobuf\Internal\RepeatedField $var
  314. * @return $this
  315. */
  316. public function setAlterColumns($var)
  317. {
  318. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ColumnMeta::class);
  319. $this->alter_columns = $arr;
  320. return $this;
  321. }
  322. /**
  323. * Generated from protobuf field <code>.Ydb.Table.TtlSettings set_ttl_settings = 7;</code>
  324. * @return \Ydb\Table\TtlSettings|null
  325. */
  326. public function getSetTtlSettings()
  327. {
  328. return $this->readOneof(7);
  329. }
  330. public function hasSetTtlSettings()
  331. {
  332. return $this->hasOneof(7);
  333. }
  334. /**
  335. * Generated from protobuf field <code>.Ydb.Table.TtlSettings set_ttl_settings = 7;</code>
  336. * @param \Ydb\Table\TtlSettings $var
  337. * @return $this
  338. */
  339. public function setSetTtlSettings($var)
  340. {
  341. GPBUtil::checkMessage($var, \Ydb\Table\TtlSettings::class);
  342. $this->writeOneof(7, $var);
  343. return $this;
  344. }
  345. /**
  346. * Generated from protobuf field <code>.google.protobuf.Empty drop_ttl_settings = 8;</code>
  347. * @return \Google\Protobuf\GPBEmpty|null
  348. */
  349. public function getDropTtlSettings()
  350. {
  351. return $this->readOneof(8);
  352. }
  353. public function hasDropTtlSettings()
  354. {
  355. return $this->hasOneof(8);
  356. }
  357. /**
  358. * Generated from protobuf field <code>.google.protobuf.Empty drop_ttl_settings = 8;</code>
  359. * @param \Google\Protobuf\GPBEmpty $var
  360. * @return $this
  361. */
  362. public function setDropTtlSettings($var)
  363. {
  364. GPBUtil::checkMessage($var, \Google\Protobuf\GPBEmpty::class);
  365. $this->writeOneof(8, $var);
  366. return $this;
  367. }
  368. /**
  369. * Add secondary indexes
  370. *
  371. * Generated from protobuf field <code>repeated .Ydb.Table.TableIndex add_indexes = 9;</code>
  372. * @return \Google\Protobuf\Internal\RepeatedField
  373. */
  374. public function getAddIndexes()
  375. {
  376. return $this->add_indexes;
  377. }
  378. /**
  379. * Add secondary indexes
  380. *
  381. * Generated from protobuf field <code>repeated .Ydb.Table.TableIndex add_indexes = 9;</code>
  382. * @param array<\Ydb\Table\TableIndex>|\Google\Protobuf\Internal\RepeatedField $var
  383. * @return $this
  384. */
  385. public function setAddIndexes($var)
  386. {
  387. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\TableIndex::class);
  388. $this->add_indexes = $arr;
  389. return $this;
  390. }
  391. /**
  392. * Remove secondary indexes
  393. *
  394. * Generated from protobuf field <code>repeated string drop_indexes = 10;</code>
  395. * @return \Google\Protobuf\Internal\RepeatedField
  396. */
  397. public function getDropIndexes()
  398. {
  399. return $this->drop_indexes;
  400. }
  401. /**
  402. * Remove secondary indexes
  403. *
  404. * Generated from protobuf field <code>repeated string drop_indexes = 10;</code>
  405. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  406. * @return $this
  407. */
  408. public function setDropIndexes($var)
  409. {
  410. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  411. $this->drop_indexes = $arr;
  412. return $this;
  413. }
  414. /**
  415. * Change table storage settings
  416. *
  417. * Generated from protobuf field <code>.Ydb.Table.StorageSettings alter_storage_settings = 11;</code>
  418. * @return \Ydb\Table\StorageSettings|null
  419. */
  420. public function getAlterStorageSettings()
  421. {
  422. return $this->alter_storage_settings;
  423. }
  424. public function hasAlterStorageSettings()
  425. {
  426. return isset($this->alter_storage_settings);
  427. }
  428. public function clearAlterStorageSettings()
  429. {
  430. unset($this->alter_storage_settings);
  431. }
  432. /**
  433. * Change table storage settings
  434. *
  435. * Generated from protobuf field <code>.Ydb.Table.StorageSettings alter_storage_settings = 11;</code>
  436. * @param \Ydb\Table\StorageSettings $var
  437. * @return $this
  438. */
  439. public function setAlterStorageSettings($var)
  440. {
  441. GPBUtil::checkMessage($var, \Ydb\Table\StorageSettings::class);
  442. $this->alter_storage_settings = $var;
  443. return $this;
  444. }
  445. /**
  446. * Add/alter column families
  447. *
  448. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamily add_column_families = 12;</code>
  449. * @return \Google\Protobuf\Internal\RepeatedField
  450. */
  451. public function getAddColumnFamilies()
  452. {
  453. return $this->add_column_families;
  454. }
  455. /**
  456. * Add/alter column families
  457. *
  458. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamily add_column_families = 12;</code>
  459. * @param array<\Ydb\Table\ColumnFamily>|\Google\Protobuf\Internal\RepeatedField $var
  460. * @return $this
  461. */
  462. public function setAddColumnFamilies($var)
  463. {
  464. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ColumnFamily::class);
  465. $this->add_column_families = $arr;
  466. return $this;
  467. }
  468. /**
  469. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamily alter_column_families = 13;</code>
  470. * @return \Google\Protobuf\Internal\RepeatedField
  471. */
  472. public function getAlterColumnFamilies()
  473. {
  474. return $this->alter_column_families;
  475. }
  476. /**
  477. * Generated from protobuf field <code>repeated .Ydb.Table.ColumnFamily alter_column_families = 13;</code>
  478. * @param array<\Ydb\Table\ColumnFamily>|\Google\Protobuf\Internal\RepeatedField $var
  479. * @return $this
  480. */
  481. public function setAlterColumnFamilies($var)
  482. {
  483. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\ColumnFamily::class);
  484. $this->alter_column_families = $arr;
  485. return $this;
  486. }
  487. /**
  488. * Alter attributes. Leave the value blank to drop an attribute.
  489. * Cannot be used in combination with other fields (except session_id and path) at the moment.
  490. *
  491. * Generated from protobuf field <code>map<string, string> alter_attributes = 14 [(.Ydb.length) = {</code>
  492. * @return \Google\Protobuf\Internal\MapField
  493. */
  494. public function getAlterAttributes()
  495. {
  496. return $this->alter_attributes;
  497. }
  498. /**
  499. * Alter attributes. Leave the value blank to drop an attribute.
  500. * Cannot be used in combination with other fields (except session_id and path) at the moment.
  501. *
  502. * Generated from protobuf field <code>map<string, string> alter_attributes = 14 [(.Ydb.length) = {</code>
  503. * @param array|\Google\Protobuf\Internal\MapField $var
  504. * @return $this
  505. */
  506. public function setAlterAttributes($var)
  507. {
  508. $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
  509. $this->alter_attributes = $arr;
  510. return $this;
  511. }
  512. /**
  513. * Set predefined named set of settings for table compaction ["default", "small_table", "log_table"].
  514. * Set "default" to use default preset.
  515. *
  516. * Generated from protobuf field <code>string set_compaction_policy = 15;</code>
  517. * @return string
  518. */
  519. public function getSetCompactionPolicy()
  520. {
  521. return $this->set_compaction_policy;
  522. }
  523. /**
  524. * Set predefined named set of settings for table compaction ["default", "small_table", "log_table"].
  525. * Set "default" to use default preset.
  526. *
  527. * Generated from protobuf field <code>string set_compaction_policy = 15;</code>
  528. * @param string $var
  529. * @return $this
  530. */
  531. public function setSetCompactionPolicy($var)
  532. {
  533. GPBUtil::checkString($var, True);
  534. $this->set_compaction_policy = $var;
  535. return $this;
  536. }
  537. /**
  538. * Change table partitioning settings
  539. *
  540. * Generated from protobuf field <code>.Ydb.Table.PartitioningSettings alter_partitioning_settings = 16;</code>
  541. * @return \Ydb\Table\PartitioningSettings|null
  542. */
  543. public function getAlterPartitioningSettings()
  544. {
  545. return $this->alter_partitioning_settings;
  546. }
  547. public function hasAlterPartitioningSettings()
  548. {
  549. return isset($this->alter_partitioning_settings);
  550. }
  551. public function clearAlterPartitioningSettings()
  552. {
  553. unset($this->alter_partitioning_settings);
  554. }
  555. /**
  556. * Change table partitioning settings
  557. *
  558. * Generated from protobuf field <code>.Ydb.Table.PartitioningSettings alter_partitioning_settings = 16;</code>
  559. * @param \Ydb\Table\PartitioningSettings $var
  560. * @return $this
  561. */
  562. public function setAlterPartitioningSettings($var)
  563. {
  564. GPBUtil::checkMessage($var, \Ydb\Table\PartitioningSettings::class);
  565. $this->alter_partitioning_settings = $var;
  566. return $this;
  567. }
  568. /**
  569. * Enable/disable bloom filter by key
  570. *
  571. * Generated from protobuf field <code>.Ydb.FeatureFlag.Status set_key_bloom_filter = 17;</code>
  572. * @return int
  573. */
  574. public function getSetKeyBloomFilter()
  575. {
  576. return $this->set_key_bloom_filter;
  577. }
  578. /**
  579. * Enable/disable bloom filter by key
  580. *
  581. * Generated from protobuf field <code>.Ydb.FeatureFlag.Status set_key_bloom_filter = 17;</code>
  582. * @param int $var
  583. * @return $this
  584. */
  585. public function setSetKeyBloomFilter($var)
  586. {
  587. GPBUtil::checkEnum($var, \Ydb\FeatureFlag\Status::class);
  588. $this->set_key_bloom_filter = $var;
  589. return $this;
  590. }
  591. /**
  592. * Set read replicas settings for table
  593. *
  594. * Generated from protobuf field <code>.Ydb.Table.ReadReplicasSettings set_read_replicas_settings = 18;</code>
  595. * @return \Ydb\Table\ReadReplicasSettings|null
  596. */
  597. public function getSetReadReplicasSettings()
  598. {
  599. return $this->set_read_replicas_settings;
  600. }
  601. public function hasSetReadReplicasSettings()
  602. {
  603. return isset($this->set_read_replicas_settings);
  604. }
  605. public function clearSetReadReplicasSettings()
  606. {
  607. unset($this->set_read_replicas_settings);
  608. }
  609. /**
  610. * Set read replicas settings for table
  611. *
  612. * Generated from protobuf field <code>.Ydb.Table.ReadReplicasSettings set_read_replicas_settings = 18;</code>
  613. * @param \Ydb\Table\ReadReplicasSettings $var
  614. * @return $this
  615. */
  616. public function setSetReadReplicasSettings($var)
  617. {
  618. GPBUtil::checkMessage($var, \Ydb\Table\ReadReplicasSettings::class);
  619. $this->set_read_replicas_settings = $var;
  620. return $this;
  621. }
  622. /**
  623. * Add change feeds
  624. *
  625. * Generated from protobuf field <code>repeated .Ydb.Table.Changefeed add_changefeeds = 19;</code>
  626. * @return \Google\Protobuf\Internal\RepeatedField
  627. */
  628. public function getAddChangefeeds()
  629. {
  630. return $this->add_changefeeds;
  631. }
  632. /**
  633. * Add change feeds
  634. *
  635. * Generated from protobuf field <code>repeated .Ydb.Table.Changefeed add_changefeeds = 19;</code>
  636. * @param array<\Ydb\Table\Changefeed>|\Google\Protobuf\Internal\RepeatedField $var
  637. * @return $this
  638. */
  639. public function setAddChangefeeds($var)
  640. {
  641. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\Changefeed::class);
  642. $this->add_changefeeds = $arr;
  643. return $this;
  644. }
  645. /**
  646. * Remove change feeds (by its names)
  647. *
  648. * Generated from protobuf field <code>repeated string drop_changefeeds = 20;</code>
  649. * @return \Google\Protobuf\Internal\RepeatedField
  650. */
  651. public function getDropChangefeeds()
  652. {
  653. return $this->drop_changefeeds;
  654. }
  655. /**
  656. * Remove change feeds (by its names)
  657. *
  658. * Generated from protobuf field <code>repeated string drop_changefeeds = 20;</code>
  659. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  660. * @return $this
  661. */
  662. public function setDropChangefeeds($var)
  663. {
  664. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  665. $this->drop_changefeeds = $arr;
  666. return $this;
  667. }
  668. /**
  669. * Rename existed index
  670. *
  671. * Generated from protobuf field <code>repeated .Ydb.Table.RenameIndexItem rename_indexes = 21;</code>
  672. * @return \Google\Protobuf\Internal\RepeatedField
  673. */
  674. public function getRenameIndexes()
  675. {
  676. return $this->rename_indexes;
  677. }
  678. /**
  679. * Rename existed index
  680. *
  681. * Generated from protobuf field <code>repeated .Ydb.Table.RenameIndexItem rename_indexes = 21;</code>
  682. * @param array<\Ydb\Table\RenameIndexItem>|\Google\Protobuf\Internal\RepeatedField $var
  683. * @return $this
  684. */
  685. public function setRenameIndexes($var)
  686. {
  687. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\RenameIndexItem::class);
  688. $this->rename_indexes = $arr;
  689. return $this;
  690. }
  691. /**
  692. * @return string
  693. */
  694. public function getTtlAction()
  695. {
  696. return $this->whichOneof("ttl_action");
  697. }
  698. }