Interface SearchKnowledgeAnswerOrBuilder (4.35.0)

public interface SearchKnowledgeAnswerOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAnswer()

public abstract String getAnswer()

The piece of text from the knowledge base documents that answers the search query

string answer = 1;

Returns
Type Description
String

The answer.

getAnswerBytes()

public abstract ByteString getAnswerBytes()

The piece of text from the knowledge base documents that answers the search query

string answer = 1;

Returns
Type Description
ByteString

The bytes for answer.

getAnswerRecord()

public abstract String getAnswerRecord()

The name of the answer record. Format: projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>

string answer_record = 5;

Returns
Type Description
String

The answerRecord.

getAnswerRecordBytes()

public abstract ByteString getAnswerRecordBytes()

The name of the answer record. Format: projects/<Project ID>/locations/<location ID>/answer Records/<Answer Record ID>

string answer_record = 5;

Returns
Type Description
ByteString

The bytes for answerRecord.

getAnswerSources(int index)

public abstract SearchKnowledgeAnswer.AnswerSource getAnswerSources(int index)

All sources used to generate the answer.

repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerSource answer_sources = 3;

Parameter
Name Description
index int
Returns
Type Description
SearchKnowledgeAnswer.AnswerSource

getAnswerSourcesCount()

public abstract int getAnswerSourcesCount()

All sources used to generate the answer.

repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerSource answer_sources = 3;

Returns
Type Description
int

getAnswerSourcesList()

public abstract List<SearchKnowledgeAnswer.AnswerSource> getAnswerSourcesList()

All sources used to generate the answer.

repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerSource answer_sources = 3;

Returns
Type Description
List<AnswerSource>

getAnswerSourcesOrBuilder(int index)

public abstract SearchKnowledgeAnswer.AnswerSourceOrBuilder getAnswerSourcesOrBuilder(int index)

All sources used to generate the answer.

repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerSource answer_sources = 3;

Parameter
Name Description
index int
Returns
Type Description
SearchKnowledgeAnswer.AnswerSourceOrBuilder

getAnswerSourcesOrBuilderList()

public abstract List<? extends SearchKnowledgeAnswer.AnswerSourceOrBuilder> getAnswerSourcesOrBuilderList()

All sources used to generate the answer.

repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerSource answer_sources = 3;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerSourceOrBuilder>

getAnswerType()

public abstract SearchKnowledgeAnswer.AnswerType getAnswerType()

The type of the answer.

.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerType answer_type = 2;

Returns
Type Description
SearchKnowledgeAnswer.AnswerType

The answerType.

getAnswerTypeValue()

public abstract int getAnswerTypeValue()

The type of the answer.

.google.cloud.dialogflow.v2beta1.SearchKnowledgeAnswer.AnswerType answer_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for answerType.