OperationStats.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 select, update (insert, upsert, replace) and delete operations
  10. *
  11. * Generated from protobuf message <code>Ydb.TableStats.OperationStats</code>
  12. */
  13. class OperationStats extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>uint64 rows = 1;</code>
  17. */
  18. protected $rows = 0;
  19. /**
  20. * Generated from protobuf field <code>uint64 bytes = 2;</code>
  21. */
  22. protected $bytes = 0;
  23. /**
  24. * Constructor.
  25. *
  26. * @param array $data {
  27. * Optional. Data for populating the Message object.
  28. *
  29. * @type int|string $rows
  30. * @type int|string $bytes
  31. * }
  32. */
  33. public function __construct($data = NULL) {
  34. \GPBMetadata\Protos\YdbQueryStats::initOnce();
  35. parent::__construct($data);
  36. }
  37. /**
  38. * Generated from protobuf field <code>uint64 rows = 1;</code>
  39. * @return int|string
  40. */
  41. public function getRows()
  42. {
  43. return $this->rows;
  44. }
  45. /**
  46. * Generated from protobuf field <code>uint64 rows = 1;</code>
  47. * @param int|string $var
  48. * @return $this
  49. */
  50. public function setRows($var)
  51. {
  52. GPBUtil::checkUint64($var);
  53. $this->rows = $var;
  54. return $this;
  55. }
  56. /**
  57. * Generated from protobuf field <code>uint64 bytes = 2;</code>
  58. * @return int|string
  59. */
  60. public function getBytes()
  61. {
  62. return $this->bytes;
  63. }
  64. /**
  65. * Generated from protobuf field <code>uint64 bytes = 2;</code>
  66. * @param int|string $var
  67. * @return $this
  68. */
  69. public function setBytes($var)
  70. {
  71. GPBUtil::checkUint64($var);
  72. $this->bytes = $var;
  73. return $this;
  74. }
  75. }