تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003e\u003ccode\u003eSuggestionsResponseBuilder\u003c/code\u003e helps create suggestion responses for auto-complete in Google Workspace Add-ons and Google Chat apps.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to set suggestions and build the response object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ebuild()\u003c/code\u003e method creates the final response and validates it, while \u003ccode\u003esetSuggestions()\u003c/code\u003e adds the desired suggestions.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003ebuild()\u003c/code\u003e without setting suggestions might result in an error, ensuring the response's validity.\u003c/p\u003e\n"]]],[],null,["# Class SuggestionsResponseBuilder\n\nSuggestionsResponseBuilder\n\nA builder for [SuggestionsResponse](/apps-script/reference/card-service/suggestions-response) objects.\n\nAvailable for Google Workspace add-ons and Google Chat apps. \n\n### Methods\n\n| Method | Return type | Brief description |\n|-------------------------------------------------------------|---------------------------------------------------------------------------------|------------------------------------------------------------|\n| [build()](#build()) | [SuggestionsResponse](/apps-script/reference/card-service/suggestions-response) | Builds the current suggestions response and validates it. |\n| [setSuggestions(suggestions)](#setSuggestions(Suggestions)) | [SuggestionsResponseBuilder](#) | Sets the suggestions used in auto complete in text fields. |\n\nDetailed documentation\n----------------------\n\n### `build()`\n\nBuilds the current suggestions response and validates it.\n\n#### Return\n\n\n[SuggestionsResponse](/apps-script/reference/card-service/suggestions-response) --- A validated SuggestionsResponse.\n\n#### Throws\n\n\n[`Error`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) --- if the constructed suggestions response isn't valid.\n\n*** ** * ** ***\n\n### `set``Suggestions(suggestions)`\n\nSets the suggestions used in auto complete in text fields.\n\n#### Parameters\n\n| Name | Type | Description |\n|---------------|----------------------------------------------------------------|----------------------------------------------------------------------------|\n| `suggestions` | [Suggestions](/apps-script/reference/card-service/suggestions) | The [Suggestions](/apps-script/reference/card-service/suggestions) to use. |\n\n#### Return\n\n\n[SuggestionsResponseBuilder](#) --- This object."]]