# Google Cloud Asset V1 Client - Class QueryResult (2.3.3)

2.3.3 (latest) 2.3.2 2.2.3 2.1.3 2.0.1 1.16.4 1.14.1 1.13.2 1.12.2 1.11.3 1.10.2 1.9.2 Reference documentation and code samples for the Google Cloud Asset V1 Client class QueryResult.

Execution results of the query.

The result is formatted as rows represented by BigQuery compatible \[schema\].
When pagination is necessary, it will contains the page token to retrieve
the results of following pages.

Generated from protobuf message `google.cloud.asset.v1.QueryResult`

## Namespace

Google \\ Cloud \\ Asset \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ rows` | `array<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct>` Each row hold a query result in the format of `Struct`. |
| `↳ schema` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.TableSchema` Describes the format of the \[rows\]. |
| `↳ next_page_token` | `string` Token to retrieve the next page of the results. |
| `↳ total_rows` | `int|string` Total rows of the whole query results. |

### getRows

Each row hold a query result in the format of `Struct`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct>` |   |

### setRows

Each row hold a query result in the format of `Struct`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct>` |

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

### getSchema

Describes the format of the \[rows\].

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.TableSchema|null` |   |

### hasSchema

### clearSchema

### setSchema

Describes the format of the \[rows\].

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.TableSchema` |

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

### getNextPageToken

Token to retrieve the next page of the results.

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

### setNextPageToken

Token to retrieve the next page of the results.

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

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

### getTotalRows

Total rows of the whole query results.

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

### setTotalRows

Total rows of the whole query results.

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

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