Go to the documentation of this file.
63 "python-proto2 is a module that can be used to enhance proto2 Python API\n"
66 "It provides access to the protocol buffers C++ reflection API that\n"
67 "implements the basic protocol buffer functions.";
70 {
"SetAllowOversizeProtos",
72 "Enable/disable oversize proto parsing."},
76 #if PY_MAJOR_VERSION >= 3
77 static struct PyModuleDef _module = {PyModuleDef_HEAD_INIT,
86 #define INITFUNC PyInit__message
87 #define INITFUNC_ERRORVAL NULL
89 #define INITFUNC init_message
90 #define INITFUNC_ERRORVAL
95 #if PY_MAJOR_VERSION >= 3
96 m = PyModule_Create(&_module);
111 PyCapsule_New(
new ApiImplementation(),
113 PyModule_AddObject(
m,
"proto_API", api);
118 #if PY_MAJOR_VERSION >= 3
virtual const Message * GetMessagePointer(PyObject *msg) const =0
PyObject_HEAD MessageFactory * message_factory
PyDescriptorPool * GetDefaultDescriptorPool()
static const char module_docstring[]
static PyMethodDef ModuleMethods[]
#define INITFUNC_ERRORVAL
const char * PyProtoAPICapsuleName()
PyObject * SetAllowOversizeProtos(PyObject *m, PyObject *arg)
virtual Message * GetMutableMessagePointer(PyObject *msg) const =0
virtual const DescriptorPool * GetDefaultDescriptorPool() const =0
PyMessageFactory * py_message_factory
virtual MessageFactory * GetDefaultMessageFactory() const =0
PyObject_HEAD DescriptorPool * pool
const upb_json_parsermethod * m
bool InitProto2MessageModule(PyObject *m)
const Message * PyMessage_GetMessagePointer(PyObject *msg)
Message * PyMessage_GetMutableMessagePointer(PyObject *msg)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:56