0.31.0 (latest) 0.30.0 0.29.0 0.28.0 0.27.0 0.23.0 0.20.0 0.19.0 0.18.0 0.17.1 0.16.1 0.15.0 0.14.0 0.13.1 0.12.1 0.11.2 0.10.0 0.9.0 0.8.1 0.7.2 0.6.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.4 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` |   |