Text
Stay organized with collections
Save and categorize content based on your preferences.
A possibly-localized text payload. Some Text fields may contain marked-up content.
JSON representation |
{
"value": string,
"localizedValue": [
{
object (LocalizedString )
}
]
} |
Fields |
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.
|
localizedValue[] |
object (LocalizedString )
Per-locale text values. Optional.
|
LocalizedString
Instance of a string in one locale.
JSON representation |
{
"locale": string,
"value": string
} |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-17 UTC.
[null,null,["Last updated 2024-10-17 UTC."],[[["\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). |"]]