Go to the documentation of this file.
45 (
void*)PyType_GenericAlloc(
state->extension_dict_type, 0);
47 Py_INCREF(ext_dict->
msg);
48 return &ext_dict->ob_base;
92 PyObject* _other,
int opid) {
94 if (opid != Py_EQ && opid != Py_NE) {
95 Py_INCREF(Py_NotImplemented);
96 return Py_NotImplemented;
100 if (PyObject_TypeCheck(_other,
Py_TYPE(_self))) {
102 equals =
self->
msg == other->
msg;
104 bool ret = opid == Py_EQ ? equals : !equals;
105 return PyBool_FromLong(
ret);
152 "Finds an extension by name."},
154 METH_O,
"Finds an extension by number."},
194 (
void*)PyType_GenericAlloc(
state->extension_iterator_type, 0);
195 if (!
iter)
return NULL;
198 Py_INCREF(
iter->msg);
199 return &
iter->ob_base;
204 Py_DECREF(
self->msg);
211 if (!
msg)
return NULL;
224 {Py_tp_iter, PyObject_SelfIter},
246 return s->extension_dict_type && s->extension_iterator_type;
static PyType_Spec PyUpb_ExtensionIterator_Spec
const char * PyUpb_GetStrData(PyObject *obj)
size_t upb_Message_ExtensionCount(const upb_Message *msg)
bool PyUpb_InitExtensionDict(PyObject *m)
void PyUpb_CMessage_DoClearField(PyObject *_self, const upb_FieldDef *f)
static PyType_Slot PyUpb_ExtensionDict_Slots[]
const upb_MiniTable * upb_MessageDef_MiniTable(const upb_MessageDef *m)
PyObject * PyUpb_ExtensionIterator_IterNext(PyObject *_self)
const upb_ExtensionRegistry * upb_DefPool_ExtensionRegistry(const upb_DefPool *s)
static PyObject * PyUpb_ExtensionDict_RichCompare(PyObject *_self, PyObject *_other, int opid)
const upb_FieldDef * _upb_DefPool_FindExtensionByMiniTable(const upb_DefPool *s, const upb_MiniTable_Extension *ext)
PyUpb_ModuleState * PyUpb_ModuleState_GetFromModule(PyObject *module)
const upb_MessageDef * PyUpb_CMessage_GetMsgdef(PyObject *self)
const upb_Array * array_val
static PyMethodDef PyUpb_ExtensionDict_Methods[]
static void PyUpb_ExtensionIterator_Dealloc(void *_self)
#define kUpb_Message_Begin
static void PyUpb_Dealloc(void *self)
static void PyUpb_ExtensionDict_Dealloc(PyUpb_ExtensionDict *self)
const upb_DefPool * upb_FileDef_Pool(const upb_FileDef *f)
static Py_ssize_t PyUpb_ExtensionDict_Length(PyObject *_self)
bool upb_FieldDef_IsExtension(const upb_FieldDef *f)
PyTypeObject * PyUpb_AddClass(PyObject *m, PyType_Spec *spec)
bool upb_Message_Next(const upb_Message *msg, const upb_MessageDef *m, const upb_DefPool *ext_pool, const upb_FieldDef **out_f, upb_MessageValue *out_val, size_t *iter)
PyObject * PyUpb_FieldDescriptor_Get(const upb_FieldDef *field)
PyObject * PyUpb_ExtensionDict_New(PyObject *msg)
static PyObject * PyUpb_ExtensionDict_FindExtensionByNumber(PyObject *_self, PyObject *arg)
static int PyUpb_ExtensionDict_Contains(PyObject *_self, PyObject *key)
static PyObject * PyUpb_ExtensionIterator_New(PyObject *_ext_dict)
static PyType_Slot PyUpb_ExtensionIterator_Slots[]
size_t upb_Array_Size(const upb_Array *arr)
bool upb_Message_Has(const upb_Message *msg, const upb_FieldDef *f)
PyUpb_ModuleState * PyUpb_ModuleState_Get(void)
const upb_FieldDef * PyUpb_CMessage_GetExtensionDef(PyObject *_self, PyObject *key)
#define PYUPB_MODULE_NAME
static PyObject * PyUpb_ExtensionDict_Subscript(PyObject *_self, PyObject *key)
upb_MessageValue upb_Message_Get(const upb_Message *msg, const upb_FieldDef *f)
bool upb_FieldDef_IsRepeated(const upb_FieldDef *f)
UniquePtr< SSL_SESSION > ret
void PyUpb_CMessage_ClearExtensionDict(PyObject *_self)
const upb_FieldDef * upb_DefPool_FindExtensionByName(const upb_DefPool *s, const char *sym)
const upb_FileDef * upb_MessageDef_File(const upb_MessageDef *m)
PyObject * PyUpb_CMessage_GetFieldValue(PyObject *_self, const upb_FieldDef *field)
const upb_msglayout_field * _upb_extreg_get(const upb_extreg *r, const upb_msglayout *l, uint32_t num)
static PyType_Spec PyUpb_ExtensionDict_Spec
PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END intern self
int PyUpb_CMessage_SetFieldValue(PyObject *_self, const upb_FieldDef *field, PyObject *value, PyObject *exc)
upb_Message * PyUpb_CMessage_GetIfReified(PyObject *_self)
static int PyUpb_ExtensionDict_AssignSubscript(PyObject *_self, PyObject *key, PyObject *val)
static PyObject * PyUpb_ExtensionDict_FindExtensionByName(PyObject *_self, PyObject *key)
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:20