def GetMessages(file_protos):
for file_proto in file_protos:<EOL><INDENT>_FACTORY.pool.Add(file_proto)<EOL><DEDENT>return _FACTORY.GetMessages([file_proto.name for file_proto in file_protos])<EOL>
Builds a dictionary of all the messages available in a set of files.

    Args:
      file_protos: A sequence of file protos to build messages out of.

    Returns:
      A dictionary mapping proto names to the message classes. This will include
      any dependent messages as well as any messages defined in the same file as
      a specified message.