GetTrendingSearchesViewOptions

public final class GetTrendingSearchesViewOptions


這個類別包含要求熱門搜尋 UI 檢視畫面所需的所有選項。呼叫端必須取得有效的用戶端 ID,才能傳回回應。

摘要

公用建構函式

公用方法

GetTrendingSearchesViewOptions

指定要用於要求熱門搜尋檢視畫面的用戶端 ID。

GetTrendingSearchesViewOptions

指定從後端傳回的趨勢數量上限。

GetTrendingSearchesViewOptions

設定檢視選項,提供自訂熱門搜尋使用者介面檢視畫面的選項。

公用建構函式

GetTrendingSearchesViewOptions

public GetTrendingSearchesViewOptions()

公用方法

setClientId

@CanIgnoreReturnValue
public GetTrendingSearchesViewOptions setClientId(String clientId)

指定用來要求熱門搜尋檢視畫面的用戶端 ID。

參數
String clientId

要指定的用戶端 ID。

傳回
GetTrendingSearchesViewOptions

目前的 GetTrendingSearchesViewOptions 物件。

setMaxNumTrends

@CanIgnoreReturnValue
public GetTrendingSearchesViewOptions setMaxNumTrends(int maxNumTrends)

指定從後端傳回的趨勢數量上限。

參數
int maxNumTrends

傳回趨勢的數量上限。

傳回
GetTrendingSearchesViewOptions

目前的 GetTrendingSearchesViewOptions 物件。

setTrendingSearchesViewOptions

@CanIgnoreReturnValue
public GetTrendingSearchesViewOptions setTrendingSearchesViewOptions(
    SearchSuggestionsViewOptions trendingSearchesViewOptions
)

設定檢視選項,提供自訂熱門搜尋使用者介面檢視畫面的選項。

參數
SearchSuggestionsViewOptions trendingSearchesViewOptions

用於自訂趨勢搜尋 UI 檢視畫面的 SearchSuggestionsViewOptions 物件。

傳回
GetTrendingSearchesViewOptions

目前的 GetTrendingSearchesViewOptions 物件。