# Google Cloud Security Compliance V1 Client - Class CELExpression (0.4.0)

0.4.0 (latest) 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Security Compliance V1 Client class CELExpression.

A Common Expression Language (CEL) expression that's used to create a rule.

Generated from protobuf message `google.cloud.cloudsecuritycompliance.v1.CELExpression`

## Namespace

Google \\ Cloud \\ CloudSecurityCompliance \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ resource_types_values` | `https://docs.cloud.google.com/php/docs/reference/cloud-securitycompliance/latest/V1.StringList` The resource instance types on which this expression is defined. The format is `<SERVICE_NAME>/<type>`. For example: `compute.googleapis.com/Instance` |
| `↳ expression` | `string` Required. The logical expression in CEL. The maximum length of the condition is 1000 characters. For more information, see [CEL expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions). |

### getResourceTypesValues

The resource instance types on which this expression is defined.

The format is `<SERVICE_NAME>/<type>`.
For example: `compute.googleapis.com/Instance`

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

### hasResourceTypesValues

### setResourceTypesValues

The resource instance types on which this expression is defined.

The format is `<SERVICE_NAME>/<type>`.
For example: `compute.googleapis.com/Instance`

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

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

### getExpression

Required. The logical expression in CEL. The maximum length of the
condition is 1000 characters. For more information, see [CEL
expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions).

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

### setExpression

Required. The logical expression in CEL. The maximum length of the
condition is 1000 characters. For more information, see [CEL
expression](https://cloud.google.com/security-command-center/docs/compliance-manager-write-cel-expressions).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getCriteria

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