public static interface ConversationalSearchRequest.UserAnswerOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getSelectedAnswer()
public abstract ConversationalSearchRequest.UserAnswer.SelectedAnswer getSelectedAnswer()
Optional. This field specifies the selected answer during the conversational search. This should be a subset of [ConversationalSearchResponse.followup_question.suggested_answers][].
.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ConversationalSearchRequest.UserAnswer.SelectedAnswer |
The selectedAnswer. |
getSelectedAnswerOrBuilder()
public abstract ConversationalSearchRequest.UserAnswer.SelectedAnswerOrBuilder getSelectedAnswerOrBuilder()
Optional. This field specifies the selected answer during the conversational search. This should be a subset of [ConversationalSearchResponse.followup_question.suggested_answers][].
.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ConversationalSearchRequest.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 ConversationalSearchRequest.UserAnswer.TypeCase getTypeCase()
Returns | |
---|---|
Type | Description |
ConversationalSearchRequest.UserAnswer.TypeCase |
hasSelectedAnswer()
public abstract boolean hasSelectedAnswer()
Optional. This field specifies the selected answer during the conversational search. This should be a subset of [ConversationalSearchResponse.followup_question.suggested_answers][].
.google.cloud.retail.v2.ConversationalSearchRequest.UserAnswer.SelectedAnswer selected_answer = 2 [(.google.api.field_behavior) = OPTIONAL];
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. |