public static interface ResponseMessage.TextOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getText(int index)
public abstract String getText(int index)
A collection of text response variants. If multiple variants are defined, only one text response variant is returned at runtime.
repeated string text = 1;
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)
A collection of text response variants. If multiple variants are defined, only one text response variant is returned at runtime.
repeated string text = 1;
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()
A collection of text response variants. If multiple variants are defined, only one text response variant is returned at runtime.
repeated string text = 1;
Returns | |
---|---|
Type | Description |
int |
The count of text. |
getTextList()
public abstract List<String> getTextList()
A collection of text response variants. If multiple variants are defined, only one text response variant is returned at runtime.
repeated string text = 1;
Returns | |
---|---|
Type | Description |
List<String> |
A list containing the text. |