Package com.google.cloud.dialogflow.v2
Interface SearchKnowledgeAnswerOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SearchKnowledgeAnswer,SearchKnowledgeAnswer.Builder
@Generated
public interface SearchKnowledgeAnswerOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe piece of text from the knowledge base documents that answers the search querycom.google.protobuf.ByteStringThe piece of text from the knowledge base documents that answers the search queryThe name of the answer record.com.google.protobuf.ByteStringThe name of the answer record.getAnswerSources(int index) All sources used to generate the answer.intAll sources used to generate the answer.All sources used to generate the answer.getAnswerSourcesOrBuilder(int index) All sources used to generate the answer.List<? extends SearchKnowledgeAnswer.AnswerSourceOrBuilder>All sources used to generate the answer.The type of the answer.intThe type of the answer.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getAnswer
String getAnswer()The piece of text from the knowledge base documents that answers the search query
string answer = 1;- Returns:
- The answer.
-
getAnswerBytes
com.google.protobuf.ByteString getAnswerBytes()The piece of text from the knowledge base documents that answers the search query
string answer = 1;- Returns:
- The bytes for answer.
-
getAnswerTypeValue
int getAnswerTypeValue()The type of the answer.
.google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerType answer_type = 2;- Returns:
- The enum numeric value on the wire for answerType.
-
getAnswerType
SearchKnowledgeAnswer.AnswerType getAnswerType()The type of the answer.
.google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerType answer_type = 2;- Returns:
- The answerType.
-
getAnswerSourcesList
List<SearchKnowledgeAnswer.AnswerSource> getAnswerSourcesList()All sources used to generate the answer.
repeated .google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource answer_sources = 3; -
getAnswerSources
All sources used to generate the answer.
repeated .google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource answer_sources = 3; -
getAnswerSourcesCount
int getAnswerSourcesCount()All sources used to generate the answer.
repeated .google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource answer_sources = 3; -
getAnswerSourcesOrBuilderList
List<? extends SearchKnowledgeAnswer.AnswerSourceOrBuilder> getAnswerSourcesOrBuilderList()All sources used to generate the answer.
repeated .google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource answer_sources = 3; -
getAnswerSourcesOrBuilder
All sources used to generate the answer.
repeated .google.cloud.dialogflow.v2.SearchKnowledgeAnswer.AnswerSource answer_sources = 3; -
getAnswerRecord
String getAnswerRecord()The name of the answer record. Format: `projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>`
string answer_record = 5 [(.google.api.resource_reference) = { ... }- Returns:
- The answerRecord.
-
getAnswerRecordBytes
com.google.protobuf.ByteString getAnswerRecordBytes()The name of the answer record. Format: `projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>`
string answer_record = 5 [(.google.api.resource_reference) = { ... }- Returns:
- The bytes for answerRecord.
-