public function setCurrentVersion($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2\StoredInfoTypeVersion::class);
        $this->current_version = $var;

        return $this;
    }