Interface Grid.GridItemOrBuilder (0.1.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
TypeDescription
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
TypeDescription
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
TypeDescription
ImageComponent

The image.

getImageOrBuilder()

public abstract ImageComponentOrBuilder getImageOrBuilder()

The image that displays in the grid item.

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

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

The enum numeric value on the wire for layout.

getSubtitle()

public abstract String getSubtitle()

The grid item's subtitle.

string subtitle = 4;

Returns
TypeDescription
String

The subtitle.

getSubtitleBytes()

public abstract ByteString getSubtitleBytes()

The grid item's subtitle.

string subtitle = 4;

Returns
TypeDescription
ByteString

The bytes for subtitle.

getTitle()

public abstract String getTitle()

The grid item's title.

string title = 3;

Returns
TypeDescription
String

The title.

getTitleBytes()

public abstract ByteString getTitleBytes()

The grid item's title.

string title = 3;

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

Whether the image field is set.