Home
last modified time | relevance | path

Searched refs:py_descriptor (Results 1 – 3 of 3) sorted by relevance

/external/protobuf/python/google/protobuf/pyext/
Ddescriptor_database.cc55 static bool GetFileDescriptorProto(PyObject* py_descriptor, in GetFileDescriptorProto() argument
57 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() local
115 return GetFileDescriptorProto(py_descriptor.get(), output); in FindFileByName()
121 ScopedPyObjectPtr py_descriptor( in FindFileContainingSymbol() local
124 return GetFileDescriptorProto(py_descriptor.get(), output); in FindFileContainingSymbol()
[all …]
Ddescriptor.cc330 PyBaseDescriptor* py_descriptor = PyObject_New( in NewInternedDescriptor() local
332 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() local
1397 if (py_descriptor == NULL) { in PyFileDescriptor_FromDescriptorWithSerializedPb()
1402 reinterpret_cast<PyFileDescriptor*>(py_descriptor); in PyFileDescriptor_FromDescriptorWithSerializedPb()
[all …]
Dmessage.cc236 PyObject* py_descriptor = PyDict_GetItem(dict, kDESCRIPTOR); in New() local
237 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()