under feudalism, who was directly responsible for protecting the people?

the shogun
or
the emperor
or
the daimyo
or
the kami

the daimyo