Ydb.Operations.Operation */ class Operation extends \Google\Protobuf\Internal\Message { /** * Identifier of the operation, empty value means no active operation object is present (it was forgotten or * not created in the first place, as in SYNC operation mode). * * Generated from protobuf field string id = 1; */ protected $id = ''; /** * true - this operation has beed finished (doesn't matter successful or not), * so Status field has status code, and Result field can contains result data. * false - this operation still running. You can repeat request using operation Id. * * Generated from protobuf field bool ready = 2; */ protected $ready = false; /** * Generated from protobuf field .Ydb.StatusIds.StatusCode status = 3; */ protected $status = 0; /** * Generated from protobuf field repeated .Ydb.Issue.IssueMessage issues = 4; */ private $issues; /** * Result data * * Generated from protobuf field .google.protobuf.Any result = 5; */ protected $result = null; /** * Generated from protobuf field .google.protobuf.Any metadata = 6; */ protected $metadata = null; /** * Contains information about the cost of the operation. * For completed operations, it shows the final cost of the operation. * For operations in progress, it might indicate the current cost of the operation (if supported). * * Generated from protobuf field .Ydb.CostInfo cost_info = 7; */ protected $cost_info = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $id * Identifier of the operation, empty value means no active operation object is present (it was forgotten or * not created in the first place, as in SYNC operation mode). * @type bool $ready * true - this operation has beed finished (doesn't matter successful or not), * so Status field has status code, and Result field can contains result data. * false - this operation still running. You can repeat request using operation Id. * @type int $status * @type array<\Ydb\Issue\IssueMessage>|\Google\Protobuf\Internal\RepeatedField $issues * @type \Google\Protobuf\Any $result * Result data * @type \Google\Protobuf\Any $metadata * @type \Ydb\CostInfo $cost_info * Contains information about the cost of the operation. * For completed operations, it shows the final cost of the operation. * For operations in progress, it might indicate the current cost of the operation (if supported). * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbOperation::initOnce(); parent::__construct($data); } /** * Identifier of the operation, empty value means no active operation object is present (it was forgotten or * not created in the first place, as in SYNC operation mode). * * Generated from protobuf field string id = 1; * @return string */ public function getId() { return $this->id; } /** * Identifier of the operation, empty value means no active operation object is present (it was forgotten or * not created in the first place, as in SYNC operation mode). * * Generated from protobuf field string id = 1; * @param string $var * @return $this */ public function setId($var) { GPBUtil::checkString($var, True); $this->id = $var; return $this; } /** * true - this operation has beed finished (doesn't matter successful or not), * so Status field has status code, and Result field can contains result data. * false - this operation still running. You can repeat request using operation Id. * * Generated from protobuf field bool ready = 2; * @return bool */ public function getReady() { return $this->ready; } /** * true - this operation has beed finished (doesn't matter successful or not), * so Status field has status code, and Result field can contains result data. * false - this operation still running. You can repeat request using operation Id. * * Generated from protobuf field bool ready = 2; * @param bool $var * @return $this */ public function setReady($var) { GPBUtil::checkBool($var); $this->ready = $var; return $this; } /** * Generated from protobuf field .Ydb.StatusIds.StatusCode status = 3; * @return int */ public function getStatus() { return $this->status; } /** * Generated from protobuf field .Ydb.StatusIds.StatusCode status = 3; * @param int $var * @return $this */ public function setStatus($var) { GPBUtil::checkEnum($var, \Ydb\StatusIds\StatusCode::class); $this->status = $var; return $this; } /** * Generated from protobuf field repeated .Ydb.Issue.IssueMessage issues = 4; * @return \Google\Protobuf\Internal\RepeatedField */ public function getIssues() { return $this->issues; } /** * Generated from protobuf field repeated .Ydb.Issue.IssueMessage issues = 4; * @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; } /** * Result data * * Generated from protobuf field .google.protobuf.Any result = 5; * @return \Google\Protobuf\Any|null */ public function getResult() { return $this->result; } public function hasResult() { return isset($this->result); } public function clearResult() { unset($this->result); } /** * Result data * * Generated from protobuf field .google.protobuf.Any result = 5; * @param \Google\Protobuf\Any $var * @return $this */ public function setResult($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); $this->result = $var; return $this; } /** * Generated from protobuf field .google.protobuf.Any metadata = 6; * @return \Google\Protobuf\Any|null */ public function getMetadata() { return $this->metadata; } public function hasMetadata() { return isset($this->metadata); } public function clearMetadata() { unset($this->metadata); } /** * Generated from protobuf field .google.protobuf.Any metadata = 6; * @param \Google\Protobuf\Any $var * @return $this */ public function setMetadata($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Any::class); $this->metadata = $var; return $this; } /** * Contains information about the cost of the operation. * For completed operations, it shows the final cost of the operation. * For operations in progress, it might indicate the current cost of the operation (if supported). * * Generated from protobuf field .Ydb.CostInfo cost_info = 7; * @return \Ydb\CostInfo|null */ public function getCostInfo() { return $this->cost_info; } public function hasCostInfo() { return isset($this->cost_info); } public function clearCostInfo() { unset($this->cost_info); } /** * Contains information about the cost of the operation. * For completed operations, it shows the final cost of the operation. * For operations in progress, it might indicate the current cost of the operation (if supported). * * Generated from protobuf field .Ydb.CostInfo cost_info = 7; * @param \Ydb\CostInfo $var * @return $this */ public function setCostInfo($var) { GPBUtil::checkMessage($var, \Ydb\CostInfo::class); $this->cost_info = $var; return $this; } }