Hiện tại, các nhà phát triển đã có thể sử dụng rộng rãi tiện ích bổ sung của Google Lớp học! Vui lòng xem
tài liệu về tiện ích bổ sung để biết thêm thông tin.
Material
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài liệu được đính kèm vào bài tập trên lớp.
Khi tạo tệp đính kèm, bạn không thể đặt trường form
, gem
hoặc notebook
.
Biểu diễn dưới dạng JSON |
{
// Union field material can be only one of the following:
"driveFile": {
object (SharedDriveFile )
},
"youtubeVideo": {
object (YouTubeVideo )
},
"link": {
object (Link )
},
"form": {
object (Form )
},
"gem": {
object (GeminiGem )
},
"notebook": {
object (NotebookLmNotebook )
}
// End of list of possible types for union field material .
} |
Trường |
Trường nhóm material . Nội dung về vật liệu. material chỉ có thể là một trong những trạng thái sau: |
driveFile |
object (SharedDriveFile )
Tài liệu là tệp trên Google Drive.
|
youtubeVideo |
object (YouTubeVideo )
Tài liệu video trên YouTube.
|
link |
object (Link )
Tài liệu liên kết. Khi tạo, nếu có thể, loại này sẽ được nâng cấp lên một loại phù hợp hơn và điều này sẽ được phản ánh trong phản hồi.
|
form |
object (Form )
Tài liệu về Google Biểu mẫu. Chỉ đọc.
|
gem |
object (GeminiGem )
Chất liệu đá quý Gemini. Chỉ đọc.
|
notebook |
object (NotebookLmNotebook )
Tài liệu trong sổ tay của NotebookLM. Chỉ đọc.
|
SharedDriveFile
Tệp trên Drive được dùng làm tài liệu cho bài tập trên lớp.
Biểu diễn dưới dạng JSON |
{
"driveFile": {
object (DriveFile )
},
"shareMode": enum (ShareMode )
} |
Trường |
driveFile |
object (DriveFile )
Thông tin chi tiết về tệp trên Drive.
|
shareMode |
enum (ShareMode )
Cơ chế mà học viên truy cập vào mục trên Drive.
|
ShareMode
Các lựa chọn chia sẻ có thể có. Giá trị mặc định là VIEW nếu bạn không chỉ định, và các giá trị khác chỉ có thể được chỉ định trong một đối tượng bài tập trên lớp thuộc loại ASSIGNMENT.
Enum |
UNKNOWN_SHARE_MODE |
Chưa chỉ định chế độ chia sẻ. Không bao giờ được trả về giá trị này. |
VIEW |
Học viên có thể xem tệp được chia sẻ. |
EDIT |
Học viên có thể chỉnh sửa tệp được chia sẻ. |
STUDENT_COPY |
Học viên có bản sao cá nhân của tệp được chia sẻ. |
GeminiGem
Đường liên kết đến Gem của Gemini.
Biểu diễn dưới dạng JSON |
{
"id": string,
"title": string,
"url": string
} |
Trường |
id |
string
Mã tài nguyên của Gem.
|
title |
string
Tiêu đề của Gem. Chỉ đọc.
|
url |
string
URL có thể dùng để truy cập vào Gem. Chỉ đọc.
|
NotebookLmNotebook
Đường liên kết đến sổ tay trên NotebookLM.
Biểu diễn dưới dạng JSON |
{
"id": string,
"title": string,
"url": string
} |
Trường |
id |
string
Mã tài nguyên của sổ tay.
|
title |
string
Tiêu đề của sổ tay. Chỉ đọc.
|
url |
string
URL có thể dùng để truy cập vào Sổ tay. Chỉ đọc.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-08-08 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-08 UTC."],[],[],null,["# Material\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [SharedDriveFile](#SharedDriveFile)\n - [JSON representation](#SharedDriveFile.SCHEMA_REPRESENTATION)\n- [ShareMode](#ShareMode)\n- [GeminiGem](#GeminiGem)\n - [JSON representation](#GeminiGem.SCHEMA_REPRESENTATION)\n- [NotebookLmNotebook](#NotebookLmNotebook)\n - [JSON representation](#NotebookLmNotebook.SCHEMA_REPRESENTATION)\n\nMaterial attached to course work.\n\nWhen creating attachments, setting the `form`, `gem`, or `notebook` field is not supported.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { // Union field `material` can be only one of the following: \"driveFile\": { object (/workspace/classroom/reference/rest/v1/Material#SharedDriveFile) }, \"youtubeVideo\": { object (/workspace/classroom/reference/rest/v1/YouTubeVideo) }, \"link\": { object (/workspace/classroom/reference/rest/v1/Link) }, \"form\": { object (/workspace/classroom/reference/rest/v1/Form) }, \"gem\": { object (/workspace/classroom/reference/rest/v1/Material#GeminiGem) }, \"notebook\": { object (/workspace/classroom/reference/rest/v1/Material#NotebookLmNotebook) } // End of list of possible types for union field `material`. } ``` |\n\n| Fields ||\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Union field `material`. Material content. `material` can be only one of the following: ||\n| `driveFile` | `object (`[SharedDriveFile](/workspace/classroom/reference/rest/v1/Material#SharedDriveFile)`)` Google Drive file material. |\n| `youtubeVideo` | `object (`[YouTubeVideo](/workspace/classroom/reference/rest/v1/YouTubeVideo)`)` YouTube video material. |\n| `link` | `object (`[Link](/workspace/classroom/reference/rest/v1/Link)`)` Link material. On creation, this is upgraded to a more appropriate type if possible, and this is reflected in the response. |\n| `form` | `object (`[Form](/workspace/classroom/reference/rest/v1/Form)`)` Google Forms material. Read-only. |\n| `gem` | `object (`[GeminiGem](/workspace/classroom/reference/rest/v1/Material#GeminiGem)`)` Gemini Gem material. Read-only. |\n| `notebook` | `object (`[NotebookLmNotebook](/workspace/classroom/reference/rest/v1/Material#NotebookLmNotebook)`)` NotebookLM Notebook material. Read-only. |\n\nSharedDriveFile\n---------------\n\nDrive file that is used as material for course work.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"driveFile\": { object (/workspace/classroom/reference/rest/v1/DriveFile) }, \"shareMode\": enum (/workspace/classroom/reference/rest/v1/Material#ShareMode) } ``` |\n\n| Fields ||\n|-------------|--------------------------------------------------------------------------------------------------------------------------------------|\n| `driveFile` | `object (`[DriveFile](/workspace/classroom/reference/rest/v1/DriveFile)`)` Drive file details. |\n| `shareMode` | `enum (`[ShareMode](/workspace/classroom/reference/rest/v1/Material#ShareMode)`)` Mechanism by which students access the Drive item. |\n\nShareMode\n---------\n\nPossible sharing options. Defaults to VIEW if left unspecified, and other values may only be specified within a course work object of type ASSIGNMENT.\n\n| Enums ||\n|----------------------|-----------------------------------------------------------|\n| `UNKNOWN_SHARE_MODE` | No sharing mode specified. This should never be returned. |\n| `VIEW` | Students can view the shared file. |\n| `EDIT` | Students can edit the shared file. |\n| `STUDENT_COPY` | Students have a personal copy of the shared file. |\n\nGeminiGem\n---------\n\nGemini Gem link.\n\n| JSON representation |\n|----------------------------------------------------------|\n| ``` { \"id\": string, \"title\": string, \"url\": string } ``` |\n\n| Fields ||\n|---------|-------------------------------------------------------------|\n| `id` | `string` Gems resource id. |\n| `title` | `string` Title of the Gem. Read-only. |\n| `url` | `string` URL that can be used to access the Gem. Read-only. |\n\nNotebookLmNotebook\n------------------\n\nNotebookLM Notebook link.\n\n| JSON representation |\n|----------------------------------------------------------|\n| ``` { \"id\": string, \"title\": string, \"url\": string } ``` |\n\n| Fields ||\n|---------|------------------------------------------------------------------|\n| `id` | `string` Notebook resource id. |\n| `title` | `string` Title of the Notebook. Read-only. |\n| `url` | `string` URL that can be used to access the Notebook. Read-only. |"]]