Text
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
محموله متنی احتمالاً محلی شده. برخی از فیلدهای متنی ممکن است حاوی محتوای علامت گذاری شده باشند.
نمایندگی JSON |
---|
{
"value": string,
"localizedValue": [
{
object (LocalizedString )
}
]
} |
فیلدها |
---|
value | string مقدار متن در یک منطقه ناشناخته. اگر و فقط اگر localizedValue خالی باشد، لازم است. محلی برای این مقدار ممکن است به شریک یا ارائه دهنده خدمات بستگی داشته باشد -- نباید فرض کرد که زبان خاصی است. |
localized Value[] | object ( LocalizedString ) مقادیر متن به ازای هر محلی. اختیاری. |
LocalizedString
نمونه ای از یک رشته در یک منطقه.
نمایندگی JSON |
---|
{
"locale": string,
"value": string
} |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده 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). |"]]