public static final class KnowledgeAnswers.Answer extends GeneratedMessageV3 implements KnowledgeAnswers.AnswerOrBuilder
An answer from Knowledge Connector.Protobuf type
google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer
Modifier and Type | Class and Description |
---|---|
static class |
KnowledgeAnswers.Answer.Builder
An answer from Knowledge Connector.
|
static class |
KnowledgeAnswers.Answer.MatchConfidenceLevel
Represents the system's confidence that this knowledge answer is a good
match for this conversational query.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
ANSWER_FIELD_NUMBER |
static int |
FAQ_QUESTION_FIELD_NUMBER |
static int |
MATCH_CONFIDENCE_FIELD_NUMBER |
static int |
MATCH_CONFIDENCE_LEVEL_FIELD_NUMBER |
static int |
SOURCE_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int SOURCE_FIELD_NUMBER
public static final int FAQ_QUESTION_FIELD_NUMBER
public static final int ANSWER_FIELD_NUMBER
public static final int MATCH_CONFIDENCE_LEVEL_FIELD_NUMBER
public static final int MATCH_CONFIDENCE_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public String getSource()
Indicates which Knowledge Document this answer was extracted from. Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
string source = 1 [(.google.api.resource_reference) = { ... }
getSource
in interface KnowledgeAnswers.AnswerOrBuilder
public ByteString getSourceBytes()
Indicates which Knowledge Document this answer was extracted from. Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
string source = 1 [(.google.api.resource_reference) = { ... }
getSourceBytes
in interface KnowledgeAnswers.AnswerOrBuilder
public String getFaqQuestion()
The corresponding FAQ question if the answer was extracted from a FAQ Document, empty otherwise.
string faq_question = 2;
getFaqQuestion
in interface KnowledgeAnswers.AnswerOrBuilder
public ByteString getFaqQuestionBytes()
The corresponding FAQ question if the answer was extracted from a FAQ Document, empty otherwise.
string faq_question = 2;
getFaqQuestionBytes
in interface KnowledgeAnswers.AnswerOrBuilder
public String getAnswer()
The piece of text from the `source` knowledge base document that answers this conversational query.
string answer = 3;
getAnswer
in interface KnowledgeAnswers.AnswerOrBuilder
public ByteString getAnswerBytes()
The piece of text from the `source` knowledge base document that answers this conversational query.
string answer = 3;
getAnswerBytes
in interface KnowledgeAnswers.AnswerOrBuilder
public int getMatchConfidenceLevelValue()
The system's confidence level that this knowledge answer is a good match for this conversational query. NOTE: The confidence level for a given `<query, answer>` pair may change without notice, as it depends on models that are constantly being improved. However, it will change less frequently than the confidence score below, and should be preferred for referencing the quality of an answer.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel match_confidence_level = 4;
getMatchConfidenceLevelValue
in interface KnowledgeAnswers.AnswerOrBuilder
public KnowledgeAnswers.Answer.MatchConfidenceLevel getMatchConfidenceLevel()
The system's confidence level that this knowledge answer is a good match for this conversational query. NOTE: The confidence level for a given `<query, answer>` pair may change without notice, as it depends on models that are constantly being improved. However, it will change less frequently than the confidence score below, and should be preferred for referencing the quality of an answer.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer.MatchConfidenceLevel match_confidence_level = 4;
getMatchConfidenceLevel
in interface KnowledgeAnswers.AnswerOrBuilder
public float getMatchConfidence()
The system's confidence score that this Knowledge answer is a good match for this conversational query. The range is from 0.0 (completely uncertain) to 1.0 (completely certain). Note: The confidence score is likely to vary somewhat (possibly even for identical requests), as the underlying model is under constant improvement. It may be deprecated in the future. We recommend using `match_confidence_level` which should be generally more stable.
float match_confidence = 5;
getMatchConfidence
in interface KnowledgeAnswers.AnswerOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static KnowledgeAnswers.Answer parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static KnowledgeAnswers.Answer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static KnowledgeAnswers.Answer parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static KnowledgeAnswers.Answer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static KnowledgeAnswers.Answer parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static KnowledgeAnswers.Answer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static KnowledgeAnswers.Answer parseFrom(InputStream input) throws IOException
IOException
public static KnowledgeAnswers.Answer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static KnowledgeAnswers.Answer parseDelimitedFrom(InputStream input) throws IOException
IOException
public static KnowledgeAnswers.Answer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static KnowledgeAnswers.Answer parseFrom(CodedInputStream input) throws IOException
IOException
public static KnowledgeAnswers.Answer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public KnowledgeAnswers.Answer.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static KnowledgeAnswers.Answer.Builder newBuilder()
public static KnowledgeAnswers.Answer.Builder newBuilder(KnowledgeAnswers.Answer prototype)
public KnowledgeAnswers.Answer.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected KnowledgeAnswers.Answer.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static KnowledgeAnswers.Answer getDefaultInstance()
public static Parser<KnowledgeAnswers.Answer> parser()
public Parser<KnowledgeAnswers.Answer> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public KnowledgeAnswers.Answer getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.