Class DeviceInfo (0.14.1)

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

DEVICE_ID_FIELD_NUMBER

public static final int DEVICE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

DEVICE_MODEL_FIELD_NUMBER

public static final int DEVICE_MODEL_FIELD_NUMBER
Field Value
TypeDescription
int

DEVICE_TIME_ZONE_OFFSET_SECONDS_FIELD_NUMBER

public static final int DEVICE_TIME_ZONE_OFFSET_SECONDS_FIELD_NUMBER
Field Value
TypeDescription
int

LIMITED_AD_TRACKING_FIELD_NUMBER

public static final int LIMITED_AD_TRACKING_FIELD_NUMBER
Field Value
TypeDescription
int

MOBILE_BRAND_NAME_FIELD_NUMBER

public static final int MOBILE_BRAND_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

MOBILE_MARKETING_NAME_FIELD_NUMBER

public static final int MOBILE_MARKETING_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

MOBILE_MODEL_NAME_FIELD_NUMBER

public static final int MOBILE_MODEL_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PLATFORM_VERSION_FIELD_NUMBER

public static final int PLATFORM_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

RESETTABLE_DEVICE_ID_FIELD_NUMBER

public static final int RESETTABLE_DEVICE_ID_FIELD_NUMBER
Field Value
TypeDescription
int

USER_DEFAULT_LANGUAGE_FIELD_NUMBER

public static final int USER_DEFAULT_LANGUAGE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DeviceInfo getDefaultInstance()
Returns
TypeDescription
DeviceInfo

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static DeviceInfo.Builder newBuilder()
Returns
TypeDescription
DeviceInfo.Builder

newBuilder(DeviceInfo prototype)

public static DeviceInfo.Builder newBuilder(DeviceInfo prototype)
Parameter
NameDescription
prototypeDeviceInfo
Returns
TypeDescription
DeviceInfo.Builder

parseDelimitedFrom(InputStream input)

public static DeviceInfo parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DeviceInfo
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeviceInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeviceInfo
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DeviceInfo parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DeviceInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DeviceInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeviceInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DeviceInfo parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DeviceInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DeviceInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeviceInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DeviceInfo parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DeviceInfo
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DeviceInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeviceInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DeviceInfo parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DeviceInfo
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DeviceInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeviceInfo
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DeviceInfo parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DeviceInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DeviceInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeviceInfo
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DeviceInfo> parser()
Returns
TypeDescription
Parser<DeviceInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public DeviceInfo getDefaultInstanceForType()
Returns
TypeDescription
DeviceInfo

getDeviceCategory()

public String getDeviceCategory()

Device category. Eg. tablet or mobile.

string device_category = 1;

Returns
TypeDescription
String

The deviceCategory.

getDeviceCategoryBytes()

public ByteString getDeviceCategoryBytes()

Device category. Eg. tablet or mobile.

string device_category = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for deviceId.

getDeviceModel()

public String getDeviceModel()

Device model. Eg. GT-I9192

string device_model = 12;

Returns
TypeDescription
String

The deviceModel.

getDeviceModelBytes()

public ByteString getDeviceModelBytes()

Device model. Eg. GT-I9192

string device_model = 12;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

The limitedAdTracking.

getMobileBrandName()

public String getMobileBrandName()

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

string mobile_brand_name = 2;

Returns
TypeDescription
String

The mobileBrandName.

getMobileBrandNameBytes()

public ByteString getMobileBrandNameBytes()

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

string mobile_brand_name = 2;

Returns
TypeDescription
ByteString

The bytes for mobileBrandName.

getMobileMarketingName()

public String getMobileMarketingName()

Device marketing name. Eg. Galaxy S4 Mini

string mobile_marketing_name = 4;

Returns
TypeDescription
String

The mobileMarketingName.

getMobileMarketingNameBytes()

public ByteString getMobileMarketingNameBytes()

Device marketing name. Eg. Galaxy S4 Mini

string mobile_marketing_name = 4;

Returns
TypeDescription
ByteString

The bytes for mobileMarketingName.

getMobileModelName()

public String getMobileModelName()

Device model name. Eg. GT-I9192

string mobile_model_name = 3;

Returns
TypeDescription
String

The mobileModelName.

getMobileModelNameBytes()

public ByteString getMobileModelNameBytes()

Device model name. Eg. GT-I9192

string mobile_model_name = 3;

Returns
TypeDescription
ByteString

The bytes for mobileModelName.

getParserForType()

public Parser<DeviceInfo> getParserForType()
Returns
TypeDescription
Parser<DeviceInfo>
Overrides

getPlatformVersion()

public String getPlatformVersion()

Device OS version when data capture ended. Eg. 4.4.2

string platform_version = 6;

Returns
TypeDescription
String

The platformVersion.

getPlatformVersionBytes()

public ByteString getPlatformVersionBytes()

Device OS version when data capture ended. Eg. 4.4.2

string platform_version = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for resettableDeviceId.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUserDefaultLanguage()

public String getUserDefaultLanguage()

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

string user_default_language = 9;

Returns
TypeDescription
String

The userDefaultLanguage.

getUserDefaultLanguageBytes()

public ByteString getUserDefaultLanguageBytes()

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

string user_default_language = 9;

Returns
TypeDescription
ByteString

The bytes for userDefaultLanguage.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public DeviceInfo.Builder newBuilderForType()
Returns
TypeDescription
DeviceInfo.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DeviceInfo.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DeviceInfo.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public DeviceInfo.Builder toBuilder()
Returns
TypeDescription
DeviceInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException