Reference documentation and code samples for the Google Apps Chat V1 Client class CardHeader.
Represents a card header. For an example in Google Chat apps, see Add a header .
Google Workspace Add-ons and Chat apps :
Generated from protobuf message google.apps.card.v1.Card.CardHeader
Namespace
Google \ Apps \ Card \ V1 \ CardMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ title
string
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.
↳ subtitle
string
The subtitle of the card header. If specified, appears on its own line below the title
.
↳ image_type
↳ image_url
string
The HTTPS URL of the image in the card header.
↳ image_alt_text
string
The alternative text of this image that's used for accessibility.
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
setTitle
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.
var
string
$this
getSubtitle
The subtitle of the card header. If specified, appears on its own line
below the title
.
string
setSubtitle
The subtitle of the card header. If specified, appears on its own line
below the title
.
var
string
$this
getImageType
The shape used to crop the image.
int
setImageType
The shape used to crop the image.
var
int
$this
getImageUrl
The HTTPS URL of the image in the card header.
string
setImageUrl
The HTTPS URL of the image in the card header.
var
string
$this
getImageAltText
The alternative text of this image that's used for accessibility.
string
setImageAltText
The alternative text of this image that's used for accessibility.
var
string
$this