2.2.0 (latest) 2.0.6 1.34.2 1.33.1 1.32.3 1.31.0 1.30.0 1.29.2 1.28.2 1.26.0 1.25.0 1.24.4 1.23.0 1.22.1 1.21.2 1.19.0 1.18.1 1.17.1 Reference documentation and code samples for the Cloud Datastore V1 Client class ExplainOptions.

Explain options for the query.

Generated from protobuf message `google.datastore.v1.ExplainOptions`

## Namespace

Google \\ Cloud \\ Datastore \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ analyze` | `bool` Optional. Whether to execute this query. When false (the default), the query will be planned, returning only metrics from the planning stages. When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics. |

### getAnalyze

Optional. Whether to execute this query.

When false (the default), the query will be planned, returning only
metrics from the planning stages.
When true, the query will be planned and executed, returning the full
query results along with both planning and execution stage metrics.

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

### setAnalyze

Optional. Whether to execute this query.

When false (the default), the query will be planned, returning only
metrics from the planning stages.
When true, the query will be planned and executed, returning the full
query results along with both planning and execution stage metrics.

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

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