Interface CompleteQueryResponseOrBuilder (0.37.0)

public interface CompleteQueryResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getQuerySuggestions(int index)

public abstract CompleteQueryResponse.QuerySuggestion getQuerySuggestions(int index)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
CompleteQueryResponse.QuerySuggestion

getQuerySuggestionsCount()

public abstract int getQuerySuggestionsCount()

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Returns
TypeDescription
int

getQuerySuggestionsList()

public abstract List<CompleteQueryResponse.QuerySuggestion> getQuerySuggestionsList()

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Returns
TypeDescription
List<QuerySuggestion>

getQuerySuggestionsOrBuilder(int index)

public abstract CompleteQueryResponse.QuerySuggestionOrBuilder getQuerySuggestionsOrBuilder(int index)

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
CompleteQueryResponse.QuerySuggestionOrBuilder

getQuerySuggestionsOrBuilderList()

public abstract List<? extends CompleteQueryResponse.QuerySuggestionOrBuilder> getQuerySuggestionsOrBuilderList()

Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.

repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;

Returns
TypeDescription
List<? extends com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder>

getTailMatchTriggered()

public abstract boolean getTailMatchTriggered()

True if the returned suggestions are all tail suggestions.

For tail matching to be triggered, include_tail_suggestions in the request must be true and there must be no suggestions that match the full query.

bool tail_match_triggered = 2;

Returns
TypeDescription
boolean

The tailMatchTriggered.