1.9.0 (latest) 1.8.0 1.7.0 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.2 0.32.0 0.31.0 0.30.0 0.29.3 0.28.1 0.27.0 0.26.1 0.25.0 0.24.0 0.23.0 0.22.0 0.21.1 0.20.1 0.19.0 0.18.0 0.17.3 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

    def done() -> ::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=

    def done=(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\].

### #error

    def error() -> ::Google::Rpc::Status

**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Rpc-Status)) --- Error status.


  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.

### #error=

    def error=(value) -> ::Google::Rpc::Status

**Parameter**

- **value** ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Rpc-Status)) --- Error status.


  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.
**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Rpc-Status)) --- Error status.


  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.

### #job_reference

    def job_reference() -> ::String

**Returns**

- (::String) --- Reference to a query job.

### #job_reference=

    def job_reference=(value) -> ::String

**Parameter**

- **value** (::String) --- Reference to a query job.
**Returns**

- (::String) --- Reference to a query job.

### #output_config

    def output_config() -> ::Google::Cloud::Asset::V1::QueryAssetsOutputConfig

**Returns**

- ([::Google::Cloud::Asset::V1::QueryAssetsOutputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/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.

### #output_config=

    def output_config=(value) -> ::Google::Cloud::Asset::V1::QueryAssetsOutputConfig

**Parameter**

- **value** ([::Google::Cloud::Asset::V1::QueryAssetsOutputConfig](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/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.

### #query_result

    def query_result() -> ::Google::Cloud::Asset::V1::QueryResult

**Returns**

- ([::Google::Cloud::Asset::V1::QueryResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-QueryResult)) --- Result of the query.


  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.

### #query_result=

    def query_result=(value) -> ::Google::Cloud::Asset::V1::QueryResult

**Parameter**

- **value** ([::Google::Cloud::Asset::V1::QueryResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-QueryResult)) --- Result of the query.


  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.
**Returns**

- ([::Google::Cloud::Asset::V1::QueryResult](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-QueryResult)) --- Result of the query.


  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.