Ydb.Issue.IssueMessage
*/
class IssueMessage extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field .Ydb.Issue.IssueMessage.Position position = 1;
*/
protected $position = null;
/**
* Generated from protobuf field string message = 2;
*/
protected $message = '';
/**
* Generated from protobuf field .Ydb.Issue.IssueMessage.Position end_position = 3;
*/
protected $end_position = null;
/**
* Generated from protobuf field uint32 issue_code = 4;
*/
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 uint32 severity = 5;
*/
protected $severity = 0;
/**
* Generated from protobuf field repeated .Ydb.Issue.IssueMessage issues = 6;
*/
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 .Ydb.Issue.IssueMessage.Position position = 1;
* @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 .Ydb.Issue.IssueMessage.Position position = 1;
* @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 string message = 2;
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* Generated from protobuf field string message = 2;
* @param string $var
* @return $this
*/
public function setMessage($var)
{
GPBUtil::checkString($var, True);
$this->message = $var;
return $this;
}
/**
* Generated from protobuf field .Ydb.Issue.IssueMessage.Position end_position = 3;
* @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 .Ydb.Issue.IssueMessage.Position end_position = 3;
* @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 uint32 issue_code = 4;
* @return int
*/
public function getIssueCode()
{
return $this->issue_code;
}
/**
* Generated from protobuf field uint32 issue_code = 4;
* @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 uint32 severity = 5;
* @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 uint32 severity = 5;
* @param int $var
* @return $this
*/
public function setSeverity($var)
{
GPBUtil::checkUint32($var);
$this->severity = $var;
return $this;
}
/**
* Generated from protobuf field repeated .Ydb.Issue.IssueMessage issues = 6;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getIssues()
{
return $this->issues;
}
/**
* Generated from protobuf field repeated .Ydb.Issue.IssueMessage issues = 6;
* @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;
}
}