Google Chat V1 API - Class Google::Apps::Card::V1::Card::CardHeader (v0.5.0)

Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::Card::CardHeader.

Represents a card header. For an example in Google Chat apps, see Add a header.

Google Workspace Add-ons and Chat apps:

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#image_alt_text

def image_alt_text() -> ::String
Returns
  • (::String) — The alternative text of this image that's used for accessibility.

#image_alt_text=

def image_alt_text=(value) -> ::String
Parameter
  • value (::String) — The alternative text of this image that's used for accessibility.
Returns
  • (::String) — The alternative text of this image that's used for accessibility.

#image_type

def image_type() -> ::Google::Apps::Card::V1::Widget::ImageType

#image_type=

def image_type=(value) -> ::Google::Apps::Card::V1::Widget::ImageType
Parameter

#image_url

def image_url() -> ::String
Returns
  • (::String) — The HTTPS URL of the image in the card header.

#image_url=

def image_url=(value) -> ::String
Parameter
  • value (::String) — The HTTPS URL of the image in the card header.
Returns
  • (::String) — The HTTPS URL of the image in the card header.

#subtitle

def subtitle() -> ::String
Returns
  • (::String) — The subtitle of the card header. If specified, appears on its own line below the title.

#subtitle=

def subtitle=(value) -> ::String
Parameter
  • value (::String) — The subtitle of the card header. If specified, appears on its own line below the title.
Returns
  • (::String) — The subtitle of the card header. If specified, appears on its own line below the title.

#title

def title() -> ::String
Returns
  • (::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.

#title=

def title=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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.