# Google Shopping Merchant Reports V1beta 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

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Shopping Merchant Reports V1beta Client class SearchResponse.

Response message for the `ReportService.Search` method.

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

## Namespace

Google \\ Shopping \\ Merchant \\ Reports \\ V1beta

## 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/V1beta.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/V1beta.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/V1beta.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` |   |