Interface SearchResponse.SessionInfoOrBuilder (0.43.0)

public static interface SearchResponse.SessionInfoOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getName()

public abstract String getName()

Name of the session. If the auto-session mode is used (when SearchRequest.session ends with "-"), this field holds the newly generated session name.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Name of the session. If the auto-session mode is used (when SearchRequest.session ends with "-"), this field holds the newly generated session name.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getQueryId()

public abstract String getQueryId()

Query ID that corresponds to this search API call. One session can have multiple turns, each with a unique query ID.

By specifying the session name and this query ID in the Answer API call, the answer generation happens in the context of the search results from this search call.

string query_id = 2;

Returns
Type Description
String

The queryId.

getQueryIdBytes()

public abstract ByteString getQueryIdBytes()

Query ID that corresponds to this search API call. One session can have multiple turns, each with a unique query ID.

By specifying the session name and this query ID in the Answer API call, the answer generation happens in the context of the search results from this search call.

string query_id = 2;

Returns
Type Description
ByteString

The bytes for queryId.