Interface WidgetMarkup.ButtonOrBuilder (0.1.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
TypeDescription
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
TypeDescription
WidgetMarkup.ImageButtonOrBuilder

getTextButton()

public abstract WidgetMarkup.TextButton getTextButton()

A button with text and onclick action.

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

Returns
TypeDescription
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
TypeDescription
WidgetMarkup.TextButtonOrBuilder

getTypeCase()

public abstract WidgetMarkup.Button.TypeCase getTypeCase()
Returns
TypeDescription
WidgetMarkup.Button.TypeCase

hasImageButton()

public abstract boolean hasImageButton()

A button with image and onclick action.

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

Returns
TypeDescription
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
TypeDescription
boolean

Whether the textButton field is set.