Toyotomi clan
In 1585, Tokugawa Ieyasu attacked Ueda Castle; Nobuyuki fought in Battle of Kami river alongside his father and was victorious. Later, as Masayuki served under Toyotomi Hideyoshi, Nobuyuki was sent to Tokugawa to be a retainer in order to preserve the clan if anything wrong happened to the Toyotomi clan.