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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ rows |
array<Google\Protobuf\Struct>
Each row hold a query result in the format of |
↳ 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
.
Generated from protobuf field repeated .google.protobuf.Struct rows = 1;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setRows
Each row hold a query result in the format of Struct
.
Generated from protobuf field repeated .google.protobuf.Struct rows = 1;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Protobuf\Struct>
|
Returns | |
---|---|
Type | Description |
$this |
getSchema
Describes the format of the [rows].
Generated from protobuf field .google.cloud.asset.v1.TableSchema schema = 2;
Returns | |
---|---|
Type | Description |
Google\Cloud\Asset\V1\TableSchema|null |
hasSchema
clearSchema
setSchema
Describes the format of the [rows].
Generated from protobuf field .google.cloud.asset.v1.TableSchema schema = 2;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Asset\V1\TableSchema
|
Returns | |
---|---|
Type | Description |
$this |
getNextPageToken
Token to retrieve the next page of the results.
Generated from protobuf field string next_page_token = 3;
Returns | |
---|---|
Type | Description |
string |
setNextPageToken
Token to retrieve the next page of the results.
Generated from protobuf field string next_page_token = 3;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTotalRows
Total rows of the whole query results.
Generated from protobuf field int64 total_rows = 4;
Returns | |
---|---|
Type | Description |
int|string |
setTotalRows
Total rows of the whole query results.
Generated from protobuf field int64 total_rows = 4;
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |