Home
last modified time | relevance | path

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

/external/protobuf/python/google/protobuf/internal/
Dpython_message.py229 def _VerifyExtensionHandle(message, extension_handle): argument
232 if not isinstance(extension_handle, _FieldDescriptor):
234 extension_handle)
236 if not extension_handle.is_extension:
237 raise KeyError('"%s" is not an extension.' % extension_handle.full_name)
239 if not extension_handle.containing_type:
241 % extension_handle.full_name)
243 if extension_handle.containing_type is not message.DESCRIPTOR:
246 (extension_handle.full_name,
247 extension_handle.containing_type.full_name,
[all …]
/external/protobuf/python/google/protobuf/
Dmessage.py252 def HasExtension(self, extension_handle): argument
255 def ClearExtension(self, extension_handle): argument
/external/protobuf/python/google/protobuf/pyext/
Dmessage.cc1956 PyObject* extension_handle) { in CheckAndGetInteger() argument
1958 GetExtensionDescriptor(extension_handle); in CheckAndGetInteger()
1969 ScopedPyObjectPtr full_name(PyObject_GetAttr(extension_handle, kfull_name)); in CheckAndGetInteger()
1989 extension_handle) < 0) { in CheckAndGetInteger()
2001 ScopedPyObjectPtr number(PyObject_GetAttrString(extension_handle, "number")); in CheckAndGetInteger()
2029 extension_handle) < 0) { in CheckAndGetInteger()
2045 extension_handle); in CheckAndGetInteger()