123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_topic.proto
- namespace Ydb\Topic\DescribeTopicResult;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Topic.DescribeTopicResult.TopicStats</code>
- */
- class TopicStats extends \Google\Protobuf\Internal\Message
- {
- /**
- * Approximate size of topic.
- *
- * Generated from protobuf field <code>int64 store_size_bytes = 1;</code>
- */
- protected $store_size_bytes = 0;
- /**
- * Minimum of timestamps of last write among all partitions.
- *
- * Generated from protobuf field <code>.google.protobuf.Timestamp min_last_write_time = 2;</code>
- */
- protected $min_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 = 3;</code>
- */
- protected $max_write_time_lag = null;
- /**
- * How much bytes were written statistics.
- *
- * Generated from protobuf field <code>.Ydb.Topic.MultipleWindowsStat bytes_written = 4;</code>
- */
- protected $bytes_written = null;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $store_size_bytes
- * Approximate size of topic.
- * @type \Google\Protobuf\Timestamp $min_last_write_time
- * Minimum of timestamps of last write among all partitions.
- * @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 statistics.
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbTopic::initOnce();
- parent::__construct($data);
- }
- /**
- * Approximate size of topic.
- *
- * Generated from protobuf field <code>int64 store_size_bytes = 1;</code>
- * @return int|string
- */
- public function getStoreSizeBytes()
- {
- return $this->store_size_bytes;
- }
- /**
- * Approximate size of topic.
- *
- * Generated from protobuf field <code>int64 store_size_bytes = 1;</code>
- * @param int|string $var
- * @return $this
- */
- public function setStoreSizeBytes($var)
- {
- GPBUtil::checkInt64($var);
- $this->store_size_bytes = $var;
- return $this;
- }
- /**
- * Minimum of timestamps of last write among all partitions.
- *
- * Generated from protobuf field <code>.google.protobuf.Timestamp min_last_write_time = 2;</code>
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getMinLastWriteTime()
- {
- return $this->min_last_write_time;
- }
- public function hasMinLastWriteTime()
- {
- return isset($this->min_last_write_time);
- }
- public function clearMinLastWriteTime()
- {
- unset($this->min_last_write_time);
- }
- /**
- * Minimum of timestamps of last write among all partitions.
- *
- * Generated from protobuf field <code>.google.protobuf.Timestamp min_last_write_time = 2;</code>
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setMinLastWriteTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->min_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 = 3;</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 = 3;</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 statistics.
- *
- * Generated from protobuf field <code>.Ydb.Topic.MultipleWindowsStat bytes_written = 4;</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 statistics.
- *
- * Generated from protobuf field <code>.Ydb.Topic.MultipleWindowsStat bytes_written = 4;</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;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(TopicStats::class, \Ydb\Topic\DescribeTopicResult_TopicStats::class);
|