Image
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.
Loại gói cho hình ảnh do Google lưu trữ.
Biểu diễn dưới dạng JSON |
{
"kind": string,
"sourceUri": {
object (ImageUri )
},
"contentDescription": {
object (LocalizedString )
}
} |
Trường |
kind (deprecated) |
string
Xác định loại tài nguyên này. Giá trị: chuỗi cố định "walletobjects#image" .
|
sourceUri |
object (ImageUri )
URI cho hình ảnh.
|
contentDescription |
object (LocalizedString )
Nội dung mô tả hình ảnh dùng cho tính năng hỗ trợ tiếp cận.
|
ImageUri
Biểu diễn dưới dạng JSON |
{
"uri": string,
"description": string,
"localizedDescription": {
object (LocalizedString )
}
} |
Trường |
uri |
string
Vị trí của hình ảnh. URI phải có giao thức.
|
description (deprecated) |
string
Thông tin bổ sung về hình ảnh, không được sử dụng và chỉ được giữ lại để tương thích ngược.
|
localizedDescription (deprecated) |
object (LocalizedString )
Chuỗi đã dịch cho nội dung mô tả, không được sử dụng và chỉ được giữ lại để tương thích ngượ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-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003e\u003ccode\u003eImage\u003c/code\u003e object wraps Google hosted images and includes the image URI, and an optional content description.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eImageUri\u003c/code\u003e object defines the location (URI) of the image.\u003c/p\u003e\n"],["\u003cp\u003eBoth \u003ccode\u003eImage\u003c/code\u003e and \u003ccode\u003eImageUri\u003c/code\u003e objects include deprecated fields for backward compatibility.\u003c/p\u003e\n"]]],["The core content describes the JSON structure for representing images, including `Image` and `ImageUri` types. The `Image` object contains a deprecated `kind` field, a `sourceUri` (an `ImageUri` object), and a `contentDescription` (a `LocalizedString` object). `ImageUri` includes a `uri` (the image's location) and deprecated `description` and `localizedDescription` fields. The `Image` is designed to show Google-hosted images, with the `uri` field specifying the image location.\n"],null,["# Image\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [ImageUri](#ImageUri)\n - [JSON representation](#ImageUri.SCHEMA_REPRESENTATION)\n\nWrapping type for Google hosted images.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"sourceUri\": { object (/wallet/reference/rest/v1/Image#ImageUri) }, \"contentDescription\": { object (/wallet/reference/rest/v1/LocalizedString) } } ``` |\n\n| Fields ||\n|-------------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| `kind` **(deprecated)** | `string` | This item is deprecated! Identifies what kind of resource this is. Value: the fixed string `\"walletobjects#image\"`. |\n| `sourceUri` | `object (`[ImageUri](/wallet/reference/rest/v1/Image#ImageUri)`)` The URI for the image. |\n| `contentDescription` | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` Description of the image used for accessibility. |\n\nImageUri\n--------\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"uri\": string, \"description\": string, \"localizedDescription\": { object (/wallet/reference/rest/v1/LocalizedString) } } ``` |\n\n| Fields ||\n|-----------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `uri` | `string` The location of the image. URIs must have a scheme. |\n| `description` **(deprecated)** | `string` | This item is deprecated! Additional information about the image, which is unused and retained only for backward compatibility. |\n| `localizedDescription` **(deprecated)** | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` | This item is deprecated! Translated strings for the description, which are unused and retained only for backward compatibility. |"]]