Google Cloud Dialogflow v2 API - Class KnowledgeAssistAnswer.Types.KnowledgeAnswer (4.21.0)

public sealed class KnowledgeAssistAnswer.Types.KnowledgeAnswer : IMessage<KnowledgeAssistAnswer.Types.KnowledgeAnswer>, IEquatable<KnowledgeAssistAnswer.Types.KnowledgeAnswer>, IDeepCloneable<KnowledgeAssistAnswer.Types.KnowledgeAnswer>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Dialogflow v2 API class KnowledgeAssistAnswer.Types.KnowledgeAnswer.

Represents an answer from Knowledge. Currently supports FAQ and Generative answers.

Inheritance

object > KnowledgeAssistAnswer.Types.KnowledgeAnswer

Namespace

Google.Cloud.Dialogflow.V2

Assembly

Google.Cloud.Dialogflow.V2.dll

Constructors

KnowledgeAnswer()

public KnowledgeAnswer()

KnowledgeAnswer(KnowledgeAnswer)

public KnowledgeAnswer(KnowledgeAssistAnswer.Types.KnowledgeAnswer other)
Parameter
Name Description
other KnowledgeAssistAnswerTypesKnowledgeAnswer

Properties

AnswerText

public string AnswerText { get; set; }

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

Property Value
Type Description
string

FaqSource

public KnowledgeAssistAnswer.Types.KnowledgeAnswer.Types.FaqSource FaqSource { get; set; }

Populated if the prediction came from FAQ.

Property Value
Type Description
KnowledgeAssistAnswerTypesKnowledgeAnswerTypesFaqSource

GenerativeSource

public KnowledgeAssistAnswer.Types.KnowledgeAnswer.Types.GenerativeSource GenerativeSource { get; set; }

Populated if the prediction was Generative.

Property Value
Type Description
KnowledgeAssistAnswerTypesKnowledgeAnswerTypesGenerativeSource

SourceCase

public KnowledgeAssistAnswer.Types.KnowledgeAnswer.SourceOneofCase SourceCase { get; }
Property Value
Type Description
KnowledgeAssistAnswerTypesKnowledgeAnswerSourceOneofCase