proto.gradido.ManageNodeResponse */ class ManageNodeResponse extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field bool success = 1; */ private $success = false; /** * Generated from protobuf field .proto.gradido.ManageNodeResponse.ErrorCode error = 2; */ private $error = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type bool $success * @type int $error * } */ public function __construct($data = NULL) { \GPBMetadata\Gradido\ManageNodeRequest::initOnce(); parent::__construct($data); } /** * Generated from protobuf field bool success = 1; * @return bool */ public function getSuccess() { return $this->success; } /** * Generated from protobuf field bool success = 1; * @param bool $var * @return $this */ public function setSuccess($var) { GPBUtil::checkBool($var); $this->success = $var; return $this; } /** * Generated from protobuf field .proto.gradido.ManageNodeResponse.ErrorCode error = 2; * @return int */ public function getError() { return $this->error; } /** * Generated from protobuf field .proto.gradido.ManageNodeResponse.ErrorCode error = 2; * @param int $var * @return $this */ public function setError($var) { GPBUtil::checkEnum($var, \Proto\Gradido\ManageNodeResponse_ErrorCode::class); $this->error = $var; return $this; } }