Interface Session.TurnOrBuilder (0.42.0)

public static interface Session.TurnOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAnswer()

public abstract String getAnswer()

The resource name of the answer to the user query.

Only set if the answer generation (/answer API call) happened in this turn.

string answer = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The answer.

getAnswerBytes()

public abstract ByteString getAnswerBytes()

The resource name of the answer to the user query.

Only set if the answer generation (/answer API call) happened in this turn.

string answer = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for answer.

getQuery()

public abstract Query getQuery()

The user query.

.google.cloud.discoveryengine.v1.Query query = 1;

Returns
Type Description
Query

The query.

getQueryOrBuilder()

public abstract QueryOrBuilder getQueryOrBuilder()

The user query.

.google.cloud.discoveryengine.v1.Query query = 1;

Returns
Type Description
QueryOrBuilder

hasQuery()

public abstract boolean hasQuery()

The user query.

.google.cloud.discoveryengine.v1.Query query = 1;

Returns
Type Description
boolean

Whether the query field is set.