123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_issue_message.proto
- namespace Ydb\Issue;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * IssueMessage is a transport format for ydb/library/yql/public/issue library
- *
- * Generated from protobuf message <code>Ydb.Issue.IssueMessage</code>
- */
- class IssueMessage extends \Google\Protobuf\Internal\Message
- {
- /**
- * Generated from protobuf field <code>.Ydb.Issue.IssueMessage.Position position = 1;</code>
- */
- protected $position = null;
- /**
- * Generated from protobuf field <code>string message = 2;</code>
- */
- protected $message = '';
- /**
- * Generated from protobuf field <code>.Ydb.Issue.IssueMessage.Position end_position = 3;</code>
- */
- protected $end_position = null;
- /**
- * Generated from protobuf field <code>uint32 issue_code = 4;</code>
- */
- protected $issue_code = 0;
- /**
- * Severity values from ydb/library/yql/public/issue/protos/issue_severity.proto
- * FATAL = 0;
- * ERROR = 1;
- * WARNING = 2;
- * INFO = 3;
- *
- * Generated from protobuf field <code>uint32 severity = 5;</code>
- */
- protected $severity = 0;
- /**
- * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 6;</code>
- */
- private $issues;
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type \Ydb\Issue\IssueMessage\Position $position
- * @type string $message
- * @type \Ydb\Issue\IssueMessage\Position $end_position
- * @type int $issue_code
- * @type int $severity
- * Severity values from ydb/library/yql/public/issue/protos/issue_severity.proto
- * FATAL = 0;
- * ERROR = 1;
- * WARNING = 2;
- * INFO = 3;
- * @type array<\Ydb\Issue\IssueMessage>|\Google\Protobuf\Internal\RepeatedField $issues
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbIssueMessage::initOnce();
- parent::__construct($data);
- }
- /**
- * Generated from protobuf field <code>.Ydb.Issue.IssueMessage.Position position = 1;</code>
- * @return \Ydb\Issue\IssueMessage\Position|null
- */
- public function getPosition()
- {
- return $this->position;
- }
- public function hasPosition()
- {
- return isset($this->position);
- }
- public function clearPosition()
- {
- unset($this->position);
- }
- /**
- * Generated from protobuf field <code>.Ydb.Issue.IssueMessage.Position position = 1;</code>
- * @param \Ydb\Issue\IssueMessage\Position $var
- * @return $this
- */
- public function setPosition($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Issue\IssueMessage\Position::class);
- $this->position = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>string message = 2;</code>
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
- /**
- * Generated from protobuf field <code>string message = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setMessage($var)
- {
- GPBUtil::checkString($var, True);
- $this->message = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>.Ydb.Issue.IssueMessage.Position end_position = 3;</code>
- * @return \Ydb\Issue\IssueMessage\Position|null
- */
- public function getEndPosition()
- {
- return $this->end_position;
- }
- public function hasEndPosition()
- {
- return isset($this->end_position);
- }
- public function clearEndPosition()
- {
- unset($this->end_position);
- }
- /**
- * Generated from protobuf field <code>.Ydb.Issue.IssueMessage.Position end_position = 3;</code>
- * @param \Ydb\Issue\IssueMessage\Position $var
- * @return $this
- */
- public function setEndPosition($var)
- {
- GPBUtil::checkMessage($var, \Ydb\Issue\IssueMessage\Position::class);
- $this->end_position = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>uint32 issue_code = 4;</code>
- * @return int
- */
- public function getIssueCode()
- {
- return $this->issue_code;
- }
- /**
- * Generated from protobuf field <code>uint32 issue_code = 4;</code>
- * @param int $var
- * @return $this
- */
- public function setIssueCode($var)
- {
- GPBUtil::checkUint32($var);
- $this->issue_code = $var;
- return $this;
- }
- /**
- * Severity values from ydb/library/yql/public/issue/protos/issue_severity.proto
- * FATAL = 0;
- * ERROR = 1;
- * WARNING = 2;
- * INFO = 3;
- *
- * Generated from protobuf field <code>uint32 severity = 5;</code>
- * @return int
- */
- public function getSeverity()
- {
- return $this->severity;
- }
- /**
- * Severity values from ydb/library/yql/public/issue/protos/issue_severity.proto
- * FATAL = 0;
- * ERROR = 1;
- * WARNING = 2;
- * INFO = 3;
- *
- * Generated from protobuf field <code>uint32 severity = 5;</code>
- * @param int $var
- * @return $this
- */
- public function setSeverity($var)
- {
- GPBUtil::checkUint32($var);
- $this->severity = $var;
- return $this;
- }
- /**
- * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 6;</code>
- * @return \Google\Protobuf\Internal\RepeatedField
- */
- public function getIssues()
- {
- return $this->issues;
- }
- /**
- * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 6;</code>
- * @param array<\Ydb\Issue\IssueMessage>|\Google\Protobuf\Internal\RepeatedField $var
- * @return $this
- */
- public function setIssues($var)
- {
- $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Issue\IssueMessage::class);
- $this->issues = $arr;
- return $this;
- }
- }
|