Interface AnswerQueryResponseOrBuilder (0.38.0)

public interface AnswerQueryResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAnswer()

public abstract Answer getAnswer()

Answer resource object. If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1, use Answer.name to fetch answer information using ConversationalSearchService.GetAnswer API.

.google.cloud.discoveryengine.v1alpha.Answer answer = 1;

Returns
Type Description
Answer

The answer.

getAnswerOrBuilder()

public abstract AnswerOrBuilder getAnswerOrBuilder()

Answer resource object. If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1, use Answer.name to fetch answer information using ConversationalSearchService.GetAnswer API.

.google.cloud.discoveryengine.v1alpha.Answer answer = 1;

Returns
Type Description
AnswerOrBuilder

getSession()

public abstract Session getSession()

Session resource object. It will be only available when session field is set and valid in the AnswerQueryRequest request.

.google.cloud.discoveryengine.v1alpha.Session session = 2;

Returns
Type Description
Session

The session.

getSessionOrBuilder()

public abstract SessionOrBuilder getSessionOrBuilder()

Session resource object. It will be only available when session field is set and valid in the AnswerQueryRequest request.

.google.cloud.discoveryengine.v1alpha.Session session = 2;

Returns
Type Description
SessionOrBuilder

hasAnswer()

public abstract boolean hasAnswer()

Answer resource object. If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1, use Answer.name to fetch answer information using ConversationalSearchService.GetAnswer API.

.google.cloud.discoveryengine.v1alpha.Answer answer = 1;

Returns
Type Description
boolean

Whether the answer field is set.

hasSession()

public abstract boolean hasSession()

Session resource object. It will be only available when session field is set and valid in the AnswerQueryRequest request.

.google.cloud.discoveryengine.v1alpha.Session session = 2;

Returns
Type Description
boolean

Whether the session field is set.