StorageVDiskStatus.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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.StorageVDiskStatus</code>
  10. */
  11. class StorageVDiskStatus 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>.Ydb.Monitoring.StatusFlag.Status vdisk_status = 3;</code>
  23. */
  24. protected $vdisk_status = 0;
  25. /**
  26. * Generated from protobuf field <code>.Ydb.Monitoring.StoragePDiskStatus pdisk = 4;</code>
  27. */
  28. protected $pdisk = null;
  29. /**
  30. * Constructor.
  31. *
  32. * @param array $data {
  33. * Optional. Data for populating the Message object.
  34. *
  35. * @type string $id
  36. * @type int $overall
  37. * @type int $vdisk_status
  38. * @type \Ydb\Monitoring\StoragePDiskStatus $pdisk
  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 id = 1;</code>
  47. * @return string
  48. */
  49. public function getId()
  50. {
  51. return $this->id;
  52. }
  53. /**
  54. * Generated from protobuf field <code>string id = 1;</code>
  55. * @param string $var
  56. * @return $this
  57. */
  58. public function setId($var)
  59. {
  60. GPBUtil::checkString($var, True);
  61. $this->id = $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.StatusFlag.Status vdisk_status = 3;</code>
  85. * @return int
  86. */
  87. public function getVdiskStatus()
  88. {
  89. return $this->vdisk_status;
  90. }
  91. /**
  92. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status vdisk_status = 3;</code>
  93. * @param int $var
  94. * @return $this
  95. */
  96. public function setVdiskStatus($var)
  97. {
  98. GPBUtil::checkEnum($var, \Ydb\Monitoring\StatusFlag\Status::class);
  99. $this->vdisk_status = $var;
  100. return $this;
  101. }
  102. /**
  103. * Generated from protobuf field <code>.Ydb.Monitoring.StoragePDiskStatus pdisk = 4;</code>
  104. * @return \Ydb\Monitoring\StoragePDiskStatus|null
  105. */
  106. public function getPdisk()
  107. {
  108. return $this->pdisk;
  109. }
  110. public function hasPdisk()
  111. {
  112. return isset($this->pdisk);
  113. }
  114. public function clearPdisk()
  115. {
  116. unset($this->pdisk);
  117. }
  118. /**
  119. * Generated from protobuf field <code>.Ydb.Monitoring.StoragePDiskStatus pdisk = 4;</code>
  120. * @param \Ydb\Monitoring\StoragePDiskStatus $var
  121. * @return $this
  122. */
  123. public function setPdisk($var)
  124. {
  125. GPBUtil::checkMessage($var, \Ydb\Monitoring\StoragePDiskStatus::class);
  126. $this->pdisk = $var;
  127. return $this;
  128. }
  129. }