python_generator.h
#include <google/protobuf/compiler/python/python_generator.h>
namespace google::protobuf::compiler::python
Generates Python code for a given .proto file.
Classes in this file | |
---|---|
CodeGenerator implementation for generated Python protocol buffer classes.
|
class Generator: public CodeGenerator
#include <google/protobuf/compiler/python/python_generator.h>
namespace google::protobuf::compiler::python
CodeGenerator implementation for generated Python protocol buffer classes.
If you create your own protocol compiler binary and you want it to support Python output, you can do so by registering an instance of thisCodeGenerator with the CommandLineInterface in your main() function.
Members | |
---|---|
|
Generator()
|
virtual |
~Generator()
|
virtual bool |
Generate(const FileDescriptor * file, const string & parameter, GeneratorContext * generator_context, string * error) const
CodeGenerator methods.
|