public static final class KnowledgeAnswers.Answer.Builder extends GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder> implements KnowledgeAnswers.AnswerOrBuilder
An answer from Knowledge Connector.Protobuf type
google.cloud.dialogflow.v2beta1.KnowledgeAnswers.Answer
Modifier and Type | Method and Description |
---|---|
KnowledgeAnswers.Answer.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
KnowledgeAnswers.Answer |
build() |
KnowledgeAnswers.Answer |
buildPartial() |
KnowledgeAnswers.Answer.Builder |
clear() |
KnowledgeAnswers.Answer.Builder |
clearAnswer()
The piece of text from the `source` knowledge base document that answers
this conversational query.
|
KnowledgeAnswers.Answer.Builder |
clearFaqQuestion()
The corresponding FAQ question if the answer was extracted from a FAQ
Document, empty otherwise.
|
KnowledgeAnswers.Answer.Builder |
clearField(Descriptors.FieldDescriptor field) |
KnowledgeAnswers.Answer.Builder |
clearMatchConfidence()
The system's confidence score that this Knowledge answer is a good match
for this conversational query.
|
KnowledgeAnswers.Answer.Builder |
clearMatchConfidenceLevel()
The system's confidence level that this knowledge answer is a good match
for this conversational query.
|
KnowledgeAnswers.Answer.Builder |
clearOneof(Descriptors.OneofDescriptor oneof) |
KnowledgeAnswers.Answer.Builder |
clearSource()
Indicates which Knowledge Document this answer was extracted from.
|
KnowledgeAnswers.Answer.Builder |
clone() |
String |
getAnswer()
The piece of text from the `source` knowledge base document that answers
this conversational query.
|
ByteString |
getAnswerBytes()
The piece of text from the `source` knowledge base document that answers
this conversational query.
|
KnowledgeAnswers.Answer |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
String |
getFaqQuestion()
The corresponding FAQ question if the answer was extracted from a FAQ
Document, empty otherwise.
|
ByteString |
getFaqQuestionBytes()
The corresponding FAQ question if the answer was extracted from a FAQ
Document, empty otherwise.
|
float |
getMatchConfidence()
The system's confidence score that this Knowledge answer is a good match
for this conversational query.
|
KnowledgeAnswers.Answer.MatchConfidenceLevel |
getMatchConfidenceLevel()
The system's confidence level that this knowledge answer is a good match
for this conversational query.
|
int |
getMatchConfidenceLevelValue()
The system's confidence level that this knowledge answer is a good match
for this conversational query.
|
String |
getSource()
Indicates which Knowledge Document this answer was extracted from.
|
ByteString |
getSourceBytes()
Indicates which Knowledge Document this answer was extracted from.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
KnowledgeAnswers.Answer.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
KnowledgeAnswers.Answer.Builder |
mergeFrom(KnowledgeAnswers.Answer other) |
KnowledgeAnswers.Answer.Builder |
mergeFrom(Message other) |
KnowledgeAnswers.Answer.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields) |
KnowledgeAnswers.Answer.Builder |
setAnswer(String value)
The piece of text from the `source` knowledge base document that answers
this conversational query.
|
KnowledgeAnswers.Answer.Builder |
setAnswerBytes(ByteString value)
The piece of text from the `source` knowledge base document that answers
this conversational query.
|
KnowledgeAnswers.Answer.Builder |
setFaqQuestion(String value)
The corresponding FAQ question if the answer was extracted from a FAQ
Document, empty otherwise.
|
KnowledgeAnswers.Answer.Builder |
setFaqQuestionBytes(ByteString value)
The corresponding FAQ question if the answer was extracted from a FAQ
Document, empty otherwise.
|
KnowledgeAnswers.Answer.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
KnowledgeAnswers.Answer.Builder |
setMatchConfidence(float value)
The system's confidence score that this Knowledge answer is a good match
for this conversational query.
|
KnowledgeAnswers.Answer.Builder |
setMatchConfidenceLevel(KnowledgeAnswers.Answer.MatchConfidenceLevel value)
The system's confidence level that this knowledge answer is a good match
for this conversational query.
|
KnowledgeAnswers.Answer.Builder |
setMatchConfidenceLevelValue(int value)
The system's confidence level that this knowledge answer is a good match
for this conversational query.
|
KnowledgeAnswers.Answer.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
KnowledgeAnswers.Answer.Builder |
setSource(String value)
Indicates which Knowledge Document this answer was extracted from.
|
KnowledgeAnswers.Answer.Builder |
setSourceBytes(ByteString value)
Indicates which Knowledge Document this answer was extracted from.
|
KnowledgeAnswers.Answer.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder>
public KnowledgeAnswers.Answer.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder>
public KnowledgeAnswers.Answer getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public KnowledgeAnswers.Answer build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public KnowledgeAnswers.Answer buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public KnowledgeAnswers.Answer.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder>
public KnowledgeAnswers.Answer.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder>
public KnowledgeAnswers.Answer.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder>
public KnowledgeAnswers.Answer.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder>
public KnowledgeAnswers.Answer.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder>
public KnowledgeAnswers.Answer.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder>
public KnowledgeAnswers.Answer.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<KnowledgeAnswers.Answer.Builder>
public KnowledgeAnswers.Answer.Builder mergeFrom(KnowledgeAnswers.Answer other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder>
public KnowledgeAnswers.Answer.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<KnowledgeAnswers.Answer.Builder>
IOException
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 KnowledgeAnswers.Answer.Builder setSource(String value)
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) = { ... }
value
- The source to set.public KnowledgeAnswers.Answer.Builder clearSource()
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) = { ... }
public KnowledgeAnswers.Answer.Builder setSourceBytes(ByteString value)
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) = { ... }
value
- The bytes for source to set.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 KnowledgeAnswers.Answer.Builder setFaqQuestion(String value)
The corresponding FAQ question if the answer was extracted from a FAQ Document, empty otherwise.
string faq_question = 2;
value
- The faqQuestion to set.public KnowledgeAnswers.Answer.Builder clearFaqQuestion()
The corresponding FAQ question if the answer was extracted from a FAQ Document, empty otherwise.
string faq_question = 2;
public KnowledgeAnswers.Answer.Builder setFaqQuestionBytes(ByteString value)
The corresponding FAQ question if the answer was extracted from a FAQ Document, empty otherwise.
string faq_question = 2;
value
- The bytes for faqQuestion to set.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 KnowledgeAnswers.Answer.Builder setAnswer(String value)
The piece of text from the `source` knowledge base document that answers this conversational query.
string answer = 3;
value
- The answer to set.public KnowledgeAnswers.Answer.Builder clearAnswer()
The piece of text from the `source` knowledge base document that answers this conversational query.
string answer = 3;
public KnowledgeAnswers.Answer.Builder setAnswerBytes(ByteString value)
The piece of text from the `source` knowledge base document that answers this conversational query.
string answer = 3;
value
- The bytes for answer to set.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.Builder setMatchConfidenceLevelValue(int value)
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;
value
- The enum numeric value on the wire for matchConfidenceLevel to set.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 KnowledgeAnswers.Answer.Builder setMatchConfidenceLevel(KnowledgeAnswers.Answer.MatchConfidenceLevel value)
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;
value
- The matchConfidenceLevel to set.public KnowledgeAnswers.Answer.Builder clearMatchConfidenceLevel()
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;
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 KnowledgeAnswers.Answer.Builder setMatchConfidence(float value)
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;
value
- The matchConfidence to set.public KnowledgeAnswers.Answer.Builder clearMatchConfidence()
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;
public final KnowledgeAnswers.Answer.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder>
public final KnowledgeAnswers.Answer.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<KnowledgeAnswers.Answer.Builder>
Copyright © 2022 Google LLC. All rights reserved.