AlterDatabaseRequest.php 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_cms.proto
  4. namespace Ydb\Cms;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Change resources allocated for database.
  10. *
  11. * Generated from protobuf message <code>Ydb.Cms.AlterDatabaseRequest</code>
  12. */
  13. class AlterDatabaseRequest extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Required. Full path to database's home dir.
  17. *
  18. * Generated from protobuf field <code>string path = 1;</code>
  19. */
  20. protected $path = '';
  21. /**
  22. * Additional computational units to allocate for database.
  23. *
  24. * Generated from protobuf field <code>repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;</code>
  25. */
  26. private $computational_units_to_add;
  27. /**
  28. * Computational units to deallocate.
  29. *
  30. * Generated from protobuf field <code>repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;</code>
  31. */
  32. private $computational_units_to_remove;
  33. /**
  34. * Additional storage units to allocate for database.
  35. *
  36. * Generated from protobuf field <code>repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;</code>
  37. */
  38. private $storage_units_to_add;
  39. /**
  40. * Externally allocated computational units to register for database.
  41. *
  42. * Generated from protobuf field <code>repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;</code>
  43. */
  44. private $computational_units_to_register;
  45. /**
  46. * Externally allocated computational units to deregister.
  47. *
  48. * Generated from protobuf field <code>repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;</code>
  49. */
  50. private $computational_units_to_deregister;
  51. /**
  52. * Operation parameters.
  53. *
  54. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 7;</code>
  55. */
  56. protected $operation_params = null;
  57. /**
  58. * Current generation of altered database.
  59. *
  60. * Generated from protobuf field <code>uint64 generation = 8;</code>
  61. */
  62. protected $generation = 0;
  63. /**
  64. * Change quotas for schema operations
  65. *
  66. * Generated from protobuf field <code>.Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;</code>
  67. */
  68. protected $schema_operation_quotas = null;
  69. /**
  70. * Optional idempotency key
  71. *
  72. * Generated from protobuf field <code>string idempotency_key = 10;</code>
  73. */
  74. protected $idempotency_key = '';
  75. /**
  76. * Change quotas for the database
  77. *
  78. * Generated from protobuf field <code>.Ydb.Cms.DatabaseQuotas database_quotas = 11;</code>
  79. */
  80. protected $database_quotas = null;
  81. /**
  82. * Alter attributes. Leave the value blank to drop an attribute.
  83. *
  84. * Generated from protobuf field <code>map<string, string> alter_attributes = 12;</code>
  85. */
  86. private $alter_attributes;
  87. /**
  88. * Constructor.
  89. *
  90. * @param array $data {
  91. * Optional. Data for populating the Message object.
  92. *
  93. * @type string $path
  94. * Required. Full path to database's home dir.
  95. * @type array<\Ydb\Cms\ComputationalUnits>|\Google\Protobuf\Internal\RepeatedField $computational_units_to_add
  96. * Additional computational units to allocate for database.
  97. * @type array<\Ydb\Cms\ComputationalUnits>|\Google\Protobuf\Internal\RepeatedField $computational_units_to_remove
  98. * Computational units to deallocate.
  99. * @type array<\Ydb\Cms\StorageUnits>|\Google\Protobuf\Internal\RepeatedField $storage_units_to_add
  100. * Additional storage units to allocate for database.
  101. * @type array<\Ydb\Cms\AllocatedComputationalUnit>|\Google\Protobuf\Internal\RepeatedField $computational_units_to_register
  102. * Externally allocated computational units to register for database.
  103. * @type array<\Ydb\Cms\AllocatedComputationalUnit>|\Google\Protobuf\Internal\RepeatedField $computational_units_to_deregister
  104. * Externally allocated computational units to deregister.
  105. * @type \Ydb\Operations\OperationParams $operation_params
  106. * Operation parameters.
  107. * @type int|string $generation
  108. * Current generation of altered database.
  109. * @type \Ydb\Cms\SchemaOperationQuotas $schema_operation_quotas
  110. * Change quotas for schema operations
  111. * @type string $idempotency_key
  112. * Optional idempotency key
  113. * @type \Ydb\Cms\DatabaseQuotas $database_quotas
  114. * Change quotas for the database
  115. * @type array|\Google\Protobuf\Internal\MapField $alter_attributes
  116. * Alter attributes. Leave the value blank to drop an attribute.
  117. * }
  118. */
  119. public function __construct($data = NULL) {
  120. \GPBMetadata\Protos\YdbCms::initOnce();
  121. parent::__construct($data);
  122. }
  123. /**
  124. * Required. Full path to database's home dir.
  125. *
  126. * Generated from protobuf field <code>string path = 1;</code>
  127. * @return string
  128. */
  129. public function getPath()
  130. {
  131. return $this->path;
  132. }
  133. /**
  134. * Required. Full path to database's home dir.
  135. *
  136. * Generated from protobuf field <code>string path = 1;</code>
  137. * @param string $var
  138. * @return $this
  139. */
  140. public function setPath($var)
  141. {
  142. GPBUtil::checkString($var, True);
  143. $this->path = $var;
  144. return $this;
  145. }
  146. /**
  147. * Additional computational units to allocate for database.
  148. *
  149. * Generated from protobuf field <code>repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;</code>
  150. * @return \Google\Protobuf\Internal\RepeatedField
  151. */
  152. public function getComputationalUnitsToAdd()
  153. {
  154. return $this->computational_units_to_add;
  155. }
  156. /**
  157. * Additional computational units to allocate for database.
  158. *
  159. * Generated from protobuf field <code>repeated .Ydb.Cms.ComputationalUnits computational_units_to_add = 2;</code>
  160. * @param array<\Ydb\Cms\ComputationalUnits>|\Google\Protobuf\Internal\RepeatedField $var
  161. * @return $this
  162. */
  163. public function setComputationalUnitsToAdd($var)
  164. {
  165. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\ComputationalUnits::class);
  166. $this->computational_units_to_add = $arr;
  167. return $this;
  168. }
  169. /**
  170. * Computational units to deallocate.
  171. *
  172. * Generated from protobuf field <code>repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;</code>
  173. * @return \Google\Protobuf\Internal\RepeatedField
  174. */
  175. public function getComputationalUnitsToRemove()
  176. {
  177. return $this->computational_units_to_remove;
  178. }
  179. /**
  180. * Computational units to deallocate.
  181. *
  182. * Generated from protobuf field <code>repeated .Ydb.Cms.ComputationalUnits computational_units_to_remove = 3;</code>
  183. * @param array<\Ydb\Cms\ComputationalUnits>|\Google\Protobuf\Internal\RepeatedField $var
  184. * @return $this
  185. */
  186. public function setComputationalUnitsToRemove($var)
  187. {
  188. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\ComputationalUnits::class);
  189. $this->computational_units_to_remove = $arr;
  190. return $this;
  191. }
  192. /**
  193. * Additional storage units to allocate for database.
  194. *
  195. * Generated from protobuf field <code>repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;</code>
  196. * @return \Google\Protobuf\Internal\RepeatedField
  197. */
  198. public function getStorageUnitsToAdd()
  199. {
  200. return $this->storage_units_to_add;
  201. }
  202. /**
  203. * Additional storage units to allocate for database.
  204. *
  205. * Generated from protobuf field <code>repeated .Ydb.Cms.StorageUnits storage_units_to_add = 4;</code>
  206. * @param array<\Ydb\Cms\StorageUnits>|\Google\Protobuf\Internal\RepeatedField $var
  207. * @return $this
  208. */
  209. public function setStorageUnitsToAdd($var)
  210. {
  211. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\StorageUnits::class);
  212. $this->storage_units_to_add = $arr;
  213. return $this;
  214. }
  215. /**
  216. * Externally allocated computational units to register for database.
  217. *
  218. * Generated from protobuf field <code>repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;</code>
  219. * @return \Google\Protobuf\Internal\RepeatedField
  220. */
  221. public function getComputationalUnitsToRegister()
  222. {
  223. return $this->computational_units_to_register;
  224. }
  225. /**
  226. * Externally allocated computational units to register for database.
  227. *
  228. * Generated from protobuf field <code>repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_register = 5;</code>
  229. * @param array<\Ydb\Cms\AllocatedComputationalUnit>|\Google\Protobuf\Internal\RepeatedField $var
  230. * @return $this
  231. */
  232. public function setComputationalUnitsToRegister($var)
  233. {
  234. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\AllocatedComputationalUnit::class);
  235. $this->computational_units_to_register = $arr;
  236. return $this;
  237. }
  238. /**
  239. * Externally allocated computational units to deregister.
  240. *
  241. * Generated from protobuf field <code>repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;</code>
  242. * @return \Google\Protobuf\Internal\RepeatedField
  243. */
  244. public function getComputationalUnitsToDeregister()
  245. {
  246. return $this->computational_units_to_deregister;
  247. }
  248. /**
  249. * Externally allocated computational units to deregister.
  250. *
  251. * Generated from protobuf field <code>repeated .Ydb.Cms.AllocatedComputationalUnit computational_units_to_deregister = 6;</code>
  252. * @param array<\Ydb\Cms\AllocatedComputationalUnit>|\Google\Protobuf\Internal\RepeatedField $var
  253. * @return $this
  254. */
  255. public function setComputationalUnitsToDeregister($var)
  256. {
  257. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Cms\AllocatedComputationalUnit::class);
  258. $this->computational_units_to_deregister = $arr;
  259. return $this;
  260. }
  261. /**
  262. * Operation parameters.
  263. *
  264. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 7;</code>
  265. * @return \Ydb\Operations\OperationParams|null
  266. */
  267. public function getOperationParams()
  268. {
  269. return $this->operation_params;
  270. }
  271. public function hasOperationParams()
  272. {
  273. return isset($this->operation_params);
  274. }
  275. public function clearOperationParams()
  276. {
  277. unset($this->operation_params);
  278. }
  279. /**
  280. * Operation parameters.
  281. *
  282. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 7;</code>
  283. * @param \Ydb\Operations\OperationParams $var
  284. * @return $this
  285. */
  286. public function setOperationParams($var)
  287. {
  288. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  289. $this->operation_params = $var;
  290. return $this;
  291. }
  292. /**
  293. * Current generation of altered database.
  294. *
  295. * Generated from protobuf field <code>uint64 generation = 8;</code>
  296. * @return int|string
  297. */
  298. public function getGeneration()
  299. {
  300. return $this->generation;
  301. }
  302. /**
  303. * Current generation of altered database.
  304. *
  305. * Generated from protobuf field <code>uint64 generation = 8;</code>
  306. * @param int|string $var
  307. * @return $this
  308. */
  309. public function setGeneration($var)
  310. {
  311. GPBUtil::checkUint64($var);
  312. $this->generation = $var;
  313. return $this;
  314. }
  315. /**
  316. * Change quotas for schema operations
  317. *
  318. * Generated from protobuf field <code>.Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;</code>
  319. * @return \Ydb\Cms\SchemaOperationQuotas|null
  320. */
  321. public function getSchemaOperationQuotas()
  322. {
  323. return $this->schema_operation_quotas;
  324. }
  325. public function hasSchemaOperationQuotas()
  326. {
  327. return isset($this->schema_operation_quotas);
  328. }
  329. public function clearSchemaOperationQuotas()
  330. {
  331. unset($this->schema_operation_quotas);
  332. }
  333. /**
  334. * Change quotas for schema operations
  335. *
  336. * Generated from protobuf field <code>.Ydb.Cms.SchemaOperationQuotas schema_operation_quotas = 9;</code>
  337. * @param \Ydb\Cms\SchemaOperationQuotas $var
  338. * @return $this
  339. */
  340. public function setSchemaOperationQuotas($var)
  341. {
  342. GPBUtil::checkMessage($var, \Ydb\Cms\SchemaOperationQuotas::class);
  343. $this->schema_operation_quotas = $var;
  344. return $this;
  345. }
  346. /**
  347. * Optional idempotency key
  348. *
  349. * Generated from protobuf field <code>string idempotency_key = 10;</code>
  350. * @return string
  351. */
  352. public function getIdempotencyKey()
  353. {
  354. return $this->idempotency_key;
  355. }
  356. /**
  357. * Optional idempotency key
  358. *
  359. * Generated from protobuf field <code>string idempotency_key = 10;</code>
  360. * @param string $var
  361. * @return $this
  362. */
  363. public function setIdempotencyKey($var)
  364. {
  365. GPBUtil::checkString($var, True);
  366. $this->idempotency_key = $var;
  367. return $this;
  368. }
  369. /**
  370. * Change quotas for the database
  371. *
  372. * Generated from protobuf field <code>.Ydb.Cms.DatabaseQuotas database_quotas = 11;</code>
  373. * @return \Ydb\Cms\DatabaseQuotas|null
  374. */
  375. public function getDatabaseQuotas()
  376. {
  377. return $this->database_quotas;
  378. }
  379. public function hasDatabaseQuotas()
  380. {
  381. return isset($this->database_quotas);
  382. }
  383. public function clearDatabaseQuotas()
  384. {
  385. unset($this->database_quotas);
  386. }
  387. /**
  388. * Change quotas for the database
  389. *
  390. * Generated from protobuf field <code>.Ydb.Cms.DatabaseQuotas database_quotas = 11;</code>
  391. * @param \Ydb\Cms\DatabaseQuotas $var
  392. * @return $this
  393. */
  394. public function setDatabaseQuotas($var)
  395. {
  396. GPBUtil::checkMessage($var, \Ydb\Cms\DatabaseQuotas::class);
  397. $this->database_quotas = $var;
  398. return $this;
  399. }
  400. /**
  401. * Alter attributes. Leave the value blank to drop an attribute.
  402. *
  403. * Generated from protobuf field <code>map<string, string> alter_attributes = 12;</code>
  404. * @return \Google\Protobuf\Internal\MapField
  405. */
  406. public function getAlterAttributes()
  407. {
  408. return $this->alter_attributes;
  409. }
  410. /**
  411. * Alter attributes. Leave the value blank to drop an attribute.
  412. *
  413. * Generated from protobuf field <code>map<string, string> alter_attributes = 12;</code>
  414. * @param array|\Google\Protobuf\Internal\MapField $var
  415. * @return $this
  416. */
  417. public function setAlterAttributes($var)
  418. {
  419. $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
  420. $this->alter_attributes = $arr;
  421. return $this;
  422. }
  423. }