Namespaces | Macros | Functions | Variables
protobuf/python/google/protobuf/pyext/message_factory.cc File Reference
#include <unordered_map>
#include <Python.h>
#include <google/protobuf/dynamic_message.h>
#include <google/protobuf/pyext/descriptor.h>
#include <google/protobuf/pyext/message.h>
#include <google/protobuf/pyext/message_factory.h>
#include <google/protobuf/pyext/scoped_pyobject_ptr.h>
Include dependency graph for protobuf/python/google/protobuf/pyext/message_factory.cc:

Go to the source code of this file.

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::python
 
 google::protobuf::python::message_factory
 

Macros

#define PY_SSIZE_T_CLEAN
 
#define PyString_AsStringAndSize(ob, charpp, sizep)
 

Functions

static void google::protobuf::python::message_factory::Dealloc (PyObject *pself)
 
static int google::protobuf::python::message_factory::GcClear (PyObject *pself)
 
static int google::protobuf::python::message_factory::GcTraverse (PyObject *pself, visitproc visit, void *arg)
 
CMessageClass * google::protobuf::python::message_factory::GetMessageClass (PyMessageFactory *self, const Descriptor *message_descriptor)
 
CMessageClass * google::protobuf::python::message_factory::GetOrCreateMessageClass (PyMessageFactory *self, const Descriptor *descriptor)
 
static PyObject * google::protobuf::python::message_factory::GetPool (PyMessageFactory *self, void *closure)
 
bool google::protobuf::python::InitMessageFactory ()
 
PyObject * google::protobuf::python::message_factory::New (PyTypeObject *type, PyObject *args, PyObject *kwargs)
 
PyMessageFactory * google::protobuf::python::message_factory::NewMessageFactory (PyTypeObject *type, PyDescriptorPool *pool)
 
int google::protobuf::python::message_factory::RegisterMessageClass (PyMessageFactory *self, const Descriptor *message_descriptor, CMessageClass *message_class)
 

Variables

static PyGetSetDef google::protobuf::python::message_factory::Getters []
 
static PyMethodDef google::protobuf::python::message_factory::Methods []
 

Macro Definition Documentation

◆ PY_SSIZE_T_CLEAN

#define PY_SSIZE_T_CLEAN

◆ PyString_AsStringAndSize

#define PyString_AsStringAndSize (   ob,
  charpp,
  sizep 
)
Value:
(PyUnicode_Check(ob) ? ((*(charpp) = const_cast<char*>( \
PyUnicode_AsUTF8AndSize(ob, (sizep)))) == NULL \
? -1 \
: 0) \
: PyBytes_AsStringAndSize(ob, (charpp), (sizep)))

Definition at line 42 of file protobuf/python/google/protobuf/pyext/message_factory.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:23