ComputeTabletStatus.php 3.9 KB

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