Classes | Functions | Variables
repeated.c File Reference
#include "python/repeated.h"
#include "python/convert.h"
#include "python/message.h"
#include "python/protobuf.h"
Include dependency graph for repeated.c:

Go to the source code of this file.

Classes

struct  PyUpb_RepeatedContainer
 

Functions

static bool IndexToRange (PyObject *index, Py_ssize_t size, Py_ssize_t *i, Py_ssize_t *count, Py_ssize_t *step)
 
bool PyUpb_Repeated_Init (PyObject *m)
 
static bool PyUpb_Repeated_RegisterAsSequence (PyUpb_ModuleState *state)
 
PyObject * PyUpb_RepeatedCompositeContainer_Add (PyObject *_self, PyObject *args, PyObject *kwargs)
 
static PyObject * PyUpb_RepeatedCompositeContainer_Append (PyObject *_self, PyObject *value)
 
static PyObject * PyUpb_RepeatedCompositeContainer_AppendNew (PyObject *_self)
 
static bool PyUpb_RepeatedContainer_Assign (PyObject *_self, PyObject *list)
 
static int PyUpb_RepeatedContainer_AssignSubscript (PyObject *_self, PyObject *key, PyObject *value)
 
static void PyUpb_RepeatedContainer_Dealloc (PyObject *_self)
 
PyObject * PyUpb_RepeatedContainer_DeepCopy (PyObject *_self, PyObject *value)
 
static int PyUpb_RepeatedContainer_DeleteSubscript (upb_Array *arr, Py_ssize_t idx, Py_ssize_t count, Py_ssize_t step)
 
upb_ArrayPyUpb_RepeatedContainer_EnsureReified (PyObject *_self)
 
PyObject * PyUpb_RepeatedContainer_Extend (PyObject *_self, PyObject *value)
 
static PyTypeObject * PyUpb_RepeatedContainer_GetClass (const upb_FieldDef *f)
 
static const upb_FieldDefPyUpb_RepeatedContainer_GetField (PyUpb_RepeatedContainer *self)
 
static PyObject * PyUpb_RepeatedContainer_GetFieldDescriptor (PyUpb_RepeatedContainer *self)
 
static upb_ArrayPyUpb_RepeatedContainer_GetIfReified (PyUpb_RepeatedContainer *self)
 
PyObject * PyUpb_RepeatedContainer_GetOrCreateWrapper (upb_Array *arr, const upb_FieldDef *f, PyObject *arena)
 
static PyObject * PyUpb_RepeatedContainer_Insert (PyObject *_self, PyObject *args)
 
static bool PyUpb_RepeatedContainer_IsStub (PyUpb_RepeatedContainer *self)
 
static PyObject * PyUpb_RepeatedContainer_Item (PyObject *_self, Py_ssize_t index)
 
static Py_ssize_t PyUpb_RepeatedContainer_Length (PyObject *self)
 
static PyObject * PyUpb_RepeatedContainer_MergeFrom (PyObject *_self, PyObject *args)
 
PyObject * PyUpb_RepeatedContainer_NewStub (PyObject *parent, const upb_FieldDef *f, PyObject *arena)
 
static PyObject * PyUpb_RepeatedContainer_Pop (PyObject *_self, PyObject *args)
 
void PyUpb_RepeatedContainer_Reify (PyObject *_self, upb_Array *arr)
 
static PyObject * PyUpb_RepeatedContainer_Remove (PyObject *_self, PyObject *value)
 
static PyObject * PyUpb_RepeatedContainer_Repr (PyObject *_self)
 
static PyObject * PyUpb_RepeatedContainer_Reverse (PyObject *_self)
 
static PyObject * PyUpb_RepeatedContainer_RichCompare (PyObject *_self, PyObject *_other, int opid)
 
static int PyUpb_RepeatedContainer_SetSubscript (PyUpb_RepeatedContainer *self, upb_Array *arr, const upb_FieldDef *f, Py_ssize_t idx, Py_ssize_t count, Py_ssize_t step, PyObject *value)
 
static PyObject * PyUpb_RepeatedContainer_Sort (PyObject *pself, PyObject *args, PyObject *kwds)
 
static PyObject * PyUpb_RepeatedContainer_Subscript (PyObject *_self, PyObject *key)
 
PyObject * PyUpb_RepeatedContainer_ToList (PyObject *_self)
 
static PyObject * PyUpb_RepeatedScalarContainer_Append (PyObject *_self, PyObject *value)
 
static int PyUpb_RepeatedScalarContainer_AssignItem (PyObject *_self, Py_ssize_t index, PyObject *item)
 

Variables

static PyMethodDef PyUpb_RepeatedCompositeContainer_Methods []
 
static PyType_Slot PyUpb_RepeatedCompositeContainer_Slots []
 
static PyType_Spec PyUpb_RepeatedCompositeContainer_Spec
 
static PyMethodDef PyUpb_RepeatedScalarContainer_Methods []
 
static PyType_Slot PyUpb_RepeatedScalarContainer_Slots []
 
static PyType_Spec PyUpb_RepeatedScalarContainer_Spec
 

Function Documentation

◆ IndexToRange()

static bool IndexToRange ( PyObject *  index,
Py_ssize_t  size,
Py_ssize_t *  i,
Py_ssize_t *  count,
Py_ssize_t *  step 
)
static

Definition at line 44 of file repeated.c.

◆ PyUpb_Repeated_Init()

bool PyUpb_Repeated_Init ( PyObject *  m)

Definition at line 805 of file repeated.c.

◆ PyUpb_Repeated_RegisterAsSequence()

static bool PyUpb_Repeated_RegisterAsSequence ( PyUpb_ModuleState state)
static

Definition at line 785 of file repeated.c.

◆ PyUpb_RepeatedCompositeContainer_Add()

PyObject* PyUpb_RepeatedCompositeContainer_Add ( PyObject *  _self,
PyObject *  args,
PyObject *  kwargs 
)

Definition at line 586 of file repeated.c.

◆ PyUpb_RepeatedCompositeContainer_Append()

static PyObject * PyUpb_RepeatedCompositeContainer_Append ( PyObject *  _self,
PyObject *  value 
)
static

Definition at line 599 of file repeated.c.

◆ PyUpb_RepeatedCompositeContainer_AppendNew()

static PyObject* PyUpb_RepeatedCompositeContainer_AppendNew ( PyObject *  _self)
static

Definition at line 573 of file repeated.c.

◆ PyUpb_RepeatedContainer_Assign()

static bool PyUpb_RepeatedContainer_Assign ( PyObject *  _self,
PyObject *  list 
)
static

Definition at line 494 of file repeated.c.

◆ PyUpb_RepeatedContainer_AssignSubscript()

static int PyUpb_RepeatedContainer_AssignSubscript ( PyObject *  _self,
PyObject *  key,
PyObject *  value 
)
static

Definition at line 437 of file repeated.c.

◆ PyUpb_RepeatedContainer_Dealloc()

static void PyUpb_RepeatedContainer_Dealloc ( PyObject *  _self)
static

Definition at line 138 of file repeated.c.

◆ PyUpb_RepeatedContainer_DeepCopy()

PyObject* PyUpb_RepeatedContainer_DeepCopy ( PyObject *  _self,
PyObject *  value 
)

Definition at line 201 of file repeated.c.

◆ PyUpb_RepeatedContainer_DeleteSubscript()

static int PyUpb_RepeatedContainer_DeleteSubscript ( upb_Array arr,
Py_ssize_t  idx,
Py_ssize_t  count,
Py_ssize_t  step 
)
static

Definition at line 398 of file repeated.c.

◆ PyUpb_RepeatedContainer_EnsureReified()

upb_Array* PyUpb_RepeatedContainer_EnsureReified ( PyObject *  _self)

Definition at line 124 of file repeated.c.

◆ PyUpb_RepeatedContainer_Extend()

PyObject* PyUpb_RepeatedContainer_Extend ( PyObject *  _self,
PyObject *  value 
)

Definition at line 221 of file repeated.c.

◆ PyUpb_RepeatedContainer_GetClass()

static PyTypeObject* PyUpb_RepeatedContainer_GetClass ( const upb_FieldDef f)
static

Definition at line 152 of file repeated.c.

◆ PyUpb_RepeatedContainer_GetField()

static const upb_FieldDef* PyUpb_RepeatedContainer_GetField ( PyUpb_RepeatedContainer self)
static

Definition at line 96 of file repeated.c.

◆ PyUpb_RepeatedContainer_GetFieldDescriptor()

static PyObject* PyUpb_RepeatedContainer_GetFieldDescriptor ( PyUpb_RepeatedContainer self)
static

Definition at line 91 of file repeated.c.

◆ PyUpb_RepeatedContainer_GetIfReified()

static upb_Array* PyUpb_RepeatedContainer_GetIfReified ( PyUpb_RepeatedContainer self)
static

Definition at line 104 of file repeated.c.

◆ PyUpb_RepeatedContainer_GetOrCreateWrapper()

PyObject* PyUpb_RepeatedContainer_GetOrCreateWrapper ( upb_Array arr,
const upb_FieldDef f,
PyObject *  arena 
)

Definition at line 181 of file repeated.c.

◆ PyUpb_RepeatedContainer_Insert()

static PyObject* PyUpb_RepeatedContainer_Insert ( PyObject *  _self,
PyObject *  args 
)
static

Definition at line 613 of file repeated.c.

◆ PyUpb_RepeatedContainer_IsStub()

static bool PyUpb_RepeatedContainer_IsStub ( PyUpb_RepeatedContainer self)
static

Definition at line 87 of file repeated.c.

◆ PyUpb_RepeatedContainer_Item()

static PyObject* PyUpb_RepeatedContainer_Item ( PyObject *  _self,
Py_ssize_t  index 
)
static

Definition at line 256 of file repeated.c.

◆ PyUpb_RepeatedContainer_Length()

static Py_ssize_t PyUpb_RepeatedContainer_Length ( PyObject *  self)
static

Definition at line 159 of file repeated.c.

◆ PyUpb_RepeatedContainer_MergeFrom()

static PyObject * PyUpb_RepeatedContainer_MergeFrom ( PyObject *  _self,
PyObject *  args 
)
static

Definition at line 564 of file repeated.c.

◆ PyUpb_RepeatedContainer_NewStub()

PyObject* PyUpb_RepeatedContainer_NewStub ( PyObject *  parent,
const upb_FieldDef f,
PyObject *  arena 
)

Definition at line 165 of file repeated.c.

◆ PyUpb_RepeatedContainer_Pop()

static PyObject* PyUpb_RepeatedContainer_Pop ( PyObject *  _self,
PyObject *  args 
)
static

Definition at line 454 of file repeated.c.

◆ PyUpb_RepeatedContainer_Reify()

void PyUpb_RepeatedContainer_Reify ( PyObject *  _self,
upb_Array arr 
)

Definition at line 109 of file repeated.c.

◆ PyUpb_RepeatedContainer_Remove()

static PyObject* PyUpb_RepeatedContainer_Remove ( PyObject *  _self,
PyObject *  value 
)
static

Definition at line 468 of file repeated.c.

◆ PyUpb_RepeatedContainer_Repr()

static PyObject* PyUpb_RepeatedContainer_Repr ( PyObject *  _self)
static

Definition at line 288 of file repeated.c.

◆ PyUpb_RepeatedContainer_Reverse()

static PyObject* PyUpb_RepeatedContainer_Reverse ( PyObject *  _self)
static

Definition at line 550 of file repeated.c.

◆ PyUpb_RepeatedContainer_RichCompare()

static PyObject* PyUpb_RepeatedContainer_RichCompare ( PyObject *  _self,
PyObject *  _other,
int  opid 
)
static

Definition at line 297 of file repeated.c.

◆ PyUpb_RepeatedContainer_SetSubscript()

static int PyUpb_RepeatedContainer_SetSubscript ( PyUpb_RepeatedContainer self,
upb_Array arr,
const upb_FieldDef f,
Py_ssize_t  idx,
Py_ssize_t  count,
Py_ssize_t  step,
PyObject *  value 
)
static

Definition at line 341 of file repeated.c.

◆ PyUpb_RepeatedContainer_Sort()

static PyObject* PyUpb_RepeatedContainer_Sort ( PyObject *  pself,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 515 of file repeated.c.

◆ PyUpb_RepeatedContainer_Subscript()

static PyObject* PyUpb_RepeatedContainer_Subscript ( PyObject *  _self,
PyObject *  key 
)
static

Definition at line 316 of file repeated.c.

◆ PyUpb_RepeatedContainer_ToList()

PyObject* PyUpb_RepeatedContainer_ToList ( PyObject *  _self)

Definition at line 269 of file repeated.c.

◆ PyUpb_RepeatedScalarContainer_Append()

static PyObject * PyUpb_RepeatedScalarContainer_Append ( PyObject *  _self,
PyObject *  value 
)
static

Definition at line 700 of file repeated.c.

◆ PyUpb_RepeatedScalarContainer_AssignItem()

static int PyUpb_RepeatedScalarContainer_AssignItem ( PyObject *  _self,
Py_ssize_t  index,
PyObject *  item 
)
static

Definition at line 714 of file repeated.c.

Variable Documentation

◆ PyUpb_RepeatedCompositeContainer_Methods

PyMethodDef PyUpb_RepeatedCompositeContainer_Methods[]
static
Initial value:
= {
{"__deepcopy__", PyUpb_RepeatedContainer_DeepCopy, METH_VARARGS,
"Makes a deep copy of the class."},
METH_VARARGS | METH_KEYWORDS, "Adds an object to the repeated container."},
"Appends a message to the end of the repeated container."},
{"insert", PyUpb_RepeatedContainer_Insert, METH_VARARGS,
"Inserts a message before the specified index."},
{"extend", PyUpb_RepeatedContainer_Extend, METH_O,
"Adds objects to the repeated container."},
{"pop", PyUpb_RepeatedContainer_Pop, METH_VARARGS,
"Removes an object from the repeated container and returns it."},
{"remove", PyUpb_RepeatedContainer_Remove, METH_O,
"Removes an object from the repeated container."},
{"sort", (PyCFunction)PyUpb_RepeatedContainer_Sort,
METH_VARARGS | METH_KEYWORDS, "Sorts the repeated container."},
{"reverse", (PyCFunction)PyUpb_RepeatedContainer_Reverse, METH_NOARGS,
"Reverses elements order of the repeated container."},
{"MergeFrom", PyUpb_RepeatedContainer_MergeFrom, METH_O,
"Adds objects to the repeated container."},
{NULL, NULL}}

Definition at line 651 of file repeated.c.

◆ PyUpb_RepeatedCompositeContainer_Slots

PyType_Slot PyUpb_RepeatedCompositeContainer_Slots[]
static
Initial value:
= {
{Py_tp_new, PyUpb_Forbidden_New},
{Py_tp_hash, PyObject_HashNotImplemented},
{0, NULL}}

Definition at line 675 of file repeated.c.

◆ PyUpb_RepeatedCompositeContainer_Spec

PyType_Spec PyUpb_RepeatedCompositeContainer_Spec
static
Initial value:
= {
PYUPB_MODULE_NAME ".RepeatedCompositeContainer",
0,
Py_TPFLAGS_DEFAULT,
}

Definition at line 688 of file repeated.c.

◆ PyUpb_RepeatedScalarContainer_Methods

PyMethodDef PyUpb_RepeatedScalarContainer_Methods[]
static
Initial value:
= {
{"__deepcopy__", PyUpb_RepeatedContainer_DeepCopy, METH_VARARGS,
"Makes a deep copy of the class."},
"Appends an object to the repeated container."},
{"extend", PyUpb_RepeatedContainer_Extend, METH_O,
"Appends objects to the repeated container."},
{"insert", PyUpb_RepeatedContainer_Insert, METH_VARARGS,
"Inserts an object at the specified position in the container."},
{"pop", PyUpb_RepeatedContainer_Pop, METH_VARARGS,
"Removes an object from the repeated container and returns it."},
{"remove", PyUpb_RepeatedContainer_Remove, METH_O,
"Removes an object from the repeated container."},
{"sort", (PyCFunction)PyUpb_RepeatedContainer_Sort,
METH_VARARGS | METH_KEYWORDS, "Sorts the repeated container."},
{"reverse", (PyCFunction)PyUpb_RepeatedContainer_Reverse, METH_NOARGS,
"Reverses elements order of the repeated container."},
{"MergeFrom", PyUpb_RepeatedContainer_MergeFrom, METH_O,
"Merges a repeated container into the current container."},
{NULL, NULL}}

Definition at line 734 of file repeated.c.

◆ PyUpb_RepeatedScalarContainer_Slots

PyType_Slot PyUpb_RepeatedScalarContainer_Slots[]
static
Initial value:
= {
{Py_tp_new, PyUpb_Forbidden_New},
{Py_tp_hash, PyObject_HashNotImplemented},
{0, NULL}}

Definition at line 758 of file repeated.c.

◆ PyUpb_RepeatedScalarContainer_Spec

PyType_Spec PyUpb_RepeatedScalarContainer_Spec
static
Initial value:
= {
PYUPB_MODULE_NAME ".RepeatedScalarContainer",
0,
Py_TPFLAGS_DEFAULT,
}

Definition at line 773 of file repeated.c.

PyUpb_RepeatedContainer_RichCompare
static PyObject * PyUpb_RepeatedContainer_RichCompare(PyObject *_self, PyObject *_other, int opid)
Definition: repeated.c:297
PyUpb_RepeatedContainer_MergeFrom
static PyObject * PyUpb_RepeatedContainer_MergeFrom(PyObject *_self, PyObject *args)
Definition: repeated.c:564
PyUpb_RepeatedCompositeContainer_Append
static PyObject * PyUpb_RepeatedCompositeContainer_Append(PyObject *_self, PyObject *value)
Definition: repeated.c:599
PyUpb_RepeatedContainer_Item
static PyObject * PyUpb_RepeatedContainer_Item(PyObject *_self, Py_ssize_t index)
Definition: repeated.c:256
PyUpb_RepeatedContainer_Extend
PyObject * PyUpb_RepeatedContainer_Extend(PyObject *_self, PyObject *value)
Definition: repeated.c:221
PyUpb_RepeatedScalarContainer_Methods
static PyMethodDef PyUpb_RepeatedScalarContainer_Methods[]
Definition: repeated.c:734
PyUpb_RepeatedScalarContainer_Slots
static PyType_Slot PyUpb_RepeatedScalarContainer_Slots[]
Definition: repeated.c:758
PyUpb_RepeatedScalarContainer_Append
static PyObject * PyUpb_RepeatedScalarContainer_Append(PyObject *_self, PyObject *value)
Definition: repeated.c:700
PyUpb_RepeatedContainer_Sort
static PyObject * PyUpb_RepeatedContainer_Sort(PyObject *pself, PyObject *args, PyObject *kwds)
Definition: repeated.c:515
PyUpb_RepeatedCompositeContainer_Methods
static PyMethodDef PyUpb_RepeatedCompositeContainer_Methods[]
Definition: repeated.c:651
PyUpb_Forbidden_New
PyObject * PyUpb_Forbidden_New(PyObject *cls, PyObject *args, PyObject *kwds)
Definition: upb/python/protobuf.c:312
PyUpb_RepeatedContainer_Insert
static PyObject * PyUpb_RepeatedContainer_Insert(PyObject *_self, PyObject *args)
Definition: repeated.c:613
PYUPB_MODULE_NAME
#define PYUPB_MODULE_NAME
Definition: upb/python/protobuf.h:43
PyUpb_RepeatedContainer_DeepCopy
PyObject * PyUpb_RepeatedContainer_DeepCopy(PyObject *_self, PyObject *value)
Definition: repeated.c:201
PyUpb_RepeatedContainer_Subscript
static PyObject * PyUpb_RepeatedContainer_Subscript(PyObject *_self, PyObject *key)
Definition: repeated.c:316
PyUpb_RepeatedContainer_Remove
static PyObject * PyUpb_RepeatedContainer_Remove(PyObject *_self, PyObject *value)
Definition: repeated.c:468
PyUpb_RepeatedCompositeContainer_Slots
static PyType_Slot PyUpb_RepeatedCompositeContainer_Slots[]
Definition: repeated.c:675
PyUpb_RepeatedContainer
Definition: repeated.c:73
PyUpb_RepeatedContainer_Length
static Py_ssize_t PyUpb_RepeatedContainer_Length(PyObject *self)
Definition: repeated.c:159
PyUpb_RepeatedScalarContainer_AssignItem
static int PyUpb_RepeatedScalarContainer_AssignItem(PyObject *_self, Py_ssize_t index, PyObject *item)
Definition: repeated.c:714
PyUpb_RepeatedCompositeContainer_Add
PyObject * PyUpb_RepeatedCompositeContainer_Add(PyObject *_self, PyObject *args, PyObject *kwargs)
Definition: repeated.c:586
PyUpb_RepeatedContainer_Dealloc
static void PyUpb_RepeatedContainer_Dealloc(PyObject *_self)
Definition: repeated.c:138
PyUpb_RepeatedContainer_Pop
static PyObject * PyUpb_RepeatedContainer_Pop(PyObject *_self, PyObject *args)
Definition: repeated.c:454
PyUpb_RepeatedContainer_Reverse
static PyObject * PyUpb_RepeatedContainer_Reverse(PyObject *_self)
Definition: repeated.c:550
PyUpb_RepeatedContainer_AssignSubscript
static int PyUpb_RepeatedContainer_AssignSubscript(PyObject *_self, PyObject *key, PyObject *value)
Definition: repeated.c:437
PyUpb_RepeatedContainer_Repr
static PyObject * PyUpb_RepeatedContainer_Repr(PyObject *_self)
Definition: repeated.c:288


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