Classes | Macros | Typedefs | Functions
upb/python/protobuf.h File Reference
#include <stdbool.h>
#include "python/descriptor.h"
#include "python/python.h"
#include "upb/table_internal.h"
Include dependency graph for upb/python/protobuf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  PyUpb_ModuleState
 

Macros

#define PYUPB_DESCRIPTOR_MODULE   "google.protobuf.descriptor_pb2"
 
#define PYUPB_DESCRIPTOR_PROTO_PACKAGE   "google.protobuf"
 
#define PYUPB_MODULE_NAME   "google.protobuf.pyext._message"
 
#define PYUPB_PROTOBUF_INTERNAL_PACKAGE   "google.protobuf.internal"
 
#define PYUPB_PROTOBUF_PUBLIC_PACKAGE   "google.protobuf"
 
#define PYUPB_RETURN_OOM   return PyErr_SetNone(PyExc_MemoryError), NULL
 
#define PYUPB_WEAKMAP_BEGIN   UPB_INTTABLE_BEGIN
 

Typedefs

typedef struct PyUpb_WeakMap PyUpb_WeakMap
 

Functions

PyTypeObject * AddObject (PyObject *m, const char *name, PyType_Spec *spec)
 
PyTypeObject * PyUpb_AddClass (PyObject *m, PyType_Spec *spec)
 
PyTypeObject * PyUpb_AddClassWithBases (PyObject *m, PyType_Spec *spec, PyObject *bases)
 
upb_ArenaPyUpb_Arena_Get (PyObject *arena)
 
PyObject * PyUpb_Arena_New (void)
 
static void PyUpb_Dealloc (void *self)
 
PyObject * PyUpb_Forbidden_New (PyObject *cls, PyObject *args, PyObject *kwds)
 
const char * PyUpb_GetStrData (PyObject *obj)
 
PyObject * PyUpb_GetWktBases (PyUpb_ModuleState *state)
 
PyUpb_ModuleStatePyUpb_ModuleState_Get (void)
 
PyUpb_ModuleStatePyUpb_ModuleState_GetFromModule (PyObject *module)
 
PyUpb_ModuleStatePyUpb_ModuleState_MaybeGet (void)
 
static PyObject * PyUpb_NewRef (PyObject *obj)
 
void PyUpb_ObjCache_Add (const void *key, PyObject *py_obj)
 
void PyUpb_ObjCache_Delete (const void *key)
 
PyObject * PyUpb_ObjCache_Get (const void *key)
 
PyUpb_WeakMapPyUpb_ObjCache_Instance (void)
 
const char * PyUpb_VerifyStrData (PyObject *obj)
 
void PyUpb_WeakMap_Add (PyUpb_WeakMap *map, const void *key, PyObject *py_obj)
 
void PyUpb_WeakMap_Delete (PyUpb_WeakMap *map, const void *key)
 
void PyUpb_WeakMap_DeleteIter (PyUpb_WeakMap *map, intptr_t *iter)
 
void PyUpb_WeakMap_Free (PyUpb_WeakMap *map)
 
PyObject * PyUpb_WeakMap_Get (PyUpb_WeakMap *map, const void *key)
 
PyUpb_WeakMapPyUpb_WeakMap_New (void)
 
bool PyUpb_WeakMap_Next (PyUpb_WeakMap *map, const void **key, PyObject **obj, intptr_t *iter)
 
void PyUpb_WeakMap_TryDelete (PyUpb_WeakMap *map, const void *key)
 

Macro Definition Documentation

◆ PYUPB_DESCRIPTOR_MODULE

#define PYUPB_DESCRIPTOR_MODULE   "google.protobuf.descriptor_pb2"

Definition at line 42 of file upb/python/protobuf.h.

◆ PYUPB_DESCRIPTOR_PROTO_PACKAGE

#define PYUPB_DESCRIPTOR_PROTO_PACKAGE   "google.protobuf"

Definition at line 41 of file upb/python/protobuf.h.

◆ PYUPB_MODULE_NAME

#define PYUPB_MODULE_NAME   "google.protobuf.pyext._message"

Definition at line 43 of file upb/python/protobuf.h.

◆ PYUPB_PROTOBUF_INTERNAL_PACKAGE

#define PYUPB_PROTOBUF_INTERNAL_PACKAGE   "google.protobuf.internal"

Definition at line 40 of file upb/python/protobuf.h.

◆ PYUPB_PROTOBUF_PUBLIC_PACKAGE

#define PYUPB_PROTOBUF_PUBLIC_PACKAGE   "google.protobuf"

Definition at line 39 of file upb/python/protobuf.h.

◆ PYUPB_RETURN_OOM

#define PYUPB_RETURN_OOM   return PyErr_SetNone(PyExc_MemoryError), NULL

Definition at line 54 of file upb/python/protobuf.h.

◆ PYUPB_WEAKMAP_BEGIN

#define PYUPB_WEAKMAP_BEGIN   UPB_INTTABLE_BEGIN

Definition at line 154 of file upb/python/protobuf.h.

Typedef Documentation

◆ PyUpb_WeakMap

typedef struct PyUpb_WeakMap PyUpb_WeakMap

Definition at line 57 of file upb/python/protobuf.h.

Function Documentation

◆ AddObject()

PyTypeObject* AddObject ( PyObject *  m,
const char *  name,
PyType_Spec *  spec 
)

Definition at line 258 of file upb/python/protobuf.c.

◆ PyUpb_AddClass()

PyTypeObject* PyUpb_AddClass ( PyObject *  m,
PyType_Spec *  spec 
)

Definition at line 274 of file upb/python/protobuf.c.

◆ PyUpb_AddClassWithBases()

PyTypeObject* PyUpb_AddClassWithBases ( PyObject *  m,
PyType_Spec *  spec,
PyObject *  bases 
)

Definition at line 284 of file upb/python/protobuf.c.

◆ PyUpb_Arena_Get()

upb_Arena* PyUpb_Arena_Get ( PyObject *  arena)

Definition at line 231 of file upb/python/protobuf.c.

◆ PyUpb_Arena_New()

PyObject* PyUpb_Arena_New ( void  )

Definition at line 219 of file upb/python/protobuf.c.

◆ PyUpb_Dealloc()

static void PyUpb_Dealloc ( void *  self)
inlinestatic

Definition at line 208 of file upb/python/protobuf.h.

◆ PyUpb_Forbidden_New()

PyObject* PyUpb_Forbidden_New ( PyObject *  cls,
PyObject *  args,
PyObject *  kwds 
)

Definition at line 312 of file upb/python/protobuf.c.

◆ PyUpb_GetStrData()

const char* PyUpb_GetStrData ( PyObject *  obj)

Definition at line 295 of file upb/python/protobuf.c.

◆ PyUpb_GetWktBases()

PyObject* PyUpb_GetWktBases ( PyUpb_ModuleState state)

Definition at line 95 of file upb/python/protobuf.c.

◆ PyUpb_ModuleState_Get()

PyUpb_ModuleState* PyUpb_ModuleState_Get ( void  )

Definition at line 89 of file upb/python/protobuf.c.

◆ PyUpb_ModuleState_GetFromModule()

PyUpb_ModuleState* PyUpb_ModuleState_GetFromModule ( PyObject *  module)

Definition at line 82 of file upb/python/protobuf.c.

◆ PyUpb_ModuleState_MaybeGet()

PyUpb_ModuleState* PyUpb_ModuleState_MaybeGet ( void  )

Definition at line 77 of file upb/python/protobuf.c.

◆ PyUpb_NewRef()

static PyObject* PyUpb_NewRef ( PyObject *  obj)
inlinestatic

Definition at line 219 of file upb/python/protobuf.h.

◆ PyUpb_ObjCache_Add()

void PyUpb_ObjCache_Add ( const void *  key,
PyObject *  py_obj 
)

Definition at line 190 of file upb/python/protobuf.c.

◆ PyUpb_ObjCache_Delete()

void PyUpb_ObjCache_Delete ( const void *  key)

Definition at line 194 of file upb/python/protobuf.c.

◆ PyUpb_ObjCache_Get()

PyObject* PyUpb_ObjCache_Get ( const void *  key)

Definition at line 206 of file upb/python/protobuf.c.

◆ PyUpb_ObjCache_Instance()

PyUpb_WeakMap* PyUpb_ObjCache_Instance ( void  )

Definition at line 185 of file upb/python/protobuf.c.

◆ PyUpb_VerifyStrData()

const char* PyUpb_VerifyStrData ( PyObject *  obj)

Definition at line 305 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_Add()

void PyUpb_WeakMap_Add ( PyUpb_WeakMap map,
const void *  key,
PyObject *  py_obj 
)

Definition at line 139 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_Delete()

void PyUpb_WeakMap_Delete ( PyUpb_WeakMap map,
const void *  key 
)

Definition at line 144 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_DeleteIter()

void PyUpb_WeakMap_DeleteIter ( PyUpb_WeakMap map,
intptr_t iter 
)

Definition at line 177 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_Free()

void PyUpb_WeakMap_Free ( PyUpb_WeakMap map)

Definition at line 131 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_Get()

PyObject* PyUpb_WeakMap_Get ( PyUpb_WeakMap map,
const void *  key 
)

Definition at line 156 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_New()

PyUpb_WeakMap* PyUpb_WeakMap_New ( void  )

Definition at line 123 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_Next()

bool PyUpb_WeakMap_Next ( PyUpb_WeakMap map,
const void **  key,
PyObject **  obj,
intptr_t iter 
)

Definition at line 167 of file upb/python/protobuf.c.

◆ PyUpb_WeakMap_TryDelete()

void PyUpb_WeakMap_TryDelete ( PyUpb_WeakMap map,
const void *  key 
)

Definition at line 152 of file upb/python/protobuf.c.



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