def _write_methods(method_descriptors, out):
 for method in method_descriptors:
  (out << '')
  (out << ("@remote.method('%s', '%s')" % (method.request_type, method.response_type)))
  (out << ('def %s(self, request):' % (method.name,)))
  with out.indent():
   (out << ("raise NotImplementedError('Method %s is not implemented')" % method.name))

def _write_methods ( method_descriptors , out ) : for method in method_descriptors : ( out << '' ) ( out << ( "@remote.method('%s', '%s')" % ( method . request_type , method . response_type ) ) ) ( out << ( 'def %s(self, request):' % ( method . name , ) ) ) with out . indent ( ) : ( out << ( "raise NotImplementedError('Method %s is not implemented')" % method . name ) )
write methods of service types .