0.5.3 (latest) 0.4.4 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Api Hub V1 Client class Header.

An aggregation of HTTP header occurrences.

Generated from protobuf message `google.cloud.apihub.v1.HttpOperationDetails.Header`

## Namespace

Google \\ Cloud \\ ApiHub \\ V1 \\ HttpOperationDetails

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Header name. |
| `↳ count` | `int|string` The number of occurrences of this Header across transactions. |
| `↳ data_type` | `int` Data type of header |

### getName

Header name.

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

### setName

Header name.

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

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

### getCount

The number of occurrences of this Header across transactions.

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

### setCount

The number of occurrences of this Header across transactions.

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

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

### getDataType

Data type of header

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DataType](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.HttpOperationDetails.DataType). |

### setDataType

Data type of header

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DataType](https://docs.cloud.google.com/php/docs/reference/cloud-apihub/latest/V1.HttpOperationDetails.DataType). |

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