SelfCheckRequest.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  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.SelfCheckRequest</code>
  10. */
  11. class SelfCheckRequest extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * basic operation params, including timeout
  15. *
  16. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  17. */
  18. protected $operation_params = null;
  19. /**
  20. * return detailed info about components checked with their statuses
  21. *
  22. * Generated from protobuf field <code>bool return_verbose_status = 2;</code>
  23. */
  24. protected $return_verbose_status = false;
  25. /**
  26. * minimum status of issues to return
  27. *
  28. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status minimum_status = 3;</code>
  29. */
  30. protected $minimum_status = 0;
  31. /**
  32. * maximum level of issues to return
  33. *
  34. * Generated from protobuf field <code>uint32 maximum_level = 4;</code>
  35. */
  36. protected $maximum_level = 0;
  37. /**
  38. * Constructor.
  39. *
  40. * @param array $data {
  41. * Optional. Data for populating the Message object.
  42. *
  43. * @type \Ydb\Operations\OperationParams $operation_params
  44. * basic operation params, including timeout
  45. * @type bool $return_verbose_status
  46. * return detailed info about components checked with their statuses
  47. * @type int $minimum_status
  48. * minimum status of issues to return
  49. * @type int $maximum_level
  50. * maximum level of issues to return
  51. * }
  52. */
  53. public function __construct($data = NULL) {
  54. \GPBMetadata\Protos\YdbMonitoring::initOnce();
  55. parent::__construct($data);
  56. }
  57. /**
  58. * basic operation params, including timeout
  59. *
  60. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  61. * @return \Ydb\Operations\OperationParams|null
  62. */
  63. public function getOperationParams()
  64. {
  65. return $this->operation_params;
  66. }
  67. public function hasOperationParams()
  68. {
  69. return isset($this->operation_params);
  70. }
  71. public function clearOperationParams()
  72. {
  73. unset($this->operation_params);
  74. }
  75. /**
  76. * basic operation params, including timeout
  77. *
  78. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  79. * @param \Ydb\Operations\OperationParams $var
  80. * @return $this
  81. */
  82. public function setOperationParams($var)
  83. {
  84. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  85. $this->operation_params = $var;
  86. return $this;
  87. }
  88. /**
  89. * return detailed info about components checked with their statuses
  90. *
  91. * Generated from protobuf field <code>bool return_verbose_status = 2;</code>
  92. * @return bool
  93. */
  94. public function getReturnVerboseStatus()
  95. {
  96. return $this->return_verbose_status;
  97. }
  98. /**
  99. * return detailed info about components checked with their statuses
  100. *
  101. * Generated from protobuf field <code>bool return_verbose_status = 2;</code>
  102. * @param bool $var
  103. * @return $this
  104. */
  105. public function setReturnVerboseStatus($var)
  106. {
  107. GPBUtil::checkBool($var);
  108. $this->return_verbose_status = $var;
  109. return $this;
  110. }
  111. /**
  112. * minimum status of issues to return
  113. *
  114. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status minimum_status = 3;</code>
  115. * @return int
  116. */
  117. public function getMinimumStatus()
  118. {
  119. return $this->minimum_status;
  120. }
  121. /**
  122. * minimum status of issues to return
  123. *
  124. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status minimum_status = 3;</code>
  125. * @param int $var
  126. * @return $this
  127. */
  128. public function setMinimumStatus($var)
  129. {
  130. GPBUtil::checkEnum($var, \Ydb\Monitoring\StatusFlag\Status::class);
  131. $this->minimum_status = $var;
  132. return $this;
  133. }
  134. /**
  135. * maximum level of issues to return
  136. *
  137. * Generated from protobuf field <code>uint32 maximum_level = 4;</code>
  138. * @return int
  139. */
  140. public function getMaximumLevel()
  141. {
  142. return $this->maximum_level;
  143. }
  144. /**
  145. * maximum level of issues to return
  146. *
  147. * Generated from protobuf field <code>uint32 maximum_level = 4;</code>
  148. * @param int $var
  149. * @return $this
  150. */
  151. public function setMaximumLevel($var)
  152. {
  153. GPBUtil::checkUint32($var);
  154. $this->maximum_level = $var;
  155. return $this;
  156. }
  157. }