Interface WidgetMarkup.ImageOrBuilder (0.18.0)

public static interface WidgetMarkup.ImageOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAspectRatio()

public abstract double getAspectRatio()

The aspect ratio of this image (width and height). This field lets you reserve the right height for the image while waiting for it to load. It's not meant to override the built-in aspect ratio of the image. If unset, the server fills it by prefetching the image.

double aspect_ratio = 3;

Returns
Type Description
double

The aspectRatio.

getImageUrl()

public abstract String getImageUrl()

The URL of the image.

string image_url = 1;

Returns
Type Description
String

The imageUrl.

getImageUrlBytes()

public abstract ByteString getImageUrlBytes()

The URL of the image.

string image_url = 1;

Returns
Type Description
ByteString

The bytes for imageUrl.

getOnClick()

public abstract WidgetMarkup.OnClick getOnClick()

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
Type Description
WidgetMarkup.OnClick

The onClick.

getOnClickOrBuilder()

public abstract WidgetMarkup.OnClickOrBuilder getOnClickOrBuilder()

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
Type Description
WidgetMarkup.OnClickOrBuilder

hasOnClick()

public abstract boolean hasOnClick()

The onclick action.

.google.chat.v1.WidgetMarkup.OnClick on_click = 2;

Returns
Type Description
boolean

Whether the onClick field is set.