AlterPartitioningSettings.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_topic.proto
  4. namespace Ydb\Topic;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Partitioning settings for topic.
  10. *
  11. * Generated from protobuf message <code>Ydb.Topic.AlterPartitioningSettings</code>
  12. */
  13. class AlterPartitioningSettings extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Minimum partition count auto merge would stop working at.
  17. * Zero value means default - 1.
  18. *
  19. * Generated from protobuf field <code>optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"];</code>
  20. */
  21. protected $set_min_active_partitions = null;
  22. /**
  23. * Limit for total partition count, including active (open for write) and read-only partitions.
  24. * Zero value means default - 100.
  25. *
  26. * Generated from protobuf field <code>optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"];</code>
  27. */
  28. protected $set_partition_count_limit = null;
  29. /**
  30. * Constructor.
  31. *
  32. * @param array $data {
  33. * Optional. Data for populating the Message object.
  34. *
  35. * @type int|string $set_min_active_partitions
  36. * Minimum partition count auto merge would stop working at.
  37. * Zero value means default - 1.
  38. * @type int|string $set_partition_count_limit
  39. * Limit for total partition count, including active (open for write) and read-only partitions.
  40. * Zero value means default - 100.
  41. * }
  42. */
  43. public function __construct($data = NULL) {
  44. \GPBMetadata\Protos\YdbTopic::initOnce();
  45. parent::__construct($data);
  46. }
  47. /**
  48. * Minimum partition count auto merge would stop working at.
  49. * Zero value means default - 1.
  50. *
  51. * Generated from protobuf field <code>optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"];</code>
  52. * @return int|string
  53. */
  54. public function getSetMinActivePartitions()
  55. {
  56. return isset($this->set_min_active_partitions) ? $this->set_min_active_partitions : 0;
  57. }
  58. public function hasSetMinActivePartitions()
  59. {
  60. return isset($this->set_min_active_partitions);
  61. }
  62. public function clearSetMinActivePartitions()
  63. {
  64. unset($this->set_min_active_partitions);
  65. }
  66. /**
  67. * Minimum partition count auto merge would stop working at.
  68. * Zero value means default - 1.
  69. *
  70. * Generated from protobuf field <code>optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"];</code>
  71. * @param int|string $var
  72. * @return $this
  73. */
  74. public function setSetMinActivePartitions($var)
  75. {
  76. GPBUtil::checkInt64($var);
  77. $this->set_min_active_partitions = $var;
  78. return $this;
  79. }
  80. /**
  81. * Limit for total partition count, including active (open for write) and read-only partitions.
  82. * Zero value means default - 100.
  83. *
  84. * Generated from protobuf field <code>optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"];</code>
  85. * @return int|string
  86. */
  87. public function getSetPartitionCountLimit()
  88. {
  89. return isset($this->set_partition_count_limit) ? $this->set_partition_count_limit : 0;
  90. }
  91. public function hasSetPartitionCountLimit()
  92. {
  93. return isset($this->set_partition_count_limit);
  94. }
  95. public function clearSetPartitionCountLimit()
  96. {
  97. unset($this->set_partition_count_limit);
  98. }
  99. /**
  100. * Limit for total partition count, including active (open for write) and read-only partitions.
  101. * Zero value means default - 100.
  102. *
  103. * Generated from protobuf field <code>optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"];</code>
  104. * @param int|string $var
  105. * @return $this
  106. */
  107. public function setSetPartitionCountLimit($var)
  108. {
  109. GPBUtil::checkInt64($var);
  110. $this->set_partition_count_limit = $var;
  111. return $this;
  112. }
  113. }