0.16.0 (latest) 0.15.0 0.14.1 0.11.1 0.10.0 0.9.0 0.8.0 0.7.1 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.1

> [!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 Cloud Gemini Data Analytics V1beta Client class ExecutedQueryResult.

The result of a query execution. The design is generic for all dialects.

Generated from protobuf message `google.cloud.geminidataanalytics.v1beta.ExecutedQueryResult`

## Namespace

Google \\ Cloud \\ GeminiDataAnalytics \\ V1beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ columns` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.ExecutedQueryResult.Column>` The columns in the result set, in order. |
| `↳ rows` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.ExecutedQueryResult.Row>` The rows returned by the query. |
| `↳ total_row_count` | `int|string` The total number of rows in the full result set, if known. This may be an estimate or an exact count. Note: if an internal limit (such as LIMIT 1000) was applied during query execution to guard against excessive data transfer, this count reflects the truncated result size rather than the unrestricted table result size. |
| `↳ partial_result` | `bool` Set to true if the returned rows in `query_result` are a subset of the full result. This can happen, for example, if the query execution hits a row limit. When true, the `query_result` does not contain all rows. To retrieve the complete result, consider using the `generated_query` in `QueryDataResponse` and executing it in your own environment. |
| `↳ query_execution_error` | `string` The error message if the query execution failed. |

### getColumns

The columns in the result set, in order.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.ExecutedQueryResult.Column>` |   |

### setColumns

The columns in the result set, in order.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.ExecutedQueryResult.Column>` |

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

### getRows

The rows returned by the query.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.ExecutedQueryResult.Row>` |   |

### setRows

The rows returned by the query.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.ExecutedQueryResult.Row>` |

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

### getTotalRowCount

The total number of rows in the full result set, if known.

This may be an estimate or an exact count.
Note: if an internal limit (such as LIMIT 1000) was applied during query
execution to guard against excessive data transfer, this count reflects the
truncated result size rather than the unrestricted table result size.

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

### setTotalRowCount

The total number of rows in the full result set, if known.

This may be an estimate or an exact count.
Note: if an internal limit (such as LIMIT 1000) was applied during query
execution to guard against excessive data transfer, this count reflects the
truncated result size rather than the unrestricted table result size.

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

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

### getPartialResult

Set to true if the returned rows in `query_result` are a subset of the
full result. This can happen, for example, if the query execution hits a
row limit. When true, the `query_result` does not contain all
rows. To retrieve the complete result, consider using the
`generated_query` in `QueryDataResponse` and executing it in your own
environment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setPartialResult

Set to true if the returned rows in `query_result` are a subset of the
full result. This can happen, for example, if the query execution hits a
row limit. When true, the `query_result` does not contain all
rows. To retrieve the complete result, consider using the
`generated_query` in `QueryDataResponse` and executing it in your own
environment.

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

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

### getQueryExecutionError

The error message if the query execution failed.

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

### setQueryExecutionError

The error message if the query execution failed.

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

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