Interface DecoratedTextOrBuilder (0.1.0)

public interface DecoratedTextOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBottomLabel()

public abstract String getBottomLabel()

The text that appears below text. Always wraps.

string bottom_label = 6;

Returns
TypeDescription
String

The bottomLabel.

getBottomLabelBytes()

public abstract ByteString getBottomLabelBytes()

The text that appears below text. Always wraps.

string bottom_label = 6;

Returns
TypeDescription
ByteString

The bytes for bottomLabel.

getButton()

public abstract Button getButton()

A button that a user can click to trigger an action.

.google.apps.card.v1.Button button = 8;

Returns
TypeDescription
Button

The button.

getButtonOrBuilder()

public abstract ButtonOrBuilder getButtonOrBuilder()

A button that a user can click to trigger an action.

.google.apps.card.v1.Button button = 8;

Returns
TypeDescription
ButtonOrBuilder

getControlCase()

public abstract DecoratedText.ControlCase getControlCase()
Returns
TypeDescription
DecoratedText.ControlCase

getEndIcon()

public abstract Icon getEndIcon()

An icon displayed after the text.

Supports built-in and custom icons.

.google.apps.card.v1.Icon end_icon = 11;

Returns
TypeDescription
Icon

The endIcon.

getEndIconOrBuilder()

public abstract IconOrBuilder getEndIconOrBuilder()

An icon displayed after the text.

Supports built-in and custom icons.

.google.apps.card.v1.Icon end_icon = 11;

Returns
TypeDescription
IconOrBuilder

getIcon() (deprecated)

public abstract Icon getIcon()

Deprecated. google.apps.card.v1.DecoratedText.icon is deprecated. See google/apps/card/v1/card.proto;l=794

Deprecated in favor of startIcon.

.google.apps.card.v1.Icon icon = 1 [deprecated = true];

Returns
TypeDescription
Icon

The icon.

getIconOrBuilder() (deprecated)

public abstract IconOrBuilder getIconOrBuilder()

Deprecated in favor of startIcon.

.google.apps.card.v1.Icon icon = 1 [deprecated = true];

Returns
TypeDescription
IconOrBuilder

getOnClick()

public abstract OnClick getOnClick()

This action is triggered when users click topLabel or bottomLabel.

.google.apps.card.v1.OnClick on_click = 7;

Returns
TypeDescription
OnClick

The onClick.

getOnClickOrBuilder()

public abstract OnClickOrBuilder getOnClickOrBuilder()

This action is triggered when users click topLabel or bottomLabel.

.google.apps.card.v1.OnClick on_click = 7;

Returns
TypeDescription
OnClickOrBuilder

getStartIcon()

public abstract Icon getStartIcon()

The icon displayed in front of the text.

.google.apps.card.v1.Icon start_icon = 12;

Returns
TypeDescription
Icon

The startIcon.

getStartIconOrBuilder()

public abstract IconOrBuilder getStartIconOrBuilder()

The icon displayed in front of the text.

.google.apps.card.v1.Icon start_icon = 12;

Returns
TypeDescription
IconOrBuilder

getSwitchControl()

public abstract DecoratedText.SwitchControl getSwitchControl()

A switch widget that a user can click to change its state and trigger an action.

.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;

Returns
TypeDescription
DecoratedText.SwitchControl

The switchControl.

getSwitchControlOrBuilder()

public abstract DecoratedText.SwitchControlOrBuilder getSwitchControlOrBuilder()

A switch widget that a user can click to change its state and trigger an action.

.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;

Returns
TypeDescription
DecoratedText.SwitchControlOrBuilder

getText()

public abstract String getText()

Required. The primary text.

Supports simple formatting. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.

string text = 4;

Returns
TypeDescription
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

Required. The primary text.

Supports simple formatting. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.

string text = 4;

Returns
TypeDescription
ByteString

The bytes for text.

getTopLabel()

public abstract String getTopLabel()

The text that appears above text. Always truncates.

string top_label = 3;

Returns
TypeDescription
String

The topLabel.

getTopLabelBytes()

public abstract ByteString getTopLabelBytes()

The text that appears above text. Always truncates.

string top_label = 3;

Returns
TypeDescription
ByteString

The bytes for topLabel.

getWrapText()

public abstract boolean getWrapText()

The wrap text setting. If true, the text wraps and displays on multiple lines. Otherwise, the text is truncated.

Only applies to text, not topLabel and bottomLabel.

bool wrap_text = 5;

Returns
TypeDescription
boolean

The wrapText.

hasButton()

public abstract boolean hasButton()

A button that a user can click to trigger an action.

.google.apps.card.v1.Button button = 8;

Returns
TypeDescription
boolean

Whether the button field is set.

hasEndIcon()

public abstract boolean hasEndIcon()

An icon displayed after the text.

Supports built-in and custom icons.

.google.apps.card.v1.Icon end_icon = 11;

Returns
TypeDescription
boolean

Whether the endIcon field is set.

hasIcon() (deprecated)

public abstract boolean hasIcon()

Deprecated. google.apps.card.v1.DecoratedText.icon is deprecated. See google/apps/card/v1/card.proto;l=794

Deprecated in favor of startIcon.

.google.apps.card.v1.Icon icon = 1 [deprecated = true];

Returns
TypeDescription
boolean

Whether the icon field is set.

hasOnClick()

public abstract boolean hasOnClick()

This action is triggered when users click topLabel or bottomLabel.

.google.apps.card.v1.OnClick on_click = 7;

Returns
TypeDescription
boolean

Whether the onClick field is set.

hasStartIcon()

public abstract boolean hasStartIcon()

The icon displayed in front of the text.

.google.apps.card.v1.Icon start_icon = 12;

Returns
TypeDescription
boolean

Whether the startIcon field is set.

hasSwitchControl()

public abstract boolean hasSwitchControl()

A switch widget that a user can click to change its state and trigger an action.

.google.apps.card.v1.DecoratedText.SwitchControl switch_control = 9;

Returns
TypeDescription
boolean

Whether the switchControl field is set.