LoadAverageStatus.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_monitoring.proto
  4. namespace Ydb\Monitoring;
  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.Monitoring.LoadAverageStatus</code>
  10. */
  11. class LoadAverageStatus extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status overall = 1;</code>
  15. */
  16. protected $overall = 0;
  17. /**
  18. * Generated from protobuf field <code>float load = 2;</code>
  19. */
  20. protected $load = 0.0;
  21. /**
  22. * Generated from protobuf field <code>uint32 cores = 3;</code>
  23. */
  24. protected $cores = 0;
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type int $overall
  32. * @type float $load
  33. * @type int $cores
  34. * }
  35. */
  36. public function __construct($data = NULL) {
  37. \GPBMetadata\Protos\YdbMonitoring::initOnce();
  38. parent::__construct($data);
  39. }
  40. /**
  41. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status overall = 1;</code>
  42. * @return int
  43. */
  44. public function getOverall()
  45. {
  46. return $this->overall;
  47. }
  48. /**
  49. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status overall = 1;</code>
  50. * @param int $var
  51. * @return $this
  52. */
  53. public function setOverall($var)
  54. {
  55. GPBUtil::checkEnum($var, \Ydb\Monitoring\StatusFlag\Status::class);
  56. $this->overall = $var;
  57. return $this;
  58. }
  59. /**
  60. * Generated from protobuf field <code>float load = 2;</code>
  61. * @return float
  62. */
  63. public function getLoad()
  64. {
  65. return $this->load;
  66. }
  67. /**
  68. * Generated from protobuf field <code>float load = 2;</code>
  69. * @param float $var
  70. * @return $this
  71. */
  72. public function setLoad($var)
  73. {
  74. GPBUtil::checkFloat($var);
  75. $this->load = $var;
  76. return $this;
  77. }
  78. /**
  79. * Generated from protobuf field <code>uint32 cores = 3;</code>
  80. * @return int
  81. */
  82. public function getCores()
  83. {
  84. return $this->cores;
  85. }
  86. /**
  87. * Generated from protobuf field <code>uint32 cores = 3;</code>
  88. * @param int $var
  89. * @return $this
  90. */
  91. public function setCores($var)
  92. {
  93. GPBUtil::checkUint32($var);
  94. $this->cores = $var;
  95. return $this;
  96. }
  97. }