TableAccessStats.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  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. * Describes all operations on a table
  10. *
  11. * Generated from protobuf message <code>Ydb.TableStats.TableAccessStats</code>
  12. */
  13. class TableAccessStats extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>string name = 1;</code>
  17. */
  18. protected $name = '';
  19. /**
  20. * Generated from protobuf field <code>.Ydb.TableStats.OperationStats reads = 3;</code>
  21. */
  22. protected $reads = null;
  23. /**
  24. * Generated from protobuf field <code>.Ydb.TableStats.OperationStats updates = 4;</code>
  25. */
  26. protected $updates = null;
  27. /**
  28. * Generated from protobuf field <code>.Ydb.TableStats.OperationStats deletes = 5;</code>
  29. */
  30. protected $deletes = null;
  31. /**
  32. * Generated from protobuf field <code>uint64 partitions_count = 6;</code>
  33. */
  34. protected $partitions_count = 0;
  35. /**
  36. * Constructor.
  37. *
  38. * @param array $data {
  39. * Optional. Data for populating the Message object.
  40. *
  41. * @type string $name
  42. * @type \Ydb\TableStats\OperationStats $reads
  43. * @type \Ydb\TableStats\OperationStats $updates
  44. * @type \Ydb\TableStats\OperationStats $deletes
  45. * @type int|string $partitions_count
  46. * }
  47. */
  48. public function __construct($data = NULL) {
  49. \GPBMetadata\Protos\YdbQueryStats::initOnce();
  50. parent::__construct($data);
  51. }
  52. /**
  53. * Generated from protobuf field <code>string name = 1;</code>
  54. * @return string
  55. */
  56. public function getName()
  57. {
  58. return $this->name;
  59. }
  60. /**
  61. * Generated from protobuf field <code>string name = 1;</code>
  62. * @param string $var
  63. * @return $this
  64. */
  65. public function setName($var)
  66. {
  67. GPBUtil::checkString($var, True);
  68. $this->name = $var;
  69. return $this;
  70. }
  71. /**
  72. * Generated from protobuf field <code>.Ydb.TableStats.OperationStats reads = 3;</code>
  73. * @return \Ydb\TableStats\OperationStats|null
  74. */
  75. public function getReads()
  76. {
  77. return $this->reads;
  78. }
  79. public function hasReads()
  80. {
  81. return isset($this->reads);
  82. }
  83. public function clearReads()
  84. {
  85. unset($this->reads);
  86. }
  87. /**
  88. * Generated from protobuf field <code>.Ydb.TableStats.OperationStats reads = 3;</code>
  89. * @param \Ydb\TableStats\OperationStats $var
  90. * @return $this
  91. */
  92. public function setReads($var)
  93. {
  94. GPBUtil::checkMessage($var, \Ydb\TableStats\OperationStats::class);
  95. $this->reads = $var;
  96. return $this;
  97. }
  98. /**
  99. * Generated from protobuf field <code>.Ydb.TableStats.OperationStats updates = 4;</code>
  100. * @return \Ydb\TableStats\OperationStats|null
  101. */
  102. public function getUpdates()
  103. {
  104. return $this->updates;
  105. }
  106. public function hasUpdates()
  107. {
  108. return isset($this->updates);
  109. }
  110. public function clearUpdates()
  111. {
  112. unset($this->updates);
  113. }
  114. /**
  115. * Generated from protobuf field <code>.Ydb.TableStats.OperationStats updates = 4;</code>
  116. * @param \Ydb\TableStats\OperationStats $var
  117. * @return $this
  118. */
  119. public function setUpdates($var)
  120. {
  121. GPBUtil::checkMessage($var, \Ydb\TableStats\OperationStats::class);
  122. $this->updates = $var;
  123. return $this;
  124. }
  125. /**
  126. * Generated from protobuf field <code>.Ydb.TableStats.OperationStats deletes = 5;</code>
  127. * @return \Ydb\TableStats\OperationStats|null
  128. */
  129. public function getDeletes()
  130. {
  131. return $this->deletes;
  132. }
  133. public function hasDeletes()
  134. {
  135. return isset($this->deletes);
  136. }
  137. public function clearDeletes()
  138. {
  139. unset($this->deletes);
  140. }
  141. /**
  142. * Generated from protobuf field <code>.Ydb.TableStats.OperationStats deletes = 5;</code>
  143. * @param \Ydb\TableStats\OperationStats $var
  144. * @return $this
  145. */
  146. public function setDeletes($var)
  147. {
  148. GPBUtil::checkMessage($var, \Ydb\TableStats\OperationStats::class);
  149. $this->deletes = $var;
  150. return $this;
  151. }
  152. /**
  153. * Generated from protobuf field <code>uint64 partitions_count = 6;</code>
  154. * @return int|string
  155. */
  156. public function getPartitionsCount()
  157. {
  158. return $this->partitions_count;
  159. }
  160. /**
  161. * Generated from protobuf field <code>uint64 partitions_count = 6;</code>
  162. * @param int|string $var
  163. * @return $this
  164. */
  165. public function setPartitionsCount($var)
  166. {
  167. GPBUtil::checkUint64($var);
  168. $this->partitions_count = $var;
  169. return $this;
  170. }
  171. }