Searched refs:py_descriptor (Results 1 – 3 of 3) sorted by relevance
55 static bool GetFileDescriptorProto(PyObject* py_descriptor, in GetFileDescriptorProto() argument57 if (py_descriptor == NULL) { in GetFileDescriptorProto()67 if (py_descriptor == Py_None) { in GetFileDescriptorProto()72 CMessage* message = reinterpret_cast<CMessage*>(py_descriptor); in GetFileDescriptorProto()73 if (PyObject_TypeCheck(py_descriptor, &CMessage_Type) && in GetFileDescriptorProto()84 PyObject_CallMethod(py_descriptor, "SerializeToString", NULL)); in GetFileDescriptorProto()113 ScopedPyObjectPtr py_descriptor(PyObject_CallMethod( in FindFileByName() local115 return GetFileDescriptorProto(py_descriptor.get(), output); in FindFileByName()121 ScopedPyObjectPtr py_descriptor( in FindFileContainingSymbol() local124 return GetFileDescriptorProto(py_descriptor.get(), output); in FindFileContainingSymbol()[all …]
335 PyBaseDescriptor* py_descriptor = PyObject_New( in NewInternedDescriptor() local337 if (py_descriptor == NULL) { in NewInternedDescriptor()340 py_descriptor->descriptor = descriptor; in NewInternedDescriptor()344 std::make_pair(descriptor, reinterpret_cast<PyObject*>(py_descriptor))); in NewInternedDescriptor()351 PyObject_Del(py_descriptor); in NewInternedDescriptor()355 py_descriptor->pool = pool; in NewInternedDescriptor()360 return reinterpret_cast<PyObject*>(py_descriptor); in NewInternedDescriptor()1405 PyObject* py_descriptor = descriptor::NewInternedDescriptor( in PyFileDescriptor_FromDescriptorWithSerializedPb() local1407 if (py_descriptor == NULL) { in PyFileDescriptor_FromDescriptorWithSerializedPb()1412 reinterpret_cast<PyFileDescriptor*>(py_descriptor); in PyFileDescriptor_FromDescriptorWithSerializedPb()[all …]
236 PyObject* py_descriptor = PyDict_GetItem(dict, kDESCRIPTOR); in New() local237 if (py_descriptor == NULL) { in New()241 if (!PyObject_TypeCheck(py_descriptor, &PyMessageDescriptor_Type)) { in New()243 py_descriptor->ob_type->tp_name); in New()251 PyMessageDescriptor_AsDescriptor(py_descriptor); in New()294 PyMessageDescriptor_AsDescriptor(py_descriptor); in New()298 Py_INCREF(py_descriptor); in New()299 newtype->py_message_descriptor = py_descriptor; in New()