IssueLog.php 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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.IssueLog</code>
  10. */
  11. class IssueLog 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 status = 2;</code>
  19. */
  20. protected $status = 0;
  21. /**
  22. * Generated from protobuf field <code>string message = 3;</code>
  23. */
  24. protected $message = '';
  25. /**
  26. * Generated from protobuf field <code>.Ydb.Monitoring.Location location = 4;</code>
  27. */
  28. protected $location = null;
  29. /**
  30. * Generated from protobuf field <code>repeated string reason = 5;</code>
  31. */
  32. private $reason;
  33. /**
  34. * Generated from protobuf field <code>string type = 6;</code>
  35. */
  36. protected $type = '';
  37. /**
  38. * Generated from protobuf field <code>uint32 level = 7;</code>
  39. */
  40. protected $level = 0;
  41. /**
  42. * Generated from protobuf field <code>uint32 listed = 8;</code>
  43. */
  44. protected $listed = 0;
  45. /**
  46. * Generated from protobuf field <code>uint32 count = 9;</code>
  47. */
  48. protected $count = 0;
  49. /**
  50. * Constructor.
  51. *
  52. * @param array $data {
  53. * Optional. Data for populating the Message object.
  54. *
  55. * @type string $id
  56. * @type int $status
  57. * @type string $message
  58. * @type \Ydb\Monitoring\Location $location
  59. * @type array<string>|\Google\Protobuf\Internal\RepeatedField $reason
  60. * @type string $type
  61. * @type int $level
  62. * @type int $listed
  63. * @type int $count
  64. * }
  65. */
  66. public function __construct($data = NULL) {
  67. \GPBMetadata\Protos\YdbMonitoring::initOnce();
  68. parent::__construct($data);
  69. }
  70. /**
  71. * Generated from protobuf field <code>string id = 1;</code>
  72. * @return string
  73. */
  74. public function getId()
  75. {
  76. return $this->id;
  77. }
  78. /**
  79. * Generated from protobuf field <code>string id = 1;</code>
  80. * @param string $var
  81. * @return $this
  82. */
  83. public function setId($var)
  84. {
  85. GPBUtil::checkString($var, True);
  86. $this->id = $var;
  87. return $this;
  88. }
  89. /**
  90. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status status = 2;</code>
  91. * @return int
  92. */
  93. public function getStatus()
  94. {
  95. return $this->status;
  96. }
  97. /**
  98. * Generated from protobuf field <code>.Ydb.Monitoring.StatusFlag.Status status = 2;</code>
  99. * @param int $var
  100. * @return $this
  101. */
  102. public function setStatus($var)
  103. {
  104. GPBUtil::checkEnum($var, \Ydb\Monitoring\StatusFlag\Status::class);
  105. $this->status = $var;
  106. return $this;
  107. }
  108. /**
  109. * Generated from protobuf field <code>string message = 3;</code>
  110. * @return string
  111. */
  112. public function getMessage()
  113. {
  114. return $this->message;
  115. }
  116. /**
  117. * Generated from protobuf field <code>string message = 3;</code>
  118. * @param string $var
  119. * @return $this
  120. */
  121. public function setMessage($var)
  122. {
  123. GPBUtil::checkString($var, True);
  124. $this->message = $var;
  125. return $this;
  126. }
  127. /**
  128. * Generated from protobuf field <code>.Ydb.Monitoring.Location location = 4;</code>
  129. * @return \Ydb\Monitoring\Location|null
  130. */
  131. public function getLocation()
  132. {
  133. return $this->location;
  134. }
  135. public function hasLocation()
  136. {
  137. return isset($this->location);
  138. }
  139. public function clearLocation()
  140. {
  141. unset($this->location);
  142. }
  143. /**
  144. * Generated from protobuf field <code>.Ydb.Monitoring.Location location = 4;</code>
  145. * @param \Ydb\Monitoring\Location $var
  146. * @return $this
  147. */
  148. public function setLocation($var)
  149. {
  150. GPBUtil::checkMessage($var, \Ydb\Monitoring\Location::class);
  151. $this->location = $var;
  152. return $this;
  153. }
  154. /**
  155. * Generated from protobuf field <code>repeated string reason = 5;</code>
  156. * @return \Google\Protobuf\Internal\RepeatedField
  157. */
  158. public function getReason()
  159. {
  160. return $this->reason;
  161. }
  162. /**
  163. * Generated from protobuf field <code>repeated string reason = 5;</code>
  164. * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
  165. * @return $this
  166. */
  167. public function setReason($var)
  168. {
  169. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
  170. $this->reason = $arr;
  171. return $this;
  172. }
  173. /**
  174. * Generated from protobuf field <code>string type = 6;</code>
  175. * @return string
  176. */
  177. public function getType()
  178. {
  179. return $this->type;
  180. }
  181. /**
  182. * Generated from protobuf field <code>string type = 6;</code>
  183. * @param string $var
  184. * @return $this
  185. */
  186. public function setType($var)
  187. {
  188. GPBUtil::checkString($var, True);
  189. $this->type = $var;
  190. return $this;
  191. }
  192. /**
  193. * Generated from protobuf field <code>uint32 level = 7;</code>
  194. * @return int
  195. */
  196. public function getLevel()
  197. {
  198. return $this->level;
  199. }
  200. /**
  201. * Generated from protobuf field <code>uint32 level = 7;</code>
  202. * @param int $var
  203. * @return $this
  204. */
  205. public function setLevel($var)
  206. {
  207. GPBUtil::checkUint32($var);
  208. $this->level = $var;
  209. return $this;
  210. }
  211. /**
  212. * Generated from protobuf field <code>uint32 listed = 8;</code>
  213. * @return int
  214. */
  215. public function getListed()
  216. {
  217. return $this->listed;
  218. }
  219. /**
  220. * Generated from protobuf field <code>uint32 listed = 8;</code>
  221. * @param int $var
  222. * @return $this
  223. */
  224. public function setListed($var)
  225. {
  226. GPBUtil::checkUint32($var);
  227. $this->listed = $var;
  228. return $this;
  229. }
  230. /**
  231. * Generated from protobuf field <code>uint32 count = 9;</code>
  232. * @return int
  233. */
  234. public function getCount()
  235. {
  236. return $this->count;
  237. }
  238. /**
  239. * Generated from protobuf field <code>uint32 count = 9;</code>
  240. * @param int $var
  241. * @return $this
  242. */
  243. public function setCount($var)
  244. {
  245. GPBUtil::checkUint32($var);
  246. $this->count = $var;
  247. return $this;
  248. }
  249. }