DatabaseStatus.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  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.DatabaseStatus</code>
  10. */
  11. class DatabaseStatus extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>string name = 1;</code>
  15. */
  16. protected $name = '';
  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>.Ydb.Monitoring.StorageStatus storage = 3;</code>
  23. */
  24. protected $storage = null;
  25. /**
  26. * Generated from protobuf field <code>.Ydb.Monitoring.ComputeStatus compute = 4;</code>
  27. */
  28. protected $compute = null;
  29. /**
  30. * Constructor.
  31. *
  32. * @param array $data {
  33. * Optional. Data for populating the Message object.
  34. *
  35. * @type string $name
  36. * @type int $overall
  37. * @type \Ydb\Monitoring\StorageStatus $storage
  38. * @type \Ydb\Monitoring\ComputeStatus $compute
  39. * }
  40. */
  41. public function __construct($data = NULL) {
  42. \GPBMetadata\Protos\YdbMonitoring::initOnce();
  43. parent::__construct($data);
  44. }
  45. /**
  46. * Generated from protobuf field <code>string name = 1;</code>
  47. * @return string
  48. */
  49. public function getName()
  50. {
  51. return $this->name;
  52. }
  53. /**
  54. * Generated from protobuf field <code>string name = 1;</code>
  55. * @param string $var
  56. * @return $this
  57. */
  58. public function setName($var)
  59. {
  60. GPBUtil::checkString($var, True);
  61. $this->name = $var;
  62. return $this;
  63. }
  64. /**
  65. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status overall = 2;</code>
  66. * @return int
  67. */
  68. public function getOverall()
  69. {
  70. return $this->overall;
  71. }
  72. /**
  73. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status overall = 2;</code>
  74. * @param int $var
  75. * @return $this
  76. */
  77. public function setOverall($var)
  78. {
  79. GPBUtil::checkEnum($var, \Ydb\Monitoring\StatusFlag\Status::class);
  80. $this->overall = $var;
  81. return $this;
  82. }
  83. /**
  84. * Generated from protobuf field <code>.Ydb.Monitoring.StorageStatus storage = 3;</code>
  85. * @return \Ydb\Monitoring\StorageStatus|null
  86. */
  87. public function getStorage()
  88. {
  89. return $this->storage;
  90. }
  91. public function hasStorage()
  92. {
  93. return isset($this->storage);
  94. }
  95. public function clearStorage()
  96. {
  97. unset($this->storage);
  98. }
  99. /**
  100. * Generated from protobuf field <code>.Ydb.Monitoring.StorageStatus storage = 3;</code>
  101. * @param \Ydb\Monitoring\StorageStatus $var
  102. * @return $this
  103. */
  104. public function setStorage($var)
  105. {
  106. GPBUtil::checkMessage($var, \Ydb\Monitoring\StorageStatus::class);
  107. $this->storage = $var;
  108. return $this;
  109. }
  110. /**
  111. * Generated from protobuf field <code>.Ydb.Monitoring.ComputeStatus compute = 4;</code>
  112. * @return \Ydb\Monitoring\ComputeStatus|null
  113. */
  114. public function getCompute()
  115. {
  116. return $this->compute;
  117. }
  118. public function hasCompute()
  119. {
  120. return isset($this->compute);
  121. }
  122. public function clearCompute()
  123. {
  124. unset($this->compute);
  125. }
  126. /**
  127. * Generated from protobuf field <code>.Ydb.Monitoring.ComputeStatus compute = 4;</code>
  128. * @param \Ydb\Monitoring\ComputeStatus $var
  129. * @return $this
  130. */
  131. public function setCompute($var)
  132. {
  133. GPBUtil::checkMessage($var, \Ydb\Monitoring\ComputeStatus::class);
  134. $this->compute = $var;
  135. return $this;
  136. }
  137. }