# Google Cloud IoT Core V1 Client - Class HttpConfig (1.7.5)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.7.5 (latest)](https://docs.cloud.google.com/php/docs/reference/cloud-iot/latest/V1.HttpConfig)
- [1.7.4](https://docs.cloud.google.com/php/docs/reference/cloud-iot/1.7.4/V1.HttpConfig)
- [1.6.4](https://docs.cloud.google.com/php/docs/reference/cloud-iot/1.6.4/V1.HttpConfig)
- [1.5.12](https://docs.cloud.google.com/php/docs/reference/cloud-iot/1.5.12/V1.HttpConfig)
Reference documentation and code samples for the Google Cloud IoT Core V1 Client class HttpConfig.

The configuration of the HTTP bridge for a device registry.

Generated from protobuf message `google.cloud.iot.v1.HttpConfig`

## Namespace

Google \\ Cloud \\ Iot \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ http_enabled_state` | `int` If enabled, allows devices to use DeviceService via the HTTP protocol. Otherwise, any requests to DeviceService will fail for this registry. |

### getHttpEnabledState

If enabled, allows devices to use DeviceService via the HTTP protocol.

Otherwise, any requests to DeviceService will fail for this registry.

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

### setHttpEnabledState

If enabled, allows devices to use DeviceService via the HTTP protocol.

Otherwise, any requests to DeviceService will fail for this registry.

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

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