Returns the WireType that corresponds to the given numeric value, or throws an exception if the value does not correspond to any known wire type.