def FromHandle(self, handle): return reflection.InterfaceRequest(handle)
def NewRequest(self): pipe = mojo_system.MessagePipe() return (self.Proxy(pipe.handle0), reflection.InterfaceRequest(pipe.handle1))
def Convert(self, value): if value is None: return reflection.InterfaceRequest(mojo_system.Handle()) if not isinstance(value, reflection.InterfaceRequest): raise TypeError('%r is not an interface request' % value) return value