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
รหัสที่สร้างขึ้นเมื่อคุณสร้างแอปพลิเคชันการค้นหาโดยใช้คอนโซลผู้ดูแลระบบ
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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). |"]]