Ydb.Topic.PartitionStats */ class PartitionStats extends \Google\Protobuf\Internal\Message { /** * Partition contains messages with offsets in range [start, end). * * Generated from protobuf field .Ydb.Topic.OffsetsRange partition_offsets = 1; */ protected $partition_offsets = null; /** * Approximate size of partition. * * Generated from protobuf field int64 store_size_bytes = 2; */ protected $store_size_bytes = 0; /** * Timestamp of last write. * * Generated from protobuf field .google.protobuf.Timestamp last_write_time = 3; */ protected $last_write_time = null; /** * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute. * * Generated from protobuf field .google.protobuf.Duration max_write_time_lag = 4; */ protected $max_write_time_lag = null; /** * How much bytes were written during several windows in this partition. * * Generated from protobuf field .Ydb.Topic.MultipleWindowsStat bytes_written = 5; */ protected $bytes_written = null; /** * Host where tablet for this partition works. Useful for debugging purposes. * * Generated from protobuf field int32 partition_node_id = 8; */ protected $partition_node_id = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Ydb\Topic\OffsetsRange $partition_offsets * Partition contains messages with offsets in range [start, end). * @type int|string $store_size_bytes * Approximate size of partition. * @type \Google\Protobuf\Timestamp $last_write_time * Timestamp of last write. * @type \Google\Protobuf\Duration $max_write_time_lag * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute. * @type \Ydb\Topic\MultipleWindowsStat $bytes_written * How much bytes were written during several windows in this partition. * @type int $partition_node_id * Host where tablet for this partition works. Useful for debugging purposes. * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTopic::initOnce(); parent::__construct($data); } /** * Partition contains messages with offsets in range [start, end). * * Generated from protobuf field .Ydb.Topic.OffsetsRange partition_offsets = 1; * @return \Ydb\Topic\OffsetsRange|null */ public function getPartitionOffsets() { return $this->partition_offsets; } public function hasPartitionOffsets() { return isset($this->partition_offsets); } public function clearPartitionOffsets() { unset($this->partition_offsets); } /** * Partition contains messages with offsets in range [start, end). * * Generated from protobuf field .Ydb.Topic.OffsetsRange partition_offsets = 1; * @param \Ydb\Topic\OffsetsRange $var * @return $this */ public function setPartitionOffsets($var) { GPBUtil::checkMessage($var, \Ydb\Topic\OffsetsRange::class); $this->partition_offsets = $var; return $this; } /** * Approximate size of partition. * * Generated from protobuf field int64 store_size_bytes = 2; * @return int|string */ public function getStoreSizeBytes() { return $this->store_size_bytes; } /** * Approximate size of partition. * * Generated from protobuf field int64 store_size_bytes = 2; * @param int|string $var * @return $this */ public function setStoreSizeBytes($var) { GPBUtil::checkInt64($var); $this->store_size_bytes = $var; return $this; } /** * Timestamp of last write. * * Generated from protobuf field .google.protobuf.Timestamp last_write_time = 3; * @return \Google\Protobuf\Timestamp|null */ public function getLastWriteTime() { return $this->last_write_time; } public function hasLastWriteTime() { return isset($this->last_write_time); } public function clearLastWriteTime() { unset($this->last_write_time); } /** * Timestamp of last write. * * Generated from protobuf field .google.protobuf.Timestamp last_write_time = 3; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setLastWriteTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->last_write_time = $var; return $this; } /** * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute. * * Generated from protobuf field .google.protobuf.Duration max_write_time_lag = 4; * @return \Google\Protobuf\Duration|null */ public function getMaxWriteTimeLag() { return $this->max_write_time_lag; } public function hasMaxWriteTimeLag() { return isset($this->max_write_time_lag); } public function clearMaxWriteTimeLag() { unset($this->max_write_time_lag); } /** * Maximum of differences between write timestamp and create timestamp for all messages, written during last minute. * * Generated from protobuf field .google.protobuf.Duration max_write_time_lag = 4; * @param \Google\Protobuf\Duration $var * @return $this */ public function setMaxWriteTimeLag($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); $this->max_write_time_lag = $var; return $this; } /** * How much bytes were written during several windows in this partition. * * Generated from protobuf field .Ydb.Topic.MultipleWindowsStat bytes_written = 5; * @return \Ydb\Topic\MultipleWindowsStat|null */ public function getBytesWritten() { return $this->bytes_written; } public function hasBytesWritten() { return isset($this->bytes_written); } public function clearBytesWritten() { unset($this->bytes_written); } /** * How much bytes were written during several windows in this partition. * * Generated from protobuf field .Ydb.Topic.MultipleWindowsStat bytes_written = 5; * @param \Ydb\Topic\MultipleWindowsStat $var * @return $this */ public function setBytesWritten($var) { GPBUtil::checkMessage($var, \Ydb\Topic\MultipleWindowsStat::class); $this->bytes_written = $var; return $this; } /** * Host where tablet for this partition works. Useful for debugging purposes. * * Generated from protobuf field int32 partition_node_id = 8; * @return int */ public function getPartitionNodeId() { return $this->partition_node_id; } /** * Host where tablet for this partition works. Useful for debugging purposes. * * Generated from protobuf field int32 partition_node_id = 8; * @param int $var * @return $this */ public function setPartitionNodeId($var) { GPBUtil::checkInt32($var); $this->partition_node_id = $var; return $this; } }