Interface AdvancedCompleteQueryResponse.QuerySuggestionOrBuilder (0.51.0)

public static interface AdvancedCompleteQueryResponse.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.

getDataStore(int index)

public abstract String getDataStore(int index)

The name of the dataStore that this suggestion belongs to.

repeated string data_store = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The dataStore at the given index.

getDataStoreBytes(int index)

public abstract ByteString getDataStoreBytes(int index)

The name of the dataStore that this suggestion belongs to.

repeated string data_store = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the dataStore at the given index.

getDataStoreCount()

public abstract int getDataStoreCount()

The name of the dataStore that this suggestion belongs to.

repeated string data_store = 3;

Returns
Type Description
int

The count of dataStore.

getDataStoreList()

public abstract List<String> getDataStoreList()

The name of the dataStore that this suggestion belongs to.

repeated string data_store = 3;

Returns
Type Description
List<String>

A list containing the dataStore.

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.