Re: [protobuf] Accept byte content in CodeGeneratorResponse.File

2017-02-15 Thread 'Adam Cozzette' via Protocol Buffers
One possible work around would be to run protoc with --descriptor_set_out to just parse the .proto files and generate descriptors, and then your program could read in the descriptors without needing to use the plugin interface. Would that work well for your situation? Otherwise, your idea of using

[protobuf] Accept byte content in CodeGeneratorResponse.File

2017-02-15 Thread Martin Richard
Hi, I am writing a protoc plugin which outputs documentation files from protobuf sources in python. I would like to produce binary files (a PNG image with a nice diagram), however, this is impossible because CodeGeneratorResponse.File.content is a "string" field, rather than a "bytes" field, w