Text
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ローカライズされた可能性のあるテキスト ペイロード。一部の Text フィールドには、マークアップされたコンテンツを含めることができます。
JSON 表現 |
{
"value": string,
"localizedValue": [
{
object (LocalizedString )
}
]
} |
フィールド |
value |
string
不明な言語 / 地域の Text 値。localizedValue が空の場合にのみ必須です。この値の言語 / 地域は、パートナーまたはサービス提供業者によって異なる場合があります。特定の言語を想定することはできません。
|
localizedValue[] |
object (LocalizedString )
言語 / 地域ごとのテキスト値。省略可。
|
LocalizedString
JSON 表現 |
{
"locale": string,
"value": string
} |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 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). |"]]