Interface TextParagraphOrBuilder (2.63.1)

public interface TextParagraphOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMaxLines()

public abstract int getMaxLines()

The maximum number of lines of text that are displayed in the widget. If the text exceeds the specified maximum number of lines, the excess content is concealed behind a show more button. If the text is equal or shorter than the specified maximum number of lines, a show more button isn't displayed.

The default value is 0, in which case all context is displayed. Negative values are ignored.

int32 max_lines = 2;

Returns
Type Description
int

The maxLines.

getText()

public abstract String getText()

The text that's shown in the widget.

string text = 1;

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

The text that's shown in the widget.

string text = 1;

Returns
Type Description
ByteString

The bytes for text.

getTextSyntax()

public abstract TextParagraph.TextSyntax getTextSyntax()

The syntax of the text. If not set, the text is rendered as HTML.

Google Chat apps:

.google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4;

Returns
Type Description
TextParagraph.TextSyntax

The textSyntax.

getTextSyntaxValue()

public abstract int getTextSyntaxValue()

The syntax of the text. If not set, the text is rendered as HTML.

Google Chat apps:

.google.apps.card.v1.TextParagraph.TextSyntax text_syntax = 4;

Returns
Type Description
int

The enum numeric value on the wire for textSyntax.