# Google Cloud Network Services V1 Client - Class ExtensionChain (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 ExtensionChain.

A single extension chain wrapper that contains the match conditions and
extensions to execute.

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

## Namespace

Google \\ Cloud \\ NetworkServices \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name for this extension chain. The name is logged as part of the HTTP request logs. The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens, and can have a maximum length of 63 characters. Additionally, the first character must be a letter and the last a letter or a number. |
| `↳ match_condition` | `https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.ExtensionChain.MatchCondition` Required. Conditions under which this chain is invoked for a request. |
| `↳ extensions` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.ExtensionChain.Extension>` Required. A set of extensions to execute for the matching request. At least one extension is required. Up to 3 extensions can be defined for each extension chain for `LbTrafficExtension` resource. `LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension per extension chain. |

### getName

Required. The name for this extension chain.

The name is logged as part of the HTTP request logs.
The name must conform with RFC-1034, is restricted to lower-cased letters,
numbers and hyphens, and can have a maximum length of 63 characters.
Additionally, the first character must be a letter and the last a letter or
a number.

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

### setName

Required. The name for this extension chain.

The name is logged as part of the HTTP request logs.
The name must conform with RFC-1034, is restricted to lower-cased letters,
numbers and hyphens, and can have a maximum length of 63 characters.
Additionally, the first character must be a letter and the last a letter or
a number.

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

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

### getMatchCondition

Required. Conditions under which this chain is invoked for a request.

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

### hasMatchCondition

### clearMatchCondition

### setMatchCondition

Required. Conditions under which this chain is invoked for a request.

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

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

### getExtensions

Required. A set of extensions to execute for the matching request.

At least one extension is required.
Up to 3 extensions can be defined for each extension chain
for `LbTrafficExtension` resource.
`LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
per extension chain.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.ExtensionChain.Extension>` |   |

### setExtensions

Required. A set of extensions to execute for the matching request.

At least one extension is required.
Up to 3 extensions can be defined for each extension chain
for `LbTrafficExtension` resource.
`LbRouteExtension` and `LbEdgeExtension` chains are limited to 1 extension
per extension chain.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-networkservices/latest/V1.ExtensionChain.Extension>` |

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