parameters: (self, method_proto, service_name, package, scope,
                              index)
return_statement: return descriptor.MethodDescriptor(name=method_proto.name,
                                         full_name=full_name,
                                         index=index,
                                         containing_service=None,
                                         input_type=input_type,
                                         output_type=output_type,
                                         options=method_proto.options)
docstring: Creates a method descriptor from a MethodDescriptorProto.
  
      Args:
        method_proto: The proto describing the method.
        service_name: The name of the containing service.
        package: Optional package name to look up for types.
        scope: Scope containing available types.
        index: Index of the method in the service.
  
      Returns:
        An initialized MethodDescriptor object.
docstring_summary: Creates a method descriptor from a MethodDescriptorProto.
docstring_tokens: Creates a method descriptor from a MethodDescriptorProto .
function: def _MakeMethodDescriptor(self, method_proto, service_name, package, scope,
                              index):
      """Creates a method descriptor from a MethodDescriptorProto.
  
      Args:
        method_proto: The proto describing the method.
        service_name: The name of the containing service.
        package: Optional package name to look up for types.
        scope: Scope containing available types.
        index: Index of the method in the service.
  
      Returns:
        An initialized MethodDescriptor object.
      """
      full_name = '.'.join((service_name, method_proto.name))
      input_type = self._GetTypeFromScope(
          package, method_proto.input_type, scope)
      output_type = self._GetTypeFromScope(
          package, method_proto.output_type, scope)
      return descriptor.MethodDescriptor(name=method_proto.name,
                                         full_name=full_name,
                                         index=index,
                                         containing_service=None,
                                         input_type=input_type,
                                         output_type=output_type,
                                         options=method_proto.options)
function_tokens: def _MakeMethodDescriptor ( self , method_proto , service_name , package , scope , index ) : full_name = '.' . join ( ( service_name , method_proto . name ) ) input_type = self . _GetTypeFromScope ( package , method_proto . input_type , scope ) output_type = self . _GetTypeFromScope ( package , method_proto . output_type , scope ) return descriptor . MethodDescriptor ( name = method_proto . name , full_name = full_name , index = index , containing_service = None , input_type = input_type , output_type = output_type , options = method_proto . options )