public function setWorkspaceId($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DevTools\Source\V1\CloudWorkspaceId::class);
        $this->workspace_id = $var;

        return $this;
    }