Ydb.Topic.DescribeTopicResult.PartitionInfo */ class PartitionInfo extends \Google\Protobuf\Internal\Message { /** * Partition identifier. * * Generated from protobuf field int64 partition_id = 1; */ protected $partition_id = 0; /** * Is partition open for write. * * Generated from protobuf field bool active = 2; */ protected $active = false; /** * Ids of partitions which was formed when this partition was split or merged. * * Generated from protobuf field repeated int64 child_partition_ids = 3; */ private $child_partition_ids; /** * Ids of partitions from which this partition was formed by split or merge. * * Generated from protobuf field repeated int64 parent_partition_ids = 4; */ private $parent_partition_ids; /** * Stats for partition, filled only when include_stats in request is true. * * Generated from protobuf field .Ydb.Topic.PartitionStats partition_stats = 5; */ protected $partition_stats = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $partition_id * Partition identifier. * @type bool $active * Is partition open for write. * @type array|array|\Google\Protobuf\Internal\RepeatedField $child_partition_ids * Ids of partitions which was formed when this partition was split or merged. * @type array|array|\Google\Protobuf\Internal\RepeatedField $parent_partition_ids * Ids of partitions from which this partition was formed by split or merge. * @type \Ydb\Topic\PartitionStats $partition_stats * Stats for partition, filled only when include_stats in request is true. * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTopic::initOnce(); parent::__construct($data); } /** * Partition identifier. * * Generated from protobuf field int64 partition_id = 1; * @return int|string */ public function getPartitionId() { return $this->partition_id; } /** * Partition identifier. * * Generated from protobuf field int64 partition_id = 1; * @param int|string $var * @return $this */ public function setPartitionId($var) { GPBUtil::checkInt64($var); $this->partition_id = $var; return $this; } /** * Is partition open for write. * * Generated from protobuf field bool active = 2; * @return bool */ public function getActive() { return $this->active; } /** * Is partition open for write. * * Generated from protobuf field bool active = 2; * @param bool $var * @return $this */ public function setActive($var) { GPBUtil::checkBool($var); $this->active = $var; return $this; } /** * Ids of partitions which was formed when this partition was split or merged. * * Generated from protobuf field repeated int64 child_partition_ids = 3; * @return \Google\Protobuf\Internal\RepeatedField */ public function getChildPartitionIds() { return $this->child_partition_ids; } /** * Ids of partitions which was formed when this partition was split or merged. * * Generated from protobuf field repeated int64 child_partition_ids = 3; * @param array|array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setChildPartitionIds($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); $this->child_partition_ids = $arr; return $this; } /** * Ids of partitions from which this partition was formed by split or merge. * * Generated from protobuf field repeated int64 parent_partition_ids = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getParentPartitionIds() { return $this->parent_partition_ids; } /** * Ids of partitions from which this partition was formed by split or merge. * * Generated from protobuf field repeated int64 parent_partition_ids = 4; * @param array|array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setParentPartitionIds($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT64); $this->parent_partition_ids = $arr; return $this; } /** * Stats for partition, filled only when include_stats in request is true. * * Generated from protobuf field .Ydb.Topic.PartitionStats partition_stats = 5; * @return \Ydb\Topic\PartitionStats|null */ public function getPartitionStats() { return $this->partition_stats; } public function hasPartitionStats() { return isset($this->partition_stats); } public function clearPartitionStats() { unset($this->partition_stats); } /** * Stats for partition, filled only when include_stats in request is true. * * Generated from protobuf field .Ydb.Topic.PartitionStats partition_stats = 5; * @param \Ydb\Topic\PartitionStats $var * @return $this */ public function setPartitionStats($var) { GPBUtil::checkMessage($var, \Ydb\Topic\PartitionStats::class); $this->partition_stats = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PartitionInfo::class, \Ydb\Topic\DescribeTopicResult_PartitionInfo::class);