Protocol Buffers

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 this CodeGenerator 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.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.