'Returns the internal-only pb representation of the last query run.
Do not use.
Raises:
AssertionError: Query not compiled or not yet executed.'

def _GetCompiledQuery(self):

    compiled_query_function = self.__compiled_query_source
    if compiled_query_function:
        compiled_query = compiled_query_function()
        if compiled_query:
            return compiled_query
    raise AssertionError('No    compiled    query    available,    either    this    query    has    not    been    executed    or    there    is    no    compilation    available    for    this    kind    of    query')
