123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_table.proto
- namespace Ydb\Table;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Generated from protobuf message <code>Ydb.Table.TableStats</code>
- */
- class TableStats extends \Google\Protobuf\Internal\Message
- {
- /**
- * Stats for each partition
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.PartitionStats partition_stats = 1;</code>
- */
- private $partition_stats;
- /**
- * Approximate number of rows in table
- *
- * Generated from protobuf field <code>uint64 rows_estimate = 2;</code>
- */
- protected $rows_estimate = 0;
- /**
- * Approximate size of table (bytes)
- *
- * Generated from protobuf field <code>uint64 store_size = 3;</code>
- */
- protected $store_size = 0;
- /**
- * Number of partitions in table
- *
- * Generated from protobuf field <code>uint64 partitions = 4;</code>
- */
- protected $partitions = 0;
- /**
- * Timestamp of table creation
- *
- * Generated from protobuf field <code>.google.protobuf.Timestamp creation_time = 5;</code>
- */
- protected $creation_time = null;
- /**
- * Timestamp of last modification
- *
- * Generated from protobuf field <code>.google.protobuf.Timestamp modification_time = 6;</code>
- */
- protected $modification_time = null;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type array<\Ydb\Table\PartitionStats>|\Google\Protobuf\Internal\RepeatedField $partition_stats
- * Stats for each partition
- * @type int|string $rows_estimate
- * Approximate number of rows in table
- * @type int|string $store_size
- * Approximate size of table (bytes)
- * @type int|string $partitions
- * Number of partitions in table
- * @type \Google\Protobuf\Timestamp $creation_time
- * Timestamp of table creation
- * @type \Google\Protobuf\Timestamp $modification_time
- * Timestamp of last modification
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbTable::initOnce();
- parent::__construct($data);
- }
- /**
- * Stats for each partition
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.PartitionStats partition_stats = 1;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getPartitionStats()
- {
- return $this->partition_stats;
- }
- /**
- * Stats for each partition
- *
- * Generated from protobuf field <code>repeated .Ydb.Table.PartitionStats partition_stats = 1;</code>
- * @param array<\Ydb\Table\PartitionStats>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setPartitionStats($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Table\PartitionStats::class);
- $this->partition_stats = $arr;
- return $this;
- }
- /**
- * Approximate number of rows in table
- *
- * Generated from protobuf field <code>uint64 rows_estimate = 2;</code>
- * @return int|string
- */
- public function getRowsEstimate()
- {
- return $this->rows_estimate;
- }
- /**
- * Approximate number of rows in table
- *
- * Generated from protobuf field <code>uint64 rows_estimate = 2;</code>
- * @param int|string $var
- * @return $this
- */
- public function setRowsEstimate($var)
- {
- GPBUtil::checkUint64($var);
- $this->rows_estimate = $var;
- return $this;
- }
- /**
- * Approximate size of table (bytes)
- *
- * Generated from protobuf field <code>uint64 store_size = 3;</code>
- * @return int|string
- */
- public function getStoreSize()
- {
- return $this->store_size;
- }
- /**
- * Approximate size of table (bytes)
- *
- * Generated from protobuf field <code>uint64 store_size = 3;</code>
- * @param int|string $var
- * @return $this
- */
- public function setStoreSize($var)
- {
- GPBUtil::checkUint64($var);
- $this->store_size = $var;
- return $this;
- }
- /**
- * Number of partitions in table
- *
- * Generated from protobuf field <code>uint64 partitions = 4;</code>
- * @return int|string
- */
- public function getPartitions()
- {
- return $this->partitions;
- }
- /**
- * Number of partitions in table
- *
- * Generated from protobuf field <code>uint64 partitions = 4;</code>
- * @param int|string $var
- * @return $this
- */
- public function setPartitions($var)
- {
- GPBUtil::checkUint64($var);
- $this->partitions = $var;
- return $this;
- }
- /**
- * Timestamp of table creation
- *
- * Generated from protobuf field <code>.google.protobuf.Timestamp creation_time = 5;</code>
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getCreationTime()
- {
- return $this->creation_time;
- }
- public function hasCreationTime()
- {
- return isset($this->creation_time);
- }
- public function clearCreationTime()
- {
- unset($this->creation_time);
- }
- /**
- * Timestamp of table creation
- *
- * Generated from protobuf field <code>.google.protobuf.Timestamp creation_time = 5;</code>
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setCreationTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->creation_time = $var;
- return $this;
- }
- /**
- * Timestamp of last modification
- *
- * Generated from protobuf field <code>.google.protobuf.Timestamp modification_time = 6;</code>
- * @return \Google\Protobuf\Timestamp|null
- */
- public function getModificationTime()
- {
- return $this->modification_time;
- }
- public function hasModificationTime()
- {
- return isset($this->modification_time);
- }
- public function clearModificationTime()
- {
- unset($this->modification_time);
- }
- /**
- * Timestamp of last modification
- *
- * Generated from protobuf field <code>.google.protobuf.Timestamp modification_time = 6;</code>
- * @param \Google\Protobuf\Timestamp $var
- * @return $this
- */
- public function setModificationTime($var)
- {
- GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
- $this->modification_time = $var;
- return $this;
- }
- }
|