#NEWLINE# def __init__( self , query ) : #NEWLINE# #INDENT# 'Constructor.\n\n    Args:\n      query: the query request proto\n    ' #NEWLINE# super ( ListCursor , self ) . __init__ ( query . app ( ) ) #NEWLINE# self . __order_property_names = order_property_names ( self ) #NEWLINE# if ( query . has_compiled_cursor ( ) and query . compiled_cursor ( ) . position_list ( ) ) : #NEWLINE# #INDENT# ( self . __last_result , _ ) = self . _DecodeCompiledCursor ( query . compiled_cursor ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . __last_result = None #NEWLINE# #UNINDENT# if query . has_end_compiled_cursor ( ) : #NEWLINE# #INDENT# if query . end_compiled_cursor ( ) . position_list ( ) : #NEWLINE# #INDENT# ( self . __end_result , _ ) = self . _DecodeCompiledCursor ( query . end_compiled_cursor ( ) ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . __end_result = None #NEWLINE# #UNINDENT# self . __query = query #NEWLINE# self . __offset = 0 #NEWLINE# self . __count = query . limit ( ) #NEWLINE# self . keys_only = query . keys_only ( )