Images
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.
Hình ảnh
Loại PageElement
đại diện cho một hình ảnh.
Biểu diễn dưới dạng JSON
|
{
"contentUrl": string,
"imageProperties": {
object (ImageProperties )
},
"sourceUrl": string,
"placeholder": {
object (Placeholder )
}
}
|
Trường
|
contentUrl
|
string
URL đến một hình ảnh có thời gian tồn tại mặc định là 30 phút. URL này được gắn thẻ với tài khoản của người yêu cầu. Bất kỳ ai có URL đều truy cập hiệu quả hình ảnh đó với tư cách là người yêu cầu ban đầu. Bạn có thể mất quyền truy cập vào hình ảnh nếu chế độ cài đặt chia sẻ của bản trình bày thay đổi.
|
imageProperties
|
object (ImageProperties )
Các thuộc tính của hình ảnh.
|
sourceUrl
|
string
URL nguồn là URL dùng để chèn hình ảnh. URL nguồn có thể để trống.
|
placeholder
|
object (Placeholder )
Phần giữ chỗ là các phần tử trang kế thừa từ phần giữ chỗ tương ứng trên bố cục và trang cái.
Nếu được đặt, hình ảnh sẽ là hình ảnh phần giữ chỗ và bạn có thể phân giải mọi thuộc tính kế thừa bằng cách xem phần giữ chỗ gốc được xác định
Placeholder.parent_object_id
.
|
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-03-21 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-03-21 UTC."],[],[],null,["# Images\n\n### Image\n\n\nA\n[PageElement](/workspace/slides/api/reference/rest/v1/presentations.pages#Page.PageElement)\nkind representing an image.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"contentUrl\": string, \"imageProperties\": { object (/workspace/slides/api/reference/rest/v1/presentations.pages/other#Page.ImageProperties) }, \"sourceUrl\": string, \"placeholder\": { object (/workspace/slides/api/reference/rest/v1/presentations.pages/other#Page.Placeholder) } } ``` |\n\n| Fields ||\n|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `contentUrl` | `string` An URL to an image with a default lifetime of 30 minutes. This URL is tagged with the account of the requester. Anyone with the URL effectively accesses the image as the original requester. Access to the image may be lost if the presentation's sharing settings change. |\n| `imageProperties` | `object (`[ImageProperties](/workspace/slides/api/reference/rest/v1/presentations.pages/other#Page.ImageProperties)`)` The properties of the image. |\n| `sourceUrl` | `string` The source URL is the URL used to insert the image. The source URL can be empty. |\n| `placeholder` | `object (`[Placeholder](/workspace/slides/api/reference/rest/v1/presentations.pages/other#Page.Placeholder)`)` Placeholders are page elements that inherit from corresponding placeholders on layouts and masters. If set, the image is a placeholder image and any inherited properties can be resolved by looking at the parent placeholder identified by the [Placeholder.parent_object_id](/workspace/slides/api/reference/rest/v1/presentations.pages/other#Page.Placeholder.FIELDS.parent_object_id) field. |"]]