MultipleWindowsStat.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_topic.proto
  4. namespace Ydb\Topic;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * message representing statistics by seleveral windows
  10. *
  11. * Generated from protobuf message <code>Ydb.Topic.MultipleWindowsStat</code>
  12. */
  13. class MultipleWindowsStat extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>int64 per_minute = 1;</code>
  17. */
  18. protected $per_minute = 0;
  19. /**
  20. * Generated from protobuf field <code>int64 per_hour = 2;</code>
  21. */
  22. protected $per_hour = 0;
  23. /**
  24. * Generated from protobuf field <code>int64 per_day = 3;</code>
  25. */
  26. protected $per_day = 0;
  27. /**
  28. * Constructor.
  29. *
  30. * @param array $data {
  31. * Optional. Data for populating the Message object.
  32. *
  33. * @type int|string $per_minute
  34. * @type int|string $per_hour
  35. * @type int|string $per_day
  36. * }
  37. */
  38. public function __construct($data = NULL) {
  39. \GPBMetadata\Protos\YdbTopic::initOnce();
  40. parent::__construct($data);
  41. }
  42. /**
  43. * Generated from protobuf field <code>int64 per_minute = 1;</code>
  44. * @return int|string
  45. */
  46. public function getPerMinute()
  47. {
  48. return $this->per_minute;
  49. }
  50. /**
  51. * Generated from protobuf field <code>int64 per_minute = 1;</code>
  52. * @param int|string $var
  53. * @return $this
  54. */
  55. public function setPerMinute($var)
  56. {
  57. GPBUtil::checkInt64($var);
  58. $this->per_minute = $var;
  59. return $this;
  60. }
  61. /**
  62. * Generated from protobuf field <code>int64 per_hour = 2;</code>
  63. * @return int|string
  64. */
  65. public function getPerHour()
  66. {
  67. return $this->per_hour;
  68. }
  69. /**
  70. * Generated from protobuf field <code>int64 per_hour = 2;</code>
  71. * @param int|string $var
  72. * @return $this
  73. */
  74. public function setPerHour($var)
  75. {
  76. GPBUtil::checkInt64($var);
  77. $this->per_hour = $var;
  78. return $this;
  79. }
  80. /**
  81. * Generated from protobuf field <code>int64 per_day = 3;</code>
  82. * @return int|string
  83. */
  84. public function getPerDay()
  85. {
  86. return $this->per_day;
  87. }
  88. /**
  89. * Generated from protobuf field <code>int64 per_day = 3;</code>
  90. * @param int|string $var
  91. * @return $this
  92. */
  93. public function setPerDay($var)
  94. {
  95. GPBUtil::checkInt64($var);
  96. $this->per_day = $var;
  97. return $this;
  98. }
  99. }