/
githubmirror
/
ydb-php-sdk
Обзор
Документация
Войти
/
githubmirror
/
ydb-php-sdk
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
protos/Ydb/TableStats/TableAccessStats.php
197 строк
5 KB
Alexei Shabalin
updated protos
17 фев 2023, 13:31
17 фев 2023, 13:31
ae6a264
Код
Авторство
О чём код?
<?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; } }