Searched refs:extension_handle (Results 1 – 3 of 3) sorted by relevance
229 def _VerifyExtensionHandle(message, extension_handle): argument232 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 …]
252 def HasExtension(self, extension_handle): argument255 def ClearExtension(self, extension_handle): argument
1956 PyObject* extension_handle) { in CheckAndGetInteger() argument1958 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()