IssueMessage.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_issue_message.proto
  4. namespace Ydb\Issue;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * IssueMessage is a transport format for ydb/library/yql/public/issue library
  10. *
  11. * Generated from protobuf message <code>Ydb.Issue.IssueMessage</code>
  12. */
  13. class IssueMessage extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>.Ydb.Issue.IssueMessage.Position position = 1;</code>
  17. */
  18. protected $position = null;
  19. /**
  20. * Generated from protobuf field <code>string message = 2;</code>
  21. */
  22. protected $message = '';
  23. /**
  24. * Generated from protobuf field <code>.Ydb.Issue.IssueMessage.Position end_position = 3;</code>
  25. */
  26. protected $end_position = null;
  27. /**
  28. * Generated from protobuf field <code>uint32 issue_code = 4;</code>
  29. */
  30. protected $issue_code = 0;
  31. /**
  32. * Severity values from ydb/library/yql/public/issue/protos/issue_severity.proto
  33. * FATAL = 0;
  34. * ERROR = 1;
  35. * WARNING = 2;
  36. * INFO = 3;
  37. *
  38. * Generated from protobuf field <code>uint32 severity = 5;</code>
  39. */
  40. protected $severity = 0;
  41. /**
  42. * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 6;</code>
  43. */
  44. private $issues;
  45. /**
  46. * Constructor.
  47. *
  48. * @param array $data {
  49. * Optional. Data for populating the Message object.
  50. *
  51. * @type \Ydb\Issue\IssueMessage\Position $position
  52. * @type string $message
  53. * @type \Ydb\Issue\IssueMessage\Position $end_position
  54. * @type int $issue_code
  55. * @type int $severity
  56. * Severity values from ydb/library/yql/public/issue/protos/issue_severity.proto
  57. * FATAL = 0;
  58. * ERROR = 1;
  59. * WARNING = 2;
  60. * INFO = 3;
  61. * @type array<\Ydb\Issue\IssueMessage>|\Google\Protobuf\Internal\RepeatedField $issues
  62. * }
  63. */
  64. public function __construct($data = NULL) {
  65. \GPBMetadata\Protos\YdbIssueMessage::initOnce();
  66. parent::__construct($data);
  67. }
  68. /**
  69. * Generated from protobuf field <code>.Ydb.Issue.IssueMessage.Position position = 1;</code>
  70. * @return \Ydb\Issue\IssueMessage\Position|null
  71. */
  72. public function getPosition()
  73. {
  74. return $this->position;
  75. }
  76. public function hasPosition()
  77. {
  78. return isset($this->position);
  79. }
  80. public function clearPosition()
  81. {
  82. unset($this->position);
  83. }
  84. /**
  85. * Generated from protobuf field <code>.Ydb.Issue.IssueMessage.Position position = 1;</code>
  86. * @param \Ydb\Issue\IssueMessage\Position $var
  87. * @return $this
  88. */
  89. public function setPosition($var)
  90. {
  91. GPBUtil::checkMessage($var, \Ydb\Issue\IssueMessage\Position::class);
  92. $this->position = $var;
  93. return $this;
  94. }
  95. /**
  96. * Generated from protobuf field <code>string message = 2;</code>
  97. * @return string
  98. */
  99. public function getMessage()
  100. {
  101. return $this->message;
  102. }
  103. /**
  104. * Generated from protobuf field <code>string message = 2;</code>
  105. * @param string $var
  106. * @return $this
  107. */
  108. public function setMessage($var)
  109. {
  110. GPBUtil::checkString($var, True);
  111. $this->message = $var;
  112. return $this;
  113. }
  114. /**
  115. * Generated from protobuf field <code>.Ydb.Issue.IssueMessage.Position end_position = 3;</code>
  116. * @return \Ydb\Issue\IssueMessage\Position|null
  117. */
  118. public function getEndPosition()
  119. {
  120. return $this->end_position;
  121. }
  122. public function hasEndPosition()
  123. {
  124. return isset($this->end_position);
  125. }
  126. public function clearEndPosition()
  127. {
  128. unset($this->end_position);
  129. }
  130. /**
  131. * Generated from protobuf field <code>.Ydb.Issue.IssueMessage.Position end_position = 3;</code>
  132. * @param \Ydb\Issue\IssueMessage\Position $var
  133. * @return $this
  134. */
  135. public function setEndPosition($var)
  136. {
  137. GPBUtil::checkMessage($var, \Ydb\Issue\IssueMessage\Position::class);
  138. $this->end_position = $var;
  139. return $this;
  140. }
  141. /**
  142. * Generated from protobuf field <code>uint32 issue_code = 4;</code>
  143. * @return int
  144. */
  145. public function getIssueCode()
  146. {
  147. return $this->issue_code;
  148. }
  149. /**
  150. * Generated from protobuf field <code>uint32 issue_code = 4;</code>
  151. * @param int $var
  152. * @return $this
  153. */
  154. public function setIssueCode($var)
  155. {
  156. GPBUtil::checkUint32($var);
  157. $this->issue_code = $var;
  158. return $this;
  159. }
  160. /**
  161. * Severity values from ydb/library/yql/public/issue/protos/issue_severity.proto
  162. * FATAL = 0;
  163. * ERROR = 1;
  164. * WARNING = 2;
  165. * INFO = 3;
  166. *
  167. * Generated from protobuf field <code>uint32 severity = 5;</code>
  168. * @return int
  169. */
  170. public function getSeverity()
  171. {
  172. return $this->severity;
  173. }
  174. /**
  175. * Severity values from ydb/library/yql/public/issue/protos/issue_severity.proto
  176. * FATAL = 0;
  177. * ERROR = 1;
  178. * WARNING = 2;
  179. * INFO = 3;
  180. *
  181. * Generated from protobuf field <code>uint32 severity = 5;</code>
  182. * @param int $var
  183. * @return $this
  184. */
  185. public function setSeverity($var)
  186. {
  187. GPBUtil::checkUint32($var);
  188. $this->severity = $var;
  189. return $this;
  190. }
  191. /**
  192. * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 6;</code>
  193. * @return \Google\Protobuf\Internal\RepeatedField
  194. */
  195. public function getIssues()
  196. {
  197. return $this->issues;
  198. }
  199. /**
  200. * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 6;</code>
  201. * @param array<\Ydb\Issue\IssueMessage>|\Google\Protobuf\Internal\RepeatedField $var
  202. * @return $this
  203. */
  204. public function setIssues($var)
  205. {
  206. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Issue\IssueMessage::class);
  207. $this->issues = $arr;
  208. return $this;
  209. }
  210. }