Google Cloud Asset V1 Client - Class QueryResult (1.12.2)

Reference documentation and code samples for the Google Cloud Asset V1 Client class QueryResult.

Execution results of the query.

The result is formatted as rows represented by BigQuery compatible [schema]. When pagination is necessary, it will contains the page token to retrieve the results of following pages.

Generated from protobuf message google.cloud.asset.v1.QueryResult

Namespace

Google \ Cloud \ Asset \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ rows array<Google\Protobuf\Struct>

Each row hold a query result in the format of Struct.

↳ schema Google\Cloud\Asset\V1\TableSchema

Describes the format of the [rows].

↳ next_page_token string

Token to retrieve the next page of the results.

↳ total_rows int|string

Total rows of the whole query results.

getRows

Each row hold a query result in the format of Struct.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setRows

Each row hold a query result in the format of Struct.

Parameter
NameDescription
var array<Google\Protobuf\Struct>
Returns
TypeDescription
$this

getSchema

Describes the format of the [rows].

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

hasSchema

clearSchema

setSchema

Describes the format of the [rows].

Parameter
NameDescription
var Google\Cloud\Asset\V1\TableSchema
Returns
TypeDescription
$this

getNextPageToken

Token to retrieve the next page of the results.

Returns
TypeDescription
string

setNextPageToken

Token to retrieve the next page of the results.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTotalRows

Total rows of the whole query results.

Returns
TypeDescription
int|string

setTotalRows

Total rows of the whole query results.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this