# Google Cloud Talent Solution V4 Client - Class DeviceInfo (2.3.0)

2.3.0 (latest) 2.2.1 2.1.3 2.0.2 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Talent Solution V4 Client class DeviceInfo.

Device information collected from the job seeker, candidate, or
other entity conducting the job search. Providing this information improves
the quality of the search results across devices.

Generated from protobuf message `google.cloud.talent.v4.DeviceInfo`

## Namespace

Google \\ Cloud \\ Talent \\ V4

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ device_type` | `int` Type of the device. |
| `↳ id` | `string` A device-specific ID. The ID must be a unique identifier that distinguishes the device from other devices. |

### getDeviceType

Type of the device.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DeviceType](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.DeviceInfo.DeviceType). |

### setDeviceType

Type of the device.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DeviceType](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.DeviceInfo.DeviceType). |

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

### getId

A device-specific ID. The ID must be a unique identifier that
distinguishes the device from other devices.

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

### setId

A device-specific ID. The ID must be a unique identifier that
distinguishes the device from other devices.

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

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