ComputeNodeStatus.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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.ComputeNodeStatus</code>
  10. */
  11. class ComputeNodeStatus extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>string id = 1;</code>
  15. */
  16. protected $id = '';
  17. /**
  18. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status overall = 2;</code>
  19. */
  20. protected $overall = 0;
  21. /**
  22. * Generated from protobuf field <code>repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;</code>
  23. */
  24. private $tablets;
  25. /**
  26. * Generated from protobuf field <code>repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;</code>
  27. */
  28. private $pools;
  29. /**
  30. * Generated from protobuf field <code>.Ydb.Monitoring.LoadAverageStatus load = 5;</code>
  31. */
  32. protected $load = null;
  33. /**
  34. * Constructor.
  35. *
  36. * @param array $data {
  37. * Optional. Data for populating the Message object.
  38. *
  39. * @type string $id
  40. * @type int $overall
  41. * @type array<\Ydb\Monitoring\ComputeTabletStatus>|\Google\Protobuf\Internal\RepeatedField $tablets
  42. * @type array<\Ydb\Monitoring\ThreadPoolStatus>|\Google\Protobuf\Internal\RepeatedField $pools
  43. * @type \Ydb\Monitoring\LoadAverageStatus $load
  44. * }
  45. */
  46. public function __construct($data = NULL) {
  47. \GPBMetadata\Protos\YdbMonitoring::initOnce();
  48. parent::__construct($data);
  49. }
  50. /**
  51. * Generated from protobuf field <code>string id = 1;</code>
  52. * @return string
  53. */
  54. public function getId()
  55. {
  56. return $this->id;
  57. }
  58. /**
  59. * Generated from protobuf field <code>string id = 1;</code>
  60. * @param string $var
  61. * @return $this
  62. */
  63. public function setId($var)
  64. {
  65. GPBUtil::checkString($var, True);
  66. $this->id = $var;
  67. return $this;
  68. }
  69. /**
  70. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status overall = 2;</code>
  71. * @return int
  72. */
  73. public function getOverall()
  74. {
  75. return $this->overall;
  76. }
  77. /**
  78. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status overall = 2;</code>
  79. * @param int $var
  80. * @return $this
  81. */
  82. public function setOverall($var)
  83. {
  84. GPBUtil::checkEnum($var, \Ydb\Monitoring\StatusFlag\Status::class);
  85. $this->overall = $var;
  86. return $this;
  87. }
  88. /**
  89. * Generated from protobuf field <code>repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;</code>
  90. * @return \Google\Protobuf\Internal\RepeatedField
  91. */
  92. public function getTablets()
  93. {
  94. return $this->tablets;
  95. }
  96. /**
  97. * Generated from protobuf field <code>repeated .Ydb.Monitoring.ComputeTabletStatus tablets = 3;</code>
  98. * @param array<\Ydb\Monitoring\ComputeTabletStatus>|\Google\Protobuf\Internal\RepeatedField $var
  99. * @return $this
  100. */
  101. public function setTablets($var)
  102. {
  103. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Monitoring\ComputeTabletStatus::class);
  104. $this->tablets = $arr;
  105. return $this;
  106. }
  107. /**
  108. * Generated from protobuf field <code>repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;</code>
  109. * @return \Google\Protobuf\Internal\RepeatedField
  110. */
  111. public function getPools()
  112. {
  113. return $this->pools;
  114. }
  115. /**
  116. * Generated from protobuf field <code>repeated .Ydb.Monitoring.ThreadPoolStatus pools = 4;</code>
  117. * @param array<\Ydb\Monitoring\ThreadPoolStatus>|\Google\Protobuf\Internal\RepeatedField $var
  118. * @return $this
  119. */
  120. public function setPools($var)
  121. {
  122. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Monitoring\ThreadPoolStatus::class);
  123. $this->pools = $arr;
  124. return $this;
  125. }
  126. /**
  127. * Generated from protobuf field <code>.Ydb.Monitoring.LoadAverageStatus load = 5;</code>
  128. * @return \Ydb\Monitoring\LoadAverageStatus|null
  129. */
  130. public function getLoad()
  131. {
  132. return $this->load;
  133. }
  134. public function hasLoad()
  135. {
  136. return isset($this->load);
  137. }
  138. public function clearLoad()
  139. {
  140. unset($this->load);
  141. }
  142. /**
  143. * Generated from protobuf field <code>.Ydb.Monitoring.LoadAverageStatus load = 5;</code>
  144. * @param \Ydb\Monitoring\LoadAverageStatus $var
  145. * @return $this
  146. */
  147. public function setLoad($var)
  148. {
  149. GPBUtil::checkMessage($var, \Ydb\Monitoring\LoadAverageStatus::class);
  150. $this->load = $var;
  151. return $this;
  152. }
  153. }