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

Go to the source code of this file.

Classes

class  google::protobuf::python::cdescriptor_pool::BuildFileErrorCollector
 

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::python
 
 google::protobuf::python::cdescriptor_pool
 

Macros

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

Functions

static PyDescriptorPool * google::protobuf::python::cdescriptor_pool::_CreateDescriptorPool ()
 
static PyObject * google::protobuf::python::cdescriptor_pool::Add (PyObject *self, PyObject *file_descriptor_proto)
 
static PyObject * google::protobuf::python::cdescriptor_pool::AddDescriptor (PyObject *self, PyObject *descriptor)
 
static PyObject * google::protobuf::python::cdescriptor_pool::AddEnumDescriptor (PyObject *self, PyObject *descriptor)
 
static PyObject * google::protobuf::python::cdescriptor_pool::AddExtensionDescriptor (PyObject *self, PyObject *descriptor)
 
static PyObject * google::protobuf::python::cdescriptor_pool::AddFileDescriptor (PyObject *self, PyObject *descriptor)
 
static PyObject * google::protobuf::python::cdescriptor_pool::AddSerializedFile (PyObject *pself, PyObject *serialized_pb)
 
static PyObject * google::protobuf::python::cdescriptor_pool::AddServiceDescriptor (PyObject *self, PyObject *descriptor)
 
static void google::protobuf::python::cdescriptor_pool::Dealloc (PyObject *pself)
 
static PyObject * google::protobuf::python::cdescriptor_pool::FindAllExtensions (PyObject *self, PyObject *arg)
 
PyObject * google::protobuf::python::cdescriptor_pool::FindEnumTypeByName (PyDescriptorPool *self, PyObject *arg)
 
static PyObject * google::protobuf::python::cdescriptor_pool::FindEnumTypeByNameMethod (PyObject *self, PyObject *arg)
 
PyObject * google::protobuf::python::cdescriptor_pool::FindExtensionByName (PyDescriptorPool *self, PyObject *arg)
 
static PyObject * google::protobuf::python::cdescriptor_pool::FindExtensionByNameMethod (PyObject *self, PyObject *arg)
 
static PyObject * google::protobuf::python::cdescriptor_pool::FindExtensionByNumber (PyObject *self, PyObject *args)
 
PyObject * google::protobuf::python::cdescriptor_pool::FindFieldByName (PyDescriptorPool *self, PyObject *arg)
 
static PyObject * google::protobuf::python::cdescriptor_pool::FindFieldByNameMethod (PyObject *self, PyObject *arg)
 
static PyObject * google::protobuf::python::cdescriptor_pool::FindFileByName (PyObject *self, PyObject *arg)
 
static PyObject * google::protobuf::python::cdescriptor_pool::FindFileContainingSymbol (PyObject *self, PyObject *arg)
 
static PyObject * google::protobuf::python::cdescriptor_pool::FindMessageByName (PyObject *self, PyObject *arg)
 
static PyObject * google::protobuf::python::cdescriptor_pool::FindMethodByName (PyObject *self, PyObject *arg)
 
PyObject * google::protobuf::python::cdescriptor_pool::FindOneofByName (PyDescriptorPool *self, PyObject *arg)
 
static PyObject * google::protobuf::python::cdescriptor_pool::FindOneofByNameMethod (PyObject *self, PyObject *arg)
 
static PyObject * google::protobuf::python::cdescriptor_pool::FindServiceByName (PyObject *self, PyObject *arg)
 
static int google::protobuf::python::cdescriptor_pool::GcClear (PyObject *pself)
 
static int google::protobuf::python::cdescriptor_pool::GcTraverse (PyObject *pself, visitproc visit, void *arg)
 
PyDescriptorPool * google::protobuf::python::GetDefaultDescriptorPool ()
 
PyDescriptorPool * google::protobuf::python::GetDescriptorPool_FromPool (const DescriptorPool *pool)
 
bool google::protobuf::python::InitDescriptorPool ()
 
static PyObject * google::protobuf::python::cdescriptor_pool::New (PyTypeObject *type, PyObject *args, PyObject *kwargs)
 
PyObject * google::protobuf::python::PyDescriptorPool_FromPool (const DescriptorPool *pool)
 
static PyDescriptorPool * google::protobuf::python::cdescriptor_pool::PyDescriptorPool_NewWithDatabase (DescriptorDatabase *database)
 
static PyDescriptorPool * google::protobuf::python::cdescriptor_pool::PyDescriptorPool_NewWithUnderlay (const DescriptorPool *underlay)
 
PyObject * google::protobuf::python::cdescriptor_pool::SetErrorFromCollector (DescriptorPool::ErrorCollector *self, const char *name, const char *error_type)
 

Variables

static std::unordered_map< const DescriptorPool *, PyDescriptorPool * > * google::protobuf::python::descriptor_pool_map
 
static PyMethodDef google::protobuf::python::cdescriptor_pool::Methods []
 
static PyDescriptorPool * google::protobuf::python::python_generated_pool = NULL
 

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 47 of file protobuf/python/google/protobuf/pyext/descriptor_pool.cc.



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