Ydb.Table.ReadTableResponse */ class ReadTableResponse extends \Google\Protobuf\Internal\Message { /** * Status of request (same as other statuses) * * Generated from protobuf field .Ydb.StatusIds.StatusCode status = 1; */ protected $status = 0; /** * Issues * * Generated from protobuf field repeated .Ydb.Issue.IssueMessage issues = 2; */ private $issues; /** * Optional snapshot that corresponds to the returned data * * Generated from protobuf field .Ydb.VirtualTimestamp snapshot = 4; */ protected $snapshot = null; /** * Read table result * * Generated from protobuf field .Ydb.Table.ReadTableResult result = 3; */ protected $result = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $status * Status of request (same as other statuses) * @type array<\Ydb\Issue\IssueMessage>|\Google\Protobuf\Internal\RepeatedField $issues * Issues * @type \Ydb\VirtualTimestamp $snapshot * Optional snapshot that corresponds to the returned data * @type \Ydb\Table\ReadTableResult $result * Read table result * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbTable::initOnce(); parent::__construct($data); } /** * Status of request (same as other statuses) * * Generated from protobuf field .Ydb.StatusIds.StatusCode status = 1; * @return int */ public function getStatus() { return $this->status; } /** * Status of request (same as other statuses) * * Generated from protobuf field .Ydb.StatusIds.StatusCode status = 1; * @param int $var * @return $this */ public function setStatus($var) { GPBUtil::checkEnum($var, \Ydb\StatusIds\StatusCode::class); $this->status = $var; return $this; } /** * Issues * * Generated from protobuf field repeated .Ydb.Issue.IssueMessage issues = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getIssues() { return $this->issues; } /** * Issues * * Generated from protobuf field repeated .Ydb.Issue.IssueMessage issues = 2; * @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; } /** * Optional snapshot that corresponds to the returned data * * Generated from protobuf field .Ydb.VirtualTimestamp snapshot = 4; * @return \Ydb\VirtualTimestamp|null */ public function getSnapshot() { return $this->snapshot; } public function hasSnapshot() { return isset($this->snapshot); } public function clearSnapshot() { unset($this->snapshot); } /** * Optional snapshot that corresponds to the returned data * * Generated from protobuf field .Ydb.VirtualTimestamp snapshot = 4; * @param \Ydb\VirtualTimestamp $var * @return $this */ public function setSnapshot($var) { GPBUtil::checkMessage($var, \Ydb\VirtualTimestamp::class); $this->snapshot = $var; return $this; } /** * Read table result * * Generated from protobuf field .Ydb.Table.ReadTableResult result = 3; * @return \Ydb\Table\ReadTableResult|null */ public function getResult() { return $this->result; } public function hasResult() { return isset($this->result); } public function clearResult() { unset($this->result); } /** * Read table result * * Generated from protobuf field .Ydb.Table.ReadTableResult result = 3; * @param \Ydb\Table\ReadTableResult $var * @return $this */ public function setResult($var) { GPBUtil::checkMessage($var, \Ydb\Table\ReadTableResult::class); $this->result = $var; return $this; } }