# Google Cloud IoT Core V1 Client - Class HttpState (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.HttpState)
- [1.7.4](https://docs.cloud.google.com/php/docs/reference/cloud-iot/1.7.4/V1.HttpState)
- [1.6.4](https://docs.cloud.google.com/php/docs/reference/cloud-iot/1.6.4/V1.HttpState)
- [1.5.12](https://docs.cloud.google.com/php/docs/reference/cloud-iot/1.5.12/V1.HttpState)
Reference documentation and code samples for the Google Cloud IoT Core V1 Client class HttpState.

Indicates whether DeviceService (HTTP) is enabled or disabled for the
registry. See the field description for details.

Protobuf type `google.cloud.iot.v1.HttpState`

## Namespace

Google \\ Cloud \\ Iot \\ V1

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### HTTP_STATE_UNSPECIFIED

    Value: 0

No HTTP state specified. If not specified, DeviceService will be
enabled by default.

Generated from protobuf enum `HTTP_STATE_UNSPECIFIED = 0;`

### HTTP_ENABLED

    Value: 1

Enables DeviceService (HTTP) service for the registry.

Generated from protobuf enum `HTTP_ENABLED = 1;`

### HTTP_DISABLED

    Value: 2

Disables DeviceService (HTTP) service for the registry.

Generated from protobuf enum `HTTP_DISABLED = 2;`