Interface Grid.GridItemOrBuilder (2.41.0)

public static interface Grid.GridItemOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getId()

public abstract String getId()

A user-specified identifier for this grid item. This identifier is returned in the parent grid's onClick callback parameters.

string id = 1;

Returns
Type Description
String

The id.

getIdBytes()

public abstract ByteString getIdBytes()

A user-specified identifier for this grid item. This identifier is returned in the parent grid's onClick callback parameters.

string id = 1;

Returns
Type Description
ByteString

The bytes for id.

getImage()

public abstract ImageComponent getImage()

The image that displays in the grid item.

.google.apps.card.v1.ImageComponent image = 2;

Returns
Type Description
ImageComponent

The image.

getImageOrBuilder()

public abstract ImageComponentOrBuilder getImageOrBuilder()

The image that displays in the grid item.

.google.apps.card.v1.ImageComponent image = 2;

Returns
Type Description
ImageComponentOrBuilder

getLayout()

public abstract Grid.GridItem.GridItemLayout getLayout()

The layout to use for the grid item.

.google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9;

Returns
Type Description
Grid.GridItem.GridItemLayout

The layout.

getLayoutValue()

public abstract int getLayoutValue()

The layout to use for the grid item.

.google.apps.card.v1.Grid.GridItem.GridItemLayout layout = 9;

Returns
Type Description
int

The enum numeric value on the wire for layout.

getSubtitle()

public abstract String getSubtitle()

The grid item's subtitle.

string subtitle = 4;

Returns
Type Description
String

The subtitle.

getSubtitleBytes()

public abstract ByteString getSubtitleBytes()

The grid item's subtitle.

string subtitle = 4;

Returns
Type Description
ByteString

The bytes for subtitle.

getTitle()

public abstract String getTitle()

The grid item's title.

string title = 3;

Returns
Type Description
String

The title.

getTitleBytes()

public abstract ByteString getTitleBytes()

The grid item's title.

string title = 3;

Returns
Type Description
ByteString

The bytes for title.

hasImage()

public abstract boolean hasImage()

The image that displays in the grid item.

.google.apps.card.v1.ImageComponent image = 2;

Returns
Type Description
boolean

Whether the image field is set.