# Google Cloud Network Security V1 Client - Class HeaderSet (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class HeaderSet.

Describes a set of HTTP headers to match against.

Generated from protobuf message `google.cloud.networksecurity.v1.AuthzPolicy.AuthzRule.To.RequestOperation.HeaderSet`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1 \\ AuthzPolicy \\ AuthzRule \\ To \\ RequestOperation

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ headers` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.AuthzRule.HeaderMatch>` Required. A list of headers to match against in http header. The match can be one of exact, prefix, suffix, or contains (substring match). The match follows AND semantics which means all the headers must match. Matches are always case sensitive unless the ignoreCase is set. Limited to 10 headers per Authorization Policy. |

### getHeaders

Required. A list of headers to match against in http header.

The match can be one of exact, prefix, suffix, or contains
(substring match). The match follows AND semantics which means all
the headers must match. Matches are always case sensitive unless
the ignoreCase is set. Limited to 10 headers per Authorization
Policy.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.AuthzRule.HeaderMatch>` |   |

### setHeaders

Required. A list of headers to match against in http header.

The match can be one of exact, prefix, suffix, or contains
(substring match). The match follows AND semantics which means all
the headers must match. Matches are always case sensitive unless
the ignoreCase is set. Limited to 10 headers per Authorization
Policy.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.AuthzPolicy.AuthzRule.HeaderMatch>` |

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