Class UserDimensions.Builder (0.14.1)

public static final class UserDimensions.Builder extends GeneratedMessageV3.Builder<UserDimensions.Builder> implements UserDimensionsOrBuilder

Message containing information about the user associated with the event.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UserDimensions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UserDimensions.Builder
Overrides

build()

public UserDimensions build()
Returns
TypeDescription
UserDimensions

buildPartial()

public UserDimensions buildPartial()
Returns
TypeDescription
UserDimensions

clear()

public UserDimensions.Builder clear()
Returns
TypeDescription
UserDimensions.Builder
Overrides

clearAppInfo()

public UserDimensions.Builder clearAppInfo()

App information.

.google.events.firebase.analytics.v1.AppInfo app_info = 6;

Returns
TypeDescription
UserDimensions.Builder

clearBundleInfo()

public UserDimensions.Builder clearBundleInfo()

Information regarding the bundle in which these events were uploaded.

.google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8;

Returns
TypeDescription
UserDimensions.Builder

clearDeviceInfo()

public UserDimensions.Builder clearDeviceInfo()

Device information.

.google.events.firebase.analytics.v1.DeviceInfo device_info = 4;

Returns
TypeDescription
UserDimensions.Builder

clearField(Descriptors.FieldDescriptor field)

public UserDimensions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UserDimensions.Builder
Overrides

clearFirstOpenTimestampMicros()

public UserDimensions.Builder clearFirstOpenTimestampMicros()

The time (in microseconds) at which the user first opened the app.

int64 first_open_timestamp_micros = 2;

Returns
TypeDescription
UserDimensions.Builder

This builder for chaining.

clearGeoInfo()

public UserDimensions.Builder clearGeoInfo()

User's geographic information.

.google.events.firebase.analytics.v1.GeoInfo geo_info = 5;

Returns
TypeDescription
UserDimensions.Builder

clearLtvInfo()

public UserDimensions.Builder clearLtvInfo()

Lifetime Value information about this user.

.google.events.firebase.analytics.v1.LtvInfo ltv_info = 9;

Returns
TypeDescription
UserDimensions.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UserDimensions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UserDimensions.Builder
Overrides

clearTrafficSource()

public UserDimensions.Builder clearTrafficSource()

Information about marketing campaign which acquired the user.

.google.events.firebase.analytics.v1.TrafficSource traffic_source = 7;

Returns
TypeDescription
UserDimensions.Builder

clearUserId()

public UserDimensions.Builder clearUserId()

The user ID set via the setUserId API.

string user_id = 1;

Returns
TypeDescription
UserDimensions.Builder

This builder for chaining.

clearUserProperties()

public UserDimensions.Builder clearUserProperties()
Returns
TypeDescription
UserDimensions.Builder

clone()

public UserDimensions.Builder clone()
Returns
TypeDescription
UserDimensions.Builder
Overrides

containsUserProperties(String key)

public boolean containsUserProperties(String key)

A repeated record of user properties set with the setUserProperty API. https://firebase.google.com/docs/analytics/android/properties

map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAppInfo()

public AppInfo getAppInfo()

App information.

.google.events.firebase.analytics.v1.AppInfo app_info = 6;

Returns
TypeDescription
AppInfo

The appInfo.

getAppInfoBuilder()

public AppInfo.Builder getAppInfoBuilder()

App information.

.google.events.firebase.analytics.v1.AppInfo app_info = 6;

Returns
TypeDescription
AppInfo.Builder

getAppInfoOrBuilder()

public AppInfoOrBuilder getAppInfoOrBuilder()

App information.

.google.events.firebase.analytics.v1.AppInfo app_info = 6;

Returns
TypeDescription
AppInfoOrBuilder

getBundleInfo()

public ExportBundleInfo getBundleInfo()

Information regarding the bundle in which these events were uploaded.

.google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8;

Returns
TypeDescription
ExportBundleInfo

The bundleInfo.

getBundleInfoBuilder()

public ExportBundleInfo.Builder getBundleInfoBuilder()

Information regarding the bundle in which these events were uploaded.

.google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8;

Returns
TypeDescription
ExportBundleInfo.Builder

getBundleInfoOrBuilder()

public ExportBundleInfoOrBuilder getBundleInfoOrBuilder()

Information regarding the bundle in which these events were uploaded.

.google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8;

Returns
TypeDescription
ExportBundleInfoOrBuilder

getDefaultInstanceForType()

public UserDimensions getDefaultInstanceForType()
Returns
TypeDescription
UserDimensions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDeviceInfo()

public DeviceInfo getDeviceInfo()

Device information.

.google.events.firebase.analytics.v1.DeviceInfo device_info = 4;

Returns
TypeDescription
DeviceInfo

The deviceInfo.

getDeviceInfoBuilder()

public DeviceInfo.Builder getDeviceInfoBuilder()

Device information.

.google.events.firebase.analytics.v1.DeviceInfo device_info = 4;

Returns
TypeDescription
DeviceInfo.Builder

getDeviceInfoOrBuilder()

public DeviceInfoOrBuilder getDeviceInfoOrBuilder()

Device information.

.google.events.firebase.analytics.v1.DeviceInfo device_info = 4;

Returns
TypeDescription
DeviceInfoOrBuilder

getFirstOpenTimestampMicros()

public long getFirstOpenTimestampMicros()

The time (in microseconds) at which the user first opened the app.

int64 first_open_timestamp_micros = 2;

Returns
TypeDescription
long

The firstOpenTimestampMicros.

getGeoInfo()

public GeoInfo getGeoInfo()

User's geographic information.

.google.events.firebase.analytics.v1.GeoInfo geo_info = 5;

Returns
TypeDescription
GeoInfo

The geoInfo.

getGeoInfoBuilder()

public GeoInfo.Builder getGeoInfoBuilder()

User's geographic information.

.google.events.firebase.analytics.v1.GeoInfo geo_info = 5;

Returns
TypeDescription
GeoInfo.Builder

getGeoInfoOrBuilder()

public GeoInfoOrBuilder getGeoInfoOrBuilder()

User's geographic information.

.google.events.firebase.analytics.v1.GeoInfo geo_info = 5;

Returns
TypeDescription
GeoInfoOrBuilder

getLtvInfo()

public LtvInfo getLtvInfo()

Lifetime Value information about this user.

.google.events.firebase.analytics.v1.LtvInfo ltv_info = 9;

Returns
TypeDescription
LtvInfo

The ltvInfo.

getLtvInfoBuilder()

public LtvInfo.Builder getLtvInfoBuilder()

Lifetime Value information about this user.

.google.events.firebase.analytics.v1.LtvInfo ltv_info = 9;

Returns
TypeDescription
LtvInfo.Builder

getLtvInfoOrBuilder()

public LtvInfoOrBuilder getLtvInfoOrBuilder()

Lifetime Value information about this user.

.google.events.firebase.analytics.v1.LtvInfo ltv_info = 9;

Returns
TypeDescription
LtvInfoOrBuilder

getMutableUserProperties()

public Map<String,UserPropertyValue> getMutableUserProperties()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,UserPropertyValue>

getTrafficSource()

public TrafficSource getTrafficSource()

Information about marketing campaign which acquired the user.

.google.events.firebase.analytics.v1.TrafficSource traffic_source = 7;

Returns
TypeDescription
TrafficSource

The trafficSource.

getTrafficSourceBuilder()

public TrafficSource.Builder getTrafficSourceBuilder()

Information about marketing campaign which acquired the user.

.google.events.firebase.analytics.v1.TrafficSource traffic_source = 7;

Returns
TypeDescription
TrafficSource.Builder

getTrafficSourceOrBuilder()

public TrafficSourceOrBuilder getTrafficSourceOrBuilder()

Information about marketing campaign which acquired the user.

.google.events.firebase.analytics.v1.TrafficSource traffic_source = 7;

Returns
TypeDescription
TrafficSourceOrBuilder

getUserId()

public String getUserId()

The user ID set via the setUserId API.

string user_id = 1;

Returns
TypeDescription
String

The userId.

getUserIdBytes()

public ByteString getUserIdBytes()

The user ID set via the setUserId API.

string user_id = 1;

Returns
TypeDescription
ByteString

The bytes for userId.

getUserProperties()

public Map<String,UserPropertyValue> getUserProperties()
Returns
TypeDescription
Map<String,UserPropertyValue>

getUserPropertiesCount()

public int getUserPropertiesCount()

A repeated record of user properties set with the setUserProperty API. https://firebase.google.com/docs/analytics/android/properties

map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3;

Returns
TypeDescription
int

getUserPropertiesMap()

public Map<String,UserPropertyValue> getUserPropertiesMap()

A repeated record of user properties set with the setUserProperty API. https://firebase.google.com/docs/analytics/android/properties

map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3;

Returns
TypeDescription
Map<String,UserPropertyValue>

getUserPropertiesOrDefault(String key, UserPropertyValue defaultValue)

public UserPropertyValue getUserPropertiesOrDefault(String key, UserPropertyValue defaultValue)

A repeated record of user properties set with the setUserProperty API. https://firebase.google.com/docs/analytics/android/properties

map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3;

Parameters
NameDescription
keyString
defaultValueUserPropertyValue
Returns
TypeDescription
UserPropertyValue

getUserPropertiesOrThrow(String key)

public UserPropertyValue getUserPropertiesOrThrow(String key)

A repeated record of user properties set with the setUserProperty API. https://firebase.google.com/docs/analytics/android/properties

map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
UserPropertyValue

hasAppInfo()

public boolean hasAppInfo()

App information.

.google.events.firebase.analytics.v1.AppInfo app_info = 6;

Returns
TypeDescription
boolean

Whether the appInfo field is set.

hasBundleInfo()

public boolean hasBundleInfo()

Information regarding the bundle in which these events were uploaded.

.google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8;

Returns
TypeDescription
boolean

Whether the bundleInfo field is set.

hasDeviceInfo()

public boolean hasDeviceInfo()

Device information.

.google.events.firebase.analytics.v1.DeviceInfo device_info = 4;

Returns
TypeDescription
boolean

Whether the deviceInfo field is set.

hasGeoInfo()

public boolean hasGeoInfo()

User's geographic information.

.google.events.firebase.analytics.v1.GeoInfo geo_info = 5;

Returns
TypeDescription
boolean

Whether the geoInfo field is set.

hasLtvInfo()

public boolean hasLtvInfo()

Lifetime Value information about this user.

.google.events.firebase.analytics.v1.LtvInfo ltv_info = 9;

Returns
TypeDescription
boolean

Whether the ltvInfo field is set.

hasTrafficSource()

public boolean hasTrafficSource()

Information about marketing campaign which acquired the user.

.google.events.firebase.analytics.v1.TrafficSource traffic_source = 7;

Returns
TypeDescription
boolean

Whether the trafficSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAppInfo(AppInfo value)

public UserDimensions.Builder mergeAppInfo(AppInfo value)

App information.

.google.events.firebase.analytics.v1.AppInfo app_info = 6;

Parameter
NameDescription
valueAppInfo
Returns
TypeDescription
UserDimensions.Builder

mergeBundleInfo(ExportBundleInfo value)

public UserDimensions.Builder mergeBundleInfo(ExportBundleInfo value)

Information regarding the bundle in which these events were uploaded.

.google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8;

Parameter
NameDescription
valueExportBundleInfo
Returns
TypeDescription
UserDimensions.Builder

mergeDeviceInfo(DeviceInfo value)

public UserDimensions.Builder mergeDeviceInfo(DeviceInfo value)

Device information.

.google.events.firebase.analytics.v1.DeviceInfo device_info = 4;

Parameter
NameDescription
valueDeviceInfo
Returns
TypeDescription
UserDimensions.Builder

mergeFrom(UserDimensions other)

public UserDimensions.Builder mergeFrom(UserDimensions other)
Parameter
NameDescription
otherUserDimensions
Returns
TypeDescription
UserDimensions.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UserDimensions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UserDimensions.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UserDimensions.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UserDimensions.Builder
Overrides

mergeGeoInfo(GeoInfo value)

public UserDimensions.Builder mergeGeoInfo(GeoInfo value)

User's geographic information.

.google.events.firebase.analytics.v1.GeoInfo geo_info = 5;

Parameter
NameDescription
valueGeoInfo
Returns
TypeDescription
UserDimensions.Builder

mergeLtvInfo(LtvInfo value)

public UserDimensions.Builder mergeLtvInfo(LtvInfo value)

Lifetime Value information about this user.

.google.events.firebase.analytics.v1.LtvInfo ltv_info = 9;

Parameter
NameDescription
valueLtvInfo
Returns
TypeDescription
UserDimensions.Builder

mergeTrafficSource(TrafficSource value)

public UserDimensions.Builder mergeTrafficSource(TrafficSource value)

Information about marketing campaign which acquired the user.

.google.events.firebase.analytics.v1.TrafficSource traffic_source = 7;

Parameter
NameDescription
valueTrafficSource
Returns
TypeDescription
UserDimensions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UserDimensions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UserDimensions.Builder
Overrides

putAllUserProperties(Map<String,UserPropertyValue> values)

public UserDimensions.Builder putAllUserProperties(Map<String,UserPropertyValue> values)

A repeated record of user properties set with the setUserProperty API. https://firebase.google.com/docs/analytics/android/properties

map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3;

Parameter
NameDescription
valuesMap<String,UserPropertyValue>
Returns
TypeDescription
UserDimensions.Builder

putUserProperties(String key, UserPropertyValue value)

public UserDimensions.Builder putUserProperties(String key, UserPropertyValue value)

A repeated record of user properties set with the setUserProperty API. https://firebase.google.com/docs/analytics/android/properties

map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3;

Parameters
NameDescription
keyString
valueUserPropertyValue
Returns
TypeDescription
UserDimensions.Builder

removeUserProperties(String key)

public UserDimensions.Builder removeUserProperties(String key)

A repeated record of user properties set with the setUserProperty API. https://firebase.google.com/docs/analytics/android/properties

map<string, .google.events.firebase.analytics.v1.UserPropertyValue> user_properties = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
UserDimensions.Builder

setAppInfo(AppInfo value)

public UserDimensions.Builder setAppInfo(AppInfo value)

App information.

.google.events.firebase.analytics.v1.AppInfo app_info = 6;

Parameter
NameDescription
valueAppInfo
Returns
TypeDescription
UserDimensions.Builder

setAppInfo(AppInfo.Builder builderForValue)

public UserDimensions.Builder setAppInfo(AppInfo.Builder builderForValue)

App information.

.google.events.firebase.analytics.v1.AppInfo app_info = 6;

Parameter
NameDescription
builderForValueAppInfo.Builder
Returns
TypeDescription
UserDimensions.Builder

setBundleInfo(ExportBundleInfo value)

public UserDimensions.Builder setBundleInfo(ExportBundleInfo value)

Information regarding the bundle in which these events were uploaded.

.google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8;

Parameter
NameDescription
valueExportBundleInfo
Returns
TypeDescription
UserDimensions.Builder

setBundleInfo(ExportBundleInfo.Builder builderForValue)

public UserDimensions.Builder setBundleInfo(ExportBundleInfo.Builder builderForValue)

Information regarding the bundle in which these events were uploaded.

.google.events.firebase.analytics.v1.ExportBundleInfo bundle_info = 8;

Parameter
NameDescription
builderForValueExportBundleInfo.Builder
Returns
TypeDescription
UserDimensions.Builder

setDeviceInfo(DeviceInfo value)

public UserDimensions.Builder setDeviceInfo(DeviceInfo value)

Device information.

.google.events.firebase.analytics.v1.DeviceInfo device_info = 4;

Parameter
NameDescription
valueDeviceInfo
Returns
TypeDescription
UserDimensions.Builder

setDeviceInfo(DeviceInfo.Builder builderForValue)

public UserDimensions.Builder setDeviceInfo(DeviceInfo.Builder builderForValue)

Device information.

.google.events.firebase.analytics.v1.DeviceInfo device_info = 4;

Parameter
NameDescription
builderForValueDeviceInfo.Builder
Returns
TypeDescription
UserDimensions.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UserDimensions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UserDimensions.Builder
Overrides

setFirstOpenTimestampMicros(long value)

public UserDimensions.Builder setFirstOpenTimestampMicros(long value)

The time (in microseconds) at which the user first opened the app.

int64 first_open_timestamp_micros = 2;

Parameter
NameDescription
valuelong

The firstOpenTimestampMicros to set.

Returns
TypeDescription
UserDimensions.Builder

This builder for chaining.

setGeoInfo(GeoInfo value)

public UserDimensions.Builder setGeoInfo(GeoInfo value)

User's geographic information.

.google.events.firebase.analytics.v1.GeoInfo geo_info = 5;

Parameter
NameDescription
valueGeoInfo
Returns
TypeDescription
UserDimensions.Builder

setGeoInfo(GeoInfo.Builder builderForValue)

public UserDimensions.Builder setGeoInfo(GeoInfo.Builder builderForValue)

User's geographic information.

.google.events.firebase.analytics.v1.GeoInfo geo_info = 5;

Parameter
NameDescription
builderForValueGeoInfo.Builder
Returns
TypeDescription
UserDimensions.Builder

setLtvInfo(LtvInfo value)

public UserDimensions.Builder setLtvInfo(LtvInfo value)

Lifetime Value information about this user.

.google.events.firebase.analytics.v1.LtvInfo ltv_info = 9;

Parameter
NameDescription
valueLtvInfo
Returns
TypeDescription
UserDimensions.Builder

setLtvInfo(LtvInfo.Builder builderForValue)

public UserDimensions.Builder setLtvInfo(LtvInfo.Builder builderForValue)

Lifetime Value information about this user.

.google.events.firebase.analytics.v1.LtvInfo ltv_info = 9;

Parameter
NameDescription
builderForValueLtvInfo.Builder
Returns
TypeDescription
UserDimensions.Builder

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

public UserDimensions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UserDimensions.Builder
Overrides

setTrafficSource(TrafficSource value)

public UserDimensions.Builder setTrafficSource(TrafficSource value)

Information about marketing campaign which acquired the user.

.google.events.firebase.analytics.v1.TrafficSource traffic_source = 7;

Parameter
NameDescription
valueTrafficSource
Returns
TypeDescription
UserDimensions.Builder

setTrafficSource(TrafficSource.Builder builderForValue)

public UserDimensions.Builder setTrafficSource(TrafficSource.Builder builderForValue)

Information about marketing campaign which acquired the user.

.google.events.firebase.analytics.v1.TrafficSource traffic_source = 7;

Parameter
NameDescription
builderForValueTrafficSource.Builder
Returns
TypeDescription
UserDimensions.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final UserDimensions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UserDimensions.Builder
Overrides

setUserId(String value)

public UserDimensions.Builder setUserId(String value)

The user ID set via the setUserId API.

string user_id = 1;

Parameter
NameDescription
valueString

The userId to set.

Returns
TypeDescription
UserDimensions.Builder

This builder for chaining.

setUserIdBytes(ByteString value)

public UserDimensions.Builder setUserIdBytes(ByteString value)

The user ID set via the setUserId API.

string user_id = 1;

Parameter
NameDescription
valueByteString

The bytes for userId to set.

Returns
TypeDescription
UserDimensions.Builder

This builder for chaining.