DeviceReference adalah abstraksi API yang memungkinkan Anda memberikan argumen perangkat ke metode menggunakan salah satu jenis ID berikut:
ID resource API numerik.
ID hardware di dunia nyata, seperti nomor IMEI, yang dimiliki perangkat yang diproduksi.
Metode yang beroperasi di perangkat menggunakan DeviceReference sebagai jenis parameter karena lebih fleksibel untuk pemanggil. Untuk mempelajari ID perangkat lebih lanjut, baca ID.
Representasi JSON
{// Union field device can be only one of the following:"deviceId": string,"deviceIdentifier": {object (DeviceIdentifier)}// End of list of possible types for union field device.}
Kolom
Kolom union device. Wajib. ID unik untuk perangkat. device hanya dapat berupa salah satu dari berikut:
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2024-11-08 UTC."],[[["`DeviceReference` allows methods to accept a device argument using either a numeric API resource ID or real-world hardware IDs."],["Methods use `DeviceReference` as a parameter for flexibility in identifying devices."],["The `device` field in the JSON representation is a union field, accepting either a `deviceId` or `deviceIdentifier`."],["`deviceId` is a string that represents the unique ID of the device, and `deviceIdentifier` refers to an object containing the hardware IDs."]]],[]]