Ydb.Topic.AlterPartitioningSettings
*/
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 optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"];
*/
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 optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"];
*/
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 optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"];
* @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 optional int64 set_min_active_partitions = 1 [(.Ydb.value) = ">= 0"];
* @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 optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"];
* @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 optional int64 set_partition_count_limit = 2 [(.Ydb.value) = ">= 0"];
* @param int|string $var
* @return $this
*/
public function setSetPartitionCountLimit($var)
{
GPBUtil::checkInt64($var);
$this->set_partition_count_limit = $var;
return $this;
}
}