123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_topic.proto
- namespace Ydb\Topic;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Partitioning settings for topic.
- *
- * Generated from protobuf message <code>Ydb.Topic.AlterPartitioningSettings</code>
- */
- class AlterPartitioningSettings extends \Google\Protobuf\Internal\Message
- {
- /**
- * Minimum partition count auto merge would stop working at.
- * Zero value means default - 1.
- *
- * Generated from protobuf field <code>optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"];</code>
- */
- protected $set_min_active_partitions = null;
- /**
- * Limit for total partition count, including active (open for write) and read-only partitions.
- * Zero value means default - 100.
- *
- * Generated from protobuf field <code>optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"];</code>
- */
- protected $set_partition_count_limit = null;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $set_min_active_partitions
- * Minimum partition count auto merge would stop working at.
- * Zero value means default - 1.
- * @type int|string $set_partition_count_limit
- * Limit for total partition count, including active (open for write) and read-only partitions.
- * Zero value means default - 100.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbTopic::initOnce();
- parent::__construct($data);
- }
- /**
- * Minimum partition count auto merge would stop working at.
- * Zero value means default - 1.
- *
- * Generated from protobuf field <code>optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"];</code>
- * @return int|string
- */
- public function getSetMinActivePartitions()
- {
- return isset($this->set_min_active_partitions) ? $this->set_min_active_partitions : 0;
- }
- public function hasSetMinActivePartitions()
- {
- return isset($this->set_min_active_partitions);
- }
- public function clearSetMinActivePartitions()
- {
- unset($this->set_min_active_partitions);
- }
- /**
- * Minimum partition count auto merge would stop working at.
- * Zero value means default - 1.
- *
- * Generated from protobuf field <code>optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"];</code>
- * @param int|string $var
- * @return $this
- */
- public function setSetMinActivePartitions($var)
- {
- GPBUtil::checkInt64($var);
- $this->set_min_active_partitions = $var;
- return $this;
- }
- /**
- * Limit for total partition count, including active (open for write) and read-only partitions.
- * Zero value means default - 100.
- *
- * Generated from protobuf field <code>optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"];</code>
- * @return int|string
- */
- public function getSetPartitionCountLimit()
- {
- return isset($this->set_partition_count_limit) ? $this->set_partition_count_limit : 0;
- }
- public function hasSetPartitionCountLimit()
- {
- return isset($this->set_partition_count_limit);
- }
- public function clearSetPartitionCountLimit()
- {
- unset($this->set_partition_count_limit);
- }
- /**
- * Limit for total partition count, including active (open for write) and read-only partitions.
- * Zero value means default - 100.
- *
- * Generated from protobuf field <code>optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"];</code>
- * @param int|string $var
- * @return $this
- */
- public function setSetPartitionCountLimit($var)
- {
- GPBUtil::checkInt64($var);
- $this->set_partition_count_limit = $var;
- return $this;
- }
- }
|