Interface WidgetMarkup.ButtonOrBuilder (0.18.0)

public static interface WidgetMarkup.ButtonOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getImageButton()

public abstract WidgetMarkup.ImageButton getImageButton()

A button with image and onclick action.

.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;

Returns
Type Description
WidgetMarkup.ImageButton

The imageButton.

getImageButtonOrBuilder()

public abstract WidgetMarkup.ImageButtonOrBuilder getImageButtonOrBuilder()

A button with image and onclick action.

.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;

Returns
Type Description
WidgetMarkup.ImageButtonOrBuilder

getTextButton()

public abstract WidgetMarkup.TextButton getTextButton()

A button with text and onclick action.

.google.chat.v1.WidgetMarkup.TextButton text_button = 1;

Returns
Type Description
WidgetMarkup.TextButton

The textButton.

getTextButtonOrBuilder()

public abstract WidgetMarkup.TextButtonOrBuilder getTextButtonOrBuilder()

A button with text and onclick action.

.google.chat.v1.WidgetMarkup.TextButton text_button = 1;

Returns
Type Description
WidgetMarkup.TextButtonOrBuilder

getTypeCase()

public abstract WidgetMarkup.Button.TypeCase getTypeCase()
Returns
Type Description
WidgetMarkup.Button.TypeCase

hasImageButton()

public abstract boolean hasImageButton()

A button with image and onclick action.

.google.chat.v1.WidgetMarkup.ImageButton image_button = 2;

Returns
Type Description
boolean

Whether the imageButton field is set.

hasTextButton()

public abstract boolean hasTextButton()

A button with text and onclick action.

.google.chat.v1.WidgetMarkup.TextButton text_button = 1;

Returns
Type Description
boolean

Whether the textButton field is set.