Text
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
可能已本地化的文本有效负载。某些文本字段可能包含标记的内容。
JSON 表示法 |
{
"value": string,
"localizedValue": [
{
object (LocalizedString )
}
]
} |
字段 |
value |
string
语言区域未知的文本值。当且仅当 localizedValue 为空时为必填项。此值的语言区域可能取决于合作伙伴或服务提供商,不应将其假定为任何特定语言。
|
localizedValue[] |
object (LocalizedString )
每个语言的文本值。可选。
|
LocalizedString
JSON 表示法 |
{
"locale": string,
"value": string
} |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eText fields may contain marked-up content and can include a value in an unknown locale or localized values.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eLocalizedString\u003c/code\u003e objects provide per-locale text values using IETF BCP 47 language codes and the corresponding UTF-8 message.\u003c/p\u003e\n"],["\u003cp\u003eIf \u003ccode\u003elocalizedValue\u003c/code\u003e is empty, the \u003ccode\u003evalue\u003c/code\u003e field is required, indicating the text in an unknown locale, which could vary based on the partner or service provider.\u003c/p\u003e\n"]]],[],null,["# Text\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [LocalizedString](#LocalizedString)\n - [JSON representation](#LocalizedString.SCHEMA_REPRESENTATION)\n\nA possibly-localized text payload. Some Text fields may contain marked-up content.\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"value\": string, \"localizedValue\": [ { object (/maps-booking/reference/maps-booking-api/rest/v1alpha/Text#LocalizedString) } ] } ``` |\n\n| Fields ||\n|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `value` | `string` Text value in an unknown locale. Required if and only if `localizedValue` is empty. The locale for this value may depend on the partner or service provider -- it should not be assumed to be any specific language. |\n| `localized``Value[]` | `object (`[LocalizedString](/maps-booking/reference/maps-booking-api/rest/v1alpha/Text#LocalizedString)`)` Per-locale text values. Optional. |\n\nLocalizedString\n---------------\n\nInstance of a string in one locale.\n\n| JSON representation |\n|-----------------------------------------------|\n| ``` { \"locale\": string, \"value\": string } ``` |\n\n| Fields ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| `locale` | `string` IETF BCP 47 language code, such as \"en\", \"mas\", \"zh-Hant\", \"de-CH-1901\". See \u003chttp://www.w3.org/International/articles/language-tags/\u003e. |\n| `value` | `string` Message in the locale above (UTF-8). |"]]