# Google Cloud Asset V1 Client - Class QueryAssetsResponse (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 QueryAssetsResponse.

QueryAssets response.

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

## Namespace

Google \\ Cloud \\ Asset \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ job_reference` | `string` Reference to a query job. |
| `↳ done` | `bool` The query response, which can be either an `error` or a valid `response`. If `done` == `false` and the query result is being saved in an output, the output_config field will be set. If `done` == `true`, exactly one of `error`, `query_result` or `output_config` will be set. \[done\] is unset unless the \[QueryAssetsResponse\] contains a \[QueryAssetsResponse.job_reference\]. |
| `↳ error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Error status. |
| `↳ query_result` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.QueryResult` Result of the query. |
| `↳ output_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.QueryAssetsOutputConfig` Output configuration, which indicates that instead of being returned in an API response on the fly, the query result will be saved in a specific output. |

### getJobReference

Reference to a query job.

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

### setJobReference

Reference to a query job.

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

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

### getDone

The query response, which can be either an `error` or a valid `response`.

If `done` == `false` and the query result is being saved in an output, the
output_config field will be set.
If `done` == `true`, exactly one of
`error`, `query_result` or `output_config` will be set.
\[done\] is unset unless the \[QueryAssetsResponse\] contains a
\[QueryAssetsResponse.job_reference\].

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

### setDone

The query response, which can be either an `error` or a valid `response`.

If `done` == `false` and the query result is being saved in an output, the
output_config field will be set.
If `done` == `true`, exactly one of
`error`, `query_result` or `output_config` will be set.
\[done\] is unset unless the \[QueryAssetsResponse\] contains a
\[QueryAssetsResponse.job_reference\].

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

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

### getError

Error status.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasError

### setError

Error status.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

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

### getQueryResult

Result of the query.

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

### hasQueryResult

### setQueryResult

Result of the query.

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

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

### getOutputConfig

Output configuration, which indicates that instead of being returned in
an API response on the fly, the query result will be saved in a specific
output.

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

### hasOutputConfig

### setOutputConfig

Output configuration, which indicates that instead of being returned in
an API response on the fly, the query result will be saved in a specific
output.

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

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

### getResponse

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