123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_query_stats.proto
- namespace Ydb\TableStats;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * Describes all operations on a table
- *
- * Generated from protobuf message <code>Ydb.TableStats.TableAccessStats</code>
- */
- class TableAccessStats extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>string name = 1;</code>
- */
- protected $name = '';
- /**
- * Generated from protobuf field <code>.Ydb.TableStats.OperationStats reads = 3;</code>
- */
- protected $reads = null;
- /**
- * Generated from protobuf field <code>.Ydb.TableStats.OperationStats updates = 4;</code>
- */
- protected $updates = null;
- /**
- * Generated from protobuf field <code>.Ydb.TableStats.OperationStats deletes = 5;</code>
- */
- protected $deletes = null;
- /**
- * Generated from protobuf field <code>uint64 partitions_count = 6;</code>
- */
- protected $partitions_count = 0;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type string $name
- * @type \Ydb\TableStats\OperationStats $reads
- * @type \Ydb\TableStats\OperationStats $updates
- * @type \Ydb\TableStats\OperationStats $deletes
- * @type int|string $partitions_count
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbQueryStats::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>string name = 1;</code>
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Generated from protobuf field <code>string name = 1;</code>
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.Ydb.TableStats.OperationStats reads = 3;</code>
- * @return \Ydb\TableStats\OperationStats|null
- */
- public function getReads()
- {
- return $this->reads;
- }
- public function hasReads()
- {
- return isset($this->reads);
- }
- public function clearReads()
- {
- unset($this->reads);
- }
- /**
- * Generated from protobuf field <code>.Ydb.TableStats.OperationStats reads = 3;</code>
- * @param \Ydb\TableStats\OperationStats $var
- * @return $this
- */
- public function setReads($var)
- {
- GPBUtil::checkMessage($var, \Ydb\TableStats\OperationStats::class);
- $this->reads = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.Ydb.TableStats.OperationStats updates = 4;</code>
- * @return \Ydb\TableStats\OperationStats|null
- */
- public function getUpdates()
- {
- return $this->updates;
- }
- public function hasUpdates()
- {
- return isset($this->updates);
- }
- public function clearUpdates()
- {
- unset($this->updates);
- }
- /**
- * Generated from protobuf field <code>.Ydb.TableStats.OperationStats updates = 4;</code>
- * @param \Ydb\TableStats\OperationStats $var
- * @return $this
- */
- public function setUpdates($var)
- {
- GPBUtil::checkMessage($var, \Ydb\TableStats\OperationStats::class);
- $this->updates = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.Ydb.TableStats.OperationStats deletes = 5;</code>
- * @return \Ydb\TableStats\OperationStats|null
- */
- public function getDeletes()
- {
- return $this->deletes;
- }
- public function hasDeletes()
- {
- return isset($this->deletes);
- }
- public function clearDeletes()
- {
- unset($this->deletes);
- }
- /**
- * Generated from protobuf field <code>.Ydb.TableStats.OperationStats deletes = 5;</code>
- * @param \Ydb\TableStats\OperationStats $var
- * @return $this
- */
- public function setDeletes($var)
- {
- GPBUtil::checkMessage($var, \Ydb\TableStats\OperationStats::class);
- $this->deletes = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>uint64 partitions_count = 6;</code>
- * @return int|string
- */
- public function getPartitionsCount()
- {
- return $this->partitions_count;
- }
- /**
- * Generated from protobuf field <code>uint64 partitions_count = 6;</code>
- * @param int|string $var
- * @return $this
- */
- public function setPartitionsCount($var)
- {
- GPBUtil::checkUint64($var);
- $this->partitions_count = $var;
- return $this;
- }
- }
|