Class SearchInfo.SearchResult.SearchResultBuilder<C extends SearchInfo.SearchResult,B extends SearchInfo.SearchResult.SearchResultBuilder<C,B>>
java.lang.Object
com.alibaba.dashscope.legacy_2x.common.SearchInfo.SearchResult.SearchResultBuilder<C,B>
- Enclosing class:
- SearchInfo.SearchResult
public abstract static class SearchInfo.SearchResult.SearchResultBuilder<C extends SearchInfo.SearchResult,B extends SearchInfo.SearchResult.SearchResultBuilder<C,B>>
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Cbuild()Icon URL of the source website, or an empty string if no icon is available.Index of this result in search_results.protected abstract Bself()Name of the website providing the search result.Title of the search result.toString()URL of the search result.
-
Constructor Details
-
SearchResultBuilder
public SearchResultBuilder()
-
-
Method Details
-
siteName
Name of the website providing the search result.- Returns:
this.
-
icon
Icon URL of the source website, or an empty string if no icon is available.- Returns:
this.
-
index
Index of this result in search_results.- Returns:
this.
-
title
Title of the search result.- Returns:
this.
-
url
URL of the search result.- Returns:
this.
-
self
-
build
-
toString
-