#include <google/protobuf/compiler/plugin.h> namespace google::protobuf::compiler Front-end for protoc code generator plugins written in C++. To implement a protoc plugin in C++, simply write an implementation of CodeGenerator, then create a main() function like: int main(int argc, char* argv[]) { MyCodeGenerator generator; return google::protobuf::compiler::PluginMain(argc, argv, &generator); } You must link your plugin against libprotobuf and libprotoc. The core part of PluginMain is to inv...