def __method_descriptor(self, service, method_info,<EOL>protorpc_method_info):
descriptor = {}<EOL>request_message_type = (resource_container.ResourceContainer.<EOL>get_request_message(protorpc_method_info.remote))<EOL>request_kind = self.__get_request_kind(method_info)<EOL>remote_method = protorpc_method_info.remote<EOL>method_id = method_info.method_id(service.api_info)<EOL>path = method_info.get_path(service.api_info)<EOL>description = protorpc_method_info.remote.method.__doc__<EOL>descriptor['<STR_LIT:id>'] = method_id<EOL>descriptor['<STR_LIT:path>'] = path<EOL>descriptor['<STR_LIT>'] = method_info.http_method<EOL>if description:<EOL><INDENT>descriptor['<STR_LIT:description>'] = description<EOL><DEDENT>descriptor['<STR_LIT>'] = [<EOL>'<STR_LIT>'<EOL>]<EOL>parameters = self.__params_descriptor(<EOL>request_message_type, request_kind, path, method_id,<EOL>method_info.request_params_class)<EOL>if parameters:<EOL><INDENT>descriptor['<STR_LIT>'] = parameters<EOL><DEDENT>if method_info.request_params_class:<EOL><INDENT>parameter_order = self.__params_order_descriptor(<EOL>method_info.request_params_class, path, is_params_class=True)<EOL><DEDENT>else:<EOL><INDENT>parameter_order = self.__params_order_descriptor(<EOL>request_message_type, path, is_params_class=False)<EOL><DEDENT>if parameter_order:<EOL><INDENT>descriptor['<STR_LIT>'] = parameter_order<EOL><DEDENT>request_descriptor = self.__request_message_descriptor(<EOL>request_kind, request_message_type, method_id,<EOL>method_info.request_body_class)<EOL>if request_descriptor is not None:<EOL><INDENT>descriptor['<STR_LIT>'] = request_descriptor<EOL><DEDENT>response_descriptor = self.__response_message_descriptor(<EOL>remote_method.response_type(), method_info.method_id(service.api_info))<EOL>if response_descriptor is not None:<EOL><INDENT>descriptor['<STR_LIT>'] = response_descriptor<EOL><DEDENT>return descriptor<EOL>
Describes a method.

        Args:
          service: endpoints.Service, Implementation of the API as a service.
          method_info: _MethodInfo, Configuration for the method.
          protorpc_method_info: protorpc.remote._RemoteMethodInfo, ProtoRPC
            description of the method.

        Returns:
          Dictionary describing the method.