public static interface Suggestion.FaqAnswerOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
containsMetadata(String key)
Output only.
|
String |
getAnswer()
Output only.
|
ByteString |
getAnswerBytes()
Output only.
|
String |
getAnswerRecord()
Output only.
|
ByteString |
getAnswerRecordBytes()
Output only.
|
float |
getConfidence()
The system's confidence score that this Knowledge answer is a good match
for this conversational query, range from 0.0 (completely uncertain)
to 1.0 (completely certain).
|
Map<String,String> |
getMetadata()
Deprecated.
|
int |
getMetadataCount()
Output only.
|
Map<String,String> |
getMetadataMap()
Output only.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
Output only.
|
String |
getMetadataOrThrow(String key)
Output only.
|
String |
getQuestion()
Output only.
|
ByteString |
getQuestionBytes()
Output only.
|
String |
getSource()
Output only.
|
ByteString |
getSourceBytes()
Output only.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
String getAnswer()
Output only. The piece of text from the `source` knowledge base document.
string answer = 1;
ByteString getAnswerBytes()
Output only. The piece of text from the `source` knowledge base document.
string answer = 1;
float getConfidence()
The system's confidence score that this Knowledge answer is a good match for this conversational query, range from 0.0 (completely uncertain) to 1.0 (completely certain).
float confidence = 2;
String getQuestion()
Output only. The corresponding FAQ question.
string question = 3;
ByteString getQuestionBytes()
Output only. The corresponding FAQ question.
string question = 3;
String getSource()
Output only. Indicates which Knowledge Document this answer was extracted from. Format: `projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
string source = 4;
ByteString getSourceBytes()
Output only. Indicates which Knowledge Document this answer was extracted from. Format: `projects/<Project ID>/locations/<Location ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
string source = 4;
int getMetadataCount()
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
boolean containsMetadata(String key)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
@Deprecated Map<String,String> getMetadata()
getMetadataMap()
instead.Map<String,String> getMetadataMap()
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
String getMetadataOrDefault(String key, String defaultValue)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
String getMetadataOrThrow(String key)
Output only. A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;
String getAnswerRecord()
Output only. The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
ByteString getAnswerRecordBytes()
Output only. The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;
Copyright © 2022 Google LLC. All rights reserved.