Google Cloud Asset V1 Client - Class QueryAssetsResponse (2.0.0)

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 a output, the output_config field will be set. If done == true, exactly one of error, query_result or output_config will be set.

↳ error Google\Rpc\Status

Error status.

↳ query_result Google\Cloud\Asset\V1\QueryResult

Result of the query.

↳ output_config Google\Cloud\Asset\V1\QueryAssetsOutputConfig

Output configuration which indicates instead of being returned in 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 a output, the output_config field will be set. If done == true, exactly one of error, query_result or output_config will be set.

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 a output, the output_config field will be set. If done == true, exactly one of error, query_result or output_config will be set.

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
Google\Cloud\Asset\V1\QueryResult|null

hasQueryResult

setQueryResult

Result of the query.

Parameter
Name Description
var Google\Cloud\Asset\V1\QueryResult
Returns
Type Description
$this

getOutputConfig

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

Returns
Type Description
Google\Cloud\Asset\V1\QueryAssetsOutputConfig|null

hasOutputConfig

setOutputConfig

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

Parameter
Name Description
var Google\Cloud\Asset\V1\QueryAssetsOutputConfig
Returns
Type Description
$this

getResponse

Returns
Type Description
string