Google Chat V1 API - Class Google::Apps::Chat::V1::CardWithId (v0.31.0)

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

A card in a Google Chat message.

Chat apps can create cards with app authentication. As part of the Developer Preview Program, if your Chat app authenticates as a user, it can create card messages. If your Chat app is not part of Developer Preview Program, it can't create cards with user authentication.

To learn how to create a message that contains cards, see Send a message.

Card builder

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#card

def card() -> ::Google::Apps::Card::V1::Card
Returns

#card=

def card=(value) -> ::Google::Apps::Card::V1::Card
Parameter
Returns

#card_id

def card_id() -> ::String
Returns
  • (::String) — Required if the message contains multiple cards. A unique identifier for a card in a message.

#card_id=

def card_id=(value) -> ::String
Parameter
  • value (::String) — Required if the message contains multiple cards. A unique identifier for a card in a message.
Returns
  • (::String) — Required if the message contains multiple cards. A unique identifier for a card in a message.