GetSearchSuggestionsViewOptions

class GetSearchSuggestionsViewOptions


此类包含请求搜索建议界面视图所需的所有选项。调用方需要先获取有效的客户端 ID,然后才能返回响应。

摘要

公共构造函数

公共函数

GetSearchSuggestionsViewOptions!

指定用于请求搜索建议视图的客户端 ID。

GetSearchSuggestionsViewOptions!

指定此请求的位置信息上下文,以便返回的建议与给定的位置信息上下文列表相关联。

GetSearchSuggestionsViewOptions!

设置视图选项,以提供用于自定义搜索建议界面视图的选项。

GetSearchSuggestionsViewOptions!

指定此请求的文本上下文,以便返回的建议与给定文本列表相关。

公共构造函数

GetSearchSuggestionsViewOptions

GetSearchSuggestionsViewOptions()

公共函数

setClientId

@CanIgnoreReturnValue
fun setClientId(clientId: String!): GetSearchSuggestionsViewOptions!

指定用于请求搜索建议视图的客户端 ID。

参数
clientId: String!

要指定的客户端 ID。

返回
GetSearchSuggestionsViewOptions!

当前的 GetSearchSuggestionsViewOptions 对象。

setLocationContext

@CanIgnoreReturnValue
fun setLocationContext(locationContext: (Mutable)List<LocationContext!>!): GetSearchSuggestionsViewOptions!

指定此请求的位置信息上下文,以便返回的建议与给定的位置信息上下文列表相关联。

参数
locationContext: (Mutable)List<LocationContext!>!

地理位置情境列表,用于帮助生成搜索建议。目前,系统只会使用此列表中的第一个元素。

返回
GetSearchSuggestionsViewOptions!

当前的 GetSearchSuggestionsViewOptions 对象。

setSearchSuggestionsViewOptions

@CanIgnoreReturnValue
fun setSearchSuggestionsViewOptions(
    searchSuggestionsViewOptions: SearchSuggestionsViewOptions!
): GetSearchSuggestionsViewOptions!

设置视图选项,以提供用于自定义搜索建议界面视图的选项。

参数
searchSuggestionsViewOptions: SearchSuggestionsViewOptions!

SearchSuggestionsViewOptions 对象,用于自定义搜索建议界面视图。

返回
GetSearchSuggestionsViewOptions!

当前的 GetSearchSuggestionsViewOptions 对象。

setTextContext

@CanIgnoreReturnValue
fun setTextContext(textContext: (Mutable)List<String!>!): GetSearchSuggestionsViewOptions!

指定此请求的文本上下文,以便返回的建议与给定文本列表相关。

参数
textContext: (Mutable)List<String!>!

用于生成搜索建议的文本列表。目前,系统只会使用此列表中的第一个元素。

返回
GetSearchSuggestionsViewOptions!

当前的 GetSearchSuggestionsViewOptions 对象。