একটি 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"]],["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eDeviceReference\u003c/code\u003e allows methods to accept a device argument using either a numeric API resource ID or real-world hardware IDs.\u003c/p\u003e\n"],["\u003cp\u003eMethods use \u003ccode\u003eDeviceReference\u003c/code\u003e as a parameter for flexibility in identifying devices.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003edevice\u003c/code\u003e field in the JSON representation is a union field, accepting either a \u003ccode\u003edeviceId\u003c/code\u003e or \u003ccode\u003edeviceIdentifier\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003edeviceId\u003c/code\u003e is a string that represents the unique ID of the device, and \u003ccode\u003edeviceIdentifier\u003c/code\u003e refers to an object containing the hardware IDs.\u003c/p\u003e\n"]]],["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"],null,[]]