Interface ResponseMessage.TextOrBuilder (0.14.2)

public static interface ResponseMessage.TextOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAllowPlaybackInterruption()

public abstract boolean getAllowPlaybackInterruption()

Output only. Whether the playback of this message can be interrupted by the end user's speech and the client can then starts the next Dialogflow request.

bool allow_playback_interruption = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The allowPlaybackInterruption.

getText(int index)

public abstract String getText(int index)

Required. A collection of text responses.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The text at the given index.

getTextBytes(int index)

public abstract ByteString getTextBytes(int index)

Required. A collection of text responses.

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

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the text at the given index.

getTextCount()

public abstract int getTextCount()

Required. A collection of text responses.

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

Returns
TypeDescription
int

The count of text.

getTextList()

public abstract List<String> getTextList()

Required. A collection of text responses.

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

Returns
TypeDescription
List<String>

A list containing the text.