123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- <?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;
- /**
- * Generated from protobuf message <code>Ydb.TableStats.QueryPhaseStats</code>
- */
- class QueryPhaseStats extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>uint64 duration_us = 1;</code>
- */
- protected $duration_us = 0;
- /**
- * Generated from protobuf field <code>repeated .Ydb.TableStats.TableAccessStats table_access = 2;</code>
- */
- private $table_access;
- /**
- * Generated from protobuf field <code>uint64 cpu_time_us = 3;</code>
- */
- protected $cpu_time_us = 0;
- /**
- * Generated from protobuf field <code>uint64 affected_shards = 4;</code>
- */
- protected $affected_shards = 0;
- /**
- * Generated from protobuf field <code>bool literal_phase = 5;</code>
- */
- protected $literal_phase = false;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $duration_us
- * @type array<\Ydb\TableStats\TableAccessStats>|\Google\Protobuf\Internal\RepeatedField $table_access
- * @type int|string $cpu_time_us
- * @type int|string $affected_shards
- * @type bool $literal_phase
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbQueryStats::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>uint64 duration_us = 1;</code>
- * @return int|string
- */
- public function getDurationUs()
- {
- return $this->duration_us;
- }
- /**
- * Generated from protobuf field <code>uint64 duration_us = 1;</code>
- * @param int|string $var
- * @return $this
- */
- public function setDurationUs($var)
- {
- GPBUtil::checkUint64($var);
- $this->duration_us = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>repeated .Ydb.TableStats.TableAccessStats table_access = 2;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getTableAccess()
- {
- return $this->table_access;
- }
- /**
- * Generated from protobuf field <code>repeated .Ydb.TableStats.TableAccessStats table_access = 2;</code>
- * @param array<\Ydb\TableStats\TableAccessStats>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setTableAccess($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\TableStats\TableAccessStats::class);
- $this->table_access = $arr;
- return $this;
- }
- /**
- * Generated from protobuf field <code>uint64 cpu_time_us = 3;</code>
- * @return int|string
- */
- public function getCpuTimeUs()
- {
- return $this->cpu_time_us;
- }
- /**
- * Generated from protobuf field <code>uint64 cpu_time_us = 3;</code>
- * @param int|string $var
- * @return $this
- */
- public function setCpuTimeUs($var)
- {
- GPBUtil::checkUint64($var);
- $this->cpu_time_us = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>uint64 affected_shards = 4;</code>
- * @return int|string
- */
- public function getAffectedShards()
- {
- return $this->affected_shards;
- }
- /**
- * Generated from protobuf field <code>uint64 affected_shards = 4;</code>
- * @param int|string $var
- * @return $this
- */
- public function setAffectedShards($var)
- {
- GPBUtil::checkUint64($var);
- $this->affected_shards = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>bool literal_phase = 5;</code>
- * @return bool
- */
- public function getLiteralPhase()
- {
- return $this->literal_phase;
- }
- /**
- * Generated from protobuf field <code>bool literal_phase = 5;</code>
- * @param bool $var
- * @return $this
- */
- public function setLiteralPhase($var)
- {
- GPBUtil::checkBool($var);
- $this->literal_phase = $var;
- return $this;
- }
- }
|