Interface CompleteQueryResponse.QuerySuggestionOrBuilder (0.41.0)

public static interface CompleteQueryResponse.QuerySuggestionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCompletableFieldPaths(int index)

public abstract String getCompletableFieldPaths(int index)

The unique document field paths that serve as the source of this suggestion if it was generated from completable fields.

This field is only populated for the document-completable model.

repeated string completable_field_paths = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The completableFieldPaths at the given index.

getCompletableFieldPathsBytes(int index)

public abstract ByteString getCompletableFieldPathsBytes(int index)

The unique document field paths that serve as the source of this suggestion if it was generated from completable fields.

This field is only populated for the document-completable model.

repeated string completable_field_paths = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the completableFieldPaths at the given index.

getCompletableFieldPathsCount()

public abstract int getCompletableFieldPathsCount()

The unique document field paths that serve as the source of this suggestion if it was generated from completable fields.

This field is only populated for the document-completable model.

repeated string completable_field_paths = 2;

Returns
Type Description
int

The count of completableFieldPaths.

getCompletableFieldPathsList()

public abstract List<String> getCompletableFieldPathsList()

The unique document field paths that serve as the source of this suggestion if it was generated from completable fields.

This field is only populated for the document-completable model.

repeated string completable_field_paths = 2;

Returns
Type Description
List<String>

A list containing the completableFieldPaths.

getSuggestion()

public abstract String getSuggestion()

The suggestion for the query.

string suggestion = 1;

Returns
Type Description
String

The suggestion.

getSuggestionBytes()

public abstract ByteString getSuggestionBytes()

The suggestion for the query.

string suggestion = 1;

Returns
Type Description
ByteString

The bytes for suggestion.