Interface SuggestKnowledgeAssistResponseOrBuilder (4.58.0)

public interface SuggestKnowledgeAssistResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContextSize()

public abstract int getContextSize()

Number of messages prior to and including latest_message to compile the suggestion. It may be smaller than the SuggestKnowledgeAssistRequest.context_size field in the request if there are fewer messages in the conversation.

int32 context_size = 3;

Returns
Type Description
int

The contextSize.

getKnowledgeAssistAnswer()

public abstract KnowledgeAssistAnswer getKnowledgeAssistAnswer()

Output only. Knowledge Assist suggestion.

.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer knowledge_assist_answer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KnowledgeAssistAnswer

The knowledgeAssistAnswer.

getKnowledgeAssistAnswerOrBuilder()

public abstract KnowledgeAssistAnswerOrBuilder getKnowledgeAssistAnswerOrBuilder()

Output only. Knowledge Assist suggestion.

.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer knowledge_assist_answer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
KnowledgeAssistAnswerOrBuilder

getLatestMessage()

public abstract String getLatestMessage()

The name of the latest conversation message used to compile suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2;

Returns
Type Description
String

The latestMessage.

getLatestMessageBytes()

public abstract ByteString getLatestMessageBytes()

The name of the latest conversation message used to compile suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

string latest_message = 2;

Returns
Type Description
ByteString

The bytes for latestMessage.

hasKnowledgeAssistAnswer()

public abstract boolean hasKnowledgeAssistAnswer()

Output only. Knowledge Assist suggestion.

.google.cloud.dialogflow.v2beta1.KnowledgeAssistAnswer knowledge_assist_answer = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the knowledgeAssistAnswer field is set.