Interface AgentUtteranceOrBuilder (0.89.0)

public interface AgentUtteranceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getRequireGeneration()

public abstract boolean getRequireGeneration()

Optional. True if the agent utterance needs to be generated by the LLM. Only used in webhook response to differentiate from empty text. Revisit whether we need this field or mark text as optional when we expose webhook interface to customer.

bool require_generation = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The requireGeneration.

getText()

public abstract String getText()

Required. Message content in text.

string text = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

Required. Message content in text.

string text = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for text.