public interface FaqAnswerOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMetadata(String key)
A map that contains metadata about the answer and the
document from which it originates.
|
String |
getAnswer()
The piece of text from the `source` knowledge base document.
|
com.google.protobuf.ByteString |
getAnswerBytes()
The piece of text from the `source` knowledge base document.
|
String |
getAnswerRecord()
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
com.google.protobuf.ByteString |
getAnswerRecordBytes()
The name of answer record, in the format of
"projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
ID>"
|
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()
A map that contains metadata about the answer and the
document from which it originates.
|
Map<String,String> |
getMetadataMap()
A map that contains metadata about the answer and the
document from which it originates.
|
String |
getMetadataOrDefault(String key,
String defaultValue)
A map that contains metadata about the answer and the
document from which it originates.
|
String |
getMetadataOrThrow(String key)
A map that contains metadata about the answer and the
document from which it originates.
|
String |
getQuestion()
The corresponding FAQ question.
|
com.google.protobuf.ByteString |
getQuestionBytes()
The corresponding FAQ question.
|
String |
getSource()
Indicates which Knowledge Document this answer was extracted
from.
|
com.google.protobuf.ByteString |
getSourceBytes()
Indicates which Knowledge Document this answer was extracted
from.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString getAnswer()
The piece of text from the `source` knowledge base document.
string answer = 1;com.google.protobuf.ByteString getAnswerBytes()
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()
The corresponding FAQ question.
string question = 3;com.google.protobuf.ByteString getQuestionBytes()
The corresponding FAQ question.
string question = 3;String getSource()
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;com.google.protobuf.ByteString getSourceBytes()
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()
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;boolean containsMetadata(String key)
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()
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)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;String getMetadataOrThrow(String key)
A map that contains metadata about the answer and the document from which it originates.
map<string, string> metadata = 5;String getAnswerRecord()
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;com.google.protobuf.ByteString getAnswerRecordBytes()
The name of answer record, in the format of "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>"
string answer_record = 6;Copyright © 2023 Google LLC. All rights reserved.