public interface DecoratedTextOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getBottomLabel()
public abstract String getBottomLabel()
The text that appears below text
. Always wraps.
string bottom_label = 6;
Returns | |
---|---|
Type | Description |
String | The bottomLabel. |
getBottomLabelBytes()
public abstract ByteString getBottomLabelBytes()
The text that appears below text
. Always wraps.
string bottom_label = 6;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ButtonOrBuilder |
getControlCase()
public abstract DecoratedText.ControlCase getControlCase()
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
Icon | The icon. |
getIconOrBuilder() (deprecated)
public abstract IconOrBuilder getIconOrBuilder()
Deprecated in favor of startIcon
.
.google.apps.card.v1.Icon icon = 1 [deprecated = true];
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
OnClickOrBuilder |
getStartIcon()
public abstract Icon getStartIcon()
The icon displayed in front of the text.
.google.apps.card.v1.Icon start_icon = 12;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString | The bytes for text. |
getTopLabel()
public abstract String getTopLabel()
The text that appears above text
. Always truncates.
string top_label = 3;
Returns | |
---|---|
Type | Description |
String | The topLabel. |
getTopLabelBytes()
public abstract ByteString getTopLabelBytes()
The text that appears above text
. Always truncates.
string top_label = 3;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the switchControl field is set. |