# Text

- [JSON representation](https://developers.google.com/maps-booking/reference/maps-booking-api/rest/v1alpha/Text#SCHEMA_REPRESENTATION)
- [LocalizedString](https://developers.google.com/maps-booking/reference/maps-booking-api/rest/v1alpha/Text#LocalizedString)
  - [JSON representation](https://developers.google.com/maps-booking/reference/maps-booking-api/rest/v1alpha/Text#LocalizedString.SCHEMA_REPRESENTATION)

A possibly-localized text payload. Some Text fields may contain marked-up content.

| JSON representation |
|---|
| ``` { "value": string, "localizedValue": [ { object (`https://developers.google.com/maps-booking/reference/maps-booking-api/rest/v1alpha/Text#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 (`https://developers.google.com/maps-booking/reference/maps-booking-api/rest/v1alpha/Text#LocalizedString`)`` Per-locale text values. Optional. |

## LocalizedString

Instance of a string in one locale.

| JSON representation |
|---|
| ``` { "locale": string, "value": string } ``` |

| Fields ||
|---|---|
| `locale` | `string` IETF BCP 47 language code, such as "en", "mas", "zh-Hant", "de-CH-1901". See <http://www.w3.org/International/articles/language-tags/>. |
| `value` | `string` Message in the locale above (UTF-8). |