# Google Cloud Network Services V1 Client - Class MatchCondition (0.8.2)

0.8.2 (latest) 0.8.1 0.7.1 0.6.1 0.5.0 0.4.0 0.3.0 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Network Services V1 Client class MatchCondition.

Conditions under which this chain is invoked for a request.

Generated from protobuf message `google.cloud.networkservices.v1.ExtensionChain.MatchCondition`

## Namespace

Google \\ Cloud \\ NetworkServices \\ V1 \\ ExtensionChain

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cel_expression` | `string` Required. A Common Expression Language (CEL) expression that is used to match requests for which the extension chain is executed. For more information, see [CEL matcher language reference](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference). |

### getCelExpression

Required. A Common Expression Language (CEL) expression that is used to
match requests for which the extension chain is executed.

For more information, see [CEL matcher language
reference](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference).

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

### setCelExpression

Required. A Common Expression Language (CEL) expression that is used to
match requests for which the extension chain is executed.

For more information, see [CEL matcher language
reference](https://cloud.google.com/service-extensions/docs/cel-matcher-language-reference).

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

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