# Interface UserDimensionsOrBuilder (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.UserDimensionsOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.firebase.analytics.v1.UserDimensionsOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.firebase.analytics.v1.UserDimensionsOrBuilder)

    public interface UserDimensionsOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### containsUserProperties(String key)

    public abstract 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** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

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

### getAppInfo()

    public abstract AppInfo getAppInfo()

App information.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.AppInfo` | The appInfo. |

### getAppInfoOrBuilder()

    public abstract AppInfoOrBuilder getAppInfoOrBuilder()

App information.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.AppInfoOrBuilder` |   |

### getBundleInfo()

    public abstract ExportBundleInfo getBundleInfo()

Information regarding the bundle in which these events were uploaded.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.ExportBundleInfo` | The bundleInfo. |

### getBundleInfoOrBuilder()

    public abstract ExportBundleInfoOrBuilder getBundleInfoOrBuilder()

Information regarding the bundle in which these events were uploaded.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.ExportBundleInfoOrBuilder` |   |

### getDeviceInfo()

    public abstract DeviceInfo getDeviceInfo()

Device information.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.DeviceInfo` | The deviceInfo. |

### getDeviceInfoOrBuilder()

    public abstract DeviceInfoOrBuilder getDeviceInfoOrBuilder()

Device information.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.DeviceInfoOrBuilder` |   |

### getFirstOpenTimestampMicros()

    public abstract long getFirstOpenTimestampMicros()

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

`int64 first_open_timestamp_micros = 2;`

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

### getGeoInfo()

    public abstract GeoInfo getGeoInfo()

User's geographic information.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.GeoInfo` | The geoInfo. |

### getGeoInfoOrBuilder()

    public abstract GeoInfoOrBuilder getGeoInfoOrBuilder()

User's geographic information.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.GeoInfoOrBuilder` |   |

### getLtvInfo()

    public abstract LtvInfo getLtvInfo()

Lifetime Value information about this user.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.LtvInfo` | The ltvInfo. |

### getLtvInfoOrBuilder()

    public abstract LtvInfoOrBuilder getLtvInfoOrBuilder()

Lifetime Value information about this user.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.LtvInfoOrBuilder` |   |

### getTrafficSource()

    public abstract TrafficSource getTrafficSource()

Information about marketing campaign which acquired the user.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.TrafficSource` | The trafficSource. |

### getTrafficSourceOrBuilder()

    public abstract TrafficSourceOrBuilder getTrafficSourceOrBuilder()

Information about marketing campaign which acquired the user.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.TrafficSourceOrBuilder` |   |

### getUserId()

    public abstract String getUserId()

The user ID set via the setUserId API.

`string user_id = 1;`

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

### getUserIdBytes()

    public abstract ByteString getUserIdBytes()

The user ID set via the setUserId API.

`string user_id = 1;`

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

### getUserProperties()

    public abstract Map<String,UserPropertyValue> getUserProperties()

Use [#getUserPropertiesMap()](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.UserDimensionsOrBuilder#com_google_events_firebase_analytics_v1_UserDimensionsOrBuilder_getUserPropertiesMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.UserPropertyValue>` |   |

### getUserPropertiesCount()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getUserPropertiesMap()

    public abstract 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** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.UserPropertyValue>` |   |

### getUserPropertiesOrDefault(String key, UserPropertyValue defaultValue)

    public abstract 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** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.UserPropertyValue` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.UserPropertyValue` |   |

### getUserPropertiesOrThrow(String key)

    public abstract 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** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.analytics.v1.UserPropertyValue` |   |

### hasAppInfo()

    public abstract boolean hasAppInfo()

App information.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the appInfo field is set. |

### hasBundleInfo()

    public abstract boolean hasBundleInfo()

Information regarding the bundle in which these events were uploaded.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the bundleInfo field is set. |

### hasDeviceInfo()

    public abstract boolean hasDeviceInfo()

Device information.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the deviceInfo field is set. |

### hasGeoInfo()

    public abstract boolean hasGeoInfo()

User's geographic information.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the geoInfo field is set. |

### hasLtvInfo()

    public abstract boolean hasLtvInfo()

Lifetime Value information about this user.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the ltvInfo field is set. |

### hasTrafficSource()

    public abstract boolean hasTrafficSource()

Information about marketing campaign which acquired the user.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the trafficSource field is set. |