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

Request for `UpdateDeviceRegistry`.

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

## Namespace

Google \\ Cloud \\ Iot \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ device_registry` | `https://docs.cloud.google.com/php/docs/reference/cloud-iot/latest/V1.DeviceRegistry` Required. The new values for the device registry. The `id` field must be empty, and the `name` field must indicate the path of the resource. For example, `projects/example-project/locations/us-central1/registries/my-registry`. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Only updates the `device_registry` fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: `event_notification_config`, `http_config`, `mqtt_config`, and `state_notification_config`. |

### getDeviceRegistry

Required. The new values for the device registry. The `id` field must be empty, and
the `name` field must indicate the path of the resource. For example,
`projects/example-project/locations/us-central1/registries/my-registry`.

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

### hasDeviceRegistry

### clearDeviceRegistry

### setDeviceRegistry

Required. The new values for the device registry. The `id` field must be empty, and
the `name` field must indicate the path of the resource. For example,
`projects/example-project/locations/us-central1/registries/my-registry`.

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

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

### getUpdateMask

Required. Only updates the `device_registry` fields indicated by this mask.

The field mask must not be empty, and it must not contain fields that
are immutable or only set by the server.
Mutable top-level fields: `event_notification_config`, `http_config`,
`mqtt_config`, and `state_notification_config`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask|null` |   |

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Required. Only updates the `device_registry` fields indicated by this mask.

The field mask must not be empty, and it must not contain fields that
are immutable or only set by the server.
Mutable top-level fields: `event_notification_config`, `http_config`,
`mqtt_config`, and `state_notification_config`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `deviceRegistry` | `https://docs.cloud.google.com/php/docs/reference/cloud-iot/latest/V1.DeviceRegistry` Required. The new values for the device registry. The `id` field must be empty, and the `name` field must indicate the path of the resource. For example, `projects/example-project/locations/us-central1/registries/my-registry`. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Only updates the `device_registry` fields indicated by this mask. The field mask must not be empty, and it must not contain fields that are immutable or only set by the server. Mutable top-level fields: `event_notification_config`, `http_config`, `mqtt_config`, and `state_notification_config`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-iot/latest/V1.UpdateDeviceRegistryRequest` |   |