# Google Cloud Asset V1 Client - Class QueryContent (2.3.3)

2.3.3 (latest) 2.3.2 2.2.3 2.1.3 2.0.1 1.16.4 1.14.1 1.13.2 1.12.2 1.11.3 1.10.2 1.9.2 Reference documentation and code samples for the Google Cloud Asset V1 Client class QueryContent.

The query content.

Generated from protobuf message `google.cloud.asset.v1.SavedQuery.QueryContent`

## Namespace

Google \\ Cloud \\ Asset \\ V1 \\ SavedQuery

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ iam_policy_analysis_query` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisQuery` An IAM Policy Analysis query, which could be used in the [AssetService.AnalyzeIamPolicy](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.Client.AssetServiceClient#_Google_Cloud_Asset_V1_Client_AssetServiceClient__analyzeIamPolicy__) RPC or the [AssetService.AnalyzeIamPolicyLongrunning](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.Client.AssetServiceClient#_Google_Cloud_Asset_V1_Client_AssetServiceClient__analyzeIamPolicyLongrunning__) RPC. |

### getIamPolicyAnalysisQuery

An IAM Policy Analysis query, which could be used in
the
[AssetService.AnalyzeIamPolicy](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.Client.AssetServiceClient#_Google_Cloud_Asset_V1_Client_AssetServiceClient__analyzeIamPolicy__)
RPC or the
[AssetService.AnalyzeIamPolicyLongrunning](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.Client.AssetServiceClient#_Google_Cloud_Asset_V1_Client_AssetServiceClient__analyzeIamPolicyLongrunning__)
RPC.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisQuery|null` |   |

### hasIamPolicyAnalysisQuery

### setIamPolicyAnalysisQuery

An IAM Policy Analysis query, which could be used in
the
[AssetService.AnalyzeIamPolicy](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.Client.AssetServiceClient#_Google_Cloud_Asset_V1_Client_AssetServiceClient__analyzeIamPolicy__)
RPC or the
[AssetService.AnalyzeIamPolicyLongrunning](https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.Client.AssetServiceClient#_Google_Cloud_Asset_V1_Client_AssetServiceClient__analyzeIamPolicyLongrunning__)
RPC.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-asset/latest/V1.IamPolicyAnalysisQuery` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getQueryContent

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |