PROTOC(1)
π PROTOC β like, the protocol buffer compiler bestie
okay so you found the protoc(1) page, the protocol buffer compiler one? pop off. let me give you the whole rundown, no cap. π
β¨ NAME β¨
protoc β compile protocol buffer description files. that's it, that's the job. she compiles, she slays. π¦
πΈ SYNOPSIS πΈ
protoc [--cpp_out=OUT_DIR] [--java_out=OUT_DIR] [--python_out=OUT_DIR]
[-IPATH | --proto_path=PATH] PROTO_FILE
protoc {-h | --help}
protoc --version
π DESCRIPTION π
so protoc is a compiler for protocol buffers definitions files (yes bestie, that's the actual wording, iconic). she can generate C++, Java and Python source code for the classes defined in PROTO_FILE. literally one file in, whole bunch of languages out. main character energy fr fr. π
β¨ OPTIONS β¨
-IPATH,--proto_path=PATHβ tell her where to look for imports. you can drop this one multiple times and she'll search the directories in order, like a good little queue. if you don't give her any-IPATHat all, she just uses the current working directory. π«Ά--cpp_out=OUT_DIRβ turn on C++ binding generation and stash them inOUT_DIR. π--java_out=OUT_DIRβ turn on Java binding generation and stash them inOUT_DIR. β--python_out=OUT_DIRβ turn on Python binding generation and stash them inOUT_DIR. π-h,--helpβ show a lil summary of the options. your girl is helpful. π--versionβ show the version of the program. quick vibe check. β
not me reminding you: you gotta give her at least one of--cpp_out,--java_outor--python_out, otherwise the program has nothing to do π like she's just standing there. also? you can absolutely specify more than one at the same time. multitasking queen. π
π BUGS π
bestie listen. right now the program exits with code 255 for all errors, which makes it genuinely hard for scripts to tell what the actual error was. it's giving mysterious. it's giving unreadable. π
the upstream BTS lives at http://code.google.com/p/protobuf/issues/list β go yell there.
π SEE ALSO π
more documentation about protocol buffers syntax and APIs is available online at http://code.google.com/apis/protocolbuffers/docs/overview.html. go read, she's worth it. π
π«Ά AUTHOR π«Ά
Iustin Pop <iustin@debian.org>
- wrote this manpage for the Debian system. thank you for your service king. π
π COPYRIGHT π
Copyright Β© 2007 Iustin Pop
this manual page was written for the Debian system (but may be used by others, she's generous like that).
permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or (at your option) any later version published by the Free Software Foundation.
on Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. go look, it's right there. β¨
okay that's the whole thing, mwah π β this was protobuf version 2.0.2, dated 2008-10-04, and yeah she's an old queen but she still compiles. periodt. π
π¦ where this page comes from
- debian bookworm: protobuf-compiler 3.21.12-3+deb12u1 Β· BSD-3-Clause~Google
- debian trixie: protobuf-compiler 3.21.12-11+deb13u1 Β· BSD-3-Clause~Google
- ubuntu noble: protobuf-compiler 3.21.12-8.2build1 Β· BSD-3-Clause~Google
- ubuntu noble: protobuf-compiler 3.21.12-8.2ubuntu0.3
- ubuntu noble: protobuf-compiler 3.21.12-8.2ubuntu0.4 Β· BSD-3-Clause~Google
- ubuntu questing: protobuf-compiler 3.21.12-11ubuntu3
- ubuntu questing: protobuf-compiler 3.21.12-11ubuntu3.1
- ubuntu resolute: protobuf-compiler 3.21.12-15ubuntu1 Β· BSD-3-Clause~Google
- ubuntu resolute: protobuf-compiler 3.21.12-15ubuntu1.1 Β· BSD-3-Clause~Google
- ubuntu stonking: protobuf-compiler 3.21.12-17 Β· BSD-3-Clause~Google
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms