#NEWLINE# def readsGenerator( self , request ) : #NEWLINE# #INDENT# '\n        Returns a generator over the (read, nextPageToken) pairs defined\n        by the specified request\n        ' #NEWLINE# if ( request . referenceId is None ) : #NEWLINE# #INDENT# raise exceptions . UnmappedReadsNotSupported ( ) #NEWLINE# #UNINDENT# if ( len ( request . readGroupIds ) < 1 ) : #NEWLINE# #INDENT# raise exceptions . BadRequestException ( 'At least one readGroupId must be specified' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( len ( self . readGroupIds ) == 1 ) : #NEWLINE# #INDENT# return self . _readsGeneratorSingle ( request ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . _readsGeneratorMultiple ( request )