Interface Card.CardHeaderOrBuilder (2.46.0)

public static interface Card.CardHeaderOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getImageAltText()

public abstract String getImageAltText()

The alternative text of this image that's used for accessibility.

string image_alt_text = 5;

Returns
Type Description
String

The imageAltText.

getImageAltTextBytes()

public abstract ByteString getImageAltTextBytes()

The alternative text of this image that's used for accessibility.

string image_alt_text = 5;

Returns
Type Description
ByteString

The bytes for imageAltText.

getImageType()

public abstract Widget.ImageType getImageType()

The shape used to crop the image.

Google Workspace Add-ons and Chat apps:

.google.apps.card.v1.Widget.ImageType image_type = 3;

Returns
Type Description
Widget.ImageType

The imageType.

getImageTypeValue()

public abstract int getImageTypeValue()

The shape used to crop the image.

Google Workspace Add-ons and Chat apps:

.google.apps.card.v1.Widget.ImageType image_type = 3;

Returns
Type Description
int

The enum numeric value on the wire for imageType.

getImageUrl()

public abstract String getImageUrl()

The HTTPS URL of the image in the card header.

string image_url = 4;

Returns
Type Description
String

The imageUrl.

getImageUrlBytes()

public abstract ByteString getImageUrlBytes()

The HTTPS URL of the image in the card header.

string image_url = 4;

Returns
Type Description
ByteString

The bytes for imageUrl.

getSubtitle()

public abstract String getSubtitle()

The subtitle of the card header. If specified, appears on its own line below the title.

string subtitle = 2;

Returns
Type Description
String

The subtitle.

getSubtitleBytes()

public abstract ByteString getSubtitleBytes()

The subtitle of the card header. If specified, appears on its own line below the title.

string subtitle = 2;

Returns
Type Description
ByteString

The bytes for subtitle.

getTitle()

public abstract String getTitle()

Required. The title of the card header. The header has a fixed height: if both a title and subtitle are specified, each takes up one line. If only the title is specified, it takes up both lines.

string title = 1;

Returns
Type Description
String

The title.

getTitleBytes()

public abstract ByteString getTitleBytes()

Required. The title of the card header. The header has a fixed height: if both a title and subtitle are specified, each takes up one line. If only the title is specified, it takes up both lines.

string title = 1;

Returns
Type Description
ByteString

The bytes for title.