# Google Shopping Merchant Reports V1 Client - Class SearchRequest (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 SearchRequest.

Request message for the `ReportService.Search` method.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Id of the account making the call. Must be a standalone account or an MCA subaccount. Format: accounts/{account} |
| `↳ query` | `string` Required. Query that defines a report to be retrieved. For details on how to construct your query, see the [Query Language guide](https://docs.cloud.google.com/merchant/api/guides/reports/query-language). For the full list of available tables and fields, see the [Available fields](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-reports/latest/V1.ReportRow). |
| `↳ page_size` | `int` Optional. Number of `ReportRows` to retrieve in a single page. Defaults to 1000. Values above 100,000 are coerced to 100,000. |
| `↳ page_token` | `string` Optional. Token of the page to retrieve. If not specified, the first page of results is returned. In order to request the next page of results, the value obtained from `next_page_token` in the previous response should be used. |

### getParent

Required. Id of the account making the call. Must be a standalone account
or an MCA subaccount. Format: accounts/{account}

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

### setParent

Required. Id of the account making the call. Must be a standalone account
or an MCA subaccount. Format: accounts/{account}

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

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

### getQuery

Required. Query that defines a report to be retrieved.

For details on how to construct your query, see the [Query Language
guide](https://docs.cloud.google.com/merchant/api/guides/reports/query-language). For the full list of
available tables and fields, see the [Available
fields](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-reports/latest/V1.ReportRow).

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

### setQuery

Required. Query that defines a report to be retrieved.

For details on how to construct your query, see the [Query Language
guide](https://docs.cloud.google.com/merchant/api/guides/reports/query-language). For the full list of
available tables and fields, see the [Available
fields](https://docs.cloud.google.com/php/docs/reference/shopping-merchant-reports/latest/V1.ReportRow).

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

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

### getPageSize

Optional. Number of `ReportRows` to retrieve in a single page. Defaults to

1. Values above 100,000 are coerced to 100,000.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPageSize

Optional. Number of `ReportRows` to retrieve in a single page. Defaults to

1. Values above 100,000 are coerced to 100,000.

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

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

### getPageToken

Optional. Token of the page to retrieve. If not specified, the first page
of results is returned. In order to request the next page of results, the
value obtained from `next_page_token` in the previous response should be
used.

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

### setPageToken

Optional. Token of the page to retrieve. If not specified, the first page
of results is returned. In order to request the next page of results, the
value obtained from `next_page_token` in the previous response should be
used.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Id of the account making the call. Must be a standalone account or an MCA subaccount. Format: accounts/{account} |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/shopping-merchant-reports/latest/V1.SearchRequest` |   |