Most of the territory became a German Imperial protectorate in 1884 and remained a German colony until the end of World War I