Namespaces | Classes | Typedefs | Functions | Variables
google::protobuf::python Namespace Reference

Namespaces

 cdescriptor_pool
 
 cmessage
 
 descriptor
 
 enum_descriptor
 
 enumvalue_descriptor
 
 extension_dict
 
 field
 
 field_descriptor
 
 file_descriptor
 
 message_descriptor
 
 message_factory
 
 message_meta
 
 method_descriptor
 
 oneof_descriptor
 
 repeated_composite_container
 
 repeated_scalar_container
 
 service_descriptor
 
 unknown_field
 
 unknown_fields
 

Classes

struct  CMessage
 
struct  CMessageClass
 
struct  ContainerBase
 
struct  DescriptorContainerDef
 
struct  ExtensionDict
 
struct  IsValidNumericCastImpl
 
struct  MapContainer
 
struct  MapIterator
 
class  MapReflectionFriend
 
struct  MessageMapContainer
 
class  MessageReflectionFriend
 
struct  PyBaseDescriptor
 
struct  PyContainer
 
struct  PyContainerIterator
 
class  PyDescriptorDatabase
 
struct  PyDescriptorPool
 
struct  PyFileDescriptor
 
struct  PyMessageFactory
 
struct  PyMessageFieldProperty
 
struct  PyProto_API
 
struct  PyUnknownFieldRef
 
struct  PyUnknownFields
 
struct  RepeatedCompositeContainer
 
struct  RepeatedScalarContainer
 
class  ScopedPythonPtr
 

Typedefs

typedef google::protobuf::python::CMessage CMessage
 
typedef int(* CountMethod) (PyContainer *self)
 
typedef struct google::protobuf::python::ExtensionDict ExtensionDict
 
typedef int(* GetItemIndexMethod) (const void *descriptor)
 
typedef int(* GetItemNumberMethod) (const void *descriptor)
 
typedef PyObject *(* NewObjectFromItemMethod) (const void *descriptor)
 
typedef struct google::protobuf::python::PyBaseDescriptor PyBaseDescriptor
 
typedef struct google::protobuf::python::PyDescriptorPool PyDescriptorPool
 
typedef struct google::protobuf::python::PyFileDescriptor PyFileDescriptor
 
typedef struct google::protobuf::python::PyUnknownFields PyUnknownFields
 
typedef google::protobuf::python::RepeatedCompositeContainer RepeatedCompositeContainer
 
typedef google::protobuf::python::RepeatedScalarContainer RepeatedScalarContainer
 
typedef ScopedPythonPtr< PyObject > ScopedPyObjectPtr
 
using StringParam = std::string
 
typedef struct google::protobuf::python::PyUnknownFieldRef UknownFieldRef
 

Functions

bool _CalledFromGeneratedFile (int stacklevel)
 
static bool AddEnumValues (PyTypeObject *type, const EnumDescriptor *enum_descriptor)
 
static bool AddEnumValues (PyTypeObject *type, const EnumDescriptor *enum_descriptor)
 
static bool AddIntConstant (PyTypeObject *type, const char *name, int value)
 
static bool AddIntConstant (PyTypeObject *type, const char *name, int value)
 
bool AllowInvalidUTF8 (const FieldDescriptor *field)
 
 BASE_NUMERIC_CAST_CASE_DEST_LARGER (false, false, true)
 
 BASE_NUMERIC_CAST_CASE_DEST_LARGER (false, true, source >=0)
 
 BASE_NUMERIC_CAST_CASE_DEST_LARGER (true, false, true)
 
 BASE_NUMERIC_CAST_CASE_DEST_LARGER (true, true, true)
 
 BASE_NUMERIC_CAST_CASE_SAME_SIZE (false, false, true)
 
 BASE_NUMERIC_CAST_CASE_SAME_SIZE (false, true, source >=0)
 
 BASE_NUMERIC_CAST_CASE_SAME_SIZE (true, false, source<=static_cast< Source >(max))
 
 BASE_NUMERIC_CAST_CASE_SAME_SIZE (true, true, true)
 
 BASE_NUMERIC_CAST_CASE_SOURCE_LARGER (false, false, source<=max)
 
 BASE_NUMERIC_CAST_CASE_SOURCE_LARGER (false, true, source >=0 &&source<=max)
 
 BASE_NUMERIC_CAST_CASE_SOURCE_LARGER (true, false, source<=static_cast< Source >(max))
 
 BASE_NUMERIC_CAST_CASE_SOURCE_LARGER (true, true, source >=min &&source<=max)
 
bool CheckAndGetBool (PyObject *arg, bool *value)
 
bool CheckAndGetDouble (PyObject *arg, double *value)
 
bool CheckAndGetFloat (PyObject *arg, float *value)
 
template<class T >
bool CheckAndGetInteger (PyObject *arg, T *value)
 
template bool CheckAndGetInteger< int32 > (PyObject *, int32 *)
 
template bool CheckAndGetInteger< int64 > (PyObject *, int64 *)
 
template bool CheckAndGetInteger< uint32 > (PyObject *, uint32 *)
 
template bool CheckAndGetInteger< uint64 > (PyObject *, uint64 *)
 
bool CheckAndSetString (PyObject *arg, Message *message, const FieldDescriptor *descriptor, const Reflection *reflection, bool append, int index)
 
static int CheckCalledFromGeneratedFile (const char *attr_name)
 
static int CheckCalledFromGeneratedFile (const char *attr_name)
 
template<class Dest , class Source >
Dest checked_numeric_cast (Source source)
 
bool CheckFieldBelongsToMessage (const FieldDescriptor *field_descriptor, const Message *message)
 
static CMessageClassCheckMessageClass (PyTypeObject *cls)
 
static CMessageClassCheckMessageClass (PyTypeObject *cls)
 
PyObject * CheckString (PyObject *arg, const FieldDescriptor *descriptor)
 
PyObject * Clear (PyObject *_self)
 
template<class DescriptorProtoClass , class DescriptorClass >
static PyObject * CopyToPythonProto (const DescriptorClass *descriptor, PyObject *target)
 
template<class DescriptorProtoClass , class DescriptorClass >
static PyObject * CopyToPythonProto (const DescriptorClass *descriptor, PyObject *target)
 
static void DeallocMapIterator (PyObject *_self)
 
static void DeallocMapIterator (PyObject *_self)
 
void FormatTypeError (PyObject *arg, char *expected_types)
 
void FormatTypeError (PyObject *arg, const char *expected_types)
 
static PyObject * GetCMessage (MessageMapContainer *self, Message *message)
 
static PyObject * GetCMessage (MessageMapContainer *self, Message *message)
 
const MessageGetCProtoInsidePyProto (PyObject *msg)
 
static const MessageGetCProtoInsidePyProtoImpl (PyObject *msg)
 
static const MessageGetCProtoInsidePyProtoImpl (PyObject *msg)
 
static const MessageGetCProtoInsidePyProtoStub (PyObject *msg)
 
static const MessageGetCProtoInsidePyProtoStub (PyObject *msg)
 
PyDescriptorPoolGetDefaultDescriptorPool ()
 
PyDescriptorPoolGetDescriptorPool_FromPool (const DescriptorPool *pool)
 
PyObject * GetEntryClass (PyObject *_self)
 
template<class DescriptorClass >
const FileDescriptorGetFileDescriptor (const DescriptorClass *descriptor)
 
template<>
const FileDescriptorGetFileDescriptor (const EnumValueDescriptor *descriptor)
 
template<>
const FileDescriptorGetFileDescriptor (const FileDescriptor *descriptor)
 
template<>
const FileDescriptorGetFileDescriptor (const MethodDescriptor *descriptor)
 
template<>
const FileDescriptorGetFileDescriptor (const OneofDescriptor *descriptor)
 
static bool GetFileDescriptorProto (PyObject *py_descriptor, FileDescriptorProto *output)
 
static bool GetFileDescriptorProto (PyObject *py_descriptor, FileDescriptorProto *output)
 
static MapIteratorGetIter (PyObject *obj)
 
static MapIteratorGetIter (PyObject *obj)
 
static MapContainerGetMap (PyObject *obj)
 
static MapContainerGetMap (PyObject *obj)
 
static CMessageClassGetMessageClassFromDescriptor (const Descriptor *descriptor, PyObject *py_message_factory)
 
static const DescriptorGetMessageDescriptor (PyTypeObject *cls)
 
static const DescriptorGetMessageDescriptor (PyTypeObject *cls)
 
static MessageMapContainerGetMessageMap (PyObject *obj)
 
static MessageMapContainerGetMessageMap (PyObject *obj)
 
template<class DescriptorClass >
static PyObject * GetOrBuildOptions (const DescriptorClass *descriptor)
 
template<class DescriptorClass >
static PyObject * GetOrBuildOptions (const DescriptorClass *descriptor)
 
bool InitDescriptor ()
 
bool InitDescriptorMappingTypes ()
 
bool InitDescriptorPool ()
 
PyMODINIT_FUNC INITFUNC ()
 
void InitGlobals ()
 
bool InitMapContainers ()
 
bool InitMessageFactory ()
 
bool InitProto2MessageModule (PyObject *m)
 
template<class Dest , class Source >
bool IsValidNumericCast (Source source)
 
bool IsValidUTF8 (PyObject *obj)
 
PyObject * IterNext (PyObject *_self)
 
static PyObject * MapKeyToPython (const FieldDescriptor *field_descriptor, const MapKey &key)
 
static PyObject * MapKeyToPython (MapContainer *self, const MapKey &key)
 
PyObject * MapValueRefToPython (const FieldDescriptor *field_descriptor, const MapValueRef &value)
 
PyObject * MapValueRefToPython (MapContainer *self, const MapValueRef &value)
 
static void MessageMapDealloc (PyObject *_self)
 
static void MessageMapDealloc (PyObject *_self)
 
PyObject * MessageMapGet (PyObject *self, PyObject *args, PyObject *kwargs)
 
MessageMutableCProtoInsidePyProto (PyObject *msg)
 
static MessageMutableCProtoInsidePyProtoImpl (PyObject *msg)
 
static MessageMutableCProtoInsidePyProtoImpl (PyObject *msg)
 
static MessageMutableCProtoInsidePyProtoStub (PyObject *msg)
 
static MessageMutableCProtoInsidePyProtoStub (PyObject *msg)
 
PyObject * NewFieldProperty (const FieldDescriptor *field_descriptor)
 
MessageMapContainerNewMessageMapContainer (CMessage *parent, const google::protobuf::FieldDescriptor *parent_field_descriptor, CMessageClass *message_class)
 
MapContainerNewScalarMapContainer (CMessage *parent, const google::protobuf::FieldDescriptor *parent_field_descriptor)
 
void OutOfRangeError (PyObject *arg)
 
const void * PyDescriptor_AsVoidPtr (PyObject *obj)
 
PyObject * PyDescriptorPool_FromPool (const DescriptorPool *pool)
 
const EnumDescriptorPyEnumDescriptor_AsDescriptor (PyObject *obj)
 
PyObject * PyEnumDescriptor_FromDescriptor (const EnumDescriptor *enum_descriptor)
 
PyObject * PyEnumValueDescriptor_FromDescriptor (const EnumValueDescriptor *enumvalue_descriptor)
 
const FieldDescriptorPyFieldDescriptor_AsDescriptor (PyObject *obj)
 
PyObject * PyFieldDescriptor_FromDescriptor (const FieldDescriptor *field_descriptor)
 
const FileDescriptorPyFileDescriptor_AsDescriptor (PyObject *obj)
 
PyObject * PyFileDescriptor_FromDescriptor (const FileDescriptor *file_descriptor)
 
PyObject * PyFileDescriptor_FromDescriptorWithSerializedPb (const FileDescriptor *file_descriptor, PyObject *serialized_pb)
 
PyMODINIT_FUNC PyInit__api_implementation ()
 
const MessagePyMessage_GetMessagePointer (PyObject *msg)
 
MessagePyMessage_GetMutableMessagePointer (PyObject *msg)
 
PyObject * PyMessage_New (const Descriptor *descriptor, PyObject *py_message_factory)
 
PyObject * PyMessage_NewMessageOwnedExternally (Message *message, PyObject *message_factory)
 
const DescriptorPyMessageDescriptor_AsDescriptor (PyObject *obj)
 
PyObject * PyMessageDescriptor_FromDescriptor (const Descriptor *message_descriptor)
 
PyObject * PyMethodDescriptor_FromDescriptor (const MethodDescriptor *method_descriptor)
 
PyObject * PyOneofDescriptor_FromDescriptor (const OneofDescriptor *oneof_descriptor)
 
const char * PyProtoAPICapsuleName ()
 
const ServiceDescriptorPyServiceDescriptor_AsDescriptor (PyObject *obj)
 
PyObject * PyServiceDescriptor_FromDescriptor (const ServiceDescriptor *service_descriptor)
 
PyObject * PyString_FromCppString (const std::string &str)
 
PyObject * PyString_FromCppString (const string &str)
 
static bool PyStringToSTL (PyObject *py_string, std::string *stl_string)
 
static bool PyStringToSTL (PyObject *py_string, string *stl_string)
 
static bool PythonToMapKey (MapContainer *self, PyObject *obj, MapKey *key)
 
static bool PythonToMapKey (PyObject *obj, const FieldDescriptor *field_descriptor, MapKey *key)
 
static bool PythonToMapValueRef (MapContainer *self, PyObject *obj, bool allow_unknown_enum_values, MapValueRef *value_ref)
 
static bool PythonToMapValueRef (PyObject *obj, const FieldDescriptor *field_descriptor, bool allow_unknown_enum_values, MapValueRef *value_ref)
 
bool Reparse (PyMessageFactory *message_factory, const Message &from, Message *to)
 
static void ScalarMapDealloc (PyObject *_self)
 
static void ScalarMapDealloc (PyObject *_self)
 
static PyObject * ScalarMapGet (PyObject *self, PyObject *args, PyObject *kwargs)
 
static PyObject * ScalarMapGet (PyObject *self, PyObject *args, PyObject *kwargs)
 
PyObject * ToStringObject (const FieldDescriptor *descriptor, const std::string &value)
 
PyObject * ToStringObject (const FieldDescriptor *descriptor, const string &value)
 
template<class RangeType , class ValueType >
bool VerifyIntegerCastAndRange (PyObject *arg, ValueType value)
 

Variables

static PyTypeObject _CFieldProperty_Type
 
static PyTypeObject _CFieldProperty_Type
 
static CMessageClass _CMessage_Type
 
static CMessageClass _CMessage_Type
 
static PyTypeObject _CMessageClass_Type
 
static PyTypeObject _CMessageClass_Type
 
PyTypeObject _MessageMapContainer_Type
 
static struct PyModuleDef _module
 
PyTypeObject _ScalarMapContainer_Type
 
static bool allow_oversize_protos = false
 
PyTypeObject * CFieldProperty_Type = &_CFieldProperty_Type
 
PyTypeObject * CMessage_Type = &_CMessage_Type.super.ht_type
 
PyTypeObject * CMessageClass_Type = &_CMessageClass_Type
 
PyObject * DecodeError_class
 
static std::unordered_map< const DescriptorPool *, PyDescriptorPool * > * descriptor_pool_map
 
static std::unordered_map< const DescriptorPool *, PyDescriptorPool * > * descriptor_pool_map
 
PyObject * EncodeError_class
 
PyObject * EnumTypeWrapper_class
 
PyTypeObject ExtensionDict_Type
 
PyTypeObject ExtensionIterator_Type
 
const typedef void *(* GetByCamelcaseNameMethod )(PyContainer *self, const string &name)
 
const typedef void *(* GetByIndexMethod )(PyContainer *self, int index)
 
const typedef void *(* GetByNameMethod )(PyContainer *self, const string &name)
 
const typedef void *(* GetByNumberMethod )(PyContainer *self, int index)
 
const Message *(* GetCProtoInsidePyProtoPtr )(PyObject *msg)
 
const typedef string &(* GetItemCamelcaseNameMethod )(const void *descriptor)
 
const typedef string &(* GetItemNameMethod )(const void *descriptor)
 
std::unordered_map< const void *, PyObject * > * interned_descriptors
 
static PyObject * kDESCRIPTOR
 
static PyObject * kDESCRIPTOR
 
static PyObject * kEmptyWeakref
 
static PyObject * kEmptyWeakref
 
static int kImplVersion = -1
 
static int kImplVersion = -1
 
static const char * kImplVersionName = "api_version"
 
static const char * kImplVersionName = "api_version"
 
static const char kModuleDocstring []
 
static const char kModuleDocstring []
 
static const char * kModuleName = "_api_implementation"
 
static const char * kModuleName = "_api_implementation"
 
PyTypeObject MapIterator_Type
 
PyTypeObject * MessageMapContainer_Type
 
static PyType_Slot MessageMapContainer_Type_slots []
 
PyType_Spec MessageMapContainer_Type_spec
 
static PyMappingMethods MessageMapMappingMethods
 
static PyMethodDef MessageMapMethods []
 
static PyMethodDef MessageMapMethods []
 
Message *(* MutableCProtoInsidePyProtoPtr )(PyObject *msg)
 
PyObject * PickleError_class
 
PyTypeObject PyDescriptorPool_Type
 
PyTypeObject PyEnumDescriptor_Type
 
PyTypeObject PyEnumValueDescriptor_Type
 
PyTypeObject PyFieldDescriptor_Type
 
PyTypeObject PyFileDescriptor_Type
 
PyTypeObject PyMessageDescriptor_Type
 
PyTypeObject PyMessageFactory_Type
 
PyTypeObject PyMethodDescriptor_Type
 
PyTypeObject PyOneofDescriptor_Type
 
PyTypeObject PyServiceDescriptor_Type
 
static PyDescriptorPoolpython_generated_pool = NULL
 
static PyDescriptorPoolpython_generated_pool = NULL
 
static PyObject * PythonMessage_class
 
static PyObject * PythonMessage_class
 
PyTypeObject PyUnknownFieldRef_Type
 
PyTypeObject PyUnknownFields_Type
 
PyTypeObject RepeatedCompositeContainer_Type
 
PyTypeObject RepeatedScalarContainer_Type
 
PyTypeObject * ScalarMapContainer_Type
 
static PyType_Slot ScalarMapContainer_Type_slots []
 
PyType_Spec ScalarMapContainer_Type_spec
 
static PyMappingMethods ScalarMapMappingMethods
 
static PyMethodDef ScalarMapMethods []
 
static PyMethodDef ScalarMapMethods []
 
static PyObject * WKT_classes = NULL
 
static PyObject * WKT_classes = NULL
 

Typedef Documentation

◆ CMessage

◆ CountMethod

typedef int(* google::protobuf::python::CountMethod)(PyContainer *self)

◆ ExtensionDict

◆ GetItemIndexMethod

typedef int(* google::protobuf::python::GetItemIndexMethod)(const void *descriptor)

◆ GetItemNumberMethod

typedef int(* google::protobuf::python::GetItemNumberMethod)(const void *descriptor)

◆ NewObjectFromItemMethod

typedef PyObject *(* google::protobuf::python::NewObjectFromItemMethod)(const void *descriptor)

◆ PyBaseDescriptor

◆ PyDescriptorPool

◆ PyFileDescriptor

◆ PyUnknownFields

◆ RepeatedCompositeContainer

◆ RepeatedScalarContainer

◆ ScopedPyObjectPtr

◆ StringParam

using google::protobuf::python::StringParam = typedef std::string

◆ UknownFieldRef

Function Documentation

◆ _CalledFromGeneratedFile()

bool google::protobuf::python::_CalledFromGeneratedFile ( int  stacklevel)

◆ AddEnumValues() [1/2]

static bool google::protobuf::python::AddEnumValues ( PyTypeObject *  type,
const EnumDescriptor enum_descriptor 
)
static

◆ AddEnumValues() [2/2]

static bool google::protobuf::python::AddEnumValues ( PyTypeObject *  type,
const EnumDescriptor enum_descriptor 
)
static

◆ AddIntConstant() [1/2]

static bool google::protobuf::python::AddIntConstant ( PyTypeObject *  type,
const char *  name,
int  value 
)
static

◆ AddIntConstant() [2/2]

static bool google::protobuf::python::AddIntConstant ( PyTypeObject *  type,
const char *  name,
int  value 
)
static

◆ AllowInvalidUTF8()

bool google::protobuf::python::AllowInvalidUTF8 ( const FieldDescriptor field)

◆ BASE_NUMERIC_CAST_CASE_DEST_LARGER() [1/4]

google::protobuf::python::BASE_NUMERIC_CAST_CASE_DEST_LARGER ( false  ,
false  ,
true   
)

◆ BASE_NUMERIC_CAST_CASE_DEST_LARGER() [2/4]

google::protobuf::python::BASE_NUMERIC_CAST_CASE_DEST_LARGER ( false  ,
true  ,
source >=  0 
)

◆ BASE_NUMERIC_CAST_CASE_DEST_LARGER() [3/4]

google::protobuf::python::BASE_NUMERIC_CAST_CASE_DEST_LARGER ( true  ,
false  ,
true   
)

◆ BASE_NUMERIC_CAST_CASE_DEST_LARGER() [4/4]

google::protobuf::python::BASE_NUMERIC_CAST_CASE_DEST_LARGER ( true  ,
true  ,
true   
)

◆ BASE_NUMERIC_CAST_CASE_SAME_SIZE() [1/4]

google::protobuf::python::BASE_NUMERIC_CAST_CASE_SAME_SIZE ( false  ,
false  ,
true   
)

◆ BASE_NUMERIC_CAST_CASE_SAME_SIZE() [2/4]

google::protobuf::python::BASE_NUMERIC_CAST_CASE_SAME_SIZE ( false  ,
true  ,
source >=  0 
)

◆ BASE_NUMERIC_CAST_CASE_SAME_SIZE() [3/4]

google::protobuf::python::BASE_NUMERIC_CAST_CASE_SAME_SIZE ( true  ,
false  ,
source<=static_cast< Source max 
)

◆ BASE_NUMERIC_CAST_CASE_SAME_SIZE() [4/4]

google::protobuf::python::BASE_NUMERIC_CAST_CASE_SAME_SIZE ( true  ,
true  ,
true   
)

◆ BASE_NUMERIC_CAST_CASE_SOURCE_LARGER() [1/4]

google::protobuf::python::BASE_NUMERIC_CAST_CASE_SOURCE_LARGER ( false  ,
false  ,
source<=  max 
)

◆ BASE_NUMERIC_CAST_CASE_SOURCE_LARGER() [2/4]

google::protobuf::python::BASE_NUMERIC_CAST_CASE_SOURCE_LARGER ( false  ,
true  ,
source >=0 &&source<=  max 
)

◆ BASE_NUMERIC_CAST_CASE_SOURCE_LARGER() [3/4]

google::protobuf::python::BASE_NUMERIC_CAST_CASE_SOURCE_LARGER ( true  ,
false  ,
source<=static_cast< Source max 
)

◆ BASE_NUMERIC_CAST_CASE_SOURCE_LARGER() [4/4]

google::protobuf::python::BASE_NUMERIC_CAST_CASE_SOURCE_LARGER ( true  ,
true  ,
source >=min &&source<=  max 
)

◆ CheckAndGetBool()

bool google::protobuf::python::CheckAndGetBool ( PyObject *  arg,
bool value 
)

◆ CheckAndGetDouble()

bool google::protobuf::python::CheckAndGetDouble ( PyObject *  arg,
double *  value 
)

◆ CheckAndGetFloat()

bool google::protobuf::python::CheckAndGetFloat ( PyObject *  arg,
float *  value 
)

◆ CheckAndGetInteger()

template<class T >
bool google::protobuf::python::CheckAndGetInteger ( PyObject *  arg,
T value 
)

◆ CheckAndGetInteger< int32 >()

template bool google::protobuf::python::CheckAndGetInteger< int32 > ( PyObject *  ,
int32  
)

◆ CheckAndGetInteger< int64 >()

template bool google::protobuf::python::CheckAndGetInteger< int64 > ( PyObject *  ,
int64  
)

◆ CheckAndGetInteger< uint32 >()

template bool google::protobuf::python::CheckAndGetInteger< uint32 > ( PyObject *  ,
uint32  
)

◆ CheckAndGetInteger< uint64 >()

template bool google::protobuf::python::CheckAndGetInteger< uint64 > ( PyObject *  ,
uint64  
)

◆ CheckAndSetString()

bool google::protobuf::python::CheckAndSetString ( PyObject *  arg,
Message message,
const FieldDescriptor descriptor,
const Reflection reflection,
bool  append,
int  index 
)

◆ CheckCalledFromGeneratedFile() [1/2]

static int google::protobuf::python::CheckCalledFromGeneratedFile ( const char *  attr_name)
static

◆ CheckCalledFromGeneratedFile() [2/2]

static int google::protobuf::python::CheckCalledFromGeneratedFile ( const char *  attr_name)
static

◆ checked_numeric_cast()

template<class Dest , class Source >
Dest google::protobuf::python::checked_numeric_cast ( Source  source)
inline

◆ CheckFieldBelongsToMessage()

bool google::protobuf::python::CheckFieldBelongsToMessage ( const FieldDescriptor field_descriptor,
const Message message 
)

◆ CheckMessageClass() [1/2]

static CMessageClass* google::protobuf::python::CheckMessageClass ( PyTypeObject *  cls)
static

◆ CheckMessageClass() [2/2]

static CMessageClass* google::protobuf::python::CheckMessageClass ( PyTypeObject *  cls)
static

◆ CheckString()

PyObject * google::protobuf::python::CheckString ( PyObject *  arg,
const FieldDescriptor descriptor 
)

◆ Clear()

PyObject * google::protobuf::python::Clear ( PyObject *  _self)

◆ CopyToPythonProto() [1/2]

template<class DescriptorProtoClass , class DescriptorClass >
static PyObject* google::protobuf::python::CopyToPythonProto ( const DescriptorClass *  descriptor,
PyObject *  target 
)
static

◆ CopyToPythonProto() [2/2]

template<class DescriptorProtoClass , class DescriptorClass >
static PyObject* google::protobuf::python::CopyToPythonProto ( const DescriptorClass *  descriptor,
PyObject *  target 
)
static

◆ DeallocMapIterator() [1/2]

static void google::protobuf::python::DeallocMapIterator ( PyObject *  _self)
static

◆ DeallocMapIterator() [2/2]

static void google::protobuf::python::DeallocMapIterator ( PyObject *  _self)
static

◆ FormatTypeError() [1/2]

void google::protobuf::python::FormatTypeError ( PyObject *  arg,
char *  expected_types 
)

◆ FormatTypeError() [2/2]

void google::protobuf::python::FormatTypeError ( PyObject *  arg,
const char *  expected_types 
)

◆ GetCMessage() [1/2]

static PyObject* google::protobuf::python::GetCMessage ( MessageMapContainer self,
Message message 
)
static

◆ GetCMessage() [2/2]

static PyObject* google::protobuf::python::GetCMessage ( MessageMapContainer self,
Message message 
)
static

◆ GetCProtoInsidePyProto()

const Message * google::protobuf::python::GetCProtoInsidePyProto ( PyObject *  msg)

◆ GetCProtoInsidePyProtoImpl() [1/2]

static const Message* google::protobuf::python::GetCProtoInsidePyProtoImpl ( PyObject *  msg)
static

◆ GetCProtoInsidePyProtoImpl() [2/2]

static const Message* google::protobuf::python::GetCProtoInsidePyProtoImpl ( PyObject *  msg)
static

◆ GetCProtoInsidePyProtoStub() [1/2]

static const Message* google::protobuf::python::GetCProtoInsidePyProtoStub ( PyObject *  msg)
static

◆ GetCProtoInsidePyProtoStub() [2/2]

static const Message* google::protobuf::python::GetCProtoInsidePyProtoStub ( PyObject *  msg)
static

◆ GetDefaultDescriptorPool()

PyDescriptorPool * google::protobuf::python::GetDefaultDescriptorPool ( )

◆ GetDescriptorPool_FromPool()

PyDescriptorPool * google::protobuf::python::GetDescriptorPool_FromPool ( const DescriptorPool pool)

◆ GetEntryClass()

PyObject * google::protobuf::python::GetEntryClass ( PyObject *  _self)

◆ GetFileDescriptor() [1/5]

template<class DescriptorClass >
const FileDescriptor * google::protobuf::python::GetFileDescriptor ( const DescriptorClass *  descriptor)

◆ GetFileDescriptor() [2/5]

template<>
const FileDescriptor * google::protobuf::python::GetFileDescriptor ( const EnumValueDescriptor descriptor)

◆ GetFileDescriptor() [3/5]

template<>
const FileDescriptor * google::protobuf::python::GetFileDescriptor ( const FileDescriptor descriptor)

◆ GetFileDescriptor() [4/5]

template<>
const FileDescriptor * google::protobuf::python::GetFileDescriptor ( const MethodDescriptor descriptor)

◆ GetFileDescriptor() [5/5]

template<>
const FileDescriptor * google::protobuf::python::GetFileDescriptor ( const OneofDescriptor descriptor)

◆ GetFileDescriptorProto() [1/2]

static bool google::protobuf::python::GetFileDescriptorProto ( PyObject *  py_descriptor,
FileDescriptorProto output 
)
static

◆ GetFileDescriptorProto() [2/2]

static bool google::protobuf::python::GetFileDescriptorProto ( PyObject *  py_descriptor,
FileDescriptorProto output 
)
static

◆ GetIter() [1/2]

static MapIterator* google::protobuf::python::GetIter ( PyObject *  obj)
static

◆ GetIter() [2/2]

static MapIterator* google::protobuf::python::GetIter ( PyObject *  obj)
static

◆ GetMap() [1/2]

static MapContainer* google::protobuf::python::GetMap ( PyObject *  obj)
static

◆ GetMap() [2/2]

static MapContainer* google::protobuf::python::GetMap ( PyObject *  obj)
static

◆ GetMessageClassFromDescriptor()

static CMessageClass* google::protobuf::python::GetMessageClassFromDescriptor ( const Descriptor descriptor,
PyObject *  py_message_factory 
)
static

◆ GetMessageDescriptor() [1/2]

static const Descriptor* google::protobuf::python::GetMessageDescriptor ( PyTypeObject *  cls)
static

◆ GetMessageDescriptor() [2/2]

static const Descriptor* google::protobuf::python::GetMessageDescriptor ( PyTypeObject *  cls)
static

◆ GetMessageMap() [1/2]

static MessageMapContainer* google::protobuf::python::GetMessageMap ( PyObject *  obj)
static

◆ GetMessageMap() [2/2]

static MessageMapContainer* google::protobuf::python::GetMessageMap ( PyObject *  obj)
static

◆ GetOrBuildOptions() [1/2]

template<class DescriptorClass >
static PyObject* google::protobuf::python::GetOrBuildOptions ( const DescriptorClass *  descriptor)
static

◆ GetOrBuildOptions() [2/2]

template<class DescriptorClass >
static PyObject* google::protobuf::python::GetOrBuildOptions ( const DescriptorClass *  descriptor)
static

◆ InitDescriptor()

bool google::protobuf::python::InitDescriptor ( )

◆ InitDescriptorMappingTypes()

bool google::protobuf::python::InitDescriptorMappingTypes ( )

◆ InitDescriptorPool()

bool google::protobuf::python::InitDescriptorPool ( )

◆ INITFUNC()

PyMODINIT_FUNC google::protobuf::python::INITFUNC ( )

◆ InitGlobals()

void google::protobuf::python::InitGlobals ( )

◆ InitMapContainers()

bool google::protobuf::python::InitMapContainers ( )

◆ InitMessageFactory()

bool google::protobuf::python::InitMessageFactory ( )

◆ InitProto2MessageModule()

bool google::protobuf::python::InitProto2MessageModule ( PyObject *  m)

◆ IsValidNumericCast()

template<class Dest , class Source >
bool google::protobuf::python::IsValidNumericCast ( Source  source)
inline

◆ IsValidUTF8()

bool google::protobuf::python::IsValidUTF8 ( PyObject *  obj)

◆ IterNext()

PyObject * google::protobuf::python::IterNext ( PyObject *  _self)

◆ MapKeyToPython() [1/2]

static PyObject* google::protobuf::python::MapKeyToPython ( const FieldDescriptor field_descriptor,
const MapKey key 
)
static

◆ MapKeyToPython() [2/2]

static PyObject* google::protobuf::python::MapKeyToPython ( MapContainer self,
const MapKey key 
)
static

◆ MapValueRefToPython() [1/2]

PyObject* google::protobuf::python::MapValueRefToPython ( const FieldDescriptor field_descriptor,
const MapValueRef value 
)

◆ MapValueRefToPython() [2/2]

PyObject* google::protobuf::python::MapValueRefToPython ( MapContainer self,
const MapValueRef value 
)

◆ MessageMapDealloc() [1/2]

static void google::protobuf::python::MessageMapDealloc ( PyObject *  _self)
static

◆ MessageMapDealloc() [2/2]

static void google::protobuf::python::MessageMapDealloc ( PyObject *  _self)
static

◆ MessageMapGet()

PyObject * google::protobuf::python::MessageMapGet ( PyObject *  self,
PyObject *  args,
PyObject *  kwargs 
)

◆ MutableCProtoInsidePyProto()

Message * google::protobuf::python::MutableCProtoInsidePyProto ( PyObject *  msg)

◆ MutableCProtoInsidePyProtoImpl() [1/2]

static Message* google::protobuf::python::MutableCProtoInsidePyProtoImpl ( PyObject *  msg)
static

◆ MutableCProtoInsidePyProtoImpl() [2/2]

static Message* google::protobuf::python::MutableCProtoInsidePyProtoImpl ( PyObject *  msg)
static

◆ MutableCProtoInsidePyProtoStub() [1/2]

static Message* google::protobuf::python::MutableCProtoInsidePyProtoStub ( PyObject *  msg)
static

◆ MutableCProtoInsidePyProtoStub() [2/2]

static Message* google::protobuf::python::MutableCProtoInsidePyProtoStub ( PyObject *  msg)
static

◆ NewFieldProperty()

PyObject * google::protobuf::python::NewFieldProperty ( const FieldDescriptor field_descriptor)

◆ NewMessageMapContainer()

MessageMapContainer * google::protobuf::python::NewMessageMapContainer ( CMessage parent,
const google::protobuf::FieldDescriptor parent_field_descriptor,
CMessageClass message_class 
)

◆ NewScalarMapContainer()

MapContainer * google::protobuf::python::NewScalarMapContainer ( CMessage parent,
const google::protobuf::FieldDescriptor parent_field_descriptor 
)

◆ OutOfRangeError()

void google::protobuf::python::OutOfRangeError ( PyObject *  arg)

◆ PyDescriptor_AsVoidPtr()

const void * google::protobuf::python::PyDescriptor_AsVoidPtr ( PyObject *  obj)

◆ PyDescriptorPool_FromPool()

PyObject * google::protobuf::python::PyDescriptorPool_FromPool ( const DescriptorPool pool)

◆ PyEnumDescriptor_AsDescriptor()

const EnumDescriptor * google::protobuf::python::PyEnumDescriptor_AsDescriptor ( PyObject *  obj)

◆ PyEnumDescriptor_FromDescriptor()

PyObject * google::protobuf::python::PyEnumDescriptor_FromDescriptor ( const EnumDescriptor enum_descriptor)

◆ PyEnumValueDescriptor_FromDescriptor()

PyObject * google::protobuf::python::PyEnumValueDescriptor_FromDescriptor ( const EnumValueDescriptor enumvalue_descriptor)

◆ PyFieldDescriptor_AsDescriptor()

const FieldDescriptor * google::protobuf::python::PyFieldDescriptor_AsDescriptor ( PyObject *  obj)

◆ PyFieldDescriptor_FromDescriptor()

PyObject * google::protobuf::python::PyFieldDescriptor_FromDescriptor ( const FieldDescriptor field_descriptor)

◆ PyFileDescriptor_AsDescriptor()

const FileDescriptor * google::protobuf::python::PyFileDescriptor_AsDescriptor ( PyObject *  obj)

◆ PyFileDescriptor_FromDescriptor()

PyObject * google::protobuf::python::PyFileDescriptor_FromDescriptor ( const FileDescriptor file_descriptor)

◆ PyFileDescriptor_FromDescriptorWithSerializedPb()

PyObject * google::protobuf::python::PyFileDescriptor_FromDescriptorWithSerializedPb ( const FileDescriptor file_descriptor,
PyObject *  serialized_pb 
)

◆ PyInit__api_implementation()

PyMODINIT_FUNC google::protobuf::python::PyInit__api_implementation ( )

◆ PyMessage_GetMessagePointer()

const Message * google::protobuf::python::PyMessage_GetMessagePointer ( PyObject *  msg)

◆ PyMessage_GetMutableMessagePointer()

Message * google::protobuf::python::PyMessage_GetMutableMessagePointer ( PyObject *  msg)

◆ PyMessage_New()

PyObject * google::protobuf::python::PyMessage_New ( const Descriptor descriptor,
PyObject *  py_message_factory 
)

◆ PyMessage_NewMessageOwnedExternally()

PyObject * google::protobuf::python::PyMessage_NewMessageOwnedExternally ( Message message,
PyObject *  message_factory 
)

◆ PyMessageDescriptor_AsDescriptor()

const Descriptor * google::protobuf::python::PyMessageDescriptor_AsDescriptor ( PyObject *  obj)

◆ PyMessageDescriptor_FromDescriptor()

PyObject * google::protobuf::python::PyMessageDescriptor_FromDescriptor ( const Descriptor message_descriptor)

◆ PyMethodDescriptor_FromDescriptor()

PyObject * google::protobuf::python::PyMethodDescriptor_FromDescriptor ( const MethodDescriptor method_descriptor)

◆ PyOneofDescriptor_FromDescriptor()

PyObject * google::protobuf::python::PyOneofDescriptor_FromDescriptor ( const OneofDescriptor oneof_descriptor)

◆ PyProtoAPICapsuleName()

const char * google::protobuf::python::PyProtoAPICapsuleName ( )
inline

◆ PyServiceDescriptor_AsDescriptor()

const ServiceDescriptor * google::protobuf::python::PyServiceDescriptor_AsDescriptor ( PyObject *  obj)

◆ PyServiceDescriptor_FromDescriptor()

PyObject * google::protobuf::python::PyServiceDescriptor_FromDescriptor ( const ServiceDescriptor service_descriptor)

◆ PyString_FromCppString() [1/2]

PyObject* google::protobuf::python::PyString_FromCppString ( const std::string &  str)

◆ PyString_FromCppString() [2/2]

PyObject* google::protobuf::python::PyString_FromCppString ( const string &  str)

◆ PyStringToSTL() [1/2]

static bool google::protobuf::python::PyStringToSTL ( PyObject *  py_string,
std::string *  stl_string 
)
static

◆ PyStringToSTL() [2/2]

static bool google::protobuf::python::PyStringToSTL ( PyObject *  py_string,
string *  stl_string 
)
static

◆ PythonToMapKey() [1/2]

static bool google::protobuf::python::PythonToMapKey ( MapContainer self,
PyObject *  obj,
MapKey key 
)
static

◆ PythonToMapKey() [2/2]

static bool google::protobuf::python::PythonToMapKey ( PyObject *  obj,
const FieldDescriptor field_descriptor,
MapKey key 
)
static

◆ PythonToMapValueRef() [1/2]

static bool google::protobuf::python::PythonToMapValueRef ( MapContainer self,
PyObject *  obj,
bool  allow_unknown_enum_values,
MapValueRef value_ref 
)
static

◆ PythonToMapValueRef() [2/2]

static bool google::protobuf::python::PythonToMapValueRef ( PyObject *  obj,
const FieldDescriptor field_descriptor,
bool  allow_unknown_enum_values,
MapValueRef value_ref 
)
static

◆ Reparse()

bool google::protobuf::python::Reparse ( PyMessageFactory message_factory,
const Message from,
Message to 
)

◆ ScalarMapDealloc() [1/2]

static void google::protobuf::python::ScalarMapDealloc ( PyObject *  _self)
static

◆ ScalarMapDealloc() [2/2]

static void google::protobuf::python::ScalarMapDealloc ( PyObject *  _self)
static

◆ ScalarMapGet() [1/2]

static PyObject* google::protobuf::python::ScalarMapGet ( PyObject *  self,
PyObject *  args,
PyObject *  kwargs 
)
static

◆ ScalarMapGet() [2/2]

static PyObject* google::protobuf::python::ScalarMapGet ( PyObject *  self,
PyObject *  args,
PyObject *  kwargs 
)
static

◆ ToStringObject() [1/2]

PyObject * google::protobuf::python::ToStringObject ( const FieldDescriptor descriptor,
const std::string &  value 
)

◆ ToStringObject() [2/2]

PyObject * google::protobuf::python::ToStringObject ( const FieldDescriptor descriptor,
const string &  value 
)

◆ VerifyIntegerCastAndRange()

template<class RangeType , class ValueType >
bool google::protobuf::python::VerifyIntegerCastAndRange ( PyObject *  arg,
ValueType  value 
)

Variable Documentation

◆ _CFieldProperty_Type [1/2]

PyTypeObject google::protobuf::python::_CFieldProperty_Type
static

◆ _CFieldProperty_Type [2/2]

PyTypeObject google::protobuf::python::_CFieldProperty_Type
static

◆ _CMessage_Type [1/2]

CMessageClass google::protobuf::python::_CMessage_Type
static

◆ _CMessage_Type [2/2]

CMessageClass google::protobuf::python::_CMessage_Type
static

◆ _CMessageClass_Type [1/2]

PyTypeObject google::protobuf::python::_CMessageClass_Type
static

◆ _CMessageClass_Type [2/2]

PyTypeObject google::protobuf::python::_CMessageClass_Type
static

◆ _MessageMapContainer_Type

PyTypeObject google::protobuf::python::_MessageMapContainer_Type

◆ _module

struct PyModuleDef google::protobuf::python::_module
static
Initial value:
= {PyModuleDef_HEAD_INIT,
-1,
NULL,
NULL,
NULL,
NULL,
NULL}

Definition at line 81 of file protobuf/python/google/protobuf/internal/api_implementation.cc.

◆ _ScalarMapContainer_Type

PyTypeObject google::protobuf::python::_ScalarMapContainer_Type

◆ allow_oversize_protos

bool google::protobuf::python::allow_oversize_protos = false
static

◆ CFieldProperty_Type

PyTypeObject * google::protobuf::python::CFieldProperty_Type = &_CFieldProperty_Type

◆ CMessage_Type

PyTypeObject * google::protobuf::python::CMessage_Type = &_CMessage_Type.super.ht_type

◆ CMessageClass_Type

PyTypeObject * google::protobuf::python::CMessageClass_Type = &_CMessageClass_Type

◆ DecodeError_class

PyObject * google::protobuf::python::DecodeError_class

◆ descriptor_pool_map [1/2]

std::unordered_map<const DescriptorPool*, PyDescriptorPool*>* google::protobuf::python::descriptor_pool_map
static

◆ descriptor_pool_map [2/2]

std::unordered_map<const DescriptorPool*, PyDescriptorPool*>* google::protobuf::python::descriptor_pool_map
static

◆ EncodeError_class

PyObject * google::protobuf::python::EncodeError_class

◆ EnumTypeWrapper_class

PyObject * google::protobuf::python::EnumTypeWrapper_class

◆ ExtensionDict_Type

PyTypeObject google::protobuf::python::ExtensionDict_Type

◆ ExtensionIterator_Type

PyTypeObject google::protobuf::python::ExtensionIterator_Type

◆ GetByCamelcaseNameMethod

const typedef void *(* google::protobuf::python::GetByCamelcaseNameMethod)(PyContainer *self, ConstStringParam name)

◆ GetByIndexMethod

const typedef void *(* google::protobuf::python::GetByIndexMethod)(PyContainer *self, int index)

◆ GetByNameMethod

const typedef void *(* google::protobuf::python::GetByNameMethod)(PyContainer *self, ConstStringParam name)

◆ GetByNumberMethod

const typedef void *(* google::protobuf::python::GetByNumberMethod)(PyContainer *self, int index)

◆ GetCProtoInsidePyProtoPtr

const Message *(* google::protobuf::python::GetCProtoInsidePyProtoPtr)(PyObject *msg)

◆ GetItemCamelcaseNameMethod

const typedef std::string &(* google::protobuf::python::GetItemCamelcaseNameMethod)(const void *descriptor)

◆ GetItemNameMethod

const typedef std::string &(* google::protobuf::python::GetItemNameMethod)(const void *descriptor)

◆ interned_descriptors

std::unordered_map< const void *, PyObject * > * google::protobuf::python::interned_descriptors

◆ kDESCRIPTOR [1/2]

PyObject* google::protobuf::python::kDESCRIPTOR
static

◆ kDESCRIPTOR [2/2]

PyObject* google::protobuf::python::kDESCRIPTOR
static

◆ kEmptyWeakref [1/2]

PyObject* google::protobuf::python::kEmptyWeakref
static

◆ kEmptyWeakref [2/2]

PyObject* google::protobuf::python::kEmptyWeakref
static

◆ kImplVersion [1/2]

int google::protobuf::python::kImplVersion = -1
static

◆ kImplVersion [2/2]

int google::protobuf::python::kImplVersion = -1
static

◆ kImplVersionName [1/2]

const char* google::protobuf::python::kImplVersionName = "api_version"
static

◆ kImplVersionName [2/2]

const char* google::protobuf::python::kImplVersionName = "api_version"
static

◆ kModuleDocstring [1/2]

const char google::protobuf::python::kModuleDocstring[]
static
Initial value:
=
"_api_implementation is a module that exposes compile-time constants that\n"
"determine the default API implementation to use for Python proto2.\n"
"\n"
"It complements api_implementation.py by setting defaults using "
"compile-time\n"
"constants defined in C, such that one can set defaults at compilation\n"
"(e.g. with blaze flag --copt=-DPYTHON_PROTO2_CPP_IMPL_V2)."

Definition at line 71 of file bloaty/third_party/protobuf/python/google/protobuf/internal/api_implementation.cc.

◆ kModuleDocstring [2/2]

const char google::protobuf::python::kModuleDocstring[]
static
Initial value:
=
"_api_implementation is a module that exposes compile-time constants that\n"
"determine the default API implementation to use for Python proto2.\n"
"\n"
"It complements api_implementation.py by setting defaults using "
"compile-time\n"
"constants defined in C, such that one can set defaults at compilation\n"
"(e.g. with blaze flag --copt=-DPYTHON_PROTO2_CPP_IMPL_V2)."

Definition at line 72 of file protobuf/python/google/protobuf/internal/api_implementation.cc.

◆ kModuleName [1/2]

const char* google::protobuf::python::kModuleName = "_api_implementation"
static

◆ kModuleName [2/2]

const char* google::protobuf::python::kModuleName = "_api_implementation"
static

◆ MapIterator_Type

PyTypeObject google::protobuf::python::MapIterator_Type

◆ MessageMapContainer_Type

PyTypeObject * google::protobuf::python::MessageMapContainer_Type

◆ MessageMapContainer_Type_slots

PyType_Slot google::protobuf::python::MessageMapContainer_Type_slots[]
static
Initial value:
= {
{Py_tp_dealloc, (void*)MessageMapDealloc},
{Py_mp_length, (void*)MapReflectionFriend::Length},
{Py_mp_subscript, (void*)MapReflectionFriend::MessageMapGetItem},
{Py_mp_ass_subscript, (void*)MapReflectionFriend::MessageMapSetItem},
{Py_tp_methods, (void*)MessageMapMethods},
{Py_tp_iter, (void*)MapReflectionFriend::GetIterator},
{Py_tp_repr, (void*)MapReflectionFriend::MessageMapToStr},
{0, 0}}

Definition at line 766 of file protobuf/python/google/protobuf/pyext/map_container.cc.

◆ MessageMapContainer_Type_spec

PyType_Spec google::protobuf::python::MessageMapContainer_Type_spec
Initial value:
= {
FULL_MODULE_NAME ".MessageMapContainer", sizeof(MessageMapContainer), 0,
Py_TPFLAGS_DEFAULT, MessageMapContainer_Type_slots}

Definition at line 776 of file protobuf/python/google/protobuf/pyext/map_container.cc.

◆ MessageMapMappingMethods

PyMappingMethods google::protobuf::python::MessageMapMappingMethods
static
Initial value:
= {
MapReflectionFriend::MessageMapGetItem,
MapReflectionFriend::MessageMapSetItem,
}

Definition at line 859 of file bloaty/third_party/protobuf/python/google/protobuf/pyext/map_container.cc.

◆ MessageMapMethods [1/2]

PyMethodDef google::protobuf::python::MessageMapMethods[]
static
Initial value:
= {
{"__contains__", (PyCFunction)MapReflectionFriend::Contains, METH_O,
"Tests whether the map contains this element."},
{"clear", (PyCFunction)Clear, METH_NOARGS,
"Removes all elements from the map."},
{"get", (PyCFunction)MessageMapGet, METH_VARARGS | METH_KEYWORDS,
"Gets the value for the given key if present, or otherwise a default"},
{"get_or_create", MapReflectionFriend::MessageMapGetItem, METH_O,
"Alias for getitem, useful to make explicit that the map is mutated."},
{"GetEntryClass", (PyCFunction)GetEntryClass, METH_NOARGS,
"Return the class used to build Entries of (key, value) pairs."},
{"MergeFrom", (PyCFunction)MapReflectionFriend::MergeFrom, METH_O,
"Merges a map into the current map."},
{NULL, NULL},
}

Definition at line 743 of file protobuf/python/google/protobuf/pyext/map_container.cc.

◆ MessageMapMethods [2/2]

PyMethodDef google::protobuf::python::MessageMapMethods[]
static
Initial value:
= {
{"__contains__", (PyCFunction)MapReflectionFriend::Contains, METH_O,
"Tests whether the map contains this element."},
{"clear", (PyCFunction)Clear, METH_NOARGS,
"Removes all elements from the map."},
{"get", (PyCFunction)MessageMapGet, METH_VARARGS | METH_KEYWORDS,
"Gets the value for the given key if present, or otherwise a default"},
{"get_or_create", MapReflectionFriend::MessageMapGetItem, METH_O,
"Alias for getitem, useful to make explicit that the map is mutated."},
{"GetEntryClass", (PyCFunction)GetEntryClass, METH_NOARGS,
"Return the class used to build Entries of (key, value) pairs."},
{"MergeFrom", (PyCFunction)MapReflectionFriend::MergeFrom, METH_O,
"Merges a map into the current map."},
{NULL, NULL},
}

Definition at line 816 of file bloaty/third_party/protobuf/python/google/protobuf/pyext/map_container.cc.

◆ MutableCProtoInsidePyProtoPtr

Message *(* google::protobuf::python::MutableCProtoInsidePyProtoPtr)(PyObject *msg)

◆ PickleError_class

PyObject * google::protobuf::python::PickleError_class

◆ PyDescriptorPool_Type

PyTypeObject google::protobuf::python::PyDescriptorPool_Type

◆ PyEnumDescriptor_Type

PyTypeObject google::protobuf::python::PyEnumDescriptor_Type

◆ PyEnumValueDescriptor_Type

PyTypeObject google::protobuf::python::PyEnumValueDescriptor_Type

◆ PyFieldDescriptor_Type

PyTypeObject google::protobuf::python::PyFieldDescriptor_Type

◆ PyFileDescriptor_Type

PyTypeObject google::protobuf::python::PyFileDescriptor_Type

◆ PyMessageDescriptor_Type

PyTypeObject google::protobuf::python::PyMessageDescriptor_Type

◆ PyMessageFactory_Type

PyTypeObject google::protobuf::python::PyMessageFactory_Type

◆ PyMethodDescriptor_Type

PyTypeObject google::protobuf::python::PyMethodDescriptor_Type

◆ PyOneofDescriptor_Type

PyTypeObject google::protobuf::python::PyOneofDescriptor_Type

◆ PyServiceDescriptor_Type

PyTypeObject google::protobuf::python::PyServiceDescriptor_Type

◆ python_generated_pool [1/2]

PyDescriptorPool* google::protobuf::python::python_generated_pool = NULL
static

◆ python_generated_pool [2/2]

PyDescriptorPool* google::protobuf::python::python_generated_pool = NULL
static

◆ PythonMessage_class [1/2]

PyObject* google::protobuf::python::PythonMessage_class
static

◆ PythonMessage_class [2/2]

PyObject* google::protobuf::python::PythonMessage_class
static

◆ PyUnknownFieldRef_Type

PyTypeObject google::protobuf::python::PyUnknownFieldRef_Type

◆ PyUnknownFields_Type

PyTypeObject google::protobuf::python::PyUnknownFields_Type

◆ RepeatedCompositeContainer_Type

PyTypeObject google::protobuf::python::RepeatedCompositeContainer_Type

◆ RepeatedScalarContainer_Type

PyTypeObject google::protobuf::python::RepeatedScalarContainer_Type

◆ ScalarMapContainer_Type

PyTypeObject * google::protobuf::python::ScalarMapContainer_Type

◆ ScalarMapContainer_Type_slots

PyType_Slot google::protobuf::python::ScalarMapContainer_Type_slots[]
static
Initial value:
= {
{Py_tp_dealloc, (void*)ScalarMapDealloc},
{Py_mp_length, (void*)MapReflectionFriend::Length},
{Py_mp_subscript, (void*)MapReflectionFriend::ScalarMapGetItem},
{Py_mp_ass_subscript, (void*)MapReflectionFriend::ScalarMapSetItem},
{Py_tp_methods, (void*)ScalarMapMethods},
{Py_tp_iter, (void*)MapReflectionFriend::GetIterator},
{Py_tp_repr, (void*)MapReflectionFriend::ScalarMapToStr},
{0, 0},
}

Definition at line 549 of file protobuf/python/google/protobuf/pyext/map_container.cc.

◆ ScalarMapContainer_Type_spec

PyType_Spec google::protobuf::python::ScalarMapContainer_Type_spec
Initial value:
= {
FULL_MODULE_NAME ".ScalarMapContainer", sizeof(MapContainer), 0,
Py_TPFLAGS_DEFAULT, ScalarMapContainer_Type_slots}

Definition at line 560 of file protobuf/python/google/protobuf/pyext/map_container.cc.

◆ ScalarMapMappingMethods

PyMappingMethods google::protobuf::python::ScalarMapMappingMethods
static
Initial value:
= {
MapReflectionFriend::ScalarMapGetItem,
MapReflectionFriend::ScalarMapSetItem,
}

Definition at line 577 of file bloaty/third_party/protobuf/python/google/protobuf/pyext/map_container.cc.

◆ ScalarMapMethods [1/2]

PyMethodDef google::protobuf::python::ScalarMapMethods[]
static
Initial value:
= {
{"__contains__", MapReflectionFriend::Contains, METH_O,
"Tests whether a key is a member of the map."},
{"clear", (PyCFunction)Clear, METH_NOARGS,
"Removes all elements from the map."},
{"get", (PyCFunction)ScalarMapGet, METH_VARARGS | METH_KEYWORDS,
"Gets the value for the given key if present, or otherwise a default"},
{"GetEntryClass", (PyCFunction)GetEntryClass, METH_NOARGS,
"Return the class used to build Entries of (key, value) pairs."},
{"MergeFrom", (PyCFunction)MapReflectionFriend::MergeFrom, METH_O,
"Merges a map into the current map."},
{NULL, NULL},
}

Definition at line 528 of file protobuf/python/google/protobuf/pyext/map_container.cc.

◆ ScalarMapMethods [2/2]

PyMethodDef google::protobuf::python::ScalarMapMethods[]
static
Initial value:
= {
{"__contains__", MapReflectionFriend::Contains, METH_O,
"Tests whether a key is a member of the map."},
{"clear", (PyCFunction)Clear, METH_NOARGS,
"Removes all elements from the map."},
{"get", (PyCFunction)ScalarMapGet, METH_VARARGS | METH_KEYWORDS,
"Gets the value for the given key if present, or otherwise a default"},
{"GetEntryClass", (PyCFunction)GetEntryClass, METH_NOARGS,
"Return the class used to build Entries of (key, value) pairs."},
{"MergeFrom", (PyCFunction)MapReflectionFriend::MergeFrom, METH_O,
"Merges a map into the current map."},
{NULL, NULL},
}

Definition at line 536 of file bloaty/third_party/protobuf/python/google/protobuf/pyext/map_container.cc.

◆ WKT_classes [1/2]

PyObject* google::protobuf::python::WKT_classes = NULL
static

◆ WKT_classes [2/2]

PyObject* google::protobuf::python::WKT_classes = NULL
static
google::protobuf::python::kModuleDocstring
static const char kModuleDocstring[]
Definition: protobuf/python/google/protobuf/internal/api_implementation.cc:72
google::protobuf.internal.python_message.MergeFrom
MergeFrom
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1339
google::protobuf::python::kModuleName
static const char * kModuleName
Definition: protobuf/python/google/protobuf/internal/api_implementation.cc:71
FULL_MODULE_NAME
#define FULL_MODULE_NAME
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/message.h:331
google::protobuf::python::MessageMapGet
PyObject * MessageMapGet(PyObject *self, PyObject *args, PyObject *kwargs)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/map_container.cc:778
google::protobuf::python::MessageMapMethods
static PyMethodDef MessageMapMethods[]
Definition: protobuf/python/google/protobuf/pyext/map_container.cc:743
google::protobuf::python::ScalarMapDealloc
static void ScalarMapDealloc(PyObject *_self)
Definition: protobuf/python/google/protobuf/pyext/map_container.cc:517
absl::Length
size_t Length(TestCordSize size)
Definition: abseil-cpp/absl/strings/cord_test_helpers.h:80
google::protobuf::python::MutableCProtoInsidePyProtoStub
static Message * MutableCProtoInsidePyProtoStub(PyObject *msg)
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_protobuf.cc:40
google::protobuf::python::MessageMapDealloc
static void MessageMapDealloc(PyObject *_self)
Definition: protobuf/python/google/protobuf/pyext/map_container.cc:731
google::protobuf::python::GetEntryClass
PyObject * GetEntryClass(PyObject *_self)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/map_container.cc:328
google::protobuf::python::MessageMapContainer_Type_slots
static PyType_Slot MessageMapContainer_Type_slots[]
Definition: protobuf/python/google/protobuf/pyext/map_container.cc:766
google::protobuf::python::ScalarMapContainer_Type_slots
static PyType_Slot ScalarMapContainer_Type_slots[]
Definition: protobuf/python/google/protobuf/pyext/map_container.cc:549
absl::container_internal::internal_layout::Contains
absl::disjunction< std::is_same< T, Ts >... > Contains
Definition: abseil-cpp/absl/container/internal/layout.h:253
google::protobuf.internal.python_message.Clear
Clear
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_message.py:1430
google::protobuf::python::ScalarMapMethods
static PyMethodDef ScalarMapMethods[]
Definition: protobuf/python/google/protobuf/pyext/map_container.cc:528
google::protobuf::python::Clear
PyObject * Clear(PyObject *_self)
Definition: bloaty/third_party/protobuf/python/google/protobuf/pyext/map_container.cc:318
google::protobuf::python::GetCProtoInsidePyProtoStub
static const Message * GetCProtoInsidePyProtoStub(PyObject *msg)
Definition: bloaty/third_party/protobuf/python/google/protobuf/internal/python_protobuf.cc:39
google::protobuf::python::ScalarMapGet
static PyObject * ScalarMapGet(PyObject *self, PyObject *args, PyObject *kwargs)
Definition: protobuf/python/google/protobuf/pyext/map_container.cc:459


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