def AddDescriptor(self, desc):
if not isinstance(desc, descriptor.Descriptor):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>self._descriptors[desc.full_name] = desc<EOL>self.AddFileDescriptor(desc.file)<EOL>
Adds a Descriptor to the pool, non-recursively.

        If the Descriptor contains nested messages or enums, the caller must
        explicitly register them. This method also registers the FileDescriptor
        associated with the message.

        Args:
          desc: A Descriptor.