# Interface DeviceInfoOrBuilder (0.16.0)

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

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.DeviceInfoOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.firebase.analytics.v1.DeviceInfoOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.firebase.analytics.v1.DeviceInfoOrBuilder)

    public interface DeviceInfoOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getDeviceCategory()

    public abstract String getDeviceCategory()

Device category.
Eg. tablet or mobile.

`string device_category = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The deviceCategory. |

### getDeviceCategoryBytes()

    public abstract ByteString getDeviceCategoryBytes()

Device category.
Eg. tablet or mobile.

`string device_category = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for deviceCategory. |

### getDeviceId()

    public abstract String getDeviceId()

Vendor specific device identifier. This is IDFV on iOS. Not used for
Android.
Example: "599F9C00-92DC-4B5C-9464-7971F01F8370"

`string device_id = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The deviceId. |

### getDeviceIdBytes()

    public abstract ByteString getDeviceIdBytes()

Vendor specific device identifier. This is IDFV on iOS. Not used for
Android.
Example: "599F9C00-92DC-4B5C-9464-7971F01F8370"

`string device_id = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for deviceId. |

### getDeviceModel()

    public abstract String getDeviceModel()

Device model.
Eg. GT-I9192

`string device_model = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The deviceModel. |

### getDeviceModelBytes()

    public abstract ByteString getDeviceModelBytes()

Device model.
Eg. GT-I9192

`string device_model = 12;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for deviceModel. |

### getDeviceTimeZoneOffsetSeconds()

    public abstract int getDeviceTimeZoneOffsetSeconds()

The timezone of the device when data was uploaded as seconds skew from UTC.

`int32 device_time_zone_offset_seconds = 10;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The deviceTimeZoneOffsetSeconds. |

### getLimitedAdTracking()

    public abstract boolean getLimitedAdTracking()

The device's Limit Ad Tracking setting.
When true, we cannot use device_id for remarketing, demographics or
influencing ads serving behaviour. However, we can use device_id for
conversion tracking and campaign attribution.

`bool limited_ad_tracking = 11;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The limitedAdTracking. |

### getMobileBrandName()

    public abstract String getMobileBrandName()

Device brand name.
Eg. Samsung, HTC, etc.

`string mobile_brand_name = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The mobileBrandName. |

### getMobileBrandNameBytes()

    public abstract ByteString getMobileBrandNameBytes()

Device brand name.
Eg. Samsung, HTC, etc.

`string mobile_brand_name = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for mobileBrandName. |

### getMobileMarketingName()

    public abstract String getMobileMarketingName()

Device marketing name.
Eg. Galaxy S4 Mini

`string mobile_marketing_name = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The mobileMarketingName. |

### getMobileMarketingNameBytes()

    public abstract ByteString getMobileMarketingNameBytes()

Device marketing name.
Eg. Galaxy S4 Mini

`string mobile_marketing_name = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for mobileMarketingName. |

### getMobileModelName()

    public abstract String getMobileModelName()

Device model name.
Eg. GT-I9192

`string mobile_model_name = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The mobileModelName. |

### getMobileModelNameBytes()

    public abstract ByteString getMobileModelNameBytes()

Device model name.
Eg. GT-I9192

`string mobile_model_name = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for mobileModelName. |

### getPlatformVersion()

    public abstract String getPlatformVersion()

Device OS version when data capture ended.
Eg. 4.4.2

`string platform_version = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The platformVersion. |

### getPlatformVersionBytes()

    public abstract ByteString getPlatformVersionBytes()

Device OS version when data capture ended.
Eg. 4.4.2

`string platform_version = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for platformVersion. |

### getResettableDeviceId()

    public abstract String getResettableDeviceId()

The type of the resettable_device_id is always IDFA on iOS and AdId
on Android.
Example: "71683BF9-FA3B-4B0D-9535-A1F05188BAF3"

`string resettable_device_id = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The resettableDeviceId. |

### getResettableDeviceIdBytes()

    public abstract ByteString getResettableDeviceIdBytes()

The type of the resettable_device_id is always IDFA on iOS and AdId
on Android.
Example: "71683BF9-FA3B-4B0D-9535-A1F05188BAF3"

`string resettable_device_id = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for resettableDeviceId. |

### getUserDefaultLanguage()

    public abstract String getUserDefaultLanguage()

The user language.
Eg. "en-us", "en-za", "zh-tw", "jp"

`string user_default_language = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The userDefaultLanguage. |

### getUserDefaultLanguageBytes()

    public abstract ByteString getUserDefaultLanguageBytes()

The user language.
Eg. "en-us", "en-za", "zh-tw", "jp"

`string user_default_language = 9;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for userDefaultLanguage. |