Google Apps Chat V1 Client - Class CardHeader (0.6.1)

Reference documentation and code samples for the Google Apps Chat V1 Client class CardHeader.

Generated from protobuf message google.chat.v1.ContextualAddOnMarkup.Card.CardHeader

Namespace

Google \ Apps \ Chat \ V1 \ ContextualAddOnMarkup \ Card

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ title string

The title must be specified. The header has a fixed height: if both a title and subtitle is 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.

↳ image_style int

The image's type (for example, square border or circular border).

↳ image_url string

The URL of the image in the card header.

getTitle

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

Returns
Type Description
string

setTitle

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

Parameter
Name Description
var string
Returns
Type Description
$this

getSubtitle

The subtitle of the card header.

Returns
Type Description
string

setSubtitle

The subtitle of the card header.

Parameter
Name Description
var string
Returns
Type Description
$this

getImageStyle

The image's type (for example, square border or circular border).

Returns
Type Description
int

setImageStyle

The image's type (for example, square border or circular border).

Parameter
Name Description
var int
Returns
Type Description
$this

getImageUrl

The URL of the image in the card header.

Returns
Type Description
string

setImageUrl

The URL of the image in the card header.

Parameter
Name Description
var string
Returns
Type Description
$this