Text
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
可能已本地化的文字酬載。部分文字欄位可能包含加上標記的內容。
JSON 表示法 |
{
"value": string,
"localizedValue": [
{
object (LocalizedString )
}
]
} |
欄位 |
value |
string
語言代碼不明的文字值。只有在 localizedValue 空白時才需要提供。這個值的語言代碼可能因合作夥伴或服務供應商而異,不應假設為任何特定語言。
|
localizedValue[] |
object (LocalizedString )
依據語言代碼本地化的文字值。選填。
|
LocalizedString
JSON 表示法 |
{
"locale": string,
"value": string
} |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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). |"]]