Interface ResponseMessage.TextOrBuilder (0.65.0)

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
Type Description
boolean

The allowPlaybackInterruption.

getText(int index)

public abstract String getText(int index)

Required. A collection of text response variants. If multiple variants are defined, only one text response variant is returned at runtime.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The text at the given index.

getTextBytes(int index)

public abstract ByteString getTextBytes(int index)

Required. A collection of text response variants. If multiple variants are defined, only one text response variant is returned at runtime.

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the text at the given index.

getTextCount()

public abstract int getTextCount()

Required. A collection of text response variants. If multiple variants are defined, only one text response variant is returned at runtime.

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

Returns
Type Description
int

The count of text.

getTextList()

public abstract List<String> getTextList()

Required. A collection of text response variants. If multiple variants are defined, only one text response variant is returned at runtime.

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

Returns
Type Description
List<String>

A list containing the text.