Request message for HomepageDataService.FetchDocuments method.
JSON representation
{"homepageDataConfig": string,"pageSize": integer,"type": enum (Type),"disableCache": boolean,// Union field request_type can be only one of the following:"recommendedDocuments": {object (RecommendedDocuments)},"recentDocuments": {object (RecentDocuments)},"recentEvents": {object (RecentEvents)},"announcements": {object (Announcements)}// End of list of possible types for union field request_type.}
Fields
homepageDataConfig
string
Required. The name of the homepage data config. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/homepageDataConfig
pageSize
integer
The maximum number of documents to return. Maximum allowed value is 20.
type
enum (Type)
The type of request.
disableCache
boolean
Optional. If true, then cache will not be used.
Union field request_type. Type for the request. request_type can be only one of the following:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-19 UTC."],[[["The `HomepageDataService.FetchDocuments` method retrieves various types of content for a homepage, including recommended documents, recent documents, recent events, and announcements."],["The request for fetching documents requires specifying the `homepageDataConfig`, and allows setting the `pageSize` (up to 20), `type` of the content and optional `disableCache` parameter."],["The `request_type` field is a union field that must be one of `recommendedDocuments`, `recentDocuments`, `recentEvents`, or `announcements`, allowing only one of these types per request."],["Each of the `request_type` options can have a `types` array specified, allowing filtering by specific document types, otherwise, all types are returned."],["The `RecentEvents` type has no configurable fields."]]],[]]