DocumentObject ของอินเทอร์เฟซ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
DocumentObject
คืออินเทอร์เฟซที่อธิบายแอตทริบิวต์ของรายการที่เลือก
ลายเซ็น
interface DocumentObject
ลายเซ็นของที่พัก
ชื่อ |
คำอธิบาย |
addressLines |
(เลิกใช้งานแล้ว) |
audience |
(เลิกใช้งานแล้ว) |
description |
คำอธิบายที่ผู้ใช้มีส่วนร่วมเกี่ยวกับรายการที่เลือก |
downloadUrl |
URL สำหรับดาวน์โหลดรายการนี้ |
driveError |
รหัสข้อผิดพลาดของคำขอเปิดเอกสารใน Google ไดรฟ์ล่วงหน้า |
driveSuccess |
คำขอเปิดเอกสารล่วงหน้าใน Google ไดรฟ์สำเร็จหรือไม่ |
duration |
ระยะเวลาของวิดีโอที่เลือก |
embedUrl |
URL ของรายการนี้ซึ่งเหมาะสำหรับการฝังในหน้าเว็บ |
iconUrl |
URL ไปยังไอคอนของรายการนี้ |
id |
รหัสของรายการที่เลือก |
isNew |
แสดงผลเป็น "จริง" หากเพิ่งอัปโหลดรายการที่เลือก |
isShared |
รายการมีการแชร์หรือไม่ |
lastEditedUtc |
การประทับเวลาที่อธิบายเวลาที่แก้ไขรายการนี้ครั้งล่าสุด |
latitude |
ความละติจูดของรายการที่เลือก |
longitude |
ลองจิจูดของรายการที่เลือก |
mimeType |
ประเภท MIME ของรายการนี้ |
name |
ชื่อของรายการนี้ |
organizationDisplayName |
ชื่อที่แสดงสำหรับองค์กรที่เป็นเจ้าของ |
parentId |
รหัสหลักของรายการนี้ เช่น โฟลเดอร์ที่มีไฟล์นี้ |
phoneNumbers |
หมายเลขโทรศัพท์ของรายการที่เลือก |
resourceKey |
คีย์ทรัพยากรของรายการ (หากมี) สตริงว่าง |
rotation |
(เลิกใช้งานแล้ว) |
rotationDegree |
(เลิกใช้งานแล้ว) |
serviceId |
รหัสที่อธิบายบริการที่เลือกรายการนี้ |
sizeBytes |
ขนาดของรายการที่เลือกในหน่วยไบต์ ระบบจะไม่แสดงผลค่าเมื่อมีการอัปโหลดรายการระหว่างเซสชันเครื่องมือเลือก |
thumbnails |
อาร์เรย์ของ Thumbnail ที่อธิบายแอตทริบิวต์ของรูปภาพหรือวิดีโอ ระบบจะไม่แสดงภาพขนาดย่อหากรายการที่เลือกเป็นของ Google ไดรฟ์ |
type |
ประเภทของรายการที่เลือก |
uploadId |
ลำดับสินค้าในเซสชันการอัปโหลด |
uploadState |
สถานะของการอัปโหลด |
url |
URL ของรายการนี้ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-25 UTC
[null,null,["อัปเดตล่าสุด 2025-07-25 UTC"],[],[],null,["# Interface DocumentObject\n\n`DocumentObject` is an interface describing the attributes of a selected item.\n\nSignature\n---------\n\n interface DocumentObject\n\nProperty signatures\n-------------------\n\n| Name | Description |\n|------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [~~`addressLines`~~](./picker.documentobject.addresslines) | *(Deprecated)* |\n| [~~`audience`~~](./picker.documentobject.audience) | *(Deprecated)* |\n| [`description`](./picker.documentobject.description) | A user-contributed description of the selected item. |\n| [`downloadUrl`](./picker.documentobject.downloadurl) | A URL to download this item. |\n| [`driveError`](./picker.documentobject.driveerror) | The error code for the request to pre-open the document in Google Drive. |\n| [`driveSuccess`](./picker.documentobject.drivesuccess) | Whether the request to pre-open the document in Google Drive was successful. |\n| [`duration`](./picker.documentobject.duration) | The duration of a selected video. |\n| [`embedUrl`](./picker.documentobject.embedurl) | A URL for this item suitable for embedding in a web page. |\n| [`iconUrl`](./picker.documentobject.iconurl) | A URL to an icon for this item. |\n| [`id`](./picker.documentobject.id) | The ID for the selected item. |\n| [`isNew`](./picker.documentobject.isnew) | Returns true if the selected item was just uploaded. |\n| [`isShared`](./picker.documentobject.isshared) | Whether the item is shared. |\n| [`lastEditedUtc`](./picker.documentobject.lasteditedutc) | The timestamp describing when this item was last edited. |\n| [`latitude`](./picker.documentobject.latitude) | The latitude of the selected item. |\n| [`longitude`](./picker.documentobject.longitude) | The longitude of the selected item. |\n| [`mimeType`](./picker.documentobject.mimetype) | The MIME type of this item. |\n| [`name`](./picker.documentobject.name) | The name of this item. |\n| [`organizationDisplayName`](./picker.documentobject.organizationdisplayname) | Display name for the owning organization. |\n| [`parentId`](./picker.documentobject.parentid) | The parent ID of this item. For example, the folder containing this file. |\n| [`phoneNumbers`](./picker.documentobject.phonenumbers) | The phone numbers of the selected item. |\n| [`resourceKey`](./picker.documentobject.resourcekey) | The resource key for the item, if present. Empty string otherwise |\n| [~~`rotation`~~](./picker.documentobject.rotation) | *(Deprecated)* |\n| [~~`rotationDegree`~~](./picker.documentobject.rotationdegree) | *(Deprecated)* |\n| [`serviceId`](./picker.documentobject.serviceid) | An id describing the service this item was selected from. |\n| [`sizeBytes`](./picker.documentobject.sizebytes) | Size of the picked item in bytes. The value is not returned when the item is uploaded during the Picker session. |\n| [`thumbnails`](./picker.documentobject.thumbnails) | An array of `Thumbnail`s which describe the attributes of a photo or video. Thumbnails aren't returned if the selected items belong to Google Drive. |\n| [`type`](./picker.documentobject.type) | The type of the selected item. |\n| [`uploadId`](./picker.documentobject.uploadid) | The item order in the upload session. |\n| [`uploadState`](./picker.documentobject.uploadstate) | The state of the upload. |\n| [`url`](./picker.documentobject.url) | A URL to this item. |"]]