Interface SearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder (2.57.0)

public static interface SearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getSelectedAnswer()

public abstract SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer getSelectedAnswer()

This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].

.google.cloud.retail.v2.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer selected_answer = 2;

Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer

The selectedAnswer.

getSelectedAnswerOrBuilder()

public abstract SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswerOrBuilder getSelectedAnswerOrBuilder()

This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].

.google.cloud.retail.v2.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer selected_answer = 2;

Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswerOrBuilder

getTextAnswer()

public abstract String getTextAnswer()

This field specifies the incremental input text from the user during the conversational search.

string text_answer = 1;

Returns
Type Description
String

The textAnswer.

getTextAnswerBytes()

public abstract ByteString getTextAnswerBytes()

This field specifies the incremental input text from the user during the conversational search.

string text_answer = 1;

Returns
Type Description
ByteString

The bytes for textAnswer.

getTypeCase()

public abstract SearchRequest.ConversationalSearchSpec.UserAnswer.TypeCase getTypeCase()
Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer.TypeCase

hasSelectedAnswer()

public abstract boolean hasSelectedAnswer()

This field specifies the selected attributes during the conversational search. This should be a subset of [ConversationalSearchResult.suggested_answers][].

.google.cloud.retail.v2.SearchRequest.ConversationalSearchSpec.UserAnswer.SelectedAnswer selected_answer = 2;

Returns
Type Description
boolean

Whether the selectedAnswer field is set.

hasTextAnswer()

public abstract boolean hasTextAnswer()

This field specifies the incremental input text from the user during the conversational search.

string text_answer = 1;

Returns
Type Description
boolean

Whether the textAnswer field is set.