Conditionally generate protobuffers on build/dotest