Google Chat V1 API - Class Google::Apps::Chat::V1::Elements (v0.34.0)

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

Elements are additional message components, including inline citations (where each citation is associated with a specific portion of the message text) and cited_sources (which are general references used to generate the response and are not directly linked to specific segments of the text). Both citations and cited_sources can be provided as input when creating or updating a message and are populated on output when reading a message.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#citations

def citations() -> ::Array<::Google::Apps::Chat::V1::Citation>
Returns
  • (::Array<::Google::Apps::Chat::V1::Citation>) — Optional. A list of inline citations referenced within the message text (via <chat-citation> tags) that render as interactive hover cards.

#citations=

def citations=(value) -> ::Array<::Google::Apps::Chat::V1::Citation>
Parameter
  • value (::Array<::Google::Apps::Chat::V1::Citation>) — Optional. A list of inline citations referenced within the message text (via <chat-citation> tags) that render as interactive hover cards.
Returns
  • (::Array<::Google::Apps::Chat::V1::Citation>) — Optional. A list of inline citations referenced within the message text (via <chat-citation> tags) that render as interactive hover cards.

#cited_sources

def cited_sources() -> ::Array<::Google::Apps::Chat::V1::CitedSource>
Returns
  • (::Array<::Google::Apps::Chat::V1::CitedSource>) — Optional. A list of sources to be displayed under the message as footer links. These are not referenced inline. For inline references, use citations.

#cited_sources=

def cited_sources=(value) -> ::Array<::Google::Apps::Chat::V1::CitedSource>
Parameter
  • value (::Array<::Google::Apps::Chat::V1::CitedSource>) — Optional. A list of sources to be displayed under the message as footer links. These are not referenced inline. For inline references, use citations.
Returns
  • (::Array<::Google::Apps::Chat::V1::CitedSource>) — Optional. A list of sources to be displayed under the message as footer links. These are not referenced inline. For inline references, use citations.