Interface CompleteQueryResponse.QuerySuggestionOrBuilder (0.28.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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
List<String>

A list containing the completableFieldPaths.

getSuggestion()

public abstract String getSuggestion()

The suggestion for the query.

string suggestion = 1;

Returns
TypeDescription
String

The suggestion.

getSuggestionBytes()

public abstract ByteString getSuggestionBytes()

The suggestion for the query.

string suggestion = 1;

Returns
TypeDescription
ByteString

The bytes for suggestion.