Google Cloud Asset V1 Client - Class QueryAssetsResponse (1.13.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
NameDescription
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
TypeDescription
string

setJobReference

Reference to a query job.

Parameter
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var bool
Returns
TypeDescription
$this

getError

Error status.

Returns
TypeDescription
Google\Rpc\Status|null

hasError

setError

Error status.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getQueryResult

Result of the query.

Returns
TypeDescription
Google\Cloud\Asset\V1\QueryResult|null

hasQueryResult

setQueryResult

Result of the query.

Parameter
NameDescription
var Google\Cloud\Asset\V1\QueryResult
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var Google\Cloud\Asset\V1\QueryAssetsOutputConfig
Returns
TypeDescription
$this

getResponse

Returns
TypeDescription
string