Stay organized with collections
Save and categorize content based on your preferences.
Identifiers
data
class
Identifiers
Direct use of Identifiers
is not supported.
Collection of identifiers for logging cross-device for DTDI.
Summary
Immutable class that represents an ID.
Generates a new set of identifiers for after expiration.
Randomly generated, PII-free, identifier for a group of devices participating in a single
experience.
Randomly generated, PII-free, identifier for a single device in a single experience.
Optional parent correlationId to associate this set of identifiers with.
Indicates whether this set of identifiers was regenerated because of expiration or not.
Public methods
hashCode
fun
hashCode
(
)
:
Int
regenerate
fun
regenerate
(
)
:
Identifiers
Generates a new set of identifiers for after expiration.
Properties
correlationId
val
correlationId
:
Identifiers.OpaqueId
Randomly generated, PII-free, identifier for a group of devices participating in a single
experience.
ephemeralDeviceId
val
ephemeralDeviceId
:
Identifiers.OpaqueId
Randomly generated, PII-free, identifier for a single device in a single experience.
parentCorrelationId
val
parentCorrelationId
:
Identifiers.OpaqueId
?
Optional parent correlationId to associate this set of identifiers with.
regenerated
val
regenerated
:
Boolean
Indicates whether this set of identifiers was regenerated because of expiration or not.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eIdentifiers\u003c/code\u003e is a collection of identifiers used for logging cross-device data for DTDI.\u003c/p\u003e\n"],["\u003cp\u003eDirect use of \u003ccode\u003eIdentifiers\u003c/code\u003e is not supported.\u003c/p\u003e\n"],["\u003cp\u003eIt includes randomly generated, PII-free identifiers for both a group of devices (\u003ccode\u003ecorrelationId\u003c/code\u003e) and a single device (\u003ccode\u003eephemeralDeviceId\u003c/code\u003e) within an experience.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eIdentifiers\u003c/code\u003e can be regenerated after expiration using the \u003ccode\u003eregenerate()\u003c/code\u003e function.\u003c/p\u003e\n"],["\u003cp\u003eAn optional \u003ccode\u003eparentCorrelationId\u003c/code\u003e can be used to associate a set of identifiers with a parent experience.\u003c/p\u003e\n"]]],["The `Identifiers` class, not for direct use, collects cross-device logging identifiers. It contains `OpaqueId`, an immutable ID class, and supports `equals` and `hashCode` functions. `regenerate` generates new identifiers post-expiration. Key properties include `correlationId` (a PII-free identifier for a group of devices), `ephemeralDeviceId` (a PII-free identifier for a single device), `parentCorrelationId` (optional ID to associate with), and `regenerated` (indicates if identifiers were renewed).\n"],null,["# Identifiers\n===========\n\n```\ndata class Identifiers\n```\n\n|---|--------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [com.google.android.gms.dtdi.analytics.Identifiers](#) |\n\nDirect use of `Identifiers` is not supported.\n\nCollection of identifiers for logging cross-device for DTDI.\n\nSummary\n-------\n\n| ### Nested classes ||\n|---|----------------------------------------------------------------------------------------------------------------------------------|\n| | [OpaqueId](/android/reference/com/google/android/gms/dtdi/analytics/Identifiers.OpaqueId) Immutable class that represents an ID. |\n\n| ### Public methods ||\n|------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [equals](#equals(kotlin.Any))`(`other:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)?`)` \u003cbr /\u003e |\n| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [hashCode](#hashCode())`()` \u003cbr /\u003e |\n| [Identifiers](#) | [regenerate](#regenerate())`()` Generates a new set of identifiers for after expiration. |\n\n| ### Properties ||\n|--------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Identifiers.OpaqueId](/android/reference/com/google/android/gms/dtdi/analytics/Identifiers.OpaqueId) | [correlationId](#correlationId:com.google.android.gms.dtdi.analytics.Identifiers.OpaqueId) Randomly generated, PII-free, identifier for a group of devices participating in a single experience. |\n| [Identifiers.OpaqueId](/android/reference/com/google/android/gms/dtdi/analytics/Identifiers.OpaqueId) | [ephemeralDeviceId](#ephemeralDeviceId:com.google.android.gms.dtdi.analytics.Identifiers.OpaqueId) Randomly generated, PII-free, identifier for a single device in a single experience. |\n| [Identifiers.OpaqueId](/android/reference/com/google/android/gms/dtdi/analytics/Identifiers.OpaqueId)? | [parentCorrelationId](#parentCorrelationId:com.google.android.gms.dtdi.analytics.Identifiers.OpaqueId) Optional parent correlationId to associate this set of identifiers with. |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [regenerated](#regenerated:kotlin.Boolean) Indicates whether this set of identifiers was regenerated because of expiration or not. |\n\nPublic methods\n--------------\n\n### equals\n\n```\nfun equals(other: Any?): Boolean\n``` \n\n### hashCode\n\n```\nfun hashCode(): Int\n``` \n\n### regenerate\n\n```\nfun regenerate(): Identifiers\n```\n\nGenerates a new set of identifiers for after expiration.\n\nProperties\n----------\n\n### correlationId\n\n```\nval correlationId: Identifiers.OpaqueId\n```\n\nRandomly generated, PII-free, identifier for a group of devices participating in a single\nexperience. \n\n### ephemeralDeviceId\n\n```\nval ephemeralDeviceId: Identifiers.OpaqueId\n```\n\nRandomly generated, PII-free, identifier for a single device in a single experience. \n\n### parentCorrelationId\n\n```\nval parentCorrelationId: Identifiers.OpaqueId?\n```\n\nOptional parent correlationId to associate this set of identifiers with. \n\n### regenerated\n\n```\nval regenerated: Boolean\n```\n\nIndicates whether this set of identifiers was regenerated because of expiration or not."]]