Interface SuggestFaqAnswersResponseOrBuilder (4.6.0)

public interface SuggestFaqAnswersResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContextSize()

public abstract int getContextSize()

Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size field in the request if there aren't that many messages in the conversation.

int32 context_size = 3;

Returns
TypeDescription
int

The contextSize.

getFaqAnswers(int index)

public abstract FaqAnswer getFaqAnswers(int index)

Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaqAnswer

getFaqAnswersCount()

public abstract int getFaqAnswersCount()

Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;

Returns
TypeDescription
int

getFaqAnswersList()

public abstract List<FaqAnswer> getFaqAnswersList()

Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;

Returns
TypeDescription
List<FaqAnswer>

getFaqAnswersOrBuilder(int index)

public abstract FaqAnswerOrBuilder getFaqAnswersOrBuilder(int index)

Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
FaqAnswerOrBuilder

getFaqAnswersOrBuilderList()

public abstract List<? extends FaqAnswerOrBuilder> getFaqAnswersOrBuilderList()

Answers extracted from FAQ documents.

repeated .google.cloud.dialogflow.v2.FaqAnswer faq_answers = 1;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.FaqAnswerOrBuilder>

getLatestMessage()

public abstract String getLatestMessage()

The name of the latest conversation message used to compile suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2;

Returns
TypeDescription
String

The latestMessage.

getLatestMessageBytes()

public abstract ByteString getLatestMessageBytes()

The name of the latest conversation message used to compile suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2;

Returns
TypeDescription
ByteString

The bytes for latestMessage.