public static interface WidgetMarkup.KeyValueOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getBottomLabel()
public abstract String getBottomLabel()
The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
string bottom_label = 5;
Returns | |
---|---|
Type | Description |
String |
The bottomLabel. |
getBottomLabelBytes()
public abstract ByteString getBottomLabelBytes()
The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
string bottom_label = 5;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for bottomLabel. |
getButton()
public abstract WidgetMarkup.Button getButton()
A button that can be clicked to trigger an action.
.google.chat.v1.WidgetMarkup.Button button = 7;
Returns | |
---|---|
Type | Description |
WidgetMarkup.Button |
The button. |
getButtonOrBuilder()
public abstract WidgetMarkup.ButtonOrBuilder getButtonOrBuilder()
A button that can be clicked to trigger an action.
.google.chat.v1.WidgetMarkup.Button button = 7;
Returns | |
---|---|
Type | Description |
WidgetMarkup.ButtonOrBuilder |
getContent()
public abstract String getContent()
The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
string content = 4;
Returns | |
---|---|
Type | Description |
String |
The content. |
getContentBytes()
public abstract ByteString getContentBytes()
The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
string content = 4;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for content. |
getContentMultiline()
public abstract boolean getContentMultiline()
If the content should be multiline.
bool content_multiline = 9;
Returns | |
---|---|
Type | Description |
boolean |
The contentMultiline. |
getControlCase()
public abstract WidgetMarkup.KeyValue.ControlCase getControlCase()
Returns | |
---|---|
Type | Description |
WidgetMarkup.KeyValue.ControlCase |
getIcon()
public abstract WidgetMarkup.Icon getIcon()
An enum value that's replaced by the Chat API with the corresponding icon image.
.google.chat.v1.WidgetMarkup.Icon icon = 1;
Returns | |
---|---|
Type | Description |
WidgetMarkup.Icon |
The icon. |
getIconUrl()
public abstract String getIconUrl()
The icon specified by a URL.
string icon_url = 2;
Returns | |
---|---|
Type | Description |
String |
The iconUrl. |
getIconUrlBytes()
public abstract ByteString getIconUrlBytes()
The icon specified by a URL.
string icon_url = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for iconUrl. |
getIconValue()
public abstract int getIconValue()
An enum value that's replaced by the Chat API with the corresponding icon image.
.google.chat.v1.WidgetMarkup.Icon icon = 1;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for icon. |
getIconsCase()
public abstract WidgetMarkup.KeyValue.IconsCase getIconsCase()
Returns | |
---|---|
Type | Description |
WidgetMarkup.KeyValue.IconsCase |
getOnClick()
public abstract WidgetMarkup.OnClick getOnClick()
The onclick
action. Only the top label, bottom label, and content
region are clickable.
.google.chat.v1.WidgetMarkup.OnClick on_click = 6;
Returns | |
---|---|
Type | Description |
WidgetMarkup.OnClick |
The onClick. |
getOnClickOrBuilder()
public abstract WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder()
The onclick
action. Only the top label, bottom label, and content
region are clickable.
.google.chat.v1.WidgetMarkup.OnClick on_click = 6;
Returns | |
---|---|
Type | Description |
WidgetMarkup.OnClickOrBuilder |
getTopLabel()
public abstract String getTopLabel()
The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
string top_label = 3;
Returns | |
---|---|
Type | Description |
String |
The topLabel. |
getTopLabelBytes()
public abstract ByteString getTopLabelBytes()
The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
string top_label = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for topLabel. |
hasButton()
public abstract boolean hasButton()
A button that can be clicked to trigger an action.
.google.chat.v1.WidgetMarkup.Button button = 7;
Returns | |
---|---|
Type | Description |
boolean |
Whether the button field is set. |
hasIcon()
public abstract boolean hasIcon()
An enum value that's replaced by the Chat API with the corresponding icon image.
.google.chat.v1.WidgetMarkup.Icon icon = 1;
Returns | |
---|---|
Type | Description |
boolean |
Whether the icon field is set. |
hasIconUrl()
public abstract boolean hasIconUrl()
The icon specified by a URL.
string icon_url = 2;
Returns | |
---|---|
Type | Description |
boolean |
Whether the iconUrl field is set. |
hasOnClick()
public abstract boolean hasOnClick()
The onclick
action. Only the top label, bottom label, and content
region are clickable.
.google.chat.v1.WidgetMarkup.OnClick on_click = 6;
Returns | |
---|---|
Type | Description |
boolean |
Whether the onClick field is set. |