একটি DeviceReference হল একটি API বিমূর্ততা যা আপনাকে নিম্নলিখিত শনাক্তকারী প্রকারগুলির একটি ব্যবহার করে একটি পদ্ধতিতে একটি ডিভাইস আর্গুমেন্ট সরবরাহ করতে দেয়:
একটি সাংখ্যিক API রিসোর্স আইডি।
বাস্তব-বিশ্বের হার্ডওয়্যার আইডি, যেমন IMEI নম্বর, তৈরি করা ডিভাইসের অন্তর্গত।
যে পদ্ধতিগুলি ডিভাইসে কাজ করে সেগুলি একটি DeviceReference প্যারামিটারের ধরণ হিসাবে গ্রহণ করে কারণ এটি কলারের জন্য আরও নমনীয়। ডিভাইস শনাক্তকারী সম্পর্কে আরও জানতে, আইডেন্টিফায়ার পড়ুন।
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.}
ক্ষেত্র
ইউনিয়ন ফিল্ড device । প্রয়োজন। ডিভাইসের অনন্য শনাক্তকারী। device নিম্নলিখিতগুলির মধ্যে একটি হতে পারে:
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2024-11-12 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."]]],["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"]]