Classes | Namespaces | Macros | Functions | Variables
protobuf/python/google/protobuf/pyext/descriptor_containers.cc File Reference
#include <Python.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/pyext/descriptor_containers.h>
#include <google/protobuf/pyext/descriptor_pool.h>
#include <google/protobuf/pyext/descriptor.h>
#include <google/protobuf/pyext/scoped_pyobject_ptr.h>
Include dependency graph for protobuf/python/google/protobuf/pyext/descriptor_containers.cc:

Go to the source code of this file.

Classes

struct  google::protobuf::python::DescriptorContainerDef
 
struct  google::protobuf::python::PyContainer
 
struct  google::protobuf::python::PyContainerIterator
 

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::python
 
 google::protobuf::python::descriptor
 
 google::protobuf::python::enum_descriptor
 
 google::protobuf::python::enum_descriptor::enumvalues
 
 google::protobuf::python::file_descriptor
 
 google::protobuf::python::file_descriptor::dependencies
 
 google::protobuf::python::file_descriptor::enums
 
 google::protobuf::python::file_descriptor::extensions
 
 google::protobuf::python::file_descriptor::messages
 
 google::protobuf::python::file_descriptor::public_dependencies
 
 google::protobuf::python::file_descriptor::services
 
 google::protobuf::python::message_descriptor
 
 google::protobuf::python::message_descriptor::enums
 
 google::protobuf::python::message_descriptor::enumvalues
 
 google::protobuf::python::message_descriptor::extensions
 
 google::protobuf::python::message_descriptor::fields
 
 google::protobuf::python::message_descriptor::nested_types
 
 google::protobuf::python::message_descriptor::oneofs
 
 google::protobuf::python::oneof_descriptor
 
 google::protobuf::python::oneof_descriptor::fields
 
 google::protobuf::python::service_descriptor
 
 google::protobuf::python::service_descriptor::methods
 

Macros

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

Functions

static bool google::protobuf::python::descriptor::_GetItemByKey (PyContainer *self, PyObject *key, const void **item)
 
static PyObject * google::protobuf::python::descriptor::_NewKey_ByIndex (PyContainer *self, Py_ssize_t index)
 
static PyObject * google::protobuf::python::descriptor::_NewObj_ByIndex (PyContainer *self, Py_ssize_t index)
 
static PyObject * google::protobuf::python::descriptor::Append (PyContainer *self, PyObject *args)
 
static int google::protobuf::python::descriptor::AssSubscript (PyContainer *self, PyObject *key, PyObject *value)
 
static PyObject * google::protobuf::python::descriptor::ContainerRepr (PyContainer *self)
 
static int google::protobuf::python::descriptor::Contains (PyContainer *self, PyObject *key)
 
static int google::protobuf::python::message_descriptor::fields::Count (PyContainer *self)
 
static int google::protobuf::python::message_descriptor::nested_types::Count (PyContainer *self)
 
static int google::protobuf::python::message_descriptor::enums::Count (PyContainer *self)
 
static int google::protobuf::python::message_descriptor::enumvalues::Count (PyContainer *self)
 
static int google::protobuf::python::message_descriptor::extensions::Count (PyContainer *self)
 
static int google::protobuf::python::message_descriptor::oneofs::Count (PyContainer *self)
 
static int google::protobuf::python::enum_descriptor::enumvalues::Count (PyContainer *self)
 
static int google::protobuf::python::oneof_descriptor::fields::Count (PyContainer *self)
 
static int google::protobuf::python::service_descriptor::methods::Count (PyContainer *self)
 
static int google::protobuf::python::file_descriptor::messages::Count (PyContainer *self)
 
static int google::protobuf::python::file_descriptor::enums::Count (PyContainer *self)
 
static int google::protobuf::python::file_descriptor::extensions::Count (PyContainer *self)
 
static int google::protobuf::python::file_descriptor::services::Count (PyContainer *self)
 
static int google::protobuf::python::file_descriptor::dependencies::Count (PyContainer *self)
 
static int google::protobuf::python::file_descriptor::public_dependencies::Count (PyContainer *self)
 
static PyObject * google::protobuf::python::descriptor::Count (PyContainer *self, PyObject *item)
 
static int google::protobuf::python::descriptor::DescriptorMapping_Equal (PyContainer *self, PyObject *other)
 
static int google::protobuf::python::descriptor::DescriptorSequence_Equal (PyContainer *self, PyObject *other)
 
int google::protobuf::python::descriptor::Find (PyContainer *self, PyObject *item)
 
static PyObject * google::protobuf::python::descriptor::Get (PyContainer *self, PyObject *args)
 
static const void * google::protobuf::python::message_descriptor::fields::GetByCamelcaseName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::message_descriptor::fields::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::message_descriptor::nested_types::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::message_descriptor::enums::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::message_descriptor::enumvalues::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::message_descriptor::extensions::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::message_descriptor::oneofs::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::enum_descriptor::enumvalues::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::oneof_descriptor::fields::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::service_descriptor::methods::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::file_descriptor::messages::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::file_descriptor::enums::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::file_descriptor::extensions::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::file_descriptor::services::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::file_descriptor::dependencies::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::file_descriptor::public_dependencies::GetByIndex (PyContainer *self, int index)
 
static const void * google::protobuf::python::message_descriptor::fields::GetByName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::message_descriptor::nested_types::GetByName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::message_descriptor::enums::GetByName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::message_descriptor::enumvalues::GetByName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::message_descriptor::extensions::GetByName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::message_descriptor::oneofs::GetByName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::enum_descriptor::enumvalues::GetByName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::service_descriptor::methods::GetByName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::file_descriptor::messages::GetByName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::file_descriptor::enums::GetByName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::file_descriptor::extensions::GetByName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::file_descriptor::services::GetByName (PyContainer *self, ConstStringParam name)
 
static const void * google::protobuf::python::message_descriptor::fields::GetByNumber (PyContainer *self, int number)
 
static const void * google::protobuf::python::enum_descriptor::enumvalues::GetByNumber (PyContainer *self, int number)
 
static ParentDescriptor google::protobuf::python::message_descriptor::GetDescriptor (PyContainer *self)
 
static ParentDescriptor google::protobuf::python::enum_descriptor::GetDescriptor (PyContainer *self)
 
static ParentDescriptor google::protobuf::python::oneof_descriptor::GetDescriptor (PyContainer *self)
 
static ParentDescriptor google::protobuf::python::service_descriptor::GetDescriptor (PyContainer *self)
 
static ParentDescriptor google::protobuf::python::file_descriptor::GetDescriptor (PyContainer *self)
 
static PyObject * google::protobuf::python::descriptor::GetItem (PyContainer *self, Py_ssize_t index)
 
static const std::string & google::protobuf::python::message_descriptor::fields::GetItemCamelcaseName (const void *item)
 
static int google::protobuf::python::message_descriptor::fields::GetItemIndex (const void *item)
 
static int google::protobuf::python::message_descriptor::nested_types::GetItemIndex (const void *item)
 
static int google::protobuf::python::message_descriptor::enums::GetItemIndex (const void *item)
 
static int google::protobuf::python::message_descriptor::extensions::GetItemIndex (const void *item)
 
static int google::protobuf::python::message_descriptor::oneofs::GetItemIndex (const void *item)
 
static int google::protobuf::python::enum_descriptor::enumvalues::GetItemIndex (const void *item)
 
static int google::protobuf::python::oneof_descriptor::fields::GetItemIndex (const void *item)
 
static int google::protobuf::python::service_descriptor::methods::GetItemIndex (const void *item)
 
static int google::protobuf::python::file_descriptor::messages::GetItemIndex (const void *item)
 
static int google::protobuf::python::file_descriptor::enums::GetItemIndex (const void *item)
 
static int google::protobuf::python::file_descriptor::extensions::GetItemIndex (const void *item)
 
static int google::protobuf::python::file_descriptor::services::GetItemIndex (const void *item)
 
static const std::string & google::protobuf::python::message_descriptor::fields::GetItemName (const void *item)
 
static const std::string & google::protobuf::python::message_descriptor::nested_types::GetItemName (const void *item)
 
static const std::string & google::protobuf::python::message_descriptor::enums::GetItemName (const void *item)
 
static const std::string & google::protobuf::python::message_descriptor::enumvalues::GetItemName (const void *item)
 
static const std::string & google::protobuf::python::message_descriptor::extensions::GetItemName (const void *item)
 
static const std::string & google::protobuf::python::message_descriptor::oneofs::GetItemName (const void *item)
 
static const std::string & google::protobuf::python::enum_descriptor::enumvalues::GetItemName (const void *item)
 
static const std::string & google::protobuf::python::service_descriptor::methods::GetItemName (const void *item)
 
static const std::string & google::protobuf::python::file_descriptor::messages::GetItemName (const void *item)
 
static const std::string & google::protobuf::python::file_descriptor::enums::GetItemName (const void *item)
 
static const std::string & google::protobuf::python::file_descriptor::extensions::GetItemName (const void *item)
 
static const std::string & google::protobuf::python::file_descriptor::services::GetItemName (const void *item)
 
static int google::protobuf::python::message_descriptor::fields::GetItemNumber (const void *item)
 
static int google::protobuf::python::enum_descriptor::enumvalues::GetItemNumber (const void *item)
 
static PyObject * google::protobuf::python::descriptor::Index (PyContainer *self, PyObject *item)
 
bool google::protobuf::python::InitDescriptorMappingTypes ()
 
static PyObject * google::protobuf::python::descriptor::Items (PyContainer *self, PyObject *args)
 
static PyObject * google::protobuf::python::descriptor::Iter (PyContainer *self)
 
static void google::protobuf::python::descriptor::Iterator_Dealloc (PyContainerIterator *self)
 
static PyObject * google::protobuf::python::descriptor::Iterator_Next (PyContainerIterator *self)
 
static PyObject * google::protobuf::python::descriptor::IterItems (PyContainer *self, PyObject *args)
 
static PyObject * google::protobuf::python::descriptor::IterKeys (PyContainer *self, PyObject *args)
 
static PyObject * google::protobuf::python::descriptor::IterValues (PyContainer *self, PyObject *args)
 
static PyObject * google::protobuf::python::descriptor::Keys (PyContainer *self, PyObject *args)
 
static Py_ssize_t google::protobuf::python::descriptor::Length (PyContainer *self)
 
static PyObject * google::protobuf::python::descriptor::NewContainerIterator (PyContainer *mapping, PyContainerIterator::IterKind kind)
 
PyObject * google::protobuf::python::enum_descriptor::NewEnumValuesByName (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::enum_descriptor::NewEnumValuesByNumber (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::enum_descriptor::NewEnumValuesSeq (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::file_descriptor::NewFileDependencies (const FileDescriptor *descriptor)
 
PyObject * google::protobuf::python::file_descriptor::NewFileEnumTypesByName (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::file_descriptor::NewFileExtensionsByName (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::file_descriptor::NewFileMessageTypesByName (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::file_descriptor::NewFilePublicDependencies (const FileDescriptor *descriptor)
 
PyObject * google::protobuf::python::file_descriptor::NewFileServicesByName (const FileDescriptor *descriptor)
 
static PyObject * google::protobuf::python::descriptor::NewMappingByCamelcaseName (DescriptorContainerDef *container_def, const void *descriptor)
 
static PyObject * google::protobuf::python::descriptor::NewMappingByName (DescriptorContainerDef *container_def, const void *descriptor)
 
static PyObject * google::protobuf::python::descriptor::NewMappingByNumber (DescriptorContainerDef *container_def, const void *descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageEnumsByName (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageEnumsSeq (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageEnumValuesByName (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageExtensionsByName (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageExtensionsSeq (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageFieldsByCamelcaseName (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageFieldsByName (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageFieldsByNumber (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageFieldsSeq (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageNestedTypesByName (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageNestedTypesSeq (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageOneofsByName (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::message_descriptor::NewMessageOneofsSeq (ParentDescriptor descriptor)
 
static PyObject * google::protobuf::python::message_descriptor::fields::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::message_descriptor::nested_types::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::message_descriptor::enums::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::message_descriptor::enumvalues::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::message_descriptor::extensions::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::message_descriptor::oneofs::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::enum_descriptor::enumvalues::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::oneof_descriptor::fields::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::service_descriptor::methods::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::file_descriptor::messages::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::file_descriptor::enums::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::file_descriptor::extensions::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::file_descriptor::services::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::file_descriptor::dependencies::NewObjectFromItem (const void *item)
 
static PyObject * google::protobuf::python::file_descriptor::public_dependencies::NewObjectFromItem (const void *item)
 
PyObject * google::protobuf::python::oneof_descriptor::NewOneofFieldsSeq (ParentDescriptor descriptor)
 
static PyObject * google::protobuf::python::descriptor::NewSequence (DescriptorContainerDef *container_def, const void *descriptor)
 
PyObject * google::protobuf::python::service_descriptor::NewServiceMethodsByName (ParentDescriptor descriptor)
 
PyObject * google::protobuf::python::service_descriptor::NewServiceMethodsSeq (ParentDescriptor descriptor)
 
static PyObject * google::protobuf::python::descriptor::Reversed (PyContainer *self, PyObject *args)
 
static PyObject * google::protobuf::python::descriptor::RichCompare (PyContainer *self, PyObject *other, int opid)
 
static int google::protobuf::python::descriptor::SeqContains (PyContainer *self, PyObject *item)
 
static PyObject * google::protobuf::python::descriptor::SeqSubscript (PyContainer *self, PyObject *item)
 
static PyObject * google::protobuf::python::descriptor::Subscript (PyContainer *self, PyObject *key)
 
static PyObject * google::protobuf::python::descriptor::Values (PyContainer *self, PyObject *args)
 

Variables

static DescriptorContainerDef google::protobuf::python::message_descriptor::fields::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::message_descriptor::nested_types::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::message_descriptor::enums::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::message_descriptor::enumvalues::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::message_descriptor::extensions::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::message_descriptor::oneofs::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::enum_descriptor::enumvalues::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::oneof_descriptor::fields::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::service_descriptor::methods::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::file_descriptor::messages::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::file_descriptor::enums::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::file_descriptor::extensions::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::file_descriptor::services::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::file_descriptor::dependencies::ContainerDef
 
static DescriptorContainerDef google::protobuf::python::file_descriptor::public_dependencies::ContainerDef
 
static PyTypeObject google::protobuf::python::descriptor::ContainerIterator_Type
 
static PyMappingMethods google::protobuf::python::descriptor::MappingMappingMethods
 
static PyMethodDef google::protobuf::python::descriptor::MappingMethods []
 
static PySequenceMethods google::protobuf::python::descriptor::MappingSequenceMethods
 
static PyMappingMethods google::protobuf::python::descriptor::SeqMappingMethods
 
static PyMethodDef google::protobuf::python::descriptor::SeqMethods []
 
static PySequenceMethods google::protobuf::python::descriptor::SeqSequenceMethods
 

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



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