DeviceReference to abstrakcja interfejsu API, która umożliwia podanie argumentu device do metody za pomocą jednego z tych typów identyfikatorów:
Numeryczny identyfikator zasobu interfejsu API.
rzeczywiste identyfikatory sprzętu, takie jak numer IMEI, należące do producenta urządzenia;
Metody działające na urządzeniach przyjmują DeviceReference jako typ parametru, ponieważ jest on bardziej elastyczny dla osoby wywołującej. Więcej informacji o identyfikatorach urządzeń znajdziesz w artykule Identyfikatory.
Zapis 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.}
Pola
Pole sumy device. Wymagane. Unikalny identyfikator urządzenia. device może mieć tylko jedną z tych wartości:
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["A `DeviceReference` is used as a device argument in methods, accepting either a numeric API resource ID (`deviceId`) or real-world hardware IDs (`deviceIdentifier`) like IMEI. The JSON representation uses a union field named `device` that contains either a `deviceId` string (int64 format) or a `deviceIdentifier` object, which holds the device's hardware IDs. Methods use this type for increased flexibility in identifying devices.\n"]]