public static interface Intent.Message.TextOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getText(int index)
public abstract String getText(int index)Optional. The collection of the agent's responses.
repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe 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)Optional. The collection of the agent's responses.
repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the text at the given index. |
getTextCount()
public abstract int getTextCount()Optional. The collection of the agent's responses.
repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The count of text. |
getTextList()
public abstract List<String> getTextList()Optional. The collection of the agent's responses.
repeated string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the text. |