Interface KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder (4.61.0)

public static interface KnowledgeAssistAnswer.KnowledgeAnswerOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAnswerText()

public abstract String getAnswerText()

The piece of text from the source that answers this suggested query.

string answer_text = 1;

Returns
Type Description
String

The answerText.

getAnswerTextBytes()

public abstract ByteString getAnswerTextBytes()

The piece of text from the source that answers this suggested query.

string answer_text = 1;

Returns
Type Description
ByteString

The bytes for answerText.

getFaqSource()

public abstract KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource getFaqSource()

Populated if the prediction came from FAQ.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3;

Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource

The faqSource.

getFaqSourceOrBuilder()

public abstract KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder getFaqSourceOrBuilder()

Populated if the prediction came from FAQ.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3;

Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.FaqSourceOrBuilder

getGenerativeSource()

public abstract KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource getGenerativeSource()

Populated if the prediction was Generative.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4;

Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource

The generativeSource.

getGenerativeSourceOrBuilder()

public abstract KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceOrBuilder getGenerativeSourceOrBuilder()

Populated if the prediction was Generative.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4;

Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSourceOrBuilder

getSourceCase()

public abstract KnowledgeAssistAnswer.KnowledgeAnswer.SourceCase getSourceCase()
Returns
Type Description
KnowledgeAssistAnswer.KnowledgeAnswer.SourceCase

hasFaqSource()

public abstract boolean hasFaqSource()

Populated if the prediction came from FAQ.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.FaqSource faq_source = 3;

Returns
Type Description
boolean

Whether the faqSource field is set.

hasGenerativeSource()

public abstract boolean hasGenerativeSource()

Populated if the prediction was Generative.

.google.cloud.dialogflow.v2.KnowledgeAssistAnswer.KnowledgeAnswer.GenerativeSource generative_source = 4;

Returns
Type Description
boolean

Whether the generativeSource field is set.