Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::QueryAssetsResponse.
QueryAssets response.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#done
defdone()->::Boolean
Returns
(::Boolean) — 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].
#done=
defdone=(value)->::Boolean
Parameter
value (::Boolean) — 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
(::Boolean) — 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].
Note: The following fields are mutually exclusive: error, query_result, output_config. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: error, query_result, output_config. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: error, query_result, output_config. If a field in that set is populated, all other fields in the set will automatically be cleared.
(::Google::Cloud::Asset::V1::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.
Note: The following fields are mutually exclusive: output_config, error, query_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
value (::Google::Cloud::Asset::V1::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.
Note: The following fields are mutually exclusive: output_config, error, query_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Google::Cloud::Asset::V1::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.
Note: The following fields are mutually exclusive: output_config, error, query_result. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: query_result, error, output_config. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: query_result, error, output_config. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: query_result, error, output_config. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Cloud Asset V1 API - Class Google::Cloud::Asset::V1::QueryAssetsResponse (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [1.4.0](/ruby/docs/reference/google-cloud-asset-v1/1.4.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [1.3.1](/ruby/docs/reference/google-cloud-asset-v1/1.3.1/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [1.2.0](/ruby/docs/reference/google-cloud-asset-v1/1.2.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [1.1.0](/ruby/docs/reference/google-cloud-asset-v1/1.1.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [1.0.2](/ruby/docs/reference/google-cloud-asset-v1/1.0.2/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.32.0](/ruby/docs/reference/google-cloud-asset-v1/0.32.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.31.0](/ruby/docs/reference/google-cloud-asset-v1/0.31.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.30.0](/ruby/docs/reference/google-cloud-asset-v1/0.30.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.29.3](/ruby/docs/reference/google-cloud-asset-v1/0.29.3/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.28.1](/ruby/docs/reference/google-cloud-asset-v1/0.28.1/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.27.0](/ruby/docs/reference/google-cloud-asset-v1/0.27.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.26.1](/ruby/docs/reference/google-cloud-asset-v1/0.26.1/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.25.0](/ruby/docs/reference/google-cloud-asset-v1/0.25.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.24.0](/ruby/docs/reference/google-cloud-asset-v1/0.24.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.23.0](/ruby/docs/reference/google-cloud-asset-v1/0.23.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.22.0](/ruby/docs/reference/google-cloud-asset-v1/0.22.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.21.1](/ruby/docs/reference/google-cloud-asset-v1/0.21.1/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.20.1](/ruby/docs/reference/google-cloud-asset-v1/0.20.1/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.19.0](/ruby/docs/reference/google-cloud-asset-v1/0.19.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.18.0](/ruby/docs/reference/google-cloud-asset-v1/0.18.0/Google-Cloud-Asset-V1-QueryAssetsResponse)\n- [0.17.3](/ruby/docs/reference/google-cloud-asset-v1/0.17.3/Google-Cloud-Asset-V1-QueryAssetsResponse) \nReference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::QueryAssetsResponse.\n\nQueryAssets response. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #done\n\n def done() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- The query response, which can be either an `error` or a valid `response`.\n\n\n If `done` == `false` and the query result is being saved in an output, the\n output_config field will be set.\n If `done` == `true`, exactly one of\n `error`, `query_result` or `output_config` will be set.\n \\[done\\] is unset unless the \\[QueryAssetsResponse\\] contains a\n \\[QueryAssetsResponse.job_reference\\].\n\n### #done=\n\n def done=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- The query response, which can be either an `error` or a valid `response`.\n\n\n If `done` == `false` and the query result is being saved in an output, the\n output_config field will be set.\n If `done` == `true`, exactly one of\n `error`, `query_result` or `output_config` will be set.\n \\[done\\] is unset unless the \\[QueryAssetsResponse\\] contains a\n\\[QueryAssetsResponse.job_reference\\]. \n**Returns**\n\n- (::Boolean) --- The query response, which can be either an `error` or a valid `response`.\n\n\n If `done` == `false` and the query result is being saved in an output, the\n output_config field will be set.\n If `done` == `true`, exactly one of\n `error`, `query_result` or `output_config` will be set.\n \\[done\\] is unset unless the \\[QueryAssetsResponse\\] contains a\n \\[QueryAssetsResponse.job_reference\\].\n\n### #error\n\n def error() -\u003e ::Google::Rpc::Status\n\n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Error status.\n\n\n Note: The following fields are mutually exclusive: `error`, `query_result`, `output_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #error=\n\n def error=(value) -\u003e ::Google::Rpc::Status\n\n**Parameter**\n\n- **value** ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Error status.\n\n\nNote: The following fields are mutually exclusive: `error`, `query_result`, `output_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Rpc::Status](./Google-Rpc-Status)) --- Error status.\n\n\n Note: The following fields are mutually exclusive: `error`, `query_result`, `output_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #job_reference\n\n def job_reference() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Reference to a query job.\n\n### #job_reference=\n\n def job_reference=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Reference to a query job. \n**Returns**\n\n- (::String) --- Reference to a query job.\n\n### #output_config\n\n def output_config() -\u003e ::Google::Cloud::Asset::V1::QueryAssetsOutputConfig\n\n**Returns**\n\n- ([::Google::Cloud::Asset::V1::QueryAssetsOutputConfig](./Google-Cloud-Asset-V1-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.\n\n\n Note: The following fields are mutually exclusive: `output_config`, `error`, `query_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #output_config=\n\n def output_config=(value) -\u003e ::Google::Cloud::Asset::V1::QueryAssetsOutputConfig\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Asset::V1::QueryAssetsOutputConfig](./Google-Cloud-Asset-V1-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.\n\n\nNote: The following fields are mutually exclusive: `output_config`, `error`, `query_result`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Asset::V1::QueryAssetsOutputConfig](./Google-Cloud-Asset-V1-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.\n\n\n Note: The following fields are mutually exclusive: `output_config`, `error`, `query_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #query_result\n\n def query_result() -\u003e ::Google::Cloud::Asset::V1::QueryResult\n\n**Returns**\n\n- ([::Google::Cloud::Asset::V1::QueryResult](./Google-Cloud-Asset-V1-QueryResult)) --- Result of the query.\n\n\n Note: The following fields are mutually exclusive: `query_result`, `error`, `output_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #query_result=\n\n def query_result=(value) -\u003e ::Google::Cloud::Asset::V1::QueryResult\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Asset::V1::QueryResult](./Google-Cloud-Asset-V1-QueryResult)) --- Result of the query.\n\n\nNote: The following fields are mutually exclusive: `query_result`, `error`, `output_config`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Asset::V1::QueryResult](./Google-Cloud-Asset-V1-QueryResult)) --- Result of the query.\n\n\n Note: The following fields are mutually exclusive: `query_result`, `error`, `output_config`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]