Interface CompileSuggestionResponseOrBuilder (4.30.0)

public interface CompileSuggestionResponseOrBuilder 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 CompileSuggestionRequest.context_size field in the request if there aren't that many messages in the conversation.

int32 context_size = 3;

Returns
Type Description
int

The contextSize.

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.

getSuggestion()

public abstract Suggestion getSuggestion()

The compiled suggestion.

.google.cloud.dialogflow.v2beta1.Suggestion suggestion = 1;

Returns
Type Description
Suggestion

The suggestion.

getSuggestionOrBuilder()

public abstract SuggestionOrBuilder getSuggestionOrBuilder()

The compiled suggestion.

.google.cloud.dialogflow.v2beta1.Suggestion suggestion = 1;

Returns
Type Description
SuggestionOrBuilder

hasSuggestion()

public abstract boolean hasSuggestion()

The compiled suggestion.

.google.cloud.dialogflow.v2beta1.Suggestion suggestion = 1;

Returns
Type Description
boolean

Whether the suggestion field is set.