/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
protos/Ydb/Topic/AlterPartitioningSettings.php
128 строк
4 KB
Alexei Shabalin
updated protos
17 фев 2023, 13:31
17 фев 2023, 13:31
ae6a264
Код
Авторство
О чём код?
<?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; } }