Interface SearchResponse.OneBoxResultOrBuilder (0.48.0)

public static interface SearchResponse.OneBoxResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getOneBoxType()

public abstract SearchResponse.OneBoxResult.OneBoxType getOneBoxType()

The type of One Box result.

.google.cloud.discoveryengine.v1alpha.SearchResponse.OneBoxResult.OneBoxType one_box_type = 1;

Returns
Type Description
SearchResponse.OneBoxResult.OneBoxType

The oneBoxType.

getOneBoxTypeValue()

public abstract int getOneBoxTypeValue()

The type of One Box result.

.google.cloud.discoveryengine.v1alpha.SearchResponse.OneBoxResult.OneBoxType one_box_type = 1;

Returns
Type Description
int

The enum numeric value on the wire for oneBoxType.

getSearchResults(int index)

public abstract SearchResponse.SearchResult getSearchResults(int index)

The search results for this One Box.

repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 2;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.SearchResult

getSearchResultsCount()

public abstract int getSearchResultsCount()

The search results for this One Box.

repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 2;

Returns
Type Description
int

getSearchResultsList()

public abstract List<SearchResponse.SearchResult> getSearchResultsList()

The search results for this One Box.

repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 2;

Returns
Type Description
List<SearchResult>

getSearchResultsOrBuilder(int index)

public abstract SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder(int index)

The search results for this One Box.

repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 2;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.SearchResultOrBuilder

getSearchResultsOrBuilderList()

public abstract List<? extends SearchResponse.SearchResultOrBuilder> getSearchResultsOrBuilderList()

The search results for this One Box.

repeated .google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResult search_results = 2;

Returns
Type Description
List<? extends com.google.cloud.discoveryengine.v1alpha.SearchResponse.SearchResultOrBuilder>