Class DeviceInfo.Builder (0.15.0)

public static final class DeviceInfo.Builder extends GeneratedMessageV3.Builder<DeviceInfo.Builder> implements DeviceInfoOrBuilder

Message containing device informations.

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

Implements

DeviceInfoOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeviceInfo.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeviceInfo.Builder
Overrides

build()

public DeviceInfo build()
Returns
Type Description
DeviceInfo

buildPartial()

public DeviceInfo buildPartial()
Returns
Type Description
DeviceInfo

clear()

public DeviceInfo.Builder clear()
Returns
Type Description
DeviceInfo.Builder
Overrides

clearDeviceCategory()

public DeviceInfo.Builder clearDeviceCategory()

Device category. Eg. tablet or mobile.

string device_category = 1;

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

clearDeviceId()

public DeviceInfo.Builder clearDeviceId()

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
DeviceInfo.Builder

This builder for chaining.

clearDeviceModel()

public DeviceInfo.Builder clearDeviceModel()

Device model. Eg. GT-I9192

string device_model = 12;

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

clearDeviceTimeZoneOffsetSeconds()

public DeviceInfo.Builder clearDeviceTimeZoneOffsetSeconds()

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

int32 device_time_zone_offset_seconds = 10;

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public DeviceInfo.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DeviceInfo.Builder
Overrides

clearLimitedAdTracking()

public DeviceInfo.Builder clearLimitedAdTracking()

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
DeviceInfo.Builder

This builder for chaining.

clearMobileBrandName()

public DeviceInfo.Builder clearMobileBrandName()

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

string mobile_brand_name = 2;

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

clearMobileMarketingName()

public DeviceInfo.Builder clearMobileMarketingName()

Device marketing name. Eg. Galaxy S4 Mini

string mobile_marketing_name = 4;

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

clearMobileModelName()

public DeviceInfo.Builder clearMobileModelName()

Device model name. Eg. GT-I9192

string mobile_model_name = 3;

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeviceInfo.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DeviceInfo.Builder
Overrides

clearPlatformVersion()

public DeviceInfo.Builder clearPlatformVersion()

Device OS version when data capture ended. Eg. 4.4.2

string platform_version = 6;

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

clearResettableDeviceId()

public DeviceInfo.Builder clearResettableDeviceId()

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
DeviceInfo.Builder

This builder for chaining.

clearUserDefaultLanguage()

public DeviceInfo.Builder clearUserDefaultLanguage()

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

string user_default_language = 9;

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

clone()

public DeviceInfo.Builder clone()
Returns
Type Description
DeviceInfo.Builder
Overrides

getDefaultInstanceForType()

public DeviceInfo getDefaultInstanceForType()
Returns
Type Description
DeviceInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeviceInfo other)

public DeviceInfo.Builder mergeFrom(DeviceInfo other)
Parameter
Name Description
other DeviceInfo
Returns
Type Description
DeviceInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeviceInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeviceInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DeviceInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DeviceInfo.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeviceInfo.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeviceInfo.Builder
Overrides

setDeviceCategory(String value)

public DeviceInfo.Builder setDeviceCategory(String value)

Device category. Eg. tablet or mobile.

string device_category = 1;

Parameter
Name Description
value String

The deviceCategory to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setDeviceCategoryBytes(ByteString value)

public DeviceInfo.Builder setDeviceCategoryBytes(ByteString value)

Device category. Eg. tablet or mobile.

string device_category = 1;

Parameter
Name Description
value ByteString

The bytes for deviceCategory to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setDeviceId(String value)

public DeviceInfo.Builder setDeviceId(String value)

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

string device_id = 7;

Parameter
Name Description
value String

The deviceId to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setDeviceIdBytes(ByteString value)

public DeviceInfo.Builder setDeviceIdBytes(ByteString value)

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

string device_id = 7;

Parameter
Name Description
value ByteString

The bytes for deviceId to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setDeviceModel(String value)

public DeviceInfo.Builder setDeviceModel(String value)

Device model. Eg. GT-I9192

string device_model = 12;

Parameter
Name Description
value String

The deviceModel to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setDeviceModelBytes(ByteString value)

public DeviceInfo.Builder setDeviceModelBytes(ByteString value)

Device model. Eg. GT-I9192

string device_model = 12;

Parameter
Name Description
value ByteString

The bytes for deviceModel to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setDeviceTimeZoneOffsetSeconds(int value)

public DeviceInfo.Builder setDeviceTimeZoneOffsetSeconds(int value)

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

int32 device_time_zone_offset_seconds = 10;

Parameter
Name Description
value int

The deviceTimeZoneOffsetSeconds to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DeviceInfo.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeviceInfo.Builder
Overrides

setLimitedAdTracking(boolean value)

public DeviceInfo.Builder setLimitedAdTracking(boolean value)

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;

Parameter
Name Description
value boolean

The limitedAdTracking to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setMobileBrandName(String value)

public DeviceInfo.Builder setMobileBrandName(String value)

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

string mobile_brand_name = 2;

Parameter
Name Description
value String

The mobileBrandName to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setMobileBrandNameBytes(ByteString value)

public DeviceInfo.Builder setMobileBrandNameBytes(ByteString value)

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

string mobile_brand_name = 2;

Parameter
Name Description
value ByteString

The bytes for mobileBrandName to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setMobileMarketingName(String value)

public DeviceInfo.Builder setMobileMarketingName(String value)

Device marketing name. Eg. Galaxy S4 Mini

string mobile_marketing_name = 4;

Parameter
Name Description
value String

The mobileMarketingName to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setMobileMarketingNameBytes(ByteString value)

public DeviceInfo.Builder setMobileMarketingNameBytes(ByteString value)

Device marketing name. Eg. Galaxy S4 Mini

string mobile_marketing_name = 4;

Parameter
Name Description
value ByteString

The bytes for mobileMarketingName to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setMobileModelName(String value)

public DeviceInfo.Builder setMobileModelName(String value)

Device model name. Eg. GT-I9192

string mobile_model_name = 3;

Parameter
Name Description
value String

The mobileModelName to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setMobileModelNameBytes(ByteString value)

public DeviceInfo.Builder setMobileModelNameBytes(ByteString value)

Device model name. Eg. GT-I9192

string mobile_model_name = 3;

Parameter
Name Description
value ByteString

The bytes for mobileModelName to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setPlatformVersion(String value)

public DeviceInfo.Builder setPlatformVersion(String value)

Device OS version when data capture ended. Eg. 4.4.2

string platform_version = 6;

Parameter
Name Description
value String

The platformVersion to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setPlatformVersionBytes(ByteString value)

public DeviceInfo.Builder setPlatformVersionBytes(ByteString value)

Device OS version when data capture ended. Eg. 4.4.2

string platform_version = 6;

Parameter
Name Description
value ByteString

The bytes for platformVersion to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DeviceInfo.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DeviceInfo.Builder
Overrides

setResettableDeviceId(String value)

public DeviceInfo.Builder setResettableDeviceId(String value)

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;

Parameter
Name Description
value String

The resettableDeviceId to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setResettableDeviceIdBytes(ByteString value)

public DeviceInfo.Builder setResettableDeviceIdBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for resettableDeviceId to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final DeviceInfo.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeviceInfo.Builder
Overrides

setUserDefaultLanguage(String value)

public DeviceInfo.Builder setUserDefaultLanguage(String value)

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

string user_default_language = 9;

Parameter
Name Description
value String

The userDefaultLanguage to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.

setUserDefaultLanguageBytes(ByteString value)

public DeviceInfo.Builder setUserDefaultLanguageBytes(ByteString value)

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

string user_default_language = 9;

Parameter
Name Description
value ByteString

The bytes for userDefaultLanguage to set.

Returns
Type Description
DeviceInfo.Builder

This builder for chaining.