RequestOptions
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
خيارات الطلبات المشتركة لجميع طرق طلب البيانات من واجهة برمجة التطبيقات
تمثيل JSON |
{
"languageCode": string,
"debugOptions": {
object (DebugOptions )
},
"timeZone": string,
"searchApplicationId": string
} |
الحقول |
languageCode |
string
رمز اللغة وفق معيار BCP-47، مثل "en-US" أو "sr-Latn" لمزيد من المعلومات، يُرجى الاطّلاع على http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. للترجمات اضبط هذا الحقل باستخدام اللغة المحدّدة في المتصفّح أو للصفحة. في حال معرفة اللغة المفضّلة للمستخدم، اضبط هذا الحقل على لغة المستخدم المعروفة. عند تحديد لغة معيّنة، يتم التركيز على المستندات باللغة المحدّدة في نتائج البحث. تستخدِم Suggest API هذا الحقل كإشارة لتقديم توقّعات أفضل للإكمال التلقائي التابع لجهات خارجية.
|
debugOptions |
object (DebugOptions )
خيارات تصحيح أخطاء الطلب
|
timeZone |
string
رقم تعريف المنطقة الزمنية للمستخدم الحالي، مثل "أمريكا/لوس_أنجلوس" أو "أستراليا/سيدني" يتم تحديد أرقام التعريف هذه من خلال مشروع Unicode Common Locale data Repository (CLDR)، وهي متاحة حاليًا في الملف timezone.xml. يُستخدَم هذا الحقل لتفسير طلبات البحث عن التاريخ والوقت بشكل صحيح. وفي حال عدم تحديد هذا الحقل، يتم استخدام المنطقة الزمنية التلقائية (التوقيت العالمي المتفق عليه).
|
searchApplicationId |
string
رقم التعريف الذي تم إنشاؤه عند إنشاء تطبيق بحث باستخدام وحدة تحكّم المشرف.
|
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-25 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# RequestOptions\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nShared request options for all RPC methods.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"languageCode\": string, \"debugOptions\": { object (/workspace/cloud-search/docs/reference/rest/v1/DebugOptions) }, \"timeZone\": string, \"searchApplicationId\": string } ``` |\n\n| Fields ||\n|-----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `languageCode` | `string` The BCP-47 language code, such as \"en-US\" or \"sr-Latn\". For more information, see \u003chttp://www.unicode.org/reports/tr35/#Unicode_locale_identifier\u003e. For translations. Set this field using the language set in browser or for the page. In the event that the user's language preference is known, set this field to the known user language. When specified, the documents in search results are biased towards the specified language. The Suggest API uses this field as a hint to make better third-party autocomplete predictions. |\n| `debugOptions` | `object (`[DebugOptions](/workspace/cloud-search/docs/reference/rest/v1/DebugOptions)`)` Debug options of the request |\n| `timeZone` | `string` Current user's time zone id, such as \"America/Los_Angeles\" or \"Australia/Sydney\". These IDs are defined by [Unicode Common Locale data Repository (CLDR)](http://cldr.unicode.org/) project, and currently available in the file [timezone.xml](http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml). This field is used to correctly interpret date and time queries. If this field is not specified, the default time zone (UTC) is used. |\n| `searchApplicationId` | `string` The id generated when you create a search application using the [admin console](https://support.google.com/a/answer/9043922). |"]]