Interface SearchRequest.ConversationalSearchSpecOrBuilder (2.54.0)

public static interface SearchRequest.ConversationalSearchSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConversationId()

public abstract String getConversationId()

This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous [ConversationalSearchResult.conversation_id][]. For the initial request, this should be empty.

string conversation_id = 2;

Returns
Type Description
String

The conversationId.

getConversationIdBytes()

public abstract ByteString getConversationIdBytes()

This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous [ConversationalSearchResult.conversation_id][]. For the initial request, this should be empty.

string conversation_id = 2;

Returns
Type Description
ByteString

The bytes for conversationId.

getFollowupConversationRequested()

public abstract boolean getFollowupConversationRequested()

This field specifies whether the customer would like to do conversational search. If this field is set to true, conversational related extra information will be returned from server side, including follow-up question, answer options, etc.

bool followup_conversation_requested = 1;

Returns
Type Description
boolean

The followupConversationRequested.

getUserAnswer()

public abstract SearchRequest.ConversationalSearchSpec.UserAnswer getUserAnswer()

This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.

.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;

Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswer

The userAnswer.

getUserAnswerOrBuilder()

public abstract SearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder getUserAnswerOrBuilder()

This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.

.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;

Returns
Type Description
SearchRequest.ConversationalSearchSpec.UserAnswerOrBuilder

hasUserAnswer()

public abstract boolean hasUserAnswer()

This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.

.google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer user_answer = 3;

Returns
Type Description
boolean

Whether the userAnswer field is set.