Class DeviceInfo (0.15.0)

public final class DeviceInfo extends GeneratedMessageV3 implements DeviceInfoOrBuilder

Message containing device informations.

Protobuf type google.events.firebase.analytics.v1.DeviceInfo

Implements

DeviceInfoOrBuilder

Static Fields

DEVICE_CATEGORY_FIELD_NUMBER

public static final int DEVICE_CATEGORY_FIELD_NUMBER
Field Value
Type Description
int

DEVICE_ID_FIELD_NUMBER

public static final int DEVICE_ID_FIELD_NUMBER
Field Value
Type Description
int

DEVICE_MODEL_FIELD_NUMBER

public static final int DEVICE_MODEL_FIELD_NUMBER
Field Value
Type Description
int

DEVICE_TIME_ZONE_OFFSET_SECONDS_FIELD_NUMBER

public static final int DEVICE_TIME_ZONE_OFFSET_SECONDS_FIELD_NUMBER
Field Value
Type Description
int

LIMITED_AD_TRACKING_FIELD_NUMBER

public static final int LIMITED_AD_TRACKING_FIELD_NUMBER
Field Value
Type Description
int

MOBILE_BRAND_NAME_FIELD_NUMBER

public static final int MOBILE_BRAND_NAME_FIELD_NUMBER
Field Value
Type Description
int

MOBILE_MARKETING_NAME_FIELD_NUMBER

public static final int MOBILE_MARKETING_NAME_FIELD_NUMBER
Field Value
Type Description
int

MOBILE_MODEL_NAME_FIELD_NUMBER

public static final int MOBILE_MODEL_NAME_FIELD_NUMBER
Field Value
Type Description
int

PLATFORM_VERSION_FIELD_NUMBER

public static final int PLATFORM_VERSION_FIELD_NUMBER
Field Value
Type Description
int

RESETTABLE_DEVICE_ID_FIELD_NUMBER

public static final int RESETTABLE_DEVICE_ID_FIELD_NUMBER
Field Value
Type Description
int

USER_DEFAULT_LANGUAGE_FIELD_NUMBER

public static final int USER_DEFAULT_LANGUAGE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DeviceInfo getDefaultInstance()
Returns
Type Description
DeviceInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static DeviceInfo.Builder newBuilder()
Returns
Type Description
DeviceInfo.Builder

newBuilder(DeviceInfo prototype)

public static DeviceInfo.Builder newBuilder(DeviceInfo prototype)
Parameter
Name Description
prototype DeviceInfo
Returns
Type Description
DeviceInfo.Builder

parseDelimitedFrom(InputStream input)

public static DeviceInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DeviceInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeviceInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DeviceInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DeviceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DeviceInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DeviceInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DeviceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DeviceInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DeviceInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DeviceInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DeviceInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DeviceInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DeviceInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeviceInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DeviceInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DeviceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DeviceInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DeviceInfo> parser()
Returns
Type Description
Parser<DeviceInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public DeviceInfo getDefaultInstanceForType()
Returns
Type Description
DeviceInfo

getDeviceCategory()

public String getDeviceCategory()

Device category. Eg. tablet or mobile.

string device_category = 1;

Returns
Type Description
String

The deviceCategory.

getDeviceCategoryBytes()

public ByteString getDeviceCategoryBytes()

Device category. Eg. tablet or mobile.

string device_category = 1;

Returns
Type Description
ByteString

The bytes for deviceCategory.

getDeviceId()

public 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
String

The deviceId.

getDeviceIdBytes()

public 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
ByteString

The bytes for deviceId.

getDeviceModel()

public String getDeviceModel()

Device model. Eg. GT-I9192

string device_model = 12;

Returns
Type Description
String

The deviceModel.

getDeviceModelBytes()

public ByteString getDeviceModelBytes()

Device model. Eg. GT-I9192

string device_model = 12;

Returns
Type Description
ByteString

The bytes for deviceModel.

getDeviceTimeZoneOffsetSeconds()

public 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
int

The deviceTimeZoneOffsetSeconds.

getLimitedAdTracking()

public 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
boolean

The limitedAdTracking.

getMobileBrandName()

public String getMobileBrandName()

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

string mobile_brand_name = 2;

Returns
Type Description
String

The mobileBrandName.

getMobileBrandNameBytes()

public ByteString getMobileBrandNameBytes()

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

string mobile_brand_name = 2;

Returns
Type Description
ByteString

The bytes for mobileBrandName.

getMobileMarketingName()

public String getMobileMarketingName()

Device marketing name. Eg. Galaxy S4 Mini

string mobile_marketing_name = 4;

Returns
Type Description
String

The mobileMarketingName.

getMobileMarketingNameBytes()

public ByteString getMobileMarketingNameBytes()

Device marketing name. Eg. Galaxy S4 Mini

string mobile_marketing_name = 4;

Returns
Type Description
ByteString

The bytes for mobileMarketingName.

getMobileModelName()

public String getMobileModelName()

Device model name. Eg. GT-I9192

string mobile_model_name = 3;

Returns
Type Description
String

The mobileModelName.

getMobileModelNameBytes()

public ByteString getMobileModelNameBytes()

Device model name. Eg. GT-I9192

string mobile_model_name = 3;

Returns
Type Description
ByteString

The bytes for mobileModelName.

getParserForType()

public Parser<DeviceInfo> getParserForType()
Returns
Type Description
Parser<DeviceInfo>
Overrides

getPlatformVersion()

public String getPlatformVersion()

Device OS version when data capture ended. Eg. 4.4.2

string platform_version = 6;

Returns
Type Description
String

The platformVersion.

getPlatformVersionBytes()

public ByteString getPlatformVersionBytes()

Device OS version when data capture ended. Eg. 4.4.2

string platform_version = 6;

Returns
Type Description
ByteString

The bytes for platformVersion.

getResettableDeviceId()

public 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
String

The resettableDeviceId.

getResettableDeviceIdBytes()

public 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
ByteString

The bytes for resettableDeviceId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

getUserDefaultLanguage()

public String getUserDefaultLanguage()

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

string user_default_language = 9;

Returns
Type Description
String

The userDefaultLanguage.

getUserDefaultLanguageBytes()

public ByteString getUserDefaultLanguageBytes()

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

string user_default_language = 9;

Returns
Type Description
ByteString

The bytes for userDefaultLanguage.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DeviceInfo.Builder newBuilderForType()
Returns
Type Description
DeviceInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DeviceInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DeviceInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DeviceInfo.Builder toBuilder()
Returns
Type Description
DeviceInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException