'Initializer.
Args:
number_found: The number of documents found for the query.
results: The list of ScoredDocuments returned from executing a
search request.
cursor: A Cursor to continue the search from the end of the
search results.
facets: The list of FacetResults returned from executing a search request
with faceted search enabled.
Raises:
TypeError: If any of the parameters have an invalid type, or an unknown
attribute is passed.
ValueError: If any of the parameters have an invalid value.'

def __init__(self, number_found, results=None, cursor=None, facets=None):

    self._number_found = _CheckInteger(number_found, 'number_found')
    self._results = _GetList(results)
    if ((cursor is not None) and (not isinstance(cursor, Cursor))):
        raise TypeError(('cursor    must    be    a    Cursor,    got    %s' % cursor.__class__.__name__))
    self._cursor = cursor
    self._facets = _GetList(facets)
