RequestOptions
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
אפשרויות בקשה משותפות לכל שיטות ה-RPC.
ייצוג ב-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
מזהה אזור הזמן הנוכחי של המשתמש, למשל 'America/Los_Angeles' או 'Australia/Sydney'. המזהים האלה מוגדרים בפרויקט Unicode Common Locale Data Repository (CLDR), והם זמינים כרגע בקובץ timezone.xml. השדה הזה משמש לפרש בצורה נכונה שאילתות לגבי תאריך ושעה. אם לא מציינים את השדה הזה, המערכת משתמשת באזור הזמן שמוגדר כברירת מחדל (UTC).
|
searchApplicationId |
string
המזהה שנוצר כשיוצרים אפליקציית חיפוש באמצעות מסוף Admin.
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],[],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). |"]]