Ydb.TableStats.TableAccessStats
*/
class TableAccessStats extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string name = 1;
*/
protected $name = '';
/**
* Generated from protobuf field .Ydb.TableStats.OperationStats reads = 3;
*/
protected $reads = null;
/**
* Generated from protobuf field .Ydb.TableStats.OperationStats updates = 4;
*/
protected $updates = null;
/**
* Generated from protobuf field .Ydb.TableStats.OperationStats deletes = 5;
*/
protected $deletes = null;
/**
* Generated from protobuf field uint64 partitions_count = 6;
*/
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 string name = 1;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field string name = 1;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.TableStats.OperationStats reads = 3;
* @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 .Ydb.TableStats.OperationStats reads = 3;
* @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 .Ydb.TableStats.OperationStats updates = 4;
* @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 .Ydb.TableStats.OperationStats updates = 4;
* @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 .Ydb.TableStats.OperationStats deletes = 5;
* @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 .Ydb.TableStats.OperationStats deletes = 5;
* @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 uint64 partitions_count = 6;
* @return int|string
*/
public function getPartitionsCount()
{
return $this->partitions_count;
}
/**
* Generated from protobuf field uint64 partitions_count = 6;
* @param int|string $var
* @return $this
*/
public function setPartitionsCount($var)
{
GPBUtil::checkUint64($var);
$this->partitions_count = $var;
return $this;
}
}