add source generation for protocol files in Java