123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275 |
- <?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;
- /**
- * Generated from protobuf message <code>Ydb.Topic.PartitionStats</code>
- */
- class PartitionStats extends \Google\Protobuf\Internal\Message
- {
- /**
- * Partition contains messages with offsets in range [start, end).
- *
- * Generated from protobuf field <code>.Ydb.Topic.OffsetsRange partition_offsets = 1;</code>
- */
- protected $partition_offsets = null;
- /**
- * Approximate size of partition.
- *
- * Generated from protobuf field <code>int64 store_size_bytes = 2;</code>
- */
- protected $store_size_bytes = 0;
- /**
- * Timestamp of last write.
- *
- * Generated from protobuf field <code>.google.protobuf.Timestamp last_write_time = 3;</code>
- */
- 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 <code>.google.protobuf.Duration max_write_time_lag = 4;</code>
- */
- protected $max_write_time_lag = null;
- /**
- * How much bytes were written during several windows in this partition.
- *
- * Generated from protobuf field <code>.Ydb.Topic.MultipleWindowsStat bytes_written = 5;</code>
- */
- protected $bytes_written = null;
- /**
- * Host where tablet for this partition works. Useful for debugging purposes.
- *
- * Generated from protobuf field <code>int32 partition_node_id = 8;</code>
- */
- 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 <code>.Ydb.Topic.OffsetsRange partition_offsets = 1;</code>
- * @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 <code>.Ydb.Topic.OffsetsRange partition_offsets = 1;</code>
- * @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 <code>int64 store_size_bytes = 2;</code>
- * @return int|string
- */
- public function getStoreSizeBytes()
- {
- return $this->store_size_bytes;
- }
- /**
- * Approximate size of partition.
- *
- * Generated from protobuf field <code>int64 store_size_bytes = 2;</code>
- * @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 <code>.google.protobuf.Timestamp last_write_time = 3;</code>
- * @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 <code>.google.protobuf.Timestamp last_write_time = 3;</code>
- * @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 <code>.google.protobuf.Duration max_write_time_lag = 4;</code>
- * @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 <code>.google.protobuf.Duration max_write_time_lag = 4;</code>
- * @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 <code>.Ydb.Topic.MultipleWindowsStat bytes_written = 5;</code>
- * @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 <code>.Ydb.Topic.MultipleWindowsStat bytes_written = 5;</code>
- * @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 <code>int32 partition_node_id = 8;</code>
- * @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 <code>int32 partition_node_id = 8;</code>
- * @param int $var
- * @return $this
- */
- public function setPartitionNodeId($var)
- {
- GPBUtil::checkInt32($var);
- $this->partition_node_id = $var;
- return $this;
- }
- }
|