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 …]
330 PyBaseDescriptor* py_descriptor = PyObject_New( in NewInternedDescriptor() local332 if (py_descriptor == NULL) { in NewInternedDescriptor()335 py_descriptor->descriptor = descriptor; in NewInternedDescriptor()339 std::make_pair(descriptor, reinterpret_cast<PyObject*>(py_descriptor))); in NewInternedDescriptor()346 PyObject_Del(py_descriptor); in NewInternedDescriptor()350 py_descriptor->pool = pool; in NewInternedDescriptor()355 return reinterpret_cast<PyObject*>(py_descriptor); in NewInternedDescriptor()1395 PyObject* py_descriptor = descriptor::NewInternedDescriptor( in PyFileDescriptor_FromDescriptorWithSerializedPb() local1397 if (py_descriptor == NULL) { in PyFileDescriptor_FromDescriptorWithSerializedPb()1402 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()