QueryPhaseStats.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_query_stats.proto
  4. namespace Ydb\TableStats;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Generated from protobuf message <code>Ydb.TableStats.QueryPhaseStats</code>
  10. */
  11. class QueryPhaseStats extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>uint64 duration_us = 1;</code>
  15. */
  16. protected $duration_us = 0;
  17. /**
  18. * Generated from protobuf field <code>repeated .Ydb.TableStats.TableAccessStats table_access = 2;</code>
  19. */
  20. private $table_access;
  21. /**
  22. * Generated from protobuf field <code>uint64 cpu_time_us = 3;</code>
  23. */
  24. protected $cpu_time_us = 0;
  25. /**
  26. * Generated from protobuf field <code>uint64 affected_shards = 4;</code>
  27. */
  28. protected $affected_shards = 0;
  29. /**
  30. * Generated from protobuf field <code>bool literal_phase = 5;</code>
  31. */
  32. protected $literal_phase = false;
  33. /**
  34. * Constructor.
  35. *
  36. * @param array $data {
  37. * Optional. Data for populating the Message object.
  38. *
  39. * @type int|string $duration_us
  40. * @type array<\Ydb\TableStats\TableAccessStats>|\Google\Protobuf\Internal\RepeatedField $table_access
  41. * @type int|string $cpu_time_us
  42. * @type int|string $affected_shards
  43. * @type bool $literal_phase
  44. * }
  45. */
  46. public function __construct($data = NULL) {
  47. \GPBMetadata\Protos\YdbQueryStats::initOnce();
  48. parent::__construct($data);
  49. }
  50. /**
  51. * Generated from protobuf field <code>uint64 duration_us = 1;</code>
  52. * @return int|string
  53. */
  54. public function getDurationUs()
  55. {
  56. return $this->duration_us;
  57. }
  58. /**
  59. * Generated from protobuf field <code>uint64 duration_us = 1;</code>
  60. * @param int|string $var
  61. * @return $this
  62. */
  63. public function setDurationUs($var)
  64. {
  65. GPBUtil::checkUint64($var);
  66. $this->duration_us = $var;
  67. return $this;
  68. }
  69. /**
  70. * Generated from protobuf field <code>repeated .Ydb.TableStats.TableAccessStats table_access = 2;</code>
  71. * @return \Google\Protobuf\Internal\RepeatedField
  72. */
  73. public function getTableAccess()
  74. {
  75. return $this->table_access;
  76. }
  77. /**
  78. * Generated from protobuf field <code>repeated .Ydb.TableStats.TableAccessStats table_access = 2;</code>
  79. * @param array<\Ydb\TableStats\TableAccessStats>|\Google\Protobuf\Internal\RepeatedField $var
  80. * @return $this
  81. */
  82. public function setTableAccess($var)
  83. {
  84. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\TableStats\TableAccessStats::class);
  85. $this->table_access = $arr;
  86. return $this;
  87. }
  88. /**
  89. * Generated from protobuf field <code>uint64 cpu_time_us = 3;</code>
  90. * @return int|string
  91. */
  92. public function getCpuTimeUs()
  93. {
  94. return $this->cpu_time_us;
  95. }
  96. /**
  97. * Generated from protobuf field <code>uint64 cpu_time_us = 3;</code>
  98. * @param int|string $var
  99. * @return $this
  100. */
  101. public function setCpuTimeUs($var)
  102. {
  103. GPBUtil::checkUint64($var);
  104. $this->cpu_time_us = $var;
  105. return $this;
  106. }
  107. /**
  108. * Generated from protobuf field <code>uint64 affected_shards = 4;</code>
  109. * @return int|string
  110. */
  111. public function getAffectedShards()
  112. {
  113. return $this->affected_shards;
  114. }
  115. /**
  116. * Generated from protobuf field <code>uint64 affected_shards = 4;</code>
  117. * @param int|string $var
  118. * @return $this
  119. */
  120. public function setAffectedShards($var)
  121. {
  122. GPBUtil::checkUint64($var);
  123. $this->affected_shards = $var;
  124. return $this;
  125. }
  126. /**
  127. * Generated from protobuf field <code>bool literal_phase = 5;</code>
  128. * @return bool
  129. */
  130. public function getLiteralPhase()
  131. {
  132. return $this->literal_phase;
  133. }
  134. /**
  135. * Generated from protobuf field <code>bool literal_phase = 5;</code>
  136. * @param bool $var
  137. * @return $this
  138. */
  139. public function setLiteralPhase($var)
  140. {
  141. GPBUtil::checkBool($var);
  142. $this->literal_phase = $var;
  143. return $this;
  144. }
  145. }