Home
last modified time | relevance | path

Searched refs:extension_handle (Results 1 – 5 of 5) sorted by relevance

/external/protobuf/python/google/protobuf/internal/
Dextension_dict.py38 def _VerifyExtensionHandle(message, extension_handle): argument
41 if not isinstance(extension_handle, FieldDescriptor):
43 extension_handle)
45 if not extension_handle.is_extension:
46 raise KeyError('"%s" is not an extension.' % extension_handle.full_name)
48 if not extension_handle.containing_type:
50 % extension_handle.full_name)
52 if extension_handle.containing_type is not message.DESCRIPTOR:
55 (extension_handle.full_name,
56 extension_handle.containing_type.full_name,
[all …]
Dpython_message.py785 def RegisterExtension(extension_handle): argument
786 extension_handle.containing_type = cls.DESCRIPTOR
788 cls.DESCRIPTOR.file.pool.AddExtensionDescriptor(extension_handle)
789 _AttachFieldHelpers(cls, extension_handle)
907 def ClearExtension(self, extension_handle): argument
908 extension_dict._VerifyExtensionHandle(self, extension_handle)
911 if extension_handle in self._fields:
912 del self._fields[extension_handle]
919 def HasExtension(self, extension_handle): argument
920 extension_dict._VerifyExtensionHandle(self, extension_handle)
[all …]
/external/protobuf/python/google/protobuf/
Dmessage.py267 def HasExtension(self, extension_handle): argument
270 def ClearExtension(self, extension_handle): argument
/external/protobuf/python/google/protobuf/pyext/
Dmessage.h264 PyObject* RegisterExtension(PyObject* cls, PyObject* extension_handle);
Dmessage.cc1975 PyObject* RegisterExtension(PyObject* cls, PyObject* extension_handle) { in RegisterExtension() argument
1977 GetExtensionDescriptor(extension_handle); in RegisterExtension()