rv.data.CaptureActionRequest.Error */ class Error extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field int32 error_code = 1; */ protected $error_code = 0; /** * Generated from protobuf field .rv.data.Action.CaptureType capture_action = 2; */ protected $capture_action = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $error_code * @type \Rv\Data\Action\CaptureType $capture_action * } */ public function __construct($data = NULL) { \GPBMetadata\ProCore::initOnce(); parent::__construct($data); } /** * Generated from protobuf field int32 error_code = 1; * @return int */ public function getErrorCode() { return $this->error_code; } /** * Generated from protobuf field int32 error_code = 1; * @param int $var * @return $this */ public function setErrorCode($var) { GPBUtil::checkInt32($var); $this->error_code = $var; return $this; } /** * Generated from protobuf field .rv.data.Action.CaptureType capture_action = 2; * @return \Rv\Data\Action\CaptureType|null */ public function getCaptureAction() { return $this->capture_action; } public function hasCaptureAction() { return isset($this->capture_action); } public function clearCaptureAction() { unset($this->capture_action); } /** * Generated from protobuf field .rv.data.Action.CaptureType capture_action = 2; * @param \Rv\Data\Action\CaptureType $var * @return $this */ public function setCaptureAction($var) { GPBUtil::checkMessage($var, \Rv\Data\Action\CaptureType::class); $this->capture_action = $var; return $this; } }