findDevicesByIdentifier
בתיבת הדו-שיח הזו מפורטים מכשירים עם מזהה מכשיר נתון.
חתימה של method
public FindDevicesResponse findDevicesByDeviceIdentifier(FindDevicesByDeviceIdentifierRequest request) throws CommonException;
FindDevicesByDeviceIdentifierRequest
שם הנכס |
ערך |
חובה |
תיאור |
deviceIdentifier |
object( DeviceIdentifier ) |
כן |
מזהה המכשיר של המכשירים שרוצים לאחזר. אפשר לאכלס את האובייקט באופן חלקי. |
pageSize |
int |
לא |
גודל הדף, עד 100 . אם הערך גדול מ-100 או מ-null , נעשה שימוש ב-100 . |
pageToken |
string |
לא |
אסימון הדף. אם השדה ריק, יוצג הדף הראשון. |
vendorParams |
map |
לא |
שדות נוספים, צמד מפתח/ערך שצוין על ידי הספק. |
FindDevicesResponse
שם הנכס |
ערך |
תיאור |
devices |
object( Device ) |
רשימת המכשירים שהמפיץ העלאה. השדה יהיה ריק אם לא נמצאה התאמה. |
totalCount |
int |
המספר הכולל של המכשירים שתואמים לבקשה. |
nextPageToken |
strong |
האסימון של הדף הבא. השדה יהיה ריק בדף האחרון. |
vendorParams |
map |
זה שינוי אופציונלי. שדות נוספים, צמד מפתח/ערך שצוין על ידי הספק. |
התנהגות במקרה של שגיאה
אם מתרחשת שגיאה, הספרייה תקפיץ את השדה CommonException
שמכיל את אחד מקודי השגיאה הבאים:
קוד שגיאה |
INTERNAL_SERVER_ERROR |
INVALID_PAGE_TOKEN |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-09 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-09 (שעון UTC)."],[[["This method retrieves a list of devices based on a provided device identifier."],["The request requires a `deviceIdentifier` object, which can be partially filled, to specify the devices to be retrieved."],["Optional parameters include `pageSize` (up to 100), `pageToken` for pagination, and `vendorParams` for extra data."],["The response contains a list of `devices`, the `totalCount` of matching devices, an optional `nextPageToken` for additional pages, and `vendorParams` for extra information."],["Potential errors during the process will result in a `CommonException` being thrown, with possible error codes being `INTERNAL_SERVER_ERROR` or `INVALID_PAGE_TOKEN`."]]],["The `findDevicesByDeviceIdentifier` method retrieves a list of devices based on a provided device identifier. The request requires a `deviceIdentifier`, and optionally accepts `pageSize` (up to 100), `pageToken`, and `vendorParams`. The response includes a list of `devices`, `totalCount`, `nextPageToken`, and optional `vendorParams`. Errors result in a `CommonException`, with codes like `INTERNAL_SERVER_ERROR` or `INVALID_PAGE_TOKEN`.\n"]]