Google Cloud Asset V1 Client - Class QueryAssetsResponse (2.1.1)

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 Google\Rpc\Status

Error status.

↳ query_result QueryResult

Result of the query.

↳ output_config 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
Google\Rpc\Status|null

hasError

setError

Error status.

Parameter
Name Description
var Google\Rpc\Status
Returns
Type Description
$this

getQueryResult

Result of the query.

Returns
Type Description
QueryResult|null

hasQueryResult

setQueryResult

Result of the query.

Parameter
Name Description
var 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
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 QueryAssetsOutputConfig
Returns
Type Description
$this

getResponse

Returns
Type Description
string