Two men have been charged with assault causing harm to an off-duty garda in Dublin city centre last Sunday.