# Google Shopping Merchant Reports V1 Client - Class SearchResponse (1.3.0)

1.3.0 (latest) 1.2.1 1.1.3 1.0.0 0.10.0 0.9.1 0.8.4 0.7.3 0.6.0 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Google Shopping Merchant Reports V1 Client class SearchResponse.

Response message for the `ReportService.Search` method.

Generated from protobuf message `google.shopping.merchant.reports.v1.SearchResponse`

## Namespace

Google \\ Shopping \\ Merchant \\ Reports \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ results` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-reports/latest/V1.ReportRow>` Rows that matched the search query. |
| `↳ next_page_token` | `string` Token which can be sent as `page_token` to retrieve the next page. If omitted, there are no subsequent pages. |

### getResults

Rows that matched the search query.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-reports/latest/V1.ReportRow>` |   |

### setResults

Rows that matched the search query.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/shopping-merchant-reports/latest/V1.ReportRow>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNextPageToken

Token which can be sent as `page_token` to retrieve the next page. If
omitted, there are no subsequent pages.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setNextPageToken

Token which can be sent as `page_token` to retrieve the next page. If
omitted, there are no subsequent pages.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |