Ydb.Table.PartitioningSettings */ class PartitioningSettings extends \Google\Protobuf\Internal\Message { /** * List of columns to partition by * * Generated from protobuf field repeated string partition_by = 1; */ private $partition_by; /** * Enable auto partitioning on reaching upper or lower partition size bound * * Generated from protobuf field .Ydb.FeatureFlag.Status partitioning_by_size = 2; */ protected $partitioning_by_size = 0; /** * Preferred partition size for auto partitioning by size, Mb * * Generated from protobuf field uint64 partition_size_mb = 3; */ protected $partition_size_mb = 0; /** * Enable auto partitioning based on load on each partition * * Generated from protobuf field .Ydb.FeatureFlag.Status partitioning_by_load = 4; */ protected $partitioning_by_load = 0; /** * Minimum partitions count auto merge would stop working at * * Generated from protobuf field uint64 min_partitions_count = 6; */ protected $min_partitions_count = 0; /** * Maximum partitions count auto split would stop working at * * Generated from protobuf field uint64 max_partitions_count = 7; */ protected $max_partitions_count = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type array|\Google\Protobuf\Internal\RepeatedField $partition_by * List of columns to partition by * @type int $partitioning_by_size * Enable auto partitioning on reaching upper or lower partition size bound * @type int|string $partition_size_mb * Preferred partition size for auto partitioning by size, Mb * @type int $partitioning_by_load * Enable auto partitioning based on load on each partition * @type int|string $min_partitions_count * Minimum partitions count auto merge would stop working at * @type int|string $max_partitions_count * Maximum partitions count auto split would stop working at * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTable::initOnce(); parent::__construct($data); } /** * List of columns to partition by * * Generated from protobuf field repeated string partition_by = 1; * @return \Google\Protobuf\Internal\RepeatedField */ public function getPartitionBy() { return $this->partition_by; } /** * List of columns to partition by * * Generated from protobuf field repeated string partition_by = 1; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setPartitionBy($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); $this->partition_by = $arr; return $this; } /** * Enable auto partitioning on reaching upper or lower partition size bound * * Generated from protobuf field .Ydb.FeatureFlag.Status partitioning_by_size = 2; * @return int */ public function getPartitioningBySize() { return $this->partitioning_by_size; } /** * Enable auto partitioning on reaching upper or lower partition size bound * * Generated from protobuf field .Ydb.FeatureFlag.Status partitioning_by_size = 2; * @param int $var * @return $this */ public function setPartitioningBySize($var) { GPBUtil::checkEnum($var, \Ydb\FeatureFlag\Status::class); $this->partitioning_by_size = $var; return $this; } /** * Preferred partition size for auto partitioning by size, Mb * * Generated from protobuf field uint64 partition_size_mb = 3; * @return int|string */ public function getPartitionSizeMb() { return $this->partition_size_mb; } /** * Preferred partition size for auto partitioning by size, Mb * * Generated from protobuf field uint64 partition_size_mb = 3; * @param int|string $var * @return $this */ public function setPartitionSizeMb($var) { GPBUtil::checkUint64($var); $this->partition_size_mb = $var; return $this; } /** * Enable auto partitioning based on load on each partition * * Generated from protobuf field .Ydb.FeatureFlag.Status partitioning_by_load = 4; * @return int */ public function getPartitioningByLoad() { return $this->partitioning_by_load; } /** * Enable auto partitioning based on load on each partition * * Generated from protobuf field .Ydb.FeatureFlag.Status partitioning_by_load = 4; * @param int $var * @return $this */ public function setPartitioningByLoad($var) { GPBUtil::checkEnum($var, \Ydb\FeatureFlag\Status::class); $this->partitioning_by_load = $var; return $this; } /** * Minimum partitions count auto merge would stop working at * * Generated from protobuf field uint64 min_partitions_count = 6; * @return int|string */ public function getMinPartitionsCount() { return $this->min_partitions_count; } /** * Minimum partitions count auto merge would stop working at * * Generated from protobuf field uint64 min_partitions_count = 6; * @param int|string $var * @return $this */ public function setMinPartitionsCount($var) { GPBUtil::checkUint64($var); $this->min_partitions_count = $var; return $this; } /** * Maximum partitions count auto split would stop working at * * Generated from protobuf field uint64 max_partitions_count = 7; * @return int|string */ public function getMaxPartitionsCount() { return $this->max_partitions_count; } /** * Maximum partitions count auto split would stop working at * * Generated from protobuf field uint64 max_partitions_count = 7; * @param int|string $var * @return $this */ public function setMaxPartitionsCount($var) { GPBUtil::checkUint64($var); $this->max_partitions_count = $var; return $this; } }