Searched refs:extension_handle (Results 1 – 6 of 6) sorted by relevance
/external/nanopb-c/generator/google/protobuf/internal/ |
D | python_message.py | 142 def _VerifyExtensionHandle(message, extension_handle): argument 145 if not isinstance(extension_handle, _FieldDescriptor): 147 extension_handle) 149 if not extension_handle.is_extension: 150 raise KeyError('"%s" is not an extension.' % extension_handle.full_name) 152 if not extension_handle.containing_type: 154 % extension_handle.full_name) 156 if extension_handle.containing_type is not message.DESCRIPTOR: 159 (extension_handle.full_name, 160 extension_handle.containing_type.full_name, [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | python_message.py | 151 def _VerifyExtensionHandle(message, extension_handle): argument 154 if not isinstance(extension_handle, _FieldDescriptor): 156 extension_handle) 158 if not extension_handle.is_extension: 159 raise KeyError('"%s" is not an extension.' % extension_handle.full_name) 161 if not extension_handle.containing_type: 163 % extension_handle.full_name) 165 if extension_handle.containing_type is not message.DESCRIPTOR: 168 (extension_handle.full_name, 169 extension_handle.containing_type.full_name, [all …]
|
D | cpp_message.py | 640 def RegisterExtension(extension_handle): argument 641 extension_handle.containing_type = cls.DESCRIPTOR 642 cls._extensions_by_name[extension_handle.full_name] = extension_handle 644 if _IsMessageSetExtension(extension_handle): 647 extension_handle.message_type.full_name] = extension_handle
|
/external/protobuf/python/google/protobuf/ |
D | message.py | 244 def HasExtension(self, extension_handle): argument 247 def ClearExtension(self, extension_handle): argument
|
/external/nanopb-c/generator/google/protobuf/ |
D | message.py | 240 def HasExtension(self, extension_handle): argument 243 def ClearExtension(self, extension_handle): argument
|
/external/protobuf/python/google/protobuf/pyext/ |
D | message.cc | 1386 PyObject* extension_handle) { in CheckAndGetInteger() argument 1391 if (PyObject_SetAttrString(extension_handle, "containing_type", in CheckAndGetInteger() 1401 ScopedPyObjectPtr full_name(PyObject_GetAttr(extension_handle, kfull_name)); in CheckAndGetInteger() 1405 if (PyDict_SetItem(extensions_by_name, full_name, extension_handle) < 0) { in CheckAndGetInteger() 1416 ScopedPyObjectPtr number(PyObject_GetAttrString(extension_handle, "number")); in CheckAndGetInteger() 1420 if (PyDict_SetItem(extensions_by_number, number, extension_handle) < 0) { in CheckAndGetInteger() 1425 extension_dict::InternalGetCDescriptorFromExtension(extension_handle); in CheckAndGetInteger() 1430 Py_INCREF(extension_handle); in CheckAndGetInteger() 1431 cdescriptor->descriptor_field = extension_handle; in CheckAndGetInteger() 1445 PyDict_SetItem(extensions_by_name, message_name, extension_handle); in CheckAndGetInteger()
|