Class `GetResponse` represents
the results of methods invoked to return information about documents and indexes.

`GetResponse` is defined in the module `google.appengine.api.search`.

## Introduction

A `GetResponse` object is returned from a call to either
[index.get_range()](https://docs.cloud.google.com/appengine/docs/standard/services/search/python/indexclass#Index_get_range)
or
[search.get_indexes()](https://docs.cloud.google.com/appengine/docs/standard/services/search/python/functions#get_indexes).
You can iterate over an instance of
`GetResponse`, which will return the members of its
[results](https://docs.cloud.google.com/appengine/docs/standard/services/search/python/getresponseclass#GetResponse_results) property. The contents of the property
are determined by the type of call that created the instance of `GetResponse`.

For example, the following code shows how `GetResponse` could be used to
determine which documents were successfully deleted. In this case
the iteration returns
[Documents](https://docs.cloud.google.com/appengine/docs/standard/services/search/python/documentclass).

```python
response = index.get_range()
for document in response:
    print "document ", document
```

## Constructor

The constructor for class `GetResponse` is defined as follows:


class GetResponse(results=None)

:

    Construct an instance of class `GetResponse`.

    <br />

:

    **Argument**

    results

    :   Initial value of its `results` property.

    Result value

    :   A new instance of class `GetResponse`.

    Exceptions

    TypeError

    :   A parameter has an invalid type, or an unknown attribute was passed.

    ValueError

    :   A parameter has an invalid value.

    <br />

## Properties

An instance of class `GetResponse` has the following property:

results

:   A list of results, whose type depends on the call that returns the
    object. If returning from a call to
    [get_range()](https://docs.cloud.google.com/appengine/docs/standard/services/search/python/indexclass#Index_get_range),
    `results` is a list of [Documents](https://docs.cloud.google.com/appengine/docs/standard/services/search/python/documentclass)
    in descending order of their identifiers. If returning from a call to
    [search.get_indexes()](https://docs.cloud.google.com/appengine/docs/standard/services/search/python/functions#get_indexes),
    `results` is a list of
    [Indexes](https://docs.cloud.google.com/appengine/docs/standard/services/search/python/indexclass).