def describe_method(method):
  method_info = method.remote
  descriptor = MethodDescriptor()
  descriptor.name = method_info.method.func_name
  descriptor.request_type = method_info.request_type.definition_name()
  descriptor.response_type = method_info.response_type.definition_name()

  return descriptor
Build descriptor for service method.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/protorpc/protorpc/descriptor.py/describe_method