parameters: (desc_protos, package)
docstring: Gets all levels of nested message types as a flattened list of descriptors.
  
    Args:
      desc_protos: The descriptor protos to process.
      package: The package where the protos are defined.
  
    Yields:
      Each message descriptor for each nested type.
docstring_summary: Gets all levels of nested message types as a flattened list of descriptors.
docstring_tokens: Gets all levels of nested message types as a flattened list of descriptors .
function: def _GetAllDescriptors(desc_protos, package):
    """Gets all levels of nested message types as a flattened list of descriptors.
  
    Args:
      desc_protos: The descriptor protos to process.
      package: The package where the protos are defined.
  
    Yields:
      Each message descriptor for each nested type.
    """
  
    for desc_proto in desc_protos:
      name = '.'.join((package, desc_proto.name))
      yield _POOL.FindMessageTypeByName(name)
      for nested_desc in _GetAllDescriptors(desc_proto.nested_type, name):
        yield nested_desc
function_tokens: def _GetAllDescriptors ( desc_protos , package ) : for desc_proto in desc_protos : name = '.' . join ( ( package , desc_proto . name ) ) yield _POOL . FindMessageTypeByName ( name ) for nested_desc in _GetAllDescriptors ( desc_proto . nested_type , name ) : yield nested_desc