original_docstring: Finds an existing index by definition.
  
      Args:
        index: entity_pb.CompositeIndex
  
      Returns:
        entity_pb.CompositeIndex, if it exists; otherwise None
      
docstring: Finds an existing index by definition.
docstring_tokens: Finds an existing index by definition .
code: def __FindIndex(self, index):
      """Finds an existing index by definition.
  
      Args:
        index: entity_pb.CompositeIndex
  
      Returns:
        entity_pb.CompositeIndex, if it exists; otherwise None
      """
      app = index.app_id()
      if app in self.__indexes:
        for stored_index in self.__indexes[app]:
          if index.definition() == stored_index.definition():
            return stored_index
  
      return None
code_tokens: def __FindIndex ( self , index ) : app = index . app_id ( ) if app in self . __indexes : for stored_index in self . __indexes [ app ] : if index . definition ( ) == stored_index . definition ( ) : return stored_index return None
short_docstring: Finds an existing index by definition.
short_docstring_tokens: Finds an existing index by definition .
comment: """Finds an existing index by definition.
  
      Args:
        index: entity_pb.CompositeIndex
  
      Returns:
        entity_pb.CompositeIndex, if it exists; otherwise None
      """