Google Apps Chat V1 Client - Class Elements (0.31.0)

Reference documentation and code samples for the Google Apps Chat V1 Client class 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.

Generated from protobuf message google.chat.v1.Elements

Namespace

Google \ Apps \ Chat \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ cited_sources array<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.

↳ citations array<Citation>

Optional. A list of inline citations referenced within the message text (via <chat-citation> tags) that render as interactive hover cards.

getCitedSources

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
Type Description
Google\Protobuf\RepeatedField<CitedSource>

setCitedSources

Optional. A list of sources to be displayed under the message as footer links. These are not referenced inline. For inline references, use citations.

Parameter
Name Description
var array<CitedSource>
Returns
Type Description
$this

getCitations

Optional. A list of inline citations referenced within the message text (via <chat-citation> tags) that render as interactive hover cards.

Returns
Type Description
Google\Protobuf\RepeatedField<Citation>

setCitations

Optional. A list of inline citations referenced within the message text (via <chat-citation> tags) that render as interactive hover cards.

Parameter
Name Description
var array<Citation>
Returns
Type Description
$this