Uri
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"kind": string,
"uri": string,
"description": string,
"localizedDescription": {
object (LocalizedString )
},
"id": string
} |
字段 |
kind (deprecated) |
string
指明资源的类型。值:固定字符串 "walletobjects#uri" 。
|
uri |
string
网页、图片或其他资源的位置。LinksModuleData 模块中的 URI 可以使用不同的前缀来指示 URI 类型(网页链接、地图链接、电话号码或电子邮件地址)。URI 必须要有架构。
|
description |
string
在应用中以文本形式显示的 URI 标题。建议不超过 20 个字符,以确保字符串能在较小的屏幕上完整显示。 请注意,在某些情况下(例如图片包含 description 时),系统不会使用此文本。
|
localizedDescription |
object (LocalizedString )
已翻译的说明字符串。建议不超过 20 个字符,以确保字符串能在较小的屏幕上完整显示。
|
id |
string
与 URI 关联的 ID。此字段便于进行 URI 管理。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eURI provides a way to link external resources like web pages, images, maps, or contact information within a Wallet Object.\u003c/p\u003e\n"],["\u003cp\u003eIt includes a URI, description, localized descriptions, and an optional ID for management purposes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ekind\u003c/code\u003e field is deprecated and should not be used.\u003c/p\u003e\n"],["\u003cp\u003eDescriptions should be kept concise, ideally under 20 characters, for optimal display.\u003c/p\u003e\n"],["\u003cp\u003eLocalized descriptions allow for tailoring the URI's title for different languages.\u003c/p\u003e\n"]]],["The JSON representation defines a resource with fields for `kind` (deprecated), `uri`, `description`, `localizedDescription`, and `id`. `uri` stores the location of a web resource, while `description` and `localizedDescription` provide textual titles, with a 20-character recommendation. The `id` field enables easier URI management. The `kind` identifies the resource type, but is marked as deprecated. Various URI prefixes indicate the link's nature (web, map, phone, email).\n"],null,["# Uri\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"uri\": string, \"description\": string, \"localizedDescription\": { object (/wallet/reference/rest/v1/LocalizedString) }, \"id\": string } ``` |\n\n| Fields ||\n|-------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` **(deprecated)** | `string` | This item is deprecated! Identifies what kind of resource this is. Value: the fixed string `\"walletobjects#uri\"`. |\n| `uri` | `string` The location of a web page, image, or other resource. URIs in the `LinksModuleData` module can have different prefixes indicating the type of URI (a link to a web page, a link to a map, a telephone number, or an email address). URIs must have a scheme. |\n| `description` | `string` The URI's title appearing in the app as text. Recommended maximum is 20 characters to ensure full string is displayed on smaller screens. Note that in some contexts this text is not used, such as when `description` is part of an image. |\n| `localizedDescription` | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` Translated strings for the description. Recommended maximum is 20 characters to ensure full string is displayed on smaller screens. |\n| `id` | `string` The ID associated with a uri. This field is here to enable ease of management of uris. |"]]