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
 
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
 
typedef struct google::protobuf::python::PyUnknownFieldRef UknownFieldRef
 

Functions

bool _CalledFromGeneratedFile (int stacklevel)
 
static bool AddEnumValues (PyTypeObject *type, const EnumDescriptor *enum_descriptor)
 
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)
 
template<class Dest , class Source >
Dest checked_numeric_cast (Source source)
 
bool CheckFieldBelongsToMessage (const FieldDescriptor *field_descriptor, const Message *message)
 
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)
 
static void DeallocMapIterator (PyObject *_self)
 
void FormatTypeError (PyObject *arg, char *expected_types)
 
static PyObject * GetCMessage (MessageMapContainer *self, Message *message)
 
const MessageGetCProtoInsidePyProto (PyObject *msg)
 
static const MessageGetCProtoInsidePyProtoImpl (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 MapIteratorGetIter (PyObject *obj)
 
static MapContainerGetMap (PyObject *obj)
 
static const DescriptorGetMessageDescriptor (PyTypeObject *cls)
 
static MessageMapContainerGetMessageMap (PyObject *obj)
 
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)
 
PyObject * MapValueRefToPython (const FieldDescriptor *field_descriptor, const MapValueRef &value)
 
static void MessageMapDealloc (PyObject *_self)
 
PyObject * MessageMapGet (PyObject *self, PyObject *args, PyObject *kwargs)
 
MessageMutableCProtoInsidePyProto (PyObject *msg)
 
static MessageMutableCProtoInsidePyProtoImpl (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 voidPyDescriptor_AsVoidPtr (PyObject *obj)
 
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)
 
const MessagePyMessage_GetMessagePointer (PyObject *msg)
 
MessagePyMessage_GetMutableMessagePointer (PyObject *msg)
 
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 string &str)
 
static bool PyStringToSTL (PyObject *py_string, string *stl_string)
 
static bool PythonToMapKey (PyObject *obj, const FieldDescriptor *field_descriptor, MapKey *key)
 
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 PyObject * ScalarMapGet (PyObject *self, PyObject *args, PyObject *kwargs)
 
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 CMessageClass _CMessage_Type
 
static PyTypeObject _CMessageClass_Type
 
PyTypeObject _MessageMapContainer_Type
 
PyTypeObject _ScalarMapContainer_Type
 
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
 
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 * kEmptyWeakref
 
static int kImplVersion = -1
 
static const char * kImplVersionName = "api_version"
 
static const char kModuleDocstring []
 
static const char * kModuleName = "_api_implementation"
 
PyTypeObject MapIterator_Type
 
PyTypeObject * MessageMapContainer_Type
 
static PyMappingMethods MessageMapMappingMethods
 
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 PyObject * PythonMessage_class
 
PyTypeObject PyUnknownFieldRef_Type
 
PyTypeObject PyUnknownFields_Type
 
PyTypeObject RepeatedCompositeContainer_Type
 
PyTypeObject RepeatedScalarContainer_Type
 
PyTypeObject * ScalarMapContainer_Type
 
static PyMappingMethods ScalarMapMappingMethods
 
static PyMethodDef ScalarMapMethods []
 
static PyObject * WKT_classes = NULL
 

Typedef Documentation

◆ CMessage

◆ CountMethod

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

Definition at line 81 of file descriptor_containers.cc.

◆ ExtensionDict

◆ GetItemIndexMethod

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

Definition at line 91 of file descriptor_containers.cc.

◆ GetItemNumberMethod

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

Definition at line 90 of file descriptor_containers.cc.

◆ NewObjectFromItemMethod

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

Definition at line 87 of file descriptor_containers.cc.

◆ PyBaseDescriptor

◆ PyDescriptorPool

◆ PyFileDescriptor

◆ PyUnknownFields

◆ RepeatedCompositeContainer

◆ RepeatedScalarContainer

◆ ScopedPyObjectPtr

Definition at line 95 of file scoped_pyobject_ptr.h.

◆ UknownFieldRef

Function Documentation

◆ _CalledFromGeneratedFile()

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

Definition at line 99 of file python/google/protobuf/pyext/descriptor.cc.

◆ AddEnumValues()

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

Definition at line 1884 of file python/google/protobuf/pyext/descriptor.cc.

◆ AddIntConstant()

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

Definition at line 1900 of file python/google/protobuf/pyext/descriptor.cc.

◆ AllowInvalidUTF8()

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

Definition at line 725 of file python/google/protobuf/pyext/message.cc.

◆ 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 
)

Definition at line 693 of file python/google/protobuf/pyext/message.cc.

◆ CheckAndGetDouble()

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

Definition at line 675 of file python/google/protobuf/pyext/message.cc.

◆ CheckAndGetFloat()

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

Definition at line 684 of file python/google/protobuf/pyext/message.cc.

◆ CheckAndGetInteger()

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

Definition at line 590 of file python/google/protobuf/pyext/message.cc.

◆ CheckAndGetInteger< int32 >()

◆ CheckAndGetInteger< int64 >()

◆ CheckAndGetInteger< uint32 >()

◆ CheckAndGetInteger< uint64 >()

◆ CheckAndSetString()

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

Definition at line 769 of file python/google/protobuf/pyext/message.cc.

◆ CheckCalledFromGeneratedFile()

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

Definition at line 150 of file python/google/protobuf/pyext/descriptor.cc.

◆ checked_numeric_cast()

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

Definition at line 155 of file safe_numerics.h.

◆ CheckFieldBelongsToMessage()

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

Definition at line 816 of file python/google/protobuf/pyext/message.cc.

◆ CheckMessageClass()

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

Definition at line 515 of file python/google/protobuf/pyext/message.cc.

◆ CheckString()

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

Definition at line 727 of file python/google/protobuf/pyext/message.cc.

◆ Clear()

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

Definition at line 318 of file map_container.cc.

◆ CopyToPythonProto()

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

Definition at line 287 of file python/google/protobuf/pyext/descriptor.cc.

◆ DeallocMapIterator()

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

Definition at line 973 of file map_container.cc.

◆ FormatTypeError()

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

Definition at line 546 of file python/google/protobuf/pyext/message.cc.

◆ GetCMessage()

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

Definition at line 631 of file map_container.cc.

◆ GetCProtoInsidePyProto()

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

Definition at line 50 of file python_protobuf.cc.

◆ GetCProtoInsidePyProtoImpl()

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

Definition at line 2843 of file python/google/protobuf/pyext/message.cc.

◆ GetCProtoInsidePyProtoStub()

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

Definition at line 39 of file python_protobuf.cc.

◆ GetDefaultDescriptorPool()

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

Definition at line 751 of file descriptor_pool.cc.

◆ GetDescriptorPool_FromPool()

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

Definition at line 755 of file descriptor_pool.cc.

◆ GetEntryClass()

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

Definition at line 328 of file map_container.cc.

◆ GetFileDescriptor() [1/5]

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

Definition at line 172 of file python/google/protobuf/pyext/descriptor.cc.

◆ GetFileDescriptor() [2/5]

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

Definition at line 180 of file python/google/protobuf/pyext/descriptor.cc.

◆ GetFileDescriptor() [3/5]

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

Definition at line 176 of file python/google/protobuf/pyext/descriptor.cc.

◆ GetFileDescriptor() [4/5]

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

Definition at line 188 of file python/google/protobuf/pyext/descriptor.cc.

◆ GetFileDescriptor() [5/5]

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

Definition at line 184 of file python/google/protobuf/pyext/descriptor.cc.

◆ GetFileDescriptorProto()

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

◆ GetIter()

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

Definition at line 908 of file map_container.cc.

◆ GetMap()

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

Definition at line 307 of file map_container.cc.

◆ GetMessageDescriptor()

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

Definition at line 523 of file python/google/protobuf/pyext/message.cc.

◆ GetMessageMap()

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

Definition at line 627 of file map_container.cc.

◆ GetOrBuildOptions()

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

Definition at line 215 of file python/google/protobuf/pyext/descriptor.cc.

◆ InitDescriptor()

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

Definition at line 1909 of file python/google/protobuf/pyext/descriptor.cc.

◆ InitDescriptorMappingTypes()

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

Definition at line 1778 of file descriptor_containers.cc.

◆ InitDescriptorPool()

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

Definition at line 723 of file descriptor_pool.cc.

◆ INITFUNC()

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

Definition at line 98 of file api_implementation.cc.

◆ InitGlobals()

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

Definition at line 2921 of file python/google/protobuf/pyext/message.cc.

◆ InitMapContainers()

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

Definition at line 1020 of file map_container.cc.

◆ InitMessageFactory()

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

Definition at line 293 of file message_factory.cc.

◆ InitProto2MessageModule()

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

Definition at line 2932 of file python/google/protobuf/pyext/message.cc.

◆ IsValidNumericCast()

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

Definition at line 132 of file safe_numerics.h.

◆ IsValidUTF8()

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

Definition at line 706 of file python/google/protobuf/pyext/message.cc.

◆ IterNext()

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

Definition at line 406 of file extension_dict.cc.

◆ MapKeyToPython()

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

Definition at line 174 of file map_container.cc.

◆ MapValueRefToPython()

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

Definition at line 199 of file map_container.cc.

◆ MessageMapDealloc()

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

Definition at line 805 of file map_container.cc.

◆ MessageMapGet()

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

Definition at line 779 of file map_container.cc.

◆ MutableCProtoInsidePyProto()

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

Definition at line 53 of file python_protobuf.cc.

◆ MutableCProtoInsidePyProtoImpl()

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

Definition at line 2852 of file python/google/protobuf/pyext/message.cc.

◆ MutableCProtoInsidePyProtoStub()

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

Definition at line 40 of file python_protobuf.cc.

◆ NewFieldProperty()

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

Definition at line 129 of file field.cc.

◆ NewMessageMapContainer()

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

Definition at line 639 of file map_container.cc.

◆ NewScalarMapContainer()

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

Definition at line 375 of file map_container.cc.

◆ OutOfRangeError()

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

Definition at line 561 of file python/google/protobuf/pyext/message.cc.

◆ PyDescriptor_AsVoidPtr()

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

Definition at line 456 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyEnumDescriptor_AsDescriptor()

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

Definition at line 1198 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyEnumDescriptor_FromDescriptor()

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

Definition at line 1192 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyEnumValueDescriptor_FromDescriptor()

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

Definition at line 1312 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyFieldDescriptor_AsDescriptor()

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

Definition at line 1043 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyFieldDescriptor_FromDescriptor()

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

Definition at line 1037 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyFileDescriptor_AsDescriptor()

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

Definition at line 1522 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyFileDescriptor_FromDescriptor()

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

Definition at line 1496 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyFileDescriptor_FromDescriptorWithSerializedPb()

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

Definition at line 1502 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyMessage_GetMessagePointer()

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

Definition at line 2861 of file python/google/protobuf/pyext/message.cc.

◆ PyMessage_GetMutableMessagePointer()

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

Definition at line 2870 of file python/google/protobuf/pyext/message.cc.

◆ PyMessage_NewMessageOwnedExternally()

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

Definition at line 2893 of file python/google/protobuf/pyext/message.cc.

◆ PyMessageDescriptor_AsDescriptor()

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

Definition at line 728 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyMessageDescriptor_FromDescriptor()

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

Definition at line 722 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyMethodDescriptor_FromDescriptor()

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

Definition at line 1877 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyOneofDescriptor_FromDescriptor()

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

Definition at line 1647 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyProtoAPICapsuleName()

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

Definition at line 87 of file proto_api.h.

◆ PyServiceDescriptor_AsDescriptor()

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

Definition at line 1771 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyServiceDescriptor_FromDescriptor()

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

Definition at line 1765 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyString_FromCppString()

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

Definition at line 78 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyStringToSTL()

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

Definition at line 111 of file map_container.cc.

◆ PythonToMapKey()

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

Definition at line 128 of file map_container.cc.

◆ PythonToMapValueRef()

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

Definition at line 230 of file map_container.cc.

◆ Reparse()

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

Definition at line 192 of file python/google/protobuf/pyext/descriptor.cc.

◆ ScalarMapDealloc()

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

Definition at line 526 of file map_container.cc.

◆ ScalarMapGet()

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

Definition at line 467 of file map_container.cc.

◆ ToStringObject()

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

Definition at line 798 of file python/google/protobuf/pyext/message.cc.

◆ VerifyIntegerCastAndRange()

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

Definition at line 572 of file python/google/protobuf/pyext/message.cc.

Variable Documentation

◆ _CFieldProperty_Type

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

Definition at line 87 of file field.cc.

◆ _CMessage_Type

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

Definition at line 2795 of file python/google/protobuf/pyext/message.cc.

◆ _CMessageClass_Type

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

Definition at line 473 of file python/google/protobuf/pyext/message.cc.

◆ _MessageMapContainer_Type

PyTypeObject google::protobuf::python::_MessageMapContainer_Type

Definition at line 866 of file map_container.cc.

◆ _ScalarMapContainer_Type

PyTypeObject google::protobuf::python::_ScalarMapContainer_Type

Definition at line 584 of file map_container.cc.

◆ CFieldProperty_Type

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

Definition at line 127 of file field.cc.

◆ CMessage_Type

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

Definition at line 2836 of file python/google/protobuf/pyext/message.cc.

◆ CMessageClass_Type

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

Definition at line 513 of file python/google/protobuf/pyext/message.cc.

◆ DecodeError_class

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

Definition at line 541 of file python/google/protobuf/pyext/message.cc.

◆ descriptor_pool_map

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

Definition at line 66 of file descriptor_pool.cc.

◆ EncodeError_class

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

Definition at line 540 of file python/google/protobuf/pyext/message.cc.

◆ EnumTypeWrapper_class

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

Definition at line 102 of file python/google/protobuf/pyext/message.cc.

◆ ExtensionDict_Type

PyTypeObject google::protobuf::python::ExtensionDict_Type

Definition at line 367 of file extension_dict.cc.

◆ ExtensionIterator_Type

PyTypeObject google::protobuf::python::ExtensionIterator_Type

Definition at line 434 of file extension_dict.cc.

◆ GetByCamelcaseNameMethod

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

Definition at line 84 of file descriptor_containers.cc.

◆ GetByIndexMethod

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

Definition at line 82 of file descriptor_containers.cc.

◆ GetByNameMethod

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

Definition at line 83 of file descriptor_containers.cc.

◆ GetByNumberMethod

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

Definition at line 86 of file descriptor_containers.cc.

◆ GetCProtoInsidePyProtoPtr

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

Definition at line 45 of file python_protobuf.cc.

◆ GetItemCamelcaseNameMethod

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

Definition at line 89 of file descriptor_containers.cc.

◆ GetItemNameMethod

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

Definition at line 88 of file descriptor_containers.cc.

◆ interned_descriptors

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

Definition at line 76 of file python/google/protobuf/pyext/descriptor.cc.

◆ kDESCRIPTOR

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

Definition at line 101 of file python/google/protobuf/pyext/message.cc.

◆ kEmptyWeakref

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

Definition at line 104 of file python/google/protobuf/pyext/message.cc.

◆ kImplVersion

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

Definition at line 62 of file api_implementation.cc.

◆ kImplVersionName

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

Definition at line 68 of file api_implementation.cc.

◆ kModuleDocstring

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 api_implementation.cc.

◆ kModuleName

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

Definition at line 70 of file api_implementation.cc.

◆ MapIterator_Type

PyTypeObject google::protobuf::python::MapIterator_Type

Definition at line 981 of file map_container.cc.

◆ MessageMapContainer_Type

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

Definition at line 839 of file map_container.cc.

◆ MessageMapMappingMethods

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

Definition at line 860 of file map_container.cc.

◆ MessageMapMethods

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 817 of file map_container.cc.

◆ MutableCProtoInsidePyProtoPtr

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

Definition at line 47 of file python_protobuf.cc.

◆ PickleError_class

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

Definition at line 542 of file python/google/protobuf/pyext/message.cc.

◆ PyDescriptorPool_Type

PyTypeObject google::protobuf::python::PyDescriptorPool_Type

Definition at line 677 of file descriptor_pool.cc.

◆ PyEnumDescriptor_Type

PyTypeObject google::protobuf::python::PyEnumDescriptor_Type

Definition at line 1158 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyEnumValueDescriptor_Type

PyTypeObject google::protobuf::python::PyEnumValueDescriptor_Type

Definition at line 1278 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyFieldDescriptor_Type

PyTypeObject google::protobuf::python::PyFieldDescriptor_Type

Definition at line 1003 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyFileDescriptor_Type

PyTypeObject google::protobuf::python::PyFileDescriptor_Type

Definition at line 1454 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyMessageDescriptor_Type

PyTypeObject google::protobuf::python::PyMessageDescriptor_Type

Definition at line 688 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyMessageFactory_Type

PyTypeObject google::protobuf::python::PyMessageFactory_Type

Definition at line 251 of file message_factory.cc.

◆ PyMethodDescriptor_Type

PyTypeObject google::protobuf::python::PyMethodDescriptor_Type

Definition at line 1843 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyOneofDescriptor_Type

PyTypeObject google::protobuf::python::PyOneofDescriptor_Type

Definition at line 1613 of file python/google/protobuf/pyext/descriptor.cc.

◆ PyServiceDescriptor_Type

PyTypeObject google::protobuf::python::PyServiceDescriptor_Type

Definition at line 1731 of file python/google/protobuf/pyext/descriptor.cc.

◆ python_generated_pool

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

Definition at line 721 of file descriptor_pool.cc.

◆ PythonMessage_class

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

Definition at line 103 of file python/google/protobuf/pyext/message.cc.

◆ PyUnknownFieldRef_Type

PyTypeObject google::protobuf::python::PyUnknownFieldRef_Type

Definition at line 315 of file unknown_fields.cc.

◆ PyUnknownFields_Type

PyTypeObject google::protobuf::python::PyUnknownFields_Type

Definition at line 158 of file unknown_fields.cc.

◆ RepeatedCompositeContainer_Type

PyTypeObject google::protobuf::python::RepeatedCompositeContainer_Type

Definition at line 539 of file repeated_composite_container.cc.

◆ RepeatedScalarContainer_Type

PyTypeObject google::protobuf::python::RepeatedScalarContainer_Type

Definition at line 737 of file repeated_scalar_container.cc.

◆ ScalarMapContainer_Type

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

Definition at line 557 of file map_container.cc.

◆ ScalarMapMappingMethods

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

Definition at line 578 of file map_container.cc.

◆ ScalarMapMethods

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 537 of file map_container.cc.

◆ WKT_classes

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

Definition at line 105 of file python/google/protobuf/pyext/message.cc.

NULL
NULL
Definition: test_security_zap.cpp:405
google::protobuf.internal.python_message.MergeFrom
MergeFrom
Definition: python_message.py:1340
google::protobuf::python::MessageMapGet
PyObject * MessageMapGet(PyObject *self, PyObject *args, PyObject *kwargs)
Definition: map_container.cc:779
google::protobuf::python::MutableCProtoInsidePyProtoStub
static Message * MutableCProtoInsidePyProtoStub(PyObject *msg)
Definition: python_protobuf.cc:40
google::protobuf::python::Clear
PyObject * Clear(PyObject *_self)
Definition: map_container.cc:318
google::protobuf::python::descriptor::Contains
static int Contains(PyContainer *self, PyObject *key)
Definition: descriptor_containers.cc:293
google::protobuf::python::GetCProtoInsidePyProtoStub
static const Message * GetCProtoInsidePyProtoStub(PyObject *msg)
Definition: python_protobuf.cc:39
google::protobuf::python::ScalarMapGet
static PyObject * ScalarMapGet(PyObject *self, PyObject *args, PyObject *kwargs)
Definition: map_container.cc:467
google::protobuf::python::GetEntryClass
PyObject * GetEntryClass(PyObject *_self)
Definition: map_container.cc:328


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:10