protoc Command Examples

Parse Google Protobuf .proto files and generate output in the specified language. More information: https://developers.google.com/protocol-buffers.

protoc --python_out={{path/to/output_directory}} {{input_file.proto}}

protoc --java_out={{path/to/output_directory}} --proto_path={{path/to/import_search_path}} {{input_file.proto}}

protoc --csharp_out={{path/to/c#_output_directory}} --js_out={{path/to/js_output_directory}} {{input_file.proto}}